[02:58:26]OFD Sender: No OFD packet to send [02:58:31]OFD Sender: No OFD packet to send [02:58:36]OFD Sender: No OFD packet to send [02:58:41]OFD Sender: No OFD packet to send [02:58:46]OFD Sender: No OFD packet to send [02:58:51]OFD Sender: No OFD packet to send [02:58:56]OFD Sender: No OFD packet to send [02:59:01]OFD Sender: No OFD packet to send [02:59:02]accept exits with 8 [02:59:02]New connection [02:59:02]New thread 3067141476 created [02:59:02]Thread 3067284836 joined [02:59:02]Waiting for new connection... [02:59:02] Sock 8.Parse request [02:59:02]Sock 8.Check first char [02:59:02]Sock 8.First char is OK [02:59:02]request: POST /json_proto HTTP/1.0 [02:59:02]Method: POST [02:59:02]URL: /json_proto [02:59:02]Method is POST - this is cgi request [02:59:02]url: /json_proto [02:59:02]query_string will be loaded in cgi processing [02:59:02]execute_cgi json_proto POST (null) [02:59:02]execute_cgi path=json_proto method=POST [02:59:02]POST find Content-Length [02:59:02]Host: 172.17.50.196:8080 [02:59:02]Content-Length: 842 [02:59:02]Content-Type: application/json [02:59:02] [02:59:02]POST finish read [02:59:02]Found Content-Length = 842 [02:59:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335247", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.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" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:02]execute_script... [02:59: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 : (3)335247", "tax_sys" : 0, "items" : [ { "code": "4870202522688", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 0,45 \u041F\u042D", "price" : 70.00, "quantity" : 1.000, "sum" : 70.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" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:59:02]POST & json_proto [02:59:02]process_json_proto [02:59:02]json parsed OK: [02:59:02]protocol is kg_v1.0 [02:59:02]action value=close_receipt [02:59:02]process_action close_receipt [02:59:02]cmd_close_receipt [02:59:02]MH_GetDate [02:59:02]Write to MH i2c: F0 00 00 E4 2D 00 [02:59:02]Write i2c OK [02:59:02]MH_I2C_Read... [02:59:02]Read from MH i2c: F0 [02:59:02]MH_I2C_Read... [02:59:02]Read from MH i2c: F0 09 00 [02:59:02]MH_I2C_Read... [02:59:02]Read from MH i2c: F0 09 00 E4 2D 00 F9 A0 21 67 72 0D 1C 67 2C [02:59:02]GetLastDocTimeStamp 1730256941 [02:59:02]current date 1730257145 [02:59:02]FM_GetShiftState [02:59:02]SAM_PROTO_GetShiftState [02:59:02]wFMCommunicate request_size=4 [02:59:02]MH_SAM_APDU [02:59:02]CAPDU: 80 13 01 00 [02:59:02]Write to MH i2c: E2 08 00 E5 2D 80 13 01 00 00 00 00 00 8F [02:59:02]Write i2c OK [02:59:02]MH_I2C_Read... [02:59:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:02]Read from MH i2c: E2 [02:59:02]MH_I2C_Read... [02:59:02]Read from MH i2c: E2 0E 00 [02:59:02]MH_I2C_Read... [02:59:02]Read from MH i2c: E2 0E 00 E5 2D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 1F [02:59:02]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [02:59:02]wFMCommunicate OK [02:59:02]SAM_PROTO_GetShiftState done [02:59:02]FM_GetShiftState done [02:59:02]opened in 1730246278 [02:59:02]opened+sec_in_day 1730332678 [02:59:02]quantity*price = 7000 [02:59:02]sum+1 = 7001 [02:59:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 0.00 Безнал.: 70.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 26 30.10.2024 02:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139342 ФПД: 56637142392224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T025905&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139342&fm=56637142392224&tin=02508201610067®Number=0000000000091631&sum=7000 0 [02:59:03]StoreToDocumentArchive [02:59:03]shift 556 fd 139342 [02:59:03]save to /storage/0556/doc_00139342 [02:59:03]save last doc name /storage/0556/doc_00139342 to /storage/kkm_last_doc_name [02:59:03]save OK [02:59:03]Clear old archive folders... [02:59:03]ProcessDocumentItem done err = 0, tmpTLVsize=306 [02:59:03]tlvbuf is 0120EBC0 [02:59:03]SAM_PROTO_ClearQueue [02:59:03]wFMCommunicate request_size=4 [02:59:03]MH_SAM_APDU [02:59:03]CAPDU: 80 09 00 00 [02:59:03]Write to MH i2c: E2 08 00 F2 2D 80 09 00 00 00 00 00 00 91 [02:59:03]Write i2c OK [02:59:03]MH_I2C_Read... [02:59:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:59:03]Read from MH i2c: E2 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 03 00 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 03 00 F2 2D 00 90 00 93 [02:59:03]RAPDU: 90 00 [02:59:03]wFMCommunicate OK [02:59:03]SAM_PROTO_ClearQueue done [02:59:03]KKMCreateOFDPacket [02:59:03]OFDProtocolAddRootSTLVToBuf [02:59:03]FM_MakeSignedData [02:59:03]FM_MakeSignedData [02:59:03]SAM_PROTO_SignData [02:59:03]wFMCommunicate request_size=4 [02:59:03]MH_SAM_APDU [02:59:03]CAPDU: 80 0D 01 02 [02:59:03]Write to MH i2c: E2 08 00 F3 2D 80 0D 01 02 00 00 00 00 99 [02:59:03]Write i2c OK [02:59:03]MH_I2C_Read... [02:59:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:59:03]Read from MH i2c: E2 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 03 00 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 03 00 F3 2D 00 90 00 94 [02:59:03]RAPDU: 90 00 [02:59:03]wFMCommunicate OK [02:59:03]wFMCommunicate request_size=255 [02:59:03]MH_SAM_APDU [02:59:03]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 F9 A0 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 [02:59:03]Write to MH i2c: E2 02 01 F4 2D 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 F9 A0 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 00 22 [02:59:03]Write i2c OK [02:59:03]MH_I2C_Read... [02:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:03]Read from MH i2c: E2 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 03 00 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 03 00 F4 2D 00 90 00 95 [02:59:03]RAPDU: 90 00 [02:59:03]wFMCommunicate OK [02:59:03]wFMCommunicate request_size=65 [02:59:03]MH_SAM_APDU [02:59:03]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 20 02 00 35 04 06 00 33 82 DC C0 DD A0 [02:59:03]Write to MH i2c: E2 44 00 F5 2D 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 20 02 00 35 04 06 00 33 82 DC C0 DD A0 00 00 2C [02:59:03]Write i2c OK [02:59:03]MH_I2C_Read... [02:59:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:59:03]Read from MH i2c: E2 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 03 00 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 03 00 F5 2D 00 90 00 96 [02:59:03]RAPDU: 90 00 [02:59:03]wFMCommunicate OK [02:59:03]wFMCommunicate request_size=4 [02:59:03]MH_SAM_APDU [02:59:03]CAPDU: 80 0D 03 02 [02:59:03]Write to MH i2c: E2 08 00 F6 2D 80 0D 03 02 00 00 00 00 9E [02:59:03]Write i2c OK [02:59:03]MH_I2C_Read... [02:59:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:59:03]Read from MH i2c: E2 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 0B 00 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 0B 00 F6 2D 00 64 70 B3 11 79 7F D0 18 90 00 17 [02:59:03]RAPDU: 64 70 B3 11 79 7F D0 18 90 00 [02:59:03]wFMCommunicate OK [02:59:03]SAM_PROTO_SignData done [02:59:03]FM_MakeSignedData done [02:59:03]CreateOFDProtocolMessage [02:59:03]wFMCommunicate request_size=4 [02:59:03]MH_SAM_APDU [02:59:03]CAPDU: 80 11 00 00 [02:59:03]Write to MH i2c: E2 08 00 F7 2D 80 11 00 00 00 00 00 00 9E [02:59:03]Write i2c OK [02:59:03]MH_I2C_Read... [02:59:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:03]Read from MH i2c: E2 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 17 00 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: E2 17 00 F7 2D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F9 [02:59:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:59:03]wFMCommunicate OK [02:59:03]CreateOFDProtocolMessage done [02:59:03]OFDSenderStorePacket 139342 [02:59:03]StoreOFDPacket docnum=139342 [02:59:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 46 01 00 00 DA 6B 3E 01 CD DF 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 F9 A0 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 20 02 00 35 04 06 00 33 82 DC C0 DD A0 64 70 B3 11 79 7F D0 18 [02:59:03]CheckFolder [02:59:03]dirname=/storage/ofd_packets [02:59:03]CheckFolder done [02:59:03]ProducePacketName [02:59:03]name=ofd_packets/00139342 [02:59:03]NVStorageSaveData ofd_packets/00139342 [02:59:03]File name is /storage/ofd_packets/00139342 [02:59:03]Write 356 bytes [02:59:03]NVStorageSaveData done [02:59:03]OFDSenderStorePacket done [02:59:03]KKMCreateOFDPacket done [02:59:03]NVStorageSaveData kkm_last_timestamp [02:59:03]File name is /storage/kkm_last_timestamp [02:59:03]Write 4 bytes [02:59:03]NVStorageSaveData done [02:59:03]ExternCall_PrintAddStr [02:59:03]wPrintStart [02:59:03]Write to MH i2c: 01 00 00 F8 2D 25 [02:59:03]Write i2c OK [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: 01 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: 01 07 00 [02:59:03]MH_I2C_Read... [02:59:03]Read from MH i2c: 01 07 00 F8 2D 00 00 00 00 00 FF 0F 3A [02:59:03]RasterBufferAndPrint [02:59:03]line Счет N : (3)335247 [02:59:03]line ИНН: 02508201610067 [02:59:03]line Контрольно-Кассовый Чек [02:59:03]line ПРОДАЖА [02:59:03]line Товар: 4870202522688 [02:59:03]line Garden напиток со вкусом граната 0,45 ПЭ [02:59:03]line 1.000 * 70.00 [02:59:03]line = 70.00 [02:59:03]line НДС 12% НСП 1% [02:59:03]line > о реализуемом товаре [02:59:03]line ИТОГО: 70.00 [02:59:03]line НСП 1% : 0.62 [02:59:03]line НДС 12% : 7.43 [02:59:03]line Наличными: 0.00 [02:59:03]line Безнал.: 70.00 [02:59:03]line Место: АЗС № 101 "Партнер Нефть" [02:59:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:59:03]line СНО: Общий режим [02:59:03]line Чек 26 30.10.2024 02:59 [02:59:03]line Смена: 556 ФФД: 1.0 [02:59:03]line ЗНМ: 0300000081 [02:59:03]line РНМ: 0000000000091631 [02:59:03]line Версия ККМ: 001 [02:59:03]line Платежная система: Mbank [02:59:03]line ФМ: 0000000000874669 [02:59:03]line ФД: 139342 [02:59:03]line ФПД: 56637142392224 [02:59:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T025905&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139342&fm=56637142392224&tin=02508201610067®Number=0000000000091631&sum=7000 [02:59:04]line 0 [02:59:04]OFD Sender: Processing packet 139342 [packets to send 34, broken 33] [02:59:04]ProducePacketName [02:59:04]name=ofd_packets/00139342 [02:59:04]OFD Sender: To server: pG, [02:59:04]CommunicateWithHost lk.salyk.kg:30040 [02:59:04]ConnectInit lk.salyk.kg [02:59:04]written 0, free lines is 4095 [02:59:04]Connected sock=11 [02:59:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 46 01 00 00 DA 6B 3E 01 CD DF 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 38 38 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 30 2C 34 35 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 58 1B 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 F9 A0 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 20 02 00 35 04 06 00 33 82 DC C0 DD A0 64 70 B3 11 79 7F D0 18 [02:59:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D2 F7 47 00 8B BC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4E 20 02 00 F4 03 04 00 AB 4C 21 67 B6 04 01 00 00 EB E9 DB C9 E6 B6 58 6E [02:59:04]CommunicateWithHost err = 0 [02:59:04]CheckOFDResponse [02:59:04]1017 (14) - 77093643461234 [02:59:04]1041 (16) - 0000000000874669 [02:59:04]1040 (4) - 139342 [02:59:04]1012 (4) - 29.10.2024 20:59 [02:59:04]1206 (1) - 0 [02:59:04]OFD Sender: Remove packet 139342 [02:59:04]ProducePacketName [02:59:04]name=ofd_packets/00139342 [02:59:04]NVStorageDeleteData [02:59:04]Write to MH i2c: 01 00 00 22 2E 50 [02:59:04]Write i2c OK [02:59:04]MH_I2C_Read... [02:59:04]Read from MH i2c: 01 [02:59:04]MH_I2C_Read... [02:59:04]Read from MH i2c: 01 07 00 [02:59:04]MH_I2C_Read... [02:59:04]Read from MH i2c: 01 07 00 22 2E 00 00 00 00 00 05 0D 69 [02:59:04]RasterBufferAndPrint [02:59:04]line [02:59:04]line [02:59:04]line [02:59:04]line [02:59:04]line [02:59:04]written 0, free lines is 3339 [02:59:04]MH_Cut [02:59:04]Write to MH i2c: D1 01 00 29 2E 01 29 [02:59:04]Write i2c OK [02:59:04]MH_I2C_Read... [02:59:04]Read from MH i2c: D1 [02:59:04]MH_I2C_Read... [02:59:04]Read from MH i2c: D1 01 00 [02:59:04]MH_I2C_Read... [02:59:04]Read from MH i2c: D1 01 00 29 2E 00 28 [02:59:04]Write to MH i2c: 01 00 00 2A 2E 58 [02:59:04]Write i2c OK [02:59:04]MH_I2C_Read... [02:59:05]OFD Sender: No OFD packet to send [02:59:05]*** Cut start [02:59:05]*** Partial cut [02:59:05]*** CUTSNS_PIN = 1 [02:59:05]*** CUTSNS_PIN = 0 [02:59:05]*** Brake cut motor [02:59:05]Read from MH i2c: 01 [02:59:06]MH_I2C_Read... [02:59:06]*** Stop cut motor [02:59:06]*** Cut end [02:59:06]Read from MH i2c: 01 07 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: 01 07 00 2A 2E 00 00 00 00 00 FF 0F 6D [02:59:06]process_action close_receipt done [02:59:06]requested_data is exist [02:59:06]produce_requested_data [02:59:06]requested_item fm.sn is exist - process it [02:59:06]wFMCommunicate request_size=4 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 11 00 00 [02:59:06]Write to MH i2c: E2 08 00 2B 2E 80 11 00 00 00 00 00 00 D3 [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 17 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 17 00 2B 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [02:59:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:59:06]wFMCommunicate OK [02:59:06]requested_item fd.num is exist - process it [02:59:06]SAM_PROTO_GetFieldsCounters [02:59:06]wFMCommunicate request_size=4 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 13 00 00 [02:59:06]Write to MH i2c: E2 08 00 2C 2E 80 13 00 00 00 00 00 00 D6 [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 62 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 62 00 2C 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4E 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 E6 [02:59:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4E 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:59:06]wFMCommunicate OK [02:59:06]SAM_PROTO_GetFieldsCounters done [02:59:06]requested_item shift.num is exist - process it [02:59:06]requested_item shift.opened is exist - process it [02:59:06]req_shift_opened [02:59:06]FM_GetShiftState [02:59:06]SAM_PROTO_GetShiftState [02:59:06]wFMCommunicate request_size=4 [02:59:06]MH_SAM_APDU [02:59:06]CAPDU: 80 13 01 00 [02:59:06]Write to MH i2c: E2 08 00 2D 2E 80 13 01 00 00 00 00 00 D8 [02:59:06]Write i2c OK [02:59:06]MH_I2C_Read... [02:59:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:59:06]Read from MH i2c: E2 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 0E 00 [02:59:06]MH_I2C_Read... [02:59:06]Read from MH i2c: E2 0E 00 2D 2E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 68 [02:59:06]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [02:59:06]wFMCommunicate OK [02:59:06]SAM_PROTO_GetShiftState done [02:59:06]FM_GetShiftState done [02:59:06]req_shift_opened done [02:59:06]requested_item shift.open_date is exist - process it [02:59:06]req_shift_open_date [02:59:06]req_shift_open_date done [02:59:06]produce_requested_data done [02:59:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139342,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [02:59:06]process_action_free close_receipt [02:59:06]json_value_free [02:59:06]json_value_free done [02:59:06]process_json_proto returns [02:59:06]Send response to host [02:59:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139342,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [02:59:06]free response buf [02:59:06]execute_script done [02:59:06]execute_script returns [02:59:06]free content buf [02:59:06]Sock 8.Close socket [02:59:06]Sock 8.Thread stoped [02:59:10]OFD Sender: No OFD packet to send [02:59:15]OFD Sender: No OFD packet to send [02:59:20]OFD Sender: No OFD packet to send [02:59:25]OFD Sender: No OFD packet to send [02:59:30]OFD Sender: No OFD packet to send [02:59:35]OFD Sender: No OFD packet to send [02:59:40]OFD Sender: No OFD packet to send [02:59:45]OFD Sender: No OFD packet to send [02:59:50]OFD Sender: No OFD packet to send [02:59:55]OFD Sender: No OFD packet to send [03:00:00]OFD Sender: No OFD packet to send [03:00:05]OFD Sender: No OFD packet to send [03:00:10]OFD Sender: No OFD packet to send [03:00:15]OFD Sender: No OFD packet to send [03:00:20]OFD Sender: No OFD packet to send [03:00:25]OFD Sender: No OFD packet to send [03:00:30]OFD Sender: No OFD packet to send [03:00:35]OFD Sender: No OFD packet to send [03:00:36]ConnectInit Can't connect to host [03:00:40]OFD Sender: No OFD packet to send [03:00:45]OFD Sender: No OFD packet to send [03:00:50]OFD Sender: No OFD packet to send [03:00:55]OFD Sender: No OFD packet to send [03:01:00]OFD Sender: No OFD packet to send [03:01:05]OFD Sender: No OFD packet to send [03:01:10]OFD Sender: No OFD packet to send [03:01:11]accept exits with 10 [03:01:11]New connection [03:01:11]New thread 3067284836 created [03:01:11]Thread 3067141476 joined [03:01:11]Waiting for new connection... [03:01:11] Sock 10.Parse request [03:01:11]Sock 10.Check first char [03:01:11]Sock 10.First char is OK [03:01:11]request: POST /json_proto HTTP/1.0 [03:01:11]Method: POST [03:01:11]URL: /json_proto [03:01:11]Method is POST - this is cgi request [03:01:11]url: /json_proto [03:01:11]query_string will be loaded in cgi processing [03:01:11]execute_cgi json_proto POST (null) [03:01:11]execute_cgi path=json_proto method=POST [03:01:11]POST find Content-Length [03:01:11]Host: 172.17.50.196:8080 [03:01:11]Content-Length: 622 [03:01:11]Content-Type: application/json [03:01:11] [03:01:11]POST finish read [03:01:11]Found Content-Length = 622 [03:01:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335248", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:11]execute_script... [03: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 : (3)335248", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:01:11]POST & json_proto [03:01:11]process_json_proto [03:01:11]json parsed OK: [03:01:11]protocol is kg_v1.0 [03:01:11]action value=close_receipt [03:01:11]process_action close_receipt [03:01:11]cmd_close_receipt [03:01:11]MH_GetDate [03:01:11]Write to MH i2c: F0 00 00 2E 2E 4B [03:01:11]Write i2c OK [03:01:11]MH_I2C_Read... [03:01:11]Read from MH i2c: F0 [03:01:11]MH_I2C_Read... [03:01:11]Read from MH i2c: F0 09 00 [03:01:11]MH_I2C_Read... [03:01:11]Read from MH i2c: F0 09 00 2E 2E 00 7A A1 21 67 72 0D 1C 67 F9 [03:01:11]GetLastDocTimeStamp 1730257145 [03:01:11]current date 1730257274 [03:01:11]FM_GetShiftState [03:01:11]SAM_PROTO_GetShiftState [03:01:11]wFMCommunicate request_size=4 [03:01:11]MH_SAM_APDU [03:01:11]CAPDU: 80 13 01 00 [03:01:11]Write to MH i2c: E2 08 00 2F 2E 80 13 01 00 00 00 00 00 DA [03:01:11]Write i2c OK [03:01:11]MH_I2C_Read... [03:01:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:11]Read from MH i2c: E2 [03:01:11]MH_I2C_Read... [03:01:11]Read from MH i2c: E2 0E 00 [03:01:11]MH_I2C_Read... [03:01:11]Read from MH i2c: E2 0E 00 2F 2E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6A [03:01:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:01:11]wFMCommunicate OK [03:01:11]SAM_PROTO_GetShiftState done [03:01:11]FM_GetShiftState done [03:01:11]opened in 1730246278 [03:01:11]opened+sec_in_day 1730332678 [03:01:11]quantity*price = 16000 [03:01:11]sum+1 = 16001 [03:01:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 27 30.10.2024 03:01 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139343 ФПД: 39785573622482 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T030114&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139343&fm=39785573622482&tin=02508201610067®Number=0000000000091631&sum=16000 0 [03:01:12]StoreToDocumentArchive [03:01:12]shift 556 fd 139343 [03:01:12]save to /storage/0556/doc_00139343 [03:01:12]save last doc name /storage/0556/doc_00139343 to /storage/kkm_last_doc_name [03:01:12]save OK [03:01:12]Clear old archive folders... [03:01:12]ProcessDocumentItem done err = 0, tmpTLVsize=274 [03:01:12]tlvbuf is B6FA9C00 [03:01:12]SAM_PROTO_ClearQueue [03:01:12]wFMCommunicate request_size=4 [03:01:12]MH_SAM_APDU [03:01:12]CAPDU: 80 09 00 00 [03:01:12]Write to MH i2c: E2 08 00 3C 2E 80 09 00 00 00 00 00 00 DC [03:01:12]Write i2c OK [03:01:12]MH_I2C_Read... [03:01:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:01:12]Read from MH i2c: E2 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 03 00 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 03 00 3C 2E 00 90 00 DE [03:01:12]RAPDU: 90 00 [03:01:12]wFMCommunicate OK [03:01:12]SAM_PROTO_ClearQueue done [03:01:12]KKMCreateOFDPacket [03:01:12]OFDProtocolAddRootSTLVToBuf [03:01:12]FM_MakeSignedData [03:01:12]FM_MakeSignedData [03:01:12]SAM_PROTO_SignData [03:01:12]wFMCommunicate request_size=4 [03:01:12]MH_SAM_APDU [03:01:12]CAPDU: 80 0D 01 02 [03:01:12]Write to MH i2c: E2 08 00 3D 2E 80 0D 01 02 00 00 00 00 E4 [03:01:12]Write i2c OK [03:01:12]MH_I2C_Read... [03:01:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:01:12]Read from MH i2c: E2 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 03 00 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 03 00 3D 2E 00 90 00 DF [03:01:12]RAPDU: 90 00 [03:01:12]wFMCommunicate OK [03:01:12]wFMCommunicate request_size=255 [03:01:12]MH_SAM_APDU [03:01:12]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 7A A1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [03:01:12]Write to MH i2c: E2 02 01 3E 2E 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 7A A1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 00 00 1C [03:01:12]Write i2c OK [03:01:12]MH_I2C_Read... [03:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:12]Read from MH i2c: E2 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 03 00 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 03 00 3E 2E 00 90 00 E0 [03:01:12]RAPDU: 90 00 [03:01:12]wFMCommunicate OK [03:01:12]wFMCommunicate request_size=33 [03:01:12]MH_SAM_APDU [03:01:12]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 20 02 00 35 04 06 00 24 2F 4C FB A2 D2 [03:01:12]Write to MH i2c: E2 24 00 3F 2E 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 20 02 00 35 04 06 00 24 2F 4C FB A2 D2 00 00 FD [03:01:12]Write i2c OK [03:01:12]MH_I2C_Read... [03:01:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:01:12]Read from MH i2c: E2 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 03 00 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 03 00 3F 2E 00 90 00 E1 [03:01:12]RAPDU: 90 00 [03:01:12]wFMCommunicate OK [03:01:12]wFMCommunicate request_size=4 [03:01:12]MH_SAM_APDU [03:01:12]CAPDU: 80 0D 03 02 [03:01:12]Write to MH i2c: E2 08 00 40 2E 80 0D 03 02 00 00 00 00 E9 [03:01:12]Write i2c OK [03:01:12]MH_I2C_Read... [03:01:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:01:12]Read from MH i2c: E2 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 0B 00 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 0B 00 40 2E 00 F9 50 A8 13 16 26 40 E0 90 00 4A [03:01:12]RAPDU: F9 50 A8 13 16 26 40 E0 90 00 [03:01:12]wFMCommunicate OK [03:01:12]SAM_PROTO_SignData done [03:01:12]FM_MakeSignedData done [03:01:12]CreateOFDProtocolMessage [03:01:12]wFMCommunicate request_size=4 [03:01:12]MH_SAM_APDU [03:01:12]CAPDU: 80 11 00 00 [03:01:12]Write to MH i2c: E2 08 00 41 2E 80 11 00 00 00 00 00 00 E9 [03:01:12]Write i2c OK [03:01:12]MH_I2C_Read... [03:01:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:12]Read from MH i2c: E2 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 17 00 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: E2 17 00 41 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 44 [03:01:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:01:12]wFMCommunicate OK [03:01:12]CreateOFDProtocolMessage done [03:01:12]OFDSenderStorePacket 139343 [03:01:12]StoreOFDPacket docnum=139343 [03:01:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 4B C3 1E 01 D5 4A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 7A A1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 20 02 00 35 04 06 00 24 2F 4C FB A2 D2 F9 50 A8 13 16 26 40 E0 [03:01:12]CheckFolder [03:01:12]dirname=/storage/ofd_packets [03:01:12]CheckFolder done [03:01:12]ProducePacketName [03:01:12]name=ofd_packets/00139343 [03:01:12]NVStorageSaveData ofd_packets/00139343 [03:01:12]File name is /storage/ofd_packets/00139343 [03:01:12]Write 324 bytes [03:01:12]NVStorageSaveData done [03:01:12]OFDSenderStorePacket done [03:01:12]KKMCreateOFDPacket done [03:01:12]NVStorageSaveData kkm_last_timestamp [03:01:12]File name is /storage/kkm_last_timestamp [03:01:12]Write 4 bytes [03:01:12]NVStorageSaveData done [03:01:12]ExternCall_PrintAddStr [03:01:12]wPrintStart [03:01:12]Write to MH i2c: 01 00 00 42 2E 70 [03:01:12]Write i2c OK [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: 01 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: 01 07 00 [03:01:12]MH_I2C_Read... [03:01:12]Read from MH i2c: 01 07 00 42 2E 00 00 00 00 00 FF 0F 85 [03:01:12]RasterBufferAndPrint [03:01:12]line Счет N : (3)335248 [03:01:12]line ИНН: 02508201610067 [03:01:12]line Контрольно-Кассовый Чек [03:01:12]line ПРОДАЖА [03:01:12]line Товар: 48741958 [03:01:12]line Сигареты Parliament Aqua Blue [03:01:12]line 1.000 * 160.00 [03:01:12]line = 160.00 [03:01:12]line НДС 12% НСП 1% [03:01:12]line > о реализуемом товаре [03:01:12]line ИТОГО: 160.00 [03:01:12]line НСП 1% : 1.42 [03:01:12]line НДС 12% : 16.99 [03:01:12]line Наличными: 160.00 [03:01:12]line Безнал.: 0.00 [03:01:12]line Место: АЗС № 101 "Партнер Нефть" [03:01:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:01:12]line СНО: Общий режим [03:01:12]line Чек 27 30.10.2024 03:01 [03:01:12]line Смена: 556 ФФД: 1.0 [03:01:12]line ЗНМ: 0300000081 [03:01:12]line РНМ: 0000000000091631 [03:01:12]line Версия ККМ: 001 [03:01:12]line ФМ: 0000000000874669 [03:01:12]line ФД: 139343 [03:01:12]line ФПД: 39785573622482 [03:01:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T030114&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139343&fm=39785573622482&tin=02508201610067®Number=0000000000091631&sum=16000 [03:01:13]OFD Sender: Processing packet 139343 [packets to send 34, broken 33] [03:01:13]ProducePacketName [03:01:13]name=ofd_packets/00139343 [03:01:13]OFD Sender: To server: pG, [03:01:13]CommunicateWithHost lk.salyk.kg:30040 [03:01:13]ConnectInit lk.salyk.kg [03:01:13]line 0 [03:01:13]written 0, free lines is 4095 [03:01:13]Connected sock=9 [03:01:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 4B C3 1E 01 D5 4A 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 7A A1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 20 02 00 35 04 06 00 24 2F 4C FB A2 D2 F9 50 A8 13 16 26 40 E0 [03:01:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B3 21 47 00 0A 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 4F 20 02 00 F4 03 04 00 2B 4D 21 67 B6 04 01 00 00 EE 7B 8D C1 88 68 F5 E7 [03:01:13]CommunicateWithHost err = 0 [03:01:13]CheckOFDResponse [03:01:13]1017 (14) - 77093643461234 [03:01:13]1041 (16) - 0000000000874669 [03:01:13]1040 (4) - 139343 [03:01:13]1012 (4) - 29.10.2024 21:01 [03:01:13]1206 (1) - 0 [03:01:13]OFD Sender: Remove packet 139343 [03:01:13]ProducePacketName [03:01:13]name=ofd_packets/00139343 [03:01:13]NVStorageDeleteData [03:01:13]Write to MH i2c: 01 00 00 6B 2E 99 [03:01:13]Write i2c OK [03:01:13]MH_I2C_Read... [03:01:13]Read from MH i2c: 01 [03:01:13]MH_I2C_Read... [03:01:13]Read from MH i2c: 01 07 00 [03:01:13]MH_I2C_Read... [03:01:13]Read from MH i2c: 01 07 00 6B 2E 00 00 00 00 00 FA 0C A6 [03:01:13]RasterBufferAndPrint [03:01:13]line [03:01:13]line [03:01:13]line [03:01:13]line [03:01:13]line [03:01:13]written 0, free lines is 3328 [03:01:13]MH_Cut [03:01:13]Write to MH i2c: D1 01 00 72 2E 01 72 [03:01:13]Write i2c OK [03:01:13]MH_I2C_Read... [03:01:13]Read from MH i2c: D1 [03:01:13]MH_I2C_Read... [03:01:13]Read from MH i2c: D1 01 00 [03:01:13]MH_I2C_Read... [03:01:13]Read from MH i2c: D1 01 00 72 2E 00 71 [03:01:13]Write to MH i2c: 01 00 00 73 2E A1 [03:01:13]Write i2c OK [03:01:13]MH_I2C_Read... [03:01:13]OFD Sender: No OFD packet to send [03:01:14]*** Cut start [03:01:14]*** Partial cut [03:01:14]*** CUTSNS_PIN = 1 [03:01:14]*** CUTSNS_PIN = 0 [03:01:14]*** Brake cut motor [03:01:14]Read from MH i2c: 01 [03:01:14]MH_I2C_Read... [03:01:14]*** Stop cut motor [03:01:14]*** Cut end [03:01:14]Read from MH i2c: 01 07 00 [03:01:14]MH_I2C_Read... [03:01:14]Read from MH i2c: 01 07 00 73 2E 00 00 00 00 00 FF 0F B6 [03:01:14]process_action close_receipt done [03:01:14]requested_data is exist [03:01:14]produce_requested_data [03:01:14]requested_item fm.sn is exist - process it [03:01:14]wFMCommunicate request_size=4 [03:01:14]MH_SAM_APDU [03:01:14]CAPDU: 80 11 00 00 [03:01:14]Write to MH i2c: E2 08 00 74 2E 80 11 00 00 00 00 00 00 1C [03:01:14]Write i2c OK [03:01:14]MH_I2C_Read... [03:01:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:01:14]Read from MH i2c: E2 [03:01:14]MH_I2C_Read... [03:01:14]Read from MH i2c: E2 17 00 [03:01:14]MH_I2C_Read... [03:01:14]Read from MH i2c: E2 17 00 74 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 77 [03:01:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:01:14]wFMCommunicate OK [03:01:14]requested_item fd.num is exist - process it [03:01:14]SAM_PROTO_GetFieldsCounters [03:01:14]wFMCommunicate request_size=4 [03:01:14]MH_SAM_APDU [03:01:14]CAPDU: 80 13 00 00 [03:01:14]Write to MH i2c: E2 08 00 75 2E 80 13 00 00 00 00 00 00 1F [03:01:14]Write i2c OK [03:01:14]MH_I2C_Read... [03:01:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:01:15]Read from MH i2c: E2 [03:01:15]MH_I2C_Read... [03:01:15]Read from MH i2c: E2 62 00 [03:01:15]MH_I2C_Read... [03:01:15]Read from MH i2c: E2 62 00 75 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4F 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 33 [03:01:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 4F 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:01:15]wFMCommunicate OK [03:01:15]SAM_PROTO_GetFieldsCounters done [03:01:15]requested_item shift.num is exist - process it [03:01:15]requested_item shift.opened is exist - process it [03:01:15]req_shift_opened [03:01:15]FM_GetShiftState [03:01:15]SAM_PROTO_GetShiftState [03:01:15]wFMCommunicate request_size=4 [03:01:15]MH_SAM_APDU [03:01:15]CAPDU: 80 13 01 00 [03:01:15]Write to MH i2c: E2 08 00 76 2E 80 13 01 00 00 00 00 00 21 [03:01:15]Write i2c OK [03:01:15]MH_I2C_Read... [03:01:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:01:15]Read from MH i2c: E2 [03:01:15]MH_I2C_Read... [03:01:15]Read from MH i2c: E2 0E 00 [03:01:15]MH_I2C_Read... [03:01:15]Read from MH i2c: E2 0E 00 76 2E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B1 [03:01:15]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:01:15]wFMCommunicate OK [03:01:15]SAM_PROTO_GetShiftState done [03:01:15]FM_GetShiftState done [03:01:15]req_shift_opened done [03:01:15]requested_item shift.open_date is exist - process it [03:01:15]req_shift_open_date [03:01:15]req_shift_open_date done [03:01:15]produce_requested_data done [03:01:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139343,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [03:01:15]process_action_free close_receipt [03:01:15]json_value_free [03:01:15]json_value_free done [03:01:15]process_json_proto returns [03:01:15]Send response to host [03:01:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139343,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [03:01:15]free response buf [03:01:15]execute_script done [03:01:15]execute_script returns [03:01:15]free content buf [03:01:15]Sock 10.Close socket [03:01:15]Sock 10.Thread stoped [03:01:18]OFD Sender: No OFD packet to send [03:01:23]OFD Sender: No OFD packet to send [03:01:28]OFD Sender: No OFD packet to send [03:01:33]OFD Sender: No OFD packet to send [03:01:38]OFD Sender: No OFD packet to send [03:01:43]OFD Sender: No OFD packet to send [03:01:48]OFD Sender: No OFD packet to send [03:01:53]OFD Sender: No OFD packet to send [03:01:58]OFD Sender: No OFD packet to send [03:02:04]OFD Sender: No OFD packet to send [03:02:09]OFD Sender: No OFD packet to send [03:02:14]OFD Sender: No OFD packet to send [03:02:19]OFD Sender: No OFD packet to send [03:02:24]OFD Sender: No OFD packet to send [03:02:29]OFD Sender: No OFD packet to send [03:02:34]OFD Sender: No OFD packet to send [03:02:39]OFD Sender: No OFD packet to send [03:02:44]OFD Sender: No OFD packet to send [03:02:49]OFD Sender: No OFD packet to send [03:02:54]OFD Sender: No OFD packet to send [03:02:59]OFD Sender: No OFD packet to send [03:03:04]OFD Sender: No OFD packet to send [03:03:09]OFD Sender: No OFD packet to send [03:03:14]OFD Sender: No OFD packet to send [03:03:19]OFD Sender: No OFD packet to send [03:03:24]OFD Sender: No OFD packet to send [03:03:29]OFD Sender: No OFD packet to send [03:03:34]OFD Sender: No OFD packet to send [03:03:39]OFD Sender: No OFD packet to send [03:03:44]OFD Sender: No OFD packet to send [03:03:49]OFD Sender: No OFD packet to send [03:03:54]OFD Sender: No OFD packet to send [03:03:59]OFD Sender: No OFD packet to send [03:04:04]OFD Sender: No OFD packet to send [03:04:09]OFD Sender: No OFD packet to send [03:04:14]OFD Sender: No OFD packet to send [03:04:19]OFD Sender: No OFD packet to send [03:04:24]OFD Sender: No OFD packet to send [03:04:29]OFD Sender: No OFD packet to send [03:04:34]OFD Sender: No OFD packet to send [03:04:39]OFD Sender: No OFD packet to send [03:04:44]OFD Sender: No OFD packet to send [03:04:49]OFD Sender: No OFD packet to send [03:04:54]OFD Sender: No OFD packet to send [03:04:59]OFD Sender: No OFD packet to send [03:05:04]OFD Sender: No OFD packet to send [03:05:09]OFD Sender: No OFD packet to send [03:05:14]OFD Sender: No OFD packet to send [03:05:19]OFD Sender: No OFD packet to send [03:05:24]OFD Sender: No OFD packet to send [03:05:29]OFD Sender: No OFD packet to send [03:05:34]OFD Sender: No OFD packet to send [03:05:39]OFD Sender: No OFD packet to send [03:05:44]OFD Sender: No OFD packet to send [03:05:49]OFD Sender: No OFD packet to send [03:05:54]OFD Sender: No OFD packet to send [03:05:59]OFD Sender: No OFD packet to send [03:06:04]OFD Sender: No OFD packet to send [03:06:09]OFD Sender: No OFD packet to send [03:06:14]OFD Sender: No OFD packet to send [03:06:19]OFD Sender: No OFD packet to send [03:06:24]OFD Sender: No OFD packet to send [03:06:29]OFD Sender: No OFD packet to send [03:06:34]OFD Sender: No OFD packet to send [03:06:39]OFD Sender: No OFD packet to send [03:06:44]OFD Sender: No OFD packet to send [03:06:49]OFD Sender: No OFD packet to send [03:06:54]OFD Sender: No OFD packet to send [03:06:59]OFD Sender: No OFD packet to send [03:07:04]OFD Sender: No OFD packet to send [03:07:09]OFD Sender: No OFD packet to send [03:07:14]OFD Sender: No OFD packet to send [03:07:19]OFD Sender: No OFD packet to send [03:07:24]OFD Sender: No OFD packet to send [03:07:29]OFD Sender: No OFD packet to send [03:07:34]OFD Sender: No OFD packet to send [03:07:39]OFD Sender: No OFD packet to send [03:07:44]OFD Sender: No OFD packet to send [03:07:49]OFD Sender: No OFD packet to send [03:07:54]OFD Sender: No OFD packet to send [03:07:59]OFD Sender: No OFD packet to send [03:08:04]OFD Sender: No OFD packet to send [03:08:09]OFD Sender: No OFD packet to send [03:08:14]OFD Sender: No OFD packet to send [03:08:19]OFD Sender: No OFD packet to send [03:08:24]OFD Sender: No OFD packet to send [03:08:29]OFD Sender: No OFD packet to send [03:08:34]OFD Sender: No OFD packet to send [03:08:39]OFD Sender: No OFD packet to send [03:08:44]OFD Sender: No OFD packet to send [03:08:49]OFD Sender: No OFD packet to send [03:08:54]OFD Sender: No OFD packet to send [03:08:59]OFD Sender: No OFD packet to send [03:09:04]OFD Sender: No OFD packet to send [03:09:09]OFD Sender: No OFD packet to send [03:09:14]OFD Sender: No OFD packet to send [03:09:19]OFD Sender: No OFD packet to send [03:09:24]OFD Sender: No OFD packet to send [03:09:29]OFD Sender: No OFD packet to send [03:09:34]OFD Sender: No OFD packet to send [03:09:39]OFD Sender: No OFD packet to send [03:09:44]OFD Sender: No OFD packet to send [03:09:49]OFD Sender: No OFD packet to send [03:09:54]OFD Sender: No OFD packet to send [03:09:59]OFD Sender: No OFD packet to send [03:10:04]OFD Sender: No OFD packet to send [03:10:09]OFD Sender: No OFD packet to send [03:10:14]OFD Sender: No OFD packet to send [03:10:19]OFD Sender: No OFD packet to send [03:10:24]OFD Sender: No OFD packet to send [03:10:29]OFD Sender: No OFD packet to send [03:10:34]OFD Sender: No OFD packet to send [03:10:39]OFD Sender: No OFD packet to send [03:10:44]OFD Sender: No OFD packet to send [03:10:49]OFD Sender: No OFD packet to send [03:10:54]OFD Sender: No OFD packet to send [03:10:59]OFD Sender: No OFD packet to send [03:11:04]OFD Sender: No OFD packet to send [03:11:09]OFD Sender: No OFD packet to send [03:11:14]OFD Sender: No OFD packet to send [03:11:19]OFD Sender: No OFD packet to send [03:11:24]OFD Sender: No OFD packet to send [03:11:29]OFD Sender: No OFD packet to send [03:11:34]OFD Sender: No OFD packet to send [03:11:39]OFD Sender: No OFD packet to send [03:11:44]OFD Sender: No OFD packet to send [03:11:49]OFD Sender: No OFD packet to send [03:11:54]OFD Sender: No OFD packet to send [03:11:59]OFD Sender: No OFD packet to send [03:12:04]OFD Sender: No OFD packet to send [03:12:09]OFD Sender: No OFD packet to send [03:12:14]OFD Sender: No OFD packet to send [03:12:19]OFD Sender: No OFD packet to send [03:12:24]OFD Sender: No OFD packet to send [03:12:29]OFD Sender: No OFD packet to send [03:12:34]OFD Sender: No OFD packet to send [03:12:39]OFD Sender: No OFD packet to send [03:12:44]OFD Sender: No OFD packet to send [03:12:49]OFD Sender: No OFD packet to send [03:12:54]OFD Sender: No OFD packet to send [03:12:59]OFD Sender: No OFD packet to send [03:13:04]OFD Sender: No OFD packet to send [03:13:09]OFD Sender: No OFD packet to send [03:13:14]OFD Sender: No OFD packet to send [03:13:19]OFD Sender: No OFD packet to send [03:13:24]OFD Sender: No OFD packet to send [03:13:29]OFD Sender: No OFD packet to send [03:13:34]OFD Sender: No OFD packet to send [03:13:39]OFD Sender: No OFD packet to send [03:13:44]OFD Sender: No OFD packet to send [03:13:49]OFD Sender: No OFD packet to send [03:13:54]OFD Sender: No OFD packet to send [03:13:59]OFD Sender: No OFD packet to send [03:14:04]OFD Sender: No OFD packet to send [03:14:09]OFD Sender: No OFD packet to send [03:14:14]OFD Sender: No OFD packet to send [03:14:19]OFD Sender: No OFD packet to send [03:14:24]OFD Sender: No OFD packet to send [03:14:29]OFD Sender: No OFD packet to send [03:14:34]OFD Sender: No OFD packet to send [03:14:39]OFD Sender: No OFD packet to send [03:14:44]OFD Sender: No OFD packet to send [03:14:49]OFD Sender: No OFD packet to send [03:14:54]OFD Sender: No OFD packet to send [03:14:59]OFD Sender: No OFD packet to send [03:15:04]OFD Sender: No OFD packet to send [03:15:09]OFD Sender: No OFD packet to send [03:15:14]OFD Sender: No OFD packet to send [03:15:19]OFD Sender: No OFD packet to send [03:15:24]OFD Sender: No OFD packet to send [03:15:29]OFD Sender: No OFD packet to send [03:15:34]OFD Sender: No OFD packet to send [03:15:39]OFD Sender: No OFD packet to send [03:15:44]OFD Sender: No OFD packet to send [03:15:49]OFD Sender: No OFD packet to send [03:15:54]OFD Sender: No OFD packet to send [03:15:59]OFD Sender: No OFD packet to send [03:16:04]OFD Sender: No OFD packet to send [03:16:09]OFD Sender: No OFD packet to send [03:16:14]OFD Sender: No OFD packet to send [03:16:19]OFD Sender: No OFD packet to send [03:16:24]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:59]OFD Sender: No OFD packet to send [03:18:04]OFD Sender: No OFD packet to send [03:18:09]OFD Sender: No OFD packet to send [03:18:14]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:20]OFD Sender: No OFD packet to send [03:21:25]OFD Sender: No OFD packet to send [03:21:30]OFD Sender: No OFD packet to send [03:21:35]OFD Sender: No OFD packet to send [03:21:40]OFD Sender: No OFD packet to send [03:21:45]OFD Sender: No OFD packet to send [03:21:50]OFD Sender: No OFD packet to send [03:21:55]OFD Sender: No OFD packet to send [03:22:00]OFD Sender: No OFD packet to send [03:22:05]OFD Sender: No OFD packet to send [03:22:10]OFD Sender: No OFD packet to send [03:22:15]OFD Sender: No OFD packet to send [03:22:20]OFD Sender: No OFD packet to send [03:22:25]OFD Sender: No OFD packet to send [03:22:30]OFD Sender: No OFD packet to send [03:22:35]OFD Sender: No OFD packet to send [03:22:40]OFD Sender: No OFD packet to send [03:22:45]OFD Sender: No OFD packet to send [03:22:50]OFD Sender: No OFD packet to send [03:22:55]OFD Sender: No OFD packet to send [03:23:00]OFD Sender: No OFD packet to send [03:23:05]OFD Sender: No OFD packet to send [03:23:10]OFD Sender: No OFD packet to send [03:23:15]OFD Sender: No OFD packet to send [03:23:20]OFD Sender: No OFD packet to send [03:23:25]OFD Sender: No OFD packet to send [03:23:30]OFD Sender: No OFD packet to send [03:23:35]OFD Sender: No OFD packet to send [03:23:40]OFD Sender: No OFD packet to send [03:23:45]OFD Sender: No OFD packet to send [03:23:50]OFD Sender: No OFD packet to send [03:23:55]OFD Sender: No OFD packet to send [03:23:57]accept exits with 8 [03:23:57]New connection [03:23:57]New thread 3067141476 created [03:23:57]Thread 3067284836 joined [03:23:57]Waiting for new connection... [03:23:57] Sock 8.Parse request [03:23:57]Sock 8.Check first char [03:23:57]Sock 8.First char is OK [03:23:57]request: POST /json_proto HTTP/1.0 [03:23:57]Method: POST [03:23:57]URL: /json_proto [03:23:57]Method is POST - this is cgi request [03:23:57]url: /json_proto [03:23:57]query_string will be loaded in cgi processing [03:23:57]execute_cgi json_proto POST (null) [03:23:57]execute_cgi path=json_proto method=POST [03:23:57]POST find Content-Length [03:23:57]Host: 172.17.50.196:8080 [03:23:57]Content-Length: 646 [03:23:57]Content-Type: application/json [03:23:57] [03:23:57]POST finish read [03:23:57]Found Content-Length = 646 [03:23:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335249", "tax_sys" : 0, "items" : [ { "code": "4607161615386", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:23:57]execute_script... [03:23: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 : (3)335249", "tax_sys" : 0, "items" : [ { "code": "4607161615386", "name": "\u041B\u0443\u043A\u043E\u0439\u043B \u0421\u0443\u043F\u0435\u0440 10W40 SG/CD 1\u043B.", "price" : 405.00, "quantity" : 1.000, "sum" : 405.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 405.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:23:57]POST & json_proto [03:23:57]process_json_proto [03:23:57]json parsed OK: [03:23:57]protocol is kg_v1.0 [03:23:57]action value=close_receipt [03:23:57]process_action close_receipt [03:23:57]cmd_close_receipt [03:23:57]MH_GetDate [03:23:57]Write to MH i2c: F0 00 00 77 2E 94 [03:23:57]Write i2c OK [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: F0 [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: F0 09 00 [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: F0 09 00 77 2E 00 D0 A6 21 67 72 0D 1C 67 9D [03:23:57]GetLastDocTimeStamp 1730257274 [03:23:57]current date 1730258640 [03:23:57]FM_GetShiftState [03:23:57]SAM_PROTO_GetShiftState [03:23:57]wFMCommunicate request_size=4 [03:23:57]MH_SAM_APDU [03:23:57]CAPDU: 80 13 01 00 [03:23:57]Write to MH i2c: E2 08 00 78 2E 80 13 01 00 00 00 00 00 23 [03:23:57]Write i2c OK [03:23:57]MH_I2C_Read... [03:23:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:23:57]Read from MH i2c: E2 [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: E2 0E 00 [03:23:57]MH_I2C_Read... [03:23:57]Read from MH i2c: E2 0E 00 78 2E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B3 [03:23:57]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:23:57]wFMCommunicate OK [03:23:57]SAM_PROTO_GetShiftState done [03:23:57]FM_GetShiftState done [03:23:57]opened in 1730246278 [03:23:57]opened+sec_in_day 1730332678 [03:23:57]quantity*price = 40500 [03:23:57]sum+1 = 40501 [03:23:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.00 НСП 1% : 3.58 НДС 12% : 43.01 Наличными: 405.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 28 30.10.2024 03:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139344 ФПД: 218363288841791 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T032400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139344&fm=218363288841791&tin=02508201610067®Number=0000000000091631&sum=40500 0 [03:23:58]StoreToDocumentArchive [03:23:58]shift 556 fd 139344 [03:23:58]save to /storage/0556/doc_00139344 [03:23:58]save last doc name /storage/0556/doc_00139344 to /storage/kkm_last_doc_name [03:23:58]save OK [03:23:58]Clear old archive folders... [03:23:58]ProcessDocumentItem done err = 0, tmpTLVsize=282 [03:23:58]tlvbuf is 0120ED50 [03:23:58]SAM_PROTO_ClearQueue [03:23:58]wFMCommunicate request_size=4 [03:23:58]MH_SAM_APDU [03:23:58]CAPDU: 80 09 00 00 [03:23:58]Write to MH i2c: E2 08 00 85 2E 80 09 00 00 00 00 00 00 25 [03:23:58]Write i2c OK [03:23:58]MH_I2C_Read... [03:23:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:23:58]Read from MH i2c: E2 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 03 00 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 03 00 85 2E 00 90 00 27 [03:23:58]RAPDU: 90 00 [03:23:58]wFMCommunicate OK [03:23:58]SAM_PROTO_ClearQueue done [03:23:58]KKMCreateOFDPacket [03:23:58]OFDProtocolAddRootSTLVToBuf [03:23:58]FM_MakeSignedData [03:23:58]FM_MakeSignedData [03:23:58]SAM_PROTO_SignData [03:23:58]wFMCommunicate request_size=4 [03:23:58]MH_SAM_APDU [03:23:58]CAPDU: 80 0D 01 02 [03:23:58]Write to MH i2c: E2 08 00 86 2E 80 0D 01 02 00 00 00 00 2D [03:23:58]Write i2c OK [03:23:58]MH_I2C_Read... [03:23:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:23:58]Read from MH i2c: E2 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 03 00 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 03 00 86 2E 00 90 00 28 [03:23:58]RAPDU: 90 00 [03:23:58]wFMCommunicate OK [03:23:58]wFMCommunicate request_size=255 [03:23:58]MH_SAM_APDU [03:23:58]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D0 A6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [03:23:58]Write to MH i2c: E2 02 01 87 2E 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D0 A6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 00 00 EB [03:23:58]Write i2c OK [03:23:58]MH_I2C_Read... [03:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:58]Read from MH i2c: E2 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 03 00 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 03 00 87 2E 00 90 00 29 [03:23:58]RAPDU: 90 00 [03:23:58]wFMCommunicate OK [03:23:58]wFMCommunicate request_size=41 [03:23:58]MH_SAM_APDU [03:23:58]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 20 02 00 35 04 06 00 C6 99 AA 43 6E 3F [03:23:58]Write to MH i2c: E2 2C 00 88 2E 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 20 02 00 35 04 06 00 C6 99 AA 43 6E 3F 00 00 72 [03:23:58]Write i2c OK [03:23:58]MH_I2C_Read... [03:23:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:23:58]Read from MH i2c: E2 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 03 00 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 03 00 88 2E 00 90 00 2A [03:23:58]RAPDU: 90 00 [03:23:58]wFMCommunicate OK [03:23:58]wFMCommunicate request_size=4 [03:23:58]MH_SAM_APDU [03:23:58]CAPDU: 80 0D 03 02 [03:23:58]Write to MH i2c: E2 08 00 89 2E 80 0D 03 02 00 00 00 00 32 [03:23:58]Write i2c OK [03:23:58]MH_I2C_Read... [03:23:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:23:58]Read from MH i2c: E2 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 0B 00 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 0B 00 89 2E 00 AF 99 65 A0 AB AF 8C 7C 90 00 E2 [03:23:58]RAPDU: AF 99 65 A0 AB AF 8C 7C 90 00 [03:23:58]wFMCommunicate OK [03:23:58]SAM_PROTO_SignData done [03:23:58]FM_MakeSignedData done [03:23:58]CreateOFDProtocolMessage [03:23:58]wFMCommunicate request_size=4 [03:23:58]MH_SAM_APDU [03:23:58]CAPDU: 80 11 00 00 [03:23:58]Write to MH i2c: E2 08 00 8A 2E 80 11 00 00 00 00 00 00 32 [03:23:58]Write i2c OK [03:23:58]MH_I2C_Read... [03:23:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:23:58]Read from MH i2c: E2 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 17 00 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: E2 17 00 8A 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8D [03:23:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:23:58]wFMCommunicate OK [03:23:58]CreateOFDProtocolMessage done [03:23:58]OFDSenderStorePacket 139344 [03:23:58]StoreOFDPacket docnum=139344 [03:23:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 5D 63 26 01 1C 7D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D0 A6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 20 02 00 35 04 06 00 C6 99 AA 43 6E 3F AF 99 65 A0 AB AF 8C 7C [03:23:58]CheckFolder [03:23:58]dirname=/storage/ofd_packets [03:23:58]CheckFolder done [03:23:58]ProducePacketName [03:23:58]name=ofd_packets/00139344 [03:23:58]NVStorageSaveData ofd_packets/00139344 [03:23:58]File name is /storage/ofd_packets/00139344 [03:23:58]Write 332 bytes [03:23:58]NVStorageSaveData done [03:23:58]OFDSenderStorePacket done [03:23:58]KKMCreateOFDPacket done [03:23:58]NVStorageSaveData kkm_last_timestamp [03:23:58]File name is /storage/kkm_last_timestamp [03:23:58]Write 4 bytes [03:23:58]NVStorageSaveData done [03:23:58]ExternCall_PrintAddStr [03:23:58]wPrintStart [03:23:58]Write to MH i2c: 01 00 00 8B 2E B9 [03:23:58]Write i2c OK [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: 01 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: 01 07 00 [03:23:58]MH_I2C_Read... [03:23:58]Read from MH i2c: 01 07 00 8B 2E 00 00 00 00 00 FF 0F CE [03:23:58]RasterBufferAndPrint [03:23:58]line Счет N : (3)335249 [03:23:58]line ИНН: 02508201610067 [03:23:58]line Контрольно-Кассовый Чек [03:23:58]line ПРОДАЖА [03:23:58]line Товар: 4607161615386 [03:23:58]line Лукойл Супер 10W40 SG/CD 1л. [03:23:58]line 1.000 * 405.00 [03:23:58]line = 405.00 [03:23:58]line НДС 12% НСП 1% [03:23:58]line > о реализуемом товаре [03:23:58]line ИТОГО: 405.00 [03:23:58]line НСП 1% : 3.58 [03:23:58]line НДС 12% : 43.01 [03:23:58]line Наличными: 405.00 [03:23:58]line Безнал.: 0.00 [03:23:58]line Место: АЗС № 101 "Партнер Нефть" [03:23:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:23:58]line СНО: Общий режим [03:23:58]line Чек 28 30.10.2024 03:24 [03:23:58]line Смена: 556 ФФД: 1.0 [03:23:58]line ЗНМ: 0300000081 [03:23:58]line РНМ: 0000000000091631 [03:23:58]line Версия ККМ: 001 [03:23:58]line ФМ: 0000000000874669 [03:23:58]line ФД: 139344 [03:23:58]line ФПД: 218363288841791 [03:23:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T032400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139344&fm=218363288841791&tin=02508201610067®Number=0000000000091631&sum=40500 [03:23:59]line 0 [03:23:59]OFD Sender: Processing packet 139344 [packets to send 34, broken 33] [03:23:59]ProducePacketName [03:23:59]name=ofd_packets/00139344 [03:23:59]OFD Sender: To server: pG, [03:23:59]CommunicateWithHost lk.salyk.kg:30040 [03:23:59]ConnectInit lk.salyk.kg [03:23:59]written 0, free lines is 4095 [03:23:59]Connected sock=10 [03:23:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 5D 63 26 01 1C 7D 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 36 30 37 31 36 31 36 31 35 33 38 36 06 04 28 00 D0 9B D1 83 D0 BA D0 BE D0 B9 D0 BB 20 D0 A1 D1 83 D0 BF D0 B5 D1 80 20 31 30 57 34 30 20 53 47 2F 43 44 20 31 D0 BB 2E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 9E 00 00 00 00 13 04 06 00 34 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 10 00 00 00 00 07 04 06 00 34 9E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 D0 A6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 50 20 02 00 35 04 06 00 C6 99 AA 43 6E 3F AF 99 65 A0 AB AF 8C 7C [03:23:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0F 4F 47 00 AB 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 38 37 34 36 36 39 10 04 04 00 50 20 02 00 F4 03 04 00 82 52 21 67 B6 04 01 00 00 CB 9B 1F 00 71 53 A0 70 [03:23:59]CommunicateWithHost err = 0 [03:23:59]CheckOFDResponse [03:23:59]1017 (14) - 77093643461234 [03:23:59]1041 (16) - 0000000000874669 [03:23:59]1040 (4) - 139344 [03:23:59]1012 (4) - 29.10.2024 21:24 [03:23:59]1206 (1) - 0 [03:23:59]OFD Sender: Remove packet 139344 [03:23:59]ProducePacketName [03:23:59]name=ofd_packets/00139344 [03:23:59]NVStorageDeleteData [03:23:59]Write to MH i2c: 01 00 00 B4 2E E2 [03:23:59]Write i2c OK [03:23:59]MH_I2C_Read... [03:23:59]Read from MH i2c: 01 [03:23:59]MH_I2C_Read... [03:23:59]Read from MH i2c: 01 07 00 [03:23:59]MH_I2C_Read... [03:23:59]Read from MH i2c: 01 07 00 B4 2E 00 00 00 00 00 05 0D FB [03:23:59]RasterBufferAndPrint [03:23:59]line [03:23:59]line [03:23:59]line [03:23:59]line [03:23:59]line [03:23:59]written 0, free lines is 3342 [03:23:59]MH_Cut [03:23:59]Write to MH i2c: D1 01 00 BB 2E 01 BB [03:23:59]Write i2c OK [03:23:59]MH_I2C_Read... [03:23:59]Read from MH i2c: D1 [03:23:59]MH_I2C_Read... [03:23:59]Read from MH i2c: D1 01 00 [03:23:59]MH_I2C_Read... [03:23:59]Read from MH i2c: D1 01 00 BB 2E 00 BA [03:23:59]Write to MH i2c: 01 00 00 BC 2E EA [03:23:59]Write i2c OK [03:23:59]MH_I2C_Read... [03:24:00]OFD Sender: No OFD packet to send [03:24:00]*** Cut start [03:24:00]*** Partial cut [03:24:00]*** CUTSNS_PIN = 1 [03:24:00]*** CUTSNS_PIN = 0 [03:24:00]*** Brake cut motor [03:24:00]Read from MH i2c: 01 [03:24:00]MH_I2C_Read... [03:24:00]*** Stop cut motor [03:24:00]*** Cut end [03:24:00]Read from MH i2c: 01 07 00 [03:24:00]MH_I2C_Read... [03:24:00]Read from MH i2c: 01 07 00 BC 2E 00 00 00 00 00 FF 0F FF [03:24:00]process_action close_receipt done [03:24:00]requested_data is exist [03:24:00]produce_requested_data [03:24:00]requested_item fm.sn is exist - process it [03:24:00]wFMCommunicate request_size=4 [03:24:00]MH_SAM_APDU [03:24:00]CAPDU: 80 11 00 00 [03:24:00]Write to MH i2c: E2 08 00 BD 2E 80 11 00 00 00 00 00 00 65 [03:24:00]Write i2c OK [03:24:00]MH_I2C_Read... [03:24:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:24:01]Read from MH i2c: E2 [03:24:01]MH_I2C_Read... [03:24:01]Read from MH i2c: E2 17 00 [03:24:01]MH_I2C_Read... [03:24:01]Read from MH i2c: E2 17 00 BD 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C0 [03:24:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:24:01]wFMCommunicate OK [03:24:01]requested_item fd.num is exist - process it [03:24:01]SAM_PROTO_GetFieldsCounters [03:24:01]wFMCommunicate request_size=4 [03:24:01]MH_SAM_APDU [03:24:01]CAPDU: 80 13 00 00 [03:24:01]Write to MH i2c: E2 08 00 BE 2E 80 13 00 00 00 00 00 00 68 [03:24:01]Write i2c OK [03:24:01]MH_I2C_Read... [03:24:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:24:01]Read from MH i2c: E2 [03:24:01]MH_I2C_Read... [03:24:01]Read from MH i2c: E2 62 00 [03:24:01]MH_I2C_Read... [03:24:01]Read from MH i2c: E2 62 00 BE 2E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 50 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 80 [03:24:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 50 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:24:01]wFMCommunicate OK [03:24:01]SAM_PROTO_GetFieldsCounters done [03:24:01]requested_item shift.num is exist - process it [03:24:01]requested_item shift.opened is exist - process it [03:24:01]req_shift_opened [03:24:01]FM_GetShiftState [03:24:01]SAM_PROTO_GetShiftState [03:24:01]wFMCommunicate request_size=4 [03:24:01]MH_SAM_APDU [03:24:01]CAPDU: 80 13 01 00 [03:24:01]Write to MH i2c: E2 08 00 BF 2E 80 13 01 00 00 00 00 00 6A [03:24:01]Write i2c OK [03:24:01]MH_I2C_Read... [03:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:24:01]Read from MH i2c: E2 [03:24:01]MH_I2C_Read... [03:24:01]Read from MH i2c: E2 0E 00 [03:24:01]MH_I2C_Read... [03:24:01]Read from MH i2c: E2 0E 00 BF 2E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FA [03:24:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:24:01]wFMCommunicate OK [03:24:01]SAM_PROTO_GetShiftState done [03:24:01]FM_GetShiftState done [03:24:01]req_shift_opened done [03:24:01]requested_item shift.open_date is exist - process it [03:24:01]req_shift_open_date [03:24:01]req_shift_open_date done [03:24:01]produce_requested_data done [03:24:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139344,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [03:24:01]process_action_free close_receipt [03:24:01]json_value_free [03:24:01]json_value_free done [03:24:01]process_json_proto returns [03:24:01]Send response to host [03:24:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139344,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [03:24:01]free response buf [03:24:01]execute_script done [03:24:01]execute_script returns [03:24:01]free content buf [03:24:01]Sock 8.Close socket [03:24:01]Sock 8.Thread stoped [03:24:05]OFD Sender: No OFD packet to send [03:24:10]OFD Sender: No OFD packet to send [03:24:15]OFD Sender: No OFD packet to send [03:24:20]OFD Sender: No OFD packet to send [03:24:25]OFD Sender: No OFD packet to send [03:24:30]OFD Sender: No OFD packet to send [03:24:35]OFD Sender: No OFD packet to send [03:24:40]OFD Sender: No OFD packet to send [03:24:45]OFD Sender: No OFD packet to send [03:24:50]OFD Sender: No OFD packet to send [03:24:55]OFD Sender: No OFD packet to send [03:25:00]OFD Sender: No OFD packet to send [03:25:05]OFD Sender: No OFD packet to send [03:25:10]OFD Sender: No OFD packet to send [03:25:15]OFD Sender: No OFD packet to send [03:25:20]OFD Sender: No OFD packet to send [03:25:25]OFD Sender: No OFD packet to send [03:25:30]OFD Sender: No OFD packet to send [03:25:35]OFD Sender: No OFD packet to send [03:25:40]OFD Sender: No OFD packet to send [03:25:45]OFD Sender: No OFD packet to send [03:25:50]OFD Sender: No OFD packet to send [03:25:55]OFD Sender: No OFD packet to send [03:26:00]OFD Sender: No OFD packet to send [03:26:05]OFD Sender: No OFD packet to send [03:26:10]OFD Sender: No OFD packet to send [03:26:15]OFD Sender: No OFD packet to send [03:26:20]OFD Sender: No OFD packet to send [03:26:25]OFD Sender: No OFD packet to send [03:26:30]OFD Sender: No OFD packet to send [03:26:35]OFD Sender: No OFD packet to send [03:26:40]OFD Sender: No OFD packet to send [03:26:45]OFD Sender: No OFD packet to send [03:26:50]OFD Sender: No OFD packet to send [03:26:55]OFD Sender: No OFD packet to send [03:27:00]OFD Sender: No OFD packet to send [03:27:05]OFD Sender: No OFD packet to send [03:27:10]OFD Sender: No OFD packet to send [03:27:15]OFD Sender: No OFD packet to send [03:27:20]OFD Sender: No OFD packet to send [03:27:25]OFD Sender: No OFD packet to send [03:27:30]OFD Sender: No OFD packet to send [03:27:35]OFD Sender: No OFD packet to send [03:27:40]OFD Sender: No OFD packet to send [03:27:45]OFD Sender: No OFD packet to send [03:27:50]OFD Sender: No OFD packet to send [03:27:55]OFD Sender: No OFD packet to send [03:28:00]OFD Sender: No OFD packet to send [03:28:05]OFD Sender: No OFD packet to send [03:28:10]OFD Sender: No OFD packet to send [03:28:15]OFD Sender: No OFD packet to send [03:28:20]OFD Sender: No OFD packet to send [03:28:25]OFD Sender: No OFD packet to send [03:28:30]OFD Sender: No OFD packet to send [03:28:35]OFD Sender: No OFD packet to send [03:28:40]OFD Sender: No OFD packet to send [03:28:45]OFD Sender: No OFD packet to send [03:28:50]OFD Sender: No OFD packet to send [03:28:55]OFD Sender: No OFD packet to send [03:29:00]OFD Sender: No OFD packet to send [03:29:05]OFD Sender: No OFD packet to send [03:29:10]OFD Sender: No OFD packet to send [03:29:15]OFD Sender: No OFD packet to send [03:29:20]OFD Sender: No OFD packet to send [03:29:25]OFD Sender: No OFD packet to send [03:29:30]OFD Sender: No OFD packet to send [03:29:35]OFD Sender: No OFD packet to send [03:29:40]OFD Sender: No OFD packet to send [03:29: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:30]OFD Sender: No OFD packet to send [03:31:35]OFD Sender: No OFD packet to send [03:31:40]OFD Sender: No OFD packet to send [03:31:45]OFD Sender: No OFD packet to send [03:31:50]OFD Sender: No OFD packet to send [03:31:55]OFD Sender: No OFD packet to send [03:32:00]OFD Sender: No OFD packet to send [03:32:05]OFD Sender: No OFD packet to send [03:32:10]OFD Sender: No OFD packet to send [03:32:15]OFD Sender: No OFD packet to send [03:32:20]OFD Sender: No OFD packet to send [03:32:25]OFD Sender: No OFD packet to send [03:32:30]OFD Sender: No OFD packet to send [03:32:35]OFD Sender: No OFD packet to send [03:32:40]OFD Sender: No OFD packet to send [03:32:45]OFD Sender: No OFD packet to send [03:32:50]OFD Sender: No OFD packet to send [03:32:55]OFD Sender: No OFD packet to send [03:33:00]OFD Sender: No OFD packet to send [03:33:05]OFD Sender: No OFD packet to send [03:33:10]OFD Sender: No OFD packet to send [03:33:15]OFD Sender: No OFD packet to send [03:33:20]OFD Sender: No OFD packet to send [03:33:25]OFD Sender: No OFD packet to send [03:33:30]OFD Sender: No OFD packet to send [03:33:35]OFD Sender: No OFD packet to send [03:33:40]OFD Sender: No OFD packet to send [03:33:45]OFD Sender: No OFD packet to send [03:33:50]OFD Sender: No OFD packet to send [03:33:55]OFD Sender: No OFD packet to send [03:34:00]OFD Sender: No OFD packet to send [03:34:05]OFD Sender: No OFD packet to send [03:34:10]OFD Sender: No OFD packet to send [03:34:15]OFD Sender: No OFD packet to send [03:34:20]OFD Sender: No OFD packet to send [03:34:25]OFD Sender: No OFD packet to send [03:34:30]OFD Sender: No OFD packet to send [03:34:35]OFD Sender: No OFD packet to send [03:34:40]OFD Sender: No OFD packet to send [03:34:45]OFD Sender: No OFD packet to send [03:34:50]OFD Sender: No OFD packet to send [03:34:55]OFD Sender: No OFD packet to send [03:35:00]OFD Sender: No OFD packet to send [03:35:05]OFD Sender: No OFD packet to send [03:35:10]OFD Sender: No OFD packet to send [03:35:15]OFD Sender: No OFD packet to send [03:35:20]OFD Sender: No OFD packet to send [03:35:25]OFD Sender: No OFD packet to send [03:35:30]OFD Sender: No OFD packet to send [03:35:35]OFD Sender: No OFD packet to send [03:35:40]OFD Sender: No OFD packet to send [03:35:45]OFD Sender: No OFD packet to send [03:35:50]OFD Sender: No OFD packet to send [03:35:55]OFD Sender: No OFD packet to send [03:36:00]OFD Sender: No OFD packet to send [03:36:05]OFD Sender: No OFD packet to send [03:36:10]OFD Sender: No OFD packet to send [03:36:15]OFD Sender: No OFD packet to send [03:36:20]OFD Sender: No OFD packet to send [03:36:25]OFD Sender: No OFD packet to send [03:36:30]OFD Sender: No OFD packet to send [03:36:35]OFD Sender: No OFD packet to send [03:36:40]OFD Sender: No OFD packet to send [03:36:45]OFD Sender: No OFD packet to send [03:36:50]OFD Sender: No OFD packet to send [03:36:55]OFD Sender: No OFD packet to send [03:37:00]OFD Sender: No OFD packet to send [03:37:05]OFD Sender: No OFD packet to send [03:37:10]OFD Sender: No OFD packet to send [03:37:11]accept exits with 9 [03:37:11]New connection [03:37:11]New thread 3067284836 created [03:37:11]Thread 3067141476 joined [03:37:11]Waiting for new connection... [03:37:11] Sock 9.Parse request [03:37:11]Sock 9.Check first char [03:37:11]Sock 9.First char is OK [03:37:11]request: POST /json_proto HTTP/1.0 [03:37:11]Method: POST [03:37:11]URL: /json_proto [03:37:11]Method is POST - this is cgi request [03:37:11]url: /json_proto [03:37:11]query_string will be loaded in cgi processing [03:37:11]execute_cgi json_proto POST (null) [03:37:11]execute_cgi path=json_proto method=POST [03:37:11]POST find Content-Length [03:37:11]Host: 172.17.50.196:8080 [03:37:11]Content-Length: 889 [03:37:11]Content-Type: application/json [03:37:11] [03:37:11]POST finish read [03:37:11]Found Content-Length = 889 [03:37:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335250", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:11]execute_script... [03:37: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 : (3)335250", "tax_sys" : 0, "items" : [ { "code": "4700000160198", "name": "\u0412\u043E\u0434\u0430 \u0411\u0430\u0439\u0442\u0438\u043A 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:37:11]POST & json_proto [03:37:11]process_json_proto [03:37:11]json parsed OK: [03:37:11]protocol is kg_v1.0 [03:37:11]action value=close_receipt [03:37:11]process_action close_receipt [03:37:11]cmd_close_receipt [03:37:11]MH_GetDate [03:37:11]Write to MH i2c: F0 00 00 C0 2E DD [03:37:11]Write i2c OK [03:37:11]MH_I2C_Read... [03:37:11]Read from MH i2c: F0 [03:37:11]MH_I2C_Read... [03:37:11]Read from MH i2c: F0 09 00 [03:37:11]MH_I2C_Read... [03:37:11]Read from MH i2c: F0 09 00 C0 2E 00 EA A9 21 67 72 0D 1C 67 03 [03:37:11]GetLastDocTimeStamp 1730258640 [03:37:11]current date 1730259434 [03:37:11]FM_GetShiftState [03:37:11]SAM_PROTO_GetShiftState [03:37:11]wFMCommunicate request_size=4 [03:37:11]MH_SAM_APDU [03:37:11]CAPDU: 80 13 01 00 [03:37:11]Write to MH i2c: E2 08 00 C1 2E 80 13 01 00 00 00 00 00 6C [03:37:11]Write i2c OK [03:37:11]MH_I2C_Read... [03:37:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:11]Read from MH i2c: E2 [03:37:11]MH_I2C_Read... [03:37:11]Read from MH i2c: E2 0E 00 [03:37:11]MH_I2C_Read... [03:37:11]Read from MH i2c: E2 0E 00 C1 2E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FC [03:37:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:37:11]wFMCommunicate OK [03:37:11]SAM_PROTO_GetShiftState done [03:37:11]FM_GetShiftState done [03:37:11]opened in 1730246278 [03:37:11]opened+sec_in_day 1730332678 [03:37:11]quantity*price = 4000 [03:37:11]sum+1 = 4001 [03:37:11]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000310173 Вода Адыгене 0,5л б/г 1.000 * 39.00 = 39.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.69 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 29 30.10.2024 03:37 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139345 ФПД: 255416034703588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T033714&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139345&fm=255416034703588&tin=02508201610067®Number=0000000000091631&sum=7900 0 [03:37:12]StoreToDocumentArchive [03:37:12]shift 556 fd 139345 [03:37:12]save to /storage/0556/doc_00139345 [03:37:12]save last doc name /storage/0556/doc_00139345 to /storage/kkm_last_doc_name [03:37:12]save OK [03:37:12]Clear old archive folders... [03:37:12]ProcessDocumentItem done err = 0, tmpTLVsize=376 [03:37:12]tlvbuf is B6FA9BF0 [03:37:12]SAM_PROTO_ClearQueue [03:37:12]wFMCommunicate request_size=4 [03:37:12]MH_SAM_APDU [03:37:12]CAPDU: 80 09 00 00 [03:37:12]Write to MH i2c: E2 08 00 CE 2E 80 09 00 00 00 00 00 00 6E [03:37:12]Write i2c OK [03:37:12]MH_I2C_Read... [03:37:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:37:12]Read from MH i2c: E2 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: E2 03 00 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: E2 03 00 CE 2E 00 90 00 70 [03:37:12]RAPDU: 90 00 [03:37:12]wFMCommunicate OK [03:37:12]SAM_PROTO_ClearQueue done [03:37:12]KKMCreateOFDPacket [03:37:12]OFDProtocolAddRootSTLVToBuf [03:37:12]FM_MakeSignedData [03:37:12]FM_MakeSignedData [03:37:12]SAM_PROTO_SignData [03:37:12]wFMCommunicate request_size=4 [03:37:12]MH_SAM_APDU [03:37:12]CAPDU: 80 0D 01 02 [03:37:12]Write to MH i2c: E2 08 00 CF 2E 80 0D 01 02 00 00 00 00 76 [03:37:12]Write i2c OK [03:37:12]MH_I2C_Read... [03:37:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:37:12]Read from MH i2c: E2 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: E2 03 00 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: E2 03 00 CF 2E 00 90 00 71 [03:37:12]RAPDU: 90 00 [03:37:12]wFMCommunicate OK [03:37:12]wFMCommunicate request_size=255 [03:37:12]MH_SAM_APDU [03:37:12]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 00 00 00 00 00 EE 03 [03:37:12]Write to MH i2c: E2 02 01 D0 2E 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 00 00 00 00 00 EE 03 00 00 30 [03:37:12]Write i2c OK [03:37:12]MH_I2C_Read... [03:37:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:12]Read from MH i2c: E2 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: E2 03 00 [03:37:12]MH_I2C_Read... [03:37:12]Read from MH i2c: E2 03 00 D0 2E 00 90 00 72 [03:37:12]RAPDU: 90 00 [03:37:12]wFMCommunicate OK [03:37:12]wFMCommunicate request_size=135 [03:37:12]MH_SAM_APDU [03:37:12]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EA A9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 20 02 00 35 04 06 00 E8 4C AE 04 B8 E4 [03:37:12]Write to MH i2c: E2 8A 00 D1 2E 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EA A9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 20 02 00 35 04 06 00 E8 4C AE 04 B8 E4 00 00 5B [03:37:12]Write i2c OK [03:37:12]MH_I2C_Read... [03:37:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 03 00 D1 2E 00 90 00 73 [03:37:13]RAPDU: 90 00 [03:37:13]wFMCommunicate OK [03:37:13]wFMCommunicate request_size=4 [03:37:13]MH_SAM_APDU [03:37:13]CAPDU: 80 0D 03 02 [03:37:13]Write to MH i2c: E2 08 00 D2 2E 80 0D 03 02 00 00 00 00 7B [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 0B 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 0B 00 D2 2E 00 5C 2A 2F 88 31 F0 51 15 90 00 40 [03:37:13]RAPDU: 5C 2A 2F 88 31 F0 51 15 90 00 [03:37:13]wFMCommunicate OK [03:37:13]SAM_PROTO_SignData done [03:37:13]FM_MakeSignedData done [03:37:13]CreateOFDProtocolMessage [03:37:13]wFMCommunicate request_size=4 [03:37:13]MH_SAM_APDU [03:37:13]CAPDU: 80 11 00 00 [03:37:13]Write to MH i2c: E2 08 00 D3 2E 80 11 00 00 00 00 00 00 7B [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:13]Read from MH i2c: E2 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 17 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: E2 17 00 D3 2E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [03:37:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:37:13]wFMCommunicate OK [03:37:13]CreateOFDProtocolMessage done [03:37:13]OFDSenderStorePacket 139345 [03:37:13]StoreOFDPacket docnum=139345 [03:37:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8C 01 00 00 A6 41 84 01 C9 97 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EA A9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 20 02 00 35 04 06 00 E8 4C AE 04 B8 E4 5C 2A 2F 88 31 F0 51 15 [03:37:13]CheckFolder [03:37:13]dirname=/storage/ofd_packets [03:37:13]CheckFolder done [03:37:13]ProducePacketName [03:37:13]name=ofd_packets/00139345 [03:37:13]NVStorageSaveData ofd_packets/00139345 [03:37:13]File name is /storage/ofd_packets/00139345 [03:37:13]Write 426 bytes [03:37:13]NVStorageSaveData done [03:37:13]OFDSenderStorePacket done [03:37:13]KKMCreateOFDPacket done [03:37:13]NVStorageSaveData kkm_last_timestamp [03:37:13]File name is /storage/kkm_last_timestamp [03:37:13]Write 4 bytes [03:37:13]NVStorageSaveData done [03:37:13]ExternCall_PrintAddStr [03:37:13]wPrintStart [03:37:13]Write to MH i2c: 01 00 00 D4 2E 02 [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 07 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 07 00 D4 2E 00 00 00 00 00 FF 0F 17 [03:37:13]RasterBufferAndPrint [03:37:13]line Счет N : (3)335250 [03:37:13]line ИНН: 02508201610067 [03:37:13]line Контрольно-Кассовый Чек [03:37:13]line ПРОДАЖА [03:37:13]line Товар: 4700000160198 [03:37:13]line Вода Байтик 0,5л [03:37:13]line 1.000 * 40.00 [03:37:13]line = 40.00 [03:37:13]line НДС 12% НСП 1% [03:37:13]line > о реализуемом товаре [03:37:13]line Товар: 4700000310173 [03:37:13]line Вода Адыгене 0,5л б/г [03:37:13]line 1.000 * 39.00 [03:37:13]line = 39.00 [03:37:13]line НДС 12% НСП 1% [03:37:13]line > о реализуемом товаре [03:37:13]line ИТОГО: 79.00 [03:37:13]line НСП 1% : 0.69 [03:37:13]line НДС 12% : 8.39 [03:37:13]line Наличными: 79.00 [03:37:13]line Безнал.: 0.00 [03:37:13]line Место: АЗС № 101 "Партнер Нефть" [03:37:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:37:13]line СНО: Общий режим [03:37:13]line Чек 29 30.10.2024 03:37 [03:37:13]line Смена: 556 ФФД: 1.0 [03:37:13]line ЗНМ: 0300000081 [03:37:13]line РНМ: 0000000000091631 [03:37:13]line Версия ККМ: 001 [03:37:13]line ФМ: 0000000000874669 [03:37:13]line ФД: 139345 [03:37:13]line ФПД: 255416034703588 [03:37:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T033714&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139345&fm=255416034703588&tin=02508201610067®Number=0000000000091631&sum=7900 [03:37:13]line 0 [03:37:13]OFD Sender: Processing packet 139345 [packets to send 34, broken 33] [03:37:13]ProducePacketName [03:37:13]name=ofd_packets/00139345 [03:37:13]OFD Sender: To server: pG, [03:37:13]CommunicateWithHost lk.salyk.kg:30040 [03:37:13]ConnectInit lk.salyk.kg [03:37:13]written 0, free lines is 4095 [03:37:13]Connected sock=10 [03:37:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8C 01 00 00 A6 41 84 01 C9 97 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 31 39 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 B0 D0 B9 D1 82 D0 B8 D0 BA 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 45 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 EA A9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 51 20 02 00 35 04 06 00 E8 4C AE 04 B8 E4 5C 2A 2F 88 31 F0 51 15 [03:37:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 3E DE 47 00 C1 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 38 37 34 36 36 39 10 04 04 00 51 20 02 00 F4 03 04 00 9C 55 21 67 B6 04 01 00 00 B8 02 14 36 10 53 29 74 [03:37:13]CommunicateWithHost err = 0 [03:37:13]CheckOFDResponse [03:37:13]1017 (14) - 77093643461234 [03:37:13]1041 (16) - 0000000000874669 [03:37:13]1040 (4) - 139345 [03:37:13]1012 (4) - 29.10.2024 21:37 [03:37:13]1206 (1) - 0 [03:37:13]OFD Sender: Remove packet 139345 [03:37:13]ProducePacketName [03:37:13]name=ofd_packets/00139345 [03:37:13]NVStorageDeleteData [03:37:13]Write to MH i2c: 01 00 00 02 2F 31 [03:37:13]Write i2c OK [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 07 00 [03:37:13]MH_I2C_Read... [03:37:13]Read from MH i2c: 01 07 00 02 2F 00 00 00 00 00 CF 0C 13 [03:37:13]RasterBufferAndPrint [03:37:13]line [03:37:13]line [03:37:13]line [03:37:13]line [03:37:13]line [03:37:13]written 0, free lines is 3288 [03:37:14]MH_Cut [03:37:14]Write to MH i2c: D1 01 00 09 2F 01 0A [03:37:14]Write i2c OK [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: D1 [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: D1 01 00 [03:37:14]MH_I2C_Read... [03:37:14]Read from MH i2c: D1 01 00 09 2F 00 09 [03:37:14]Write to MH i2c: 01 00 00 0A 2F 39 [03:37:14]Write i2c OK [03:37:14]MH_I2C_Read... [03:37:14]OFD Sender: No OFD packet to send [03:37:14]*** Cut start [03:37:14]*** Partial cut [03:37:14]*** CUTSNS_PIN = 1 [03:37:14]*** CUTSNS_PIN = 0 [03:37:14]*** Brake cut motor [03:37:15]Read from MH i2c: 01 [03:37:15]MH_I2C_Read... [03:37:15]*** Stop cut motor [03:37:15]*** Cut end [03:37:15]Read from MH i2c: 01 07 00 [03:37:15]MH_I2C_Read... [03:37:15]Read from MH i2c: 01 07 00 0A 2F 00 00 00 00 00 FF 0F 4E [03:37:15]process_action close_receipt done [03:37:15]requested_data is exist [03:37:15]produce_requested_data [03:37:15]requested_item fm.sn is exist - process it [03:37:15]wFMCommunicate request_size=4 [03:37:15]MH_SAM_APDU [03:37:15]CAPDU: 80 11 00 00 [03:37:15]Write to MH i2c: E2 08 00 0B 2F 80 11 00 00 00 00 00 00 B4 [03:37:15]Write i2c OK [03:37:15]MH_I2C_Read... [03:37:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:37:15]Read from MH i2c: E2 [03:37:15]MH_I2C_Read... [03:37:15]Read from MH i2c: E2 17 00 [03:37:15]MH_I2C_Read... [03:37:15]Read from MH i2c: E2 17 00 0B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0F [03:37:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:37:15]wFMCommunicate OK [03:37:15]requested_item fd.num is exist - process it [03:37:15]SAM_PROTO_GetFieldsCounters [03:37:15]wFMCommunicate request_size=4 [03:37:15]MH_SAM_APDU [03:37:15]CAPDU: 80 13 00 00 [03:37:15]Write to MH i2c: E2 08 00 0C 2F 80 13 00 00 00 00 00 00 B7 [03:37:15]Write i2c OK [03:37:15]MH_I2C_Read... [03:37:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:37:15]Read from MH i2c: E2 [03:37:15]MH_I2C_Read... [03:37:15]Read from MH i2c: E2 62 00 [03:37:15]MH_I2C_Read... [03:37:15]Read from MH i2c: E2 62 00 0C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 51 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 D3 [03:37:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 51 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:37:15]wFMCommunicate OK [03:37:15]SAM_PROTO_GetFieldsCounters done [03:37:15]requested_item shift.num is exist - process it [03:37:15]requested_item shift.opened is exist - process it [03:37:15]req_shift_opened [03:37:15]FM_GetShiftState [03:37:15]SAM_PROTO_GetShiftState [03:37:15]wFMCommunicate request_size=4 [03:37:15]MH_SAM_APDU [03:37:15]CAPDU: 80 13 01 00 [03:37:15]Write to MH i2c: E2 08 00 0D 2F 80 13 01 00 00 00 00 00 B9 [03:37:15]Write i2c OK [03:37:15]MH_I2C_Read... [03:37:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:37:15]Read from MH i2c: E2 [03:37:15]MH_I2C_Read... [03:37:15]Read from MH i2c: E2 0E 00 [03:37:15]MH_I2C_Read... [03:37:15]Read from MH i2c: E2 0E 00 0D 2F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 49 [03:37:15]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:37:15]wFMCommunicate OK [03:37:15]SAM_PROTO_GetShiftState done [03:37:15]FM_GetShiftState done [03:37:15]req_shift_opened done [03:37:15]requested_item shift.open_date is exist - process it [03:37:15]req_shift_open_date [03:37:15]req_shift_open_date done [03:37:15]produce_requested_data done [03:37:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139345,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [03:37:15]process_action_free close_receipt [03:37:15]json_value_free [03:37:15]json_value_free done [03:37:15]process_json_proto returns [03:37:15]Send response to host [03:37:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139345,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [03:37:15]free response buf [03:37:15]execute_script done [03:37:15]execute_script returns [03:37:15]free content buf [03:37:15]Sock 9.Close socket [03:37:15]Sock 9.Thread stoped [03:37:19]OFD Sender: No OFD packet to send [03:37:24]OFD Sender: No OFD packet to send [03:37:29]OFD Sender: No OFD packet to send [03:37:34]OFD Sender: No OFD packet to send [03:37:39]OFD Sender: No OFD packet to send [03:37:44]OFD Sender: No OFD packet to send [03:37:49]OFD Sender: No OFD packet to send [03:37:54]OFD Sender: No OFD packet to send [03:37:59]OFD Sender: No OFD packet to send [03:38:04]OFD Sender: No OFD packet to send [03:38:09]OFD Sender: No OFD packet to send [03:38:14]OFD Sender: No OFD packet to send [03:38:19]OFD Sender: No OFD packet to send [03:38:24]OFD Sender: No OFD packet to send [03:38:29]OFD Sender: No OFD packet to send [03:38:34]OFD Sender: No OFD packet to send [03:38:39]OFD Sender: No OFD packet to send [03:38:44]OFD Sender: No OFD packet to send [03:38:49]OFD Sender: No OFD packet to send [03:38:54]OFD Sender: No OFD packet to send [03:38:59]OFD Sender: No OFD packet to send [03:39:04]OFD Sender: No OFD packet to send [03:39:09]OFD Sender: No OFD packet to send [03:39:14]OFD Sender: No OFD packet to send [03:39:19]OFD Sender: No OFD packet to send [03:39:24]OFD Sender: No OFD packet to send [03:39:29]OFD Sender: No OFD packet to send [03:39:34]OFD Sender: No OFD packet to send [03:39:39]OFD Sender: No OFD packet to send [03:39:44]OFD Sender: No OFD packet to send [03:39:49]OFD Sender: No OFD packet to send [03:39:54]OFD Sender: No OFD packet to send [03:39:59]OFD Sender: No OFD packet to send [03:40:04]OFD Sender: No OFD packet to send [03:40:09]OFD Sender: No OFD packet to send [03:40:14]OFD Sender: No OFD packet to send [03:40:19]OFD Sender: No OFD packet to send [03:40:24]OFD Sender: No OFD packet to send [03:40:29]OFD Sender: No OFD packet to send [03:40:34]OFD Sender: No OFD packet to send [03:40:39]OFD Sender: No OFD packet to send [03:40:44]OFD Sender: No OFD packet to send [03:40:49]OFD Sender: No OFD packet to send [03:40:54]OFD Sender: No OFD packet to send [03:40:59]accept exits with 8 [03:40:59]New connection [03:40:59]New thread 3067141476 created [03:40:59]Thread 3067284836 joined [03:40:59]Waiting for new connection... [03:40:59] Sock 8.Parse request [03:40:59]Sock 8.Check first char [03:40:59]Sock 8.First char is OK [03:40:59]request: POST /json_proto HTTP/1.0 [03:40:59]Method: POST [03:40:59]URL: /json_proto [03:40:59]Method is POST - this is cgi request [03:40:59]url: /json_proto [03:40:59]query_string will be loaded in cgi processing [03:40:59]execute_cgi json_proto POST (null) [03:40:59]execute_cgi path=json_proto method=POST [03:40:59]POST find Content-Length [03:40:59]Host: 172.17.50.196:8080 [03:40:59]Content-Length: 935 [03:40:59]Content-Type: application/json [03:40:59] [03:40:59]POST finish read [03:40:59]Found Content-Length = 935 [03:40:59]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335252", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:59]execute_script... [03:40: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 : (3)335252", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 224.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:40:59]POST & json_proto [03:40:59]process_json_proto [03:40:59]json parsed OK: [03:40:59]protocol is kg_v1.0 [03:40:59]action value=close_receipt [03:40:59]process_action close_receipt [03:40:59]cmd_close_receipt [03:40:59]MH_GetDate [03:40:59]Write to MH i2c: F0 00 00 0E 2F 2C [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: F0 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: F0 09 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: F0 09 00 0E 2F 00 CE AA 21 67 72 0D 1C 67 37 [03:40:59]GetLastDocTimeStamp 1730259434 [03:40:59]current date 1730259662 [03:40:59]FM_GetShiftState [03:40:59]SAM_PROTO_GetShiftState [03:40:59]wFMCommunicate request_size=4 [03:40:59]MH_SAM_APDU [03:40:59]CAPDU: 80 13 01 00 [03:40:59]Write to MH i2c: E2 08 00 0F 2F 80 13 01 00 00 00 00 00 BB [03:40:59]Write i2c OK [03:40:59]MH_I2C_Read... [03:40:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:40:59]Read from MH i2c: E2 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 0E 00 [03:40:59]MH_I2C_Read... [03:40:59]Read from MH i2c: E2 0E 00 0F 2F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4B [03:40:59]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:40:59]wFMCommunicate OK [03:40:59]SAM_PROTO_GetShiftState done [03:40:59]FM_GetShiftState done [03:40:59]opened in 1730246278 [03:40:59]opened+sec_in_day 1730332678 [03:40:59]quantity*price = 9900 [03:40:59]sum+1 = 9901 [03:40:59]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036190018 Кофе Американо XL(GABB TRADE) 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 224.00 НСП 1% : 1.99 НДС 12% : 23.78 Наличными: 224.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 30 30.10.2024 03:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139346 ФПД: 172706277233058 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034102&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139346&fm=172706277233058&tin=02508201610067®Number=0000000000091631&sum=22400 0 [03:41:00]StoreToDocumentArchive [03:41:00]shift 556 fd 139346 [03:41:00]save to /storage/0556/doc_00139346 [03:41:00]save last doc name /storage/0556/doc_00139346 to /storage/kkm_last_doc_name [03:41:00]save OK [03:41:00]Clear old archive folders... [03:41:00]ProcessDocumentItem done err = 0, tmpTLVsize=407 [03:41:00]tlvbuf is 01115920 [03:41:00]SAM_PROTO_ClearQueue [03:41:00]wFMCommunicate request_size=4 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 09 00 00 [03:41:00]Write to MH i2c: E2 08 00 1C 2F 80 09 00 00 00 00 00 00 BD [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:41:00]Read from MH i2c: E2 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 03 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 03 00 1C 2F 00 90 00 BF [03:41:00]RAPDU: 90 00 [03:41:00]wFMCommunicate OK [03:41:00]SAM_PROTO_ClearQueue done [03:41:00]KKMCreateOFDPacket [03:41:00]OFDProtocolAddRootSTLVToBuf [03:41:00]FM_MakeSignedData [03:41:00]FM_MakeSignedData [03:41:00]SAM_PROTO_SignData [03:41:00]wFMCommunicate request_size=4 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 0D 01 02 [03:41:00]Write to MH i2c: E2 08 00 1D 2F 80 0D 01 02 00 00 00 00 C5 [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:41:00]Read from MH i2c: E2 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 03 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 03 00 1D 2F 00 90 00 C0 [03:41:00]RAPDU: 90 00 [03:41:00]wFMCommunicate OK [03:41:00]wFMCommunicate request_size=255 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 0D 02 02 FA 03 00 97 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 [03:41:00]Write to MH i2c: E2 02 01 1E 2F 80 0D 02 02 FA 00 03 00 97 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 00 B6 [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:00]Read from MH i2c: E2 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 03 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 03 00 1E 2F 00 90 00 C1 [03:41:00]RAPDU: 90 00 [03:41:00]wFMCommunicate OK [03:41:00]wFMCommunicate request_size=166 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 0D 02 02 A1 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 80 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 CE AA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 20 02 00 35 04 06 00 9D 13 50 4E 11 A2 [03:41:00]Write to MH i2c: E2 A9 00 1F 2F 80 0D 02 02 A1 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 80 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 CE AA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 20 02 00 35 04 06 00 9D 13 50 4E 11 A2 00 00 D3 [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:41:00]Read from MH i2c: E2 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 03 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 03 00 1F 2F 00 90 00 C2 [03:41:00]RAPDU: 90 00 [03:41:00]wFMCommunicate OK [03:41:00]wFMCommunicate request_size=4 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 0D 03 02 [03:41:00]Write to MH i2c: E2 08 00 20 2F 80 0D 03 02 00 00 00 00 CA [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:41:00]Read from MH i2c: E2 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 0B 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 0B 00 20 2F 00 FD BD 0C F6 E1 AE D6 16 90 00 02 [03:41:00]RAPDU: FD BD 0C F6 E1 AE D6 16 90 00 [03:41:00]wFMCommunicate OK [03:41:00]SAM_PROTO_SignData done [03:41:00]FM_MakeSignedData done [03:41:00]CreateOFDProtocolMessage [03:41:00]wFMCommunicate request_size=4 [03:41:00]MH_SAM_APDU [03:41:00]CAPDU: 80 11 00 00 [03:41:00]Write to MH i2c: E2 08 00 21 2F 80 11 00 00 00 00 00 00 CA [03:41:00]Write i2c OK [03:41:00]MH_I2C_Read... [03:41:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:00]Read from MH i2c: E2 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 17 00 [03:41:00]MH_I2C_Read... [03:41:00]Read from MH i2c: E2 17 00 21 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 25 [03:41:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:41:00]wFMCommunicate OK [03:41:00]CreateOFDProtocolMessage done [03:41:00]OFDSenderStorePacket 139346 [03:41:00]StoreOFDPacket docnum=139346 [03:41:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AB 01 00 00 7E AC A3 01 8E C4 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 80 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 CE AA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 20 02 00 35 04 06 00 9D 13 50 4E 11 A2 FD BD 0C F6 E1 AE D6 16 [03:41:00]CheckFolder [03:41:00]dirname=/storage/ofd_packets [03:41:00]CheckFolder done [03:41:01]ProducePacketName [03:41:01]name=ofd_packets/00139346 [03:41:01]NVStorageSaveData ofd_packets/00139346 [03:41:01]File name is /storage/ofd_packets/00139346 [03:41:01]Write 457 bytes [03:41:01]NVStorageSaveData done [03:41:01]OFDSenderStorePacket done [03:41:01]KKMCreateOFDPacket done [03:41:01]NVStorageSaveData kkm_last_timestamp [03:41:01]File name is /storage/kkm_last_timestamp [03:41:01]Write 4 bytes [03:41:01]NVStorageSaveData done [03:41:01]ExternCall_PrintAddStr [03:41:01]wPrintStart [03:41:01]Write to MH i2c: 01 00 00 22 2F 51 [03:41:01]Write i2c OK [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: 01 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: 01 07 00 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: 01 07 00 22 2F 00 00 00 00 00 FF 0F 66 [03:41:01]RasterBufferAndPrint [03:41:01]line Счет N : (3)335252 [03:41:01]line ИНН: 02508201610067 [03:41:01]line Контрольно-Кассовый Чек [03:41:01]line ПРОДАЖА [03:41:01]line Товар: 4870022003305 [03:41:01]line Напиток Gorilla эн нат ж/б 0,5/0,45л [03:41:01]line 1.000 * 99.00 [03:41:01]line = 99.00 [03:41:01]line НДС 12% НСП 1% [03:41:01]line > о реализуемом товаре [03:41:01]line Товар: 2000036190018 [03:41:01]line Кофе Американо XL(GABB TRADE) [03:41:01]line 1.000 * 125.00 [03:41:01]line = 125.00 [03:41:01]line НДС 12% НСП 1% [03:41:01]line > о реализуемом товаре [03:41:01]line ИТОГО: 224.00 [03:41:01]line НСП 1% : 1.99 [03:41:01]line НДС 12% : 23.78 [03:41:01]line Наличными: 224.00 [03:41:01]line Безнал.: 0.00 [03:41:01]line Место: АЗС № 101 "Партнер Нефть" [03:41:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:41:01]line СНО: Общий режим [03:41:01]line Чек 30 30.10.2024 03:41 [03:41:01]line Смена: 556 ФФД: 1.0 [03:41:01]line ЗНМ: 0300000081 [03:41:01]line РНМ: 0000000000091631 [03:41:01]line Версия ККМ: 001 [03:41:01]line ФМ: 0000000000874669 [03:41:01]line ФД: 139346 [03:41:01]line ФПД: 172706277233058 [03:41:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034102&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139346&fm=172706277233058&tin=02508201610067®Number=0000000000091631&sum=22400 [03:41:01]line 0 [03:41:01]OFD Sender: Processing packet 139346 [packets to send 34, broken 33] [03:41:01]ProducePacketName [03:41:01]name=ofd_packets/00139346 [03:41:01]OFD Sender: To server: pG, [03:41:01]CommunicateWithHost lk.salyk.kg:30040 [03:41:01]ConnectInit lk.salyk.kg [03:41:01]written 0, free lines is 4095 [03:41:01]Connected sock=10 [03:41:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AB 01 00 00 7E AC A3 01 8E C4 5A 03 01 00 03 00 97 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4A 09 00 00 00 00 07 04 06 00 80 57 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 CE AA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 20 02 00 35 04 06 00 9D 13 50 4E 11 A2 FD BD 0C F6 E1 AE D6 16 [03:41:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 31 90 47 00 9E CB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 52 20 02 00 F4 03 04 00 80 56 21 67 B6 04 01 00 00 F7 0E 9B 55 F9 F1 63 BD [03:41:01]CommunicateWithHost err = 0 [03:41:01]CheckOFDResponse [03:41:01]1017 (14) - 77093643461234 [03:41:01]1041 (16) - 0000000000874669 [03:41:01]1040 (4) - 139346 [03:41:01]1012 (4) - 29.10.2024 21:41 [03:41:01]1206 (1) - 0 [03:41:01]OFD Sender: Remove packet 139346 [03:41:01]ProducePacketName [03:41:01]name=ofd_packets/00139346 [03:41:01]NVStorageDeleteData [03:41:01]Write to MH i2c: 01 00 00 52 2F 81 [03:41:01]Write i2c OK [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: 01 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: 01 07 00 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: 01 07 00 52 2F 00 00 00 00 00 CA 0C 5E [03:41:01]RasterBufferAndPrint [03:41:01]line [03:41:01]line [03:41:01]line [03:41:01]line [03:41:01]line [03:41:01]written 0, free lines is 3283 [03:41:01]MH_Cut [03:41:01]Write to MH i2c: D1 01 00 59 2F 01 5A [03:41:01]Write i2c OK [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: D1 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: D1 01 00 [03:41:01]MH_I2C_Read... [03:41:01]Read from MH i2c: D1 01 00 59 2F 00 59 [03:41:01]Write to MH i2c: 01 00 00 5A 2F 89 [03:41:01]Write i2c OK [03:41:01]MH_I2C_Read... [03:41:02]OFD Sender: No OFD packet to send [03:41:02]*** Cut start [03:41:02]*** Partial cut [03:41:02]*** CUTSNS_PIN = 1 [03:41:02]*** CUTSNS_PIN = 0 [03:41:02]*** Brake cut motor [03:41:03]Read from MH i2c: 01 [03:41:03]MH_I2C_Read... [03:41:03]*** Stop cut motor [03:41:03]*** Cut end [03:41:03]Read from MH i2c: 01 07 00 [03:41:03]MH_I2C_Read... [03:41:03]Read from MH i2c: 01 07 00 5A 2F 00 00 00 00 00 FF 0F 9E [03:41:03]process_action close_receipt done [03:41:03]requested_data is exist [03:41:03]produce_requested_data [03:41:03]requested_item fm.sn is exist - process it [03:41:03]wFMCommunicate request_size=4 [03:41:03]MH_SAM_APDU [03:41:03]CAPDU: 80 11 00 00 [03:41:03]Write to MH i2c: E2 08 00 5B 2F 80 11 00 00 00 00 00 00 04 [03:41:03]Write i2c OK [03:41:03]MH_I2C_Read... [03:41:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:41:03]Read from MH i2c: E2 [03:41:03]MH_I2C_Read... [03:41:03]Read from MH i2c: E2 17 00 [03:41:03]MH_I2C_Read... [03:41:03]Read from MH i2c: E2 17 00 5B 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5F [03:41:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:41:03]wFMCommunicate OK [03:41:03]requested_item fd.num is exist - process it [03:41:03]SAM_PROTO_GetFieldsCounters [03:41:03]wFMCommunicate request_size=4 [03:41:03]MH_SAM_APDU [03:41:03]CAPDU: 80 13 00 00 [03:41:03]Write to MH i2c: E2 08 00 5C 2F 80 13 00 00 00 00 00 00 07 [03:41:03]Write i2c OK [03:41:03]MH_I2C_Read... [03:41:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:41:03]Read from MH i2c: E2 [03:41:03]MH_I2C_Read... [03:41:03]Read from MH i2c: E2 62 00 [03:41:03]MH_I2C_Read... [03:41:03]Read from MH i2c: E2 62 00 5C 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 52 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 27 [03:41:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 52 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:41:03]wFMCommunicate OK [03:41:03]SAM_PROTO_GetFieldsCounters done [03:41:03]requested_item shift.num is exist - process it [03:41:03]requested_item shift.opened is exist - process it [03:41:03]req_shift_opened [03:41:03]FM_GetShiftState [03:41:03]SAM_PROTO_GetShiftState [03:41:03]wFMCommunicate request_size=4 [03:41:03]MH_SAM_APDU [03:41:03]CAPDU: 80 13 01 00 [03:41:03]Write to MH i2c: E2 08 00 5D 2F 80 13 01 00 00 00 00 00 09 [03:41:03]Write i2c OK [03:41:03]MH_I2C_Read... [03:41:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:41:03]Read from MH i2c: E2 [03:41:03]MH_I2C_Read... [03:41:03]Read from MH i2c: E2 0E 00 [03:41:03]MH_I2C_Read... [03:41:03]Read from MH i2c: E2 0E 00 5D 2F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 99 [03:41:03]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:41:03]wFMCommunicate OK [03:41:03]SAM_PROTO_GetShiftState done [03:41:03]FM_GetShiftState done [03:41:03]req_shift_opened done [03:41:03]requested_item shift.open_date is exist - process it [03:41:03]req_shift_open_date [03:41:03]req_shift_open_date done [03:41:03]produce_requested_data done [03:41:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139346,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [03:41:03]process_action_free close_receipt [03:41:03]json_value_free [03:41:03]json_value_free done [03:41:03]process_json_proto returns [03:41:03]Send response to host [03:41:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139346,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [03:41:03]free response buf [03:41:03]execute_script done [03:41:03]execute_script returns [03:41:03]free content buf [03:41:03]Sock 8.Close socket [03:41:03]Sock 8.Thread stoped [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:42:02]OFD Sender: No OFD packet to send [03:42:07]OFD Sender: No OFD packet to send [03:42:12]OFD Sender: No OFD packet to send [03:42:17]OFD Sender: No OFD packet to send [03:42:22]OFD Sender: No OFD packet to send [03:42:27]OFD Sender: No OFD packet to send [03:42:32]OFD Sender: No OFD packet to send [03:42:37]OFD Sender: No OFD packet to send [03:42:42]OFD Sender: No OFD packet to send [03:42:47]OFD Sender: No OFD packet to send [03:42:52]OFD Sender: No OFD packet to send [03:42:57]OFD Sender: No OFD packet to send [03:43:02]OFD Sender: No OFD packet to send [03:43:07]OFD Sender: No OFD packet to send [03:43:12]OFD Sender: No OFD packet to send [03:43:17]OFD Sender: No OFD packet to send [03:43:22]OFD Sender: No OFD packet to send [03:43:27]OFD Sender: No OFD packet to send [03:43:32]OFD Sender: No OFD packet to send [03:43:37]OFD Sender: No OFD packet to send [03:43:42]OFD Sender: No OFD packet to send [03:43:47]OFD Sender: No OFD packet to send [03:43:52]OFD Sender: No OFD packet to send [03:43:57]OFD Sender: No OFD packet to send [03:44:02]OFD Sender: No OFD packet to send [03:44:07]OFD Sender: No OFD packet to send [03:44:12]OFD Sender: No OFD packet to send [03:44:17]OFD Sender: No OFD packet to send [03:44:22]OFD Sender: No OFD packet to send [03:44:27]OFD Sender: No OFD packet to send [03:44:32]OFD Sender: No OFD packet to send [03:44:37]OFD Sender: No OFD packet to send [03:44:42]OFD Sender: No OFD packet to send [03:44:47]OFD Sender: No OFD packet to send [03:44:52]OFD Sender: No OFD packet to send [03:44:57]OFD Sender: No OFD packet to send [03:45:02]OFD Sender: No OFD packet to send [03:45:07]OFD Sender: No OFD packet to send [03:45:12]OFD Sender: No OFD packet to send [03:45:17]OFD Sender: No OFD packet to send [03:45:22]OFD Sender: No OFD packet to send [03:45:27]OFD Sender: No OFD packet to send [03:45:32]OFD Sender: No OFD packet to send [03:45:37]OFD Sender: No OFD packet to send [03:45:42]OFD Sender: No OFD packet to send [03:45:47]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:10]accept exits with 9 [03:46:10]New connection [03:46:10]New thread 3067284836 created [03:46:10]Thread 3067141476 joined [03:46:10]Waiting for new connection... [03:46:10] Sock 9.Parse request [03:46:10]Sock 9.Check first char [03:46:10]Sock 9.First char is OK [03:46:10]request: POST /json_proto HTTP/1.0 [03:46:10]Method: POST [03:46:10]URL: /json_proto [03:46:10]Method is POST - this is cgi request [03:46:10]url: /json_proto [03:46:10]query_string will be loaded in cgi processing [03:46:10]execute_cgi json_proto POST (null) [03:46:10]execute_cgi path=json_proto method=POST [03:46:10]POST find Content-Length [03:46:10]Host: 172.17.50.196:8080 [03:46:10]Content-Length: 675 [03:46:10]Content-Type: application/json [03:46:10] [03:46:10]POST finish read [03:46:10]Found Content-Length = 675 [03:46:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335253", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:10]execute_script... [03:46:10]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335253", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:46:10]POST & json_proto [03:46:10]process_json_proto [03:46:10]json parsed OK: [03:46:10]protocol is kg_v1.0 [03:46:10]action value=close_receipt [03:46:10]process_action close_receipt [03:46:10]cmd_close_receipt [03:46:10]MH_GetDate [03:46:10]Write to MH i2c: F0 00 00 5E 2F 7C [03:46:10]Write i2c OK [03:46:10]MH_I2C_Read... [03:46:10]Read from MH i2c: F0 [03:46:10]MH_I2C_Read... [03:46:10]Read from MH i2c: F0 09 00 [03:46:10]MH_I2C_Read... [03:46:10]Read from MH i2c: F0 09 00 5E 2F 00 06 AC 21 67 72 0D 1C 67 C1 [03:46:10]GetLastDocTimeStamp 1730259662 [03:46:10]current date 1730259974 [03:46:10]FM_GetShiftState [03:46:10]SAM_PROTO_GetShiftState [03:46:10]wFMCommunicate request_size=4 [03:46:10]MH_SAM_APDU [03:46:10]CAPDU: 80 13 01 00 [03:46:10]Write to MH i2c: E2 08 00 5F 2F 80 13 01 00 00 00 00 00 0B [03:46:10]Write i2c OK [03:46:10]MH_I2C_Read... [03:46:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:10]Read from MH i2c: E2 [03:46:10]MH_I2C_Read... [03:46:10]Read from MH i2c: E2 0E 00 [03:46:10]MH_I2C_Read... [03:46:10]Read from MH i2c: E2 0E 00 5F 2F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 9B [03:46:10]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:46:10]wFMCommunicate OK [03:46:10]SAM_PROTO_GetShiftState done [03:46:10]FM_GetShiftState done [03:46:10]opened in 1730246278 [03:46:10]opened+sec_in_day 1730332678 [03:46:10]quantity*price = 8900 [03:46:10]sum+1 = 8901 [03:46:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 31 30.10.2024 03:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139347 ФПД: 244710471356349 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034614&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139347&fm=244710471356349&tin=02508201610067®Number=0000000000091631&sum=8900 0 [03:46:12]StoreToDocumentArchive [03:46:12]shift 556 fd 139347 [03:46:12]save to /storage/0556/doc_00139347 [03:46:12]save last doc name /storage/0556/doc_00139347 to /storage/kkm_last_doc_name [03:46:12]save OK [03:46:12]Clear old archive folders... [03:46:12]ProcessDocumentItem done err = 0, tmpTLVsize=286 [03:46:12]tlvbuf is 01145940 [03:46:12]SAM_PROTO_ClearQueue [03:46:12]wFMCommunicate request_size=4 [03:46:12]MH_SAM_APDU [03:46:12]CAPDU: 80 09 00 00 [03:46:12]Write to MH i2c: E2 08 00 6C 2F 80 09 00 00 00 00 00 00 0D [03:46:12]Write i2c OK [03:46:12]MH_I2C_Read... [03:46:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:46:12]Read from MH i2c: E2 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 03 00 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 03 00 6C 2F 00 90 00 0F [03:46:12]RAPDU: 90 00 [03:46:12]wFMCommunicate OK [03:46:12]SAM_PROTO_ClearQueue done [03:46:12]KKMCreateOFDPacket [03:46:12]OFDProtocolAddRootSTLVToBuf [03:46:12]FM_MakeSignedData [03:46:12]FM_MakeSignedData [03:46:12]SAM_PROTO_SignData [03:46:12]wFMCommunicate request_size=4 [03:46:12]MH_SAM_APDU [03:46:12]CAPDU: 80 0D 01 02 [03:46:12]Write to MH i2c: E2 08 00 6D 2F 80 0D 01 02 00 00 00 00 15 [03:46:12]Write i2c OK [03:46:12]MH_I2C_Read... [03:46:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:46:12]Read from MH i2c: E2 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 03 00 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 03 00 6D 2F 00 90 00 10 [03:46:12]RAPDU: 90 00 [03:46:12]wFMCommunicate OK [03:46:12]wFMCommunicate request_size=255 [03:46:12]MH_SAM_APDU [03:46:12]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 06 AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 [03:46:12]Write to MH i2c: E2 02 01 6E 2F 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 06 AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 00 00 1D [03:46:12]Write i2c OK [03:46:12]MH_I2C_Read... [03:46:12]OFD Sender: No OFD packet to send [03:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:12]Read from MH i2c: E2 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 03 00 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 03 00 6E 2F 00 90 00 11 [03:46:12]RAPDU: 90 00 [03:46:12]wFMCommunicate OK [03:46:12]wFMCommunicate request_size=45 [03:46:12]MH_SAM_APDU [03:46:12]CAPDU: 80 0D 02 02 28 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 20 02 00 35 04 06 00 DE 90 18 B7 CF BD [03:46:12]Write to MH i2c: E2 30 00 6F 2F 80 0D 02 02 28 00 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 20 02 00 35 04 06 00 DE 90 18 B7 CF BD 00 00 AE [03:46:12]Write i2c OK [03:46:12]MH_I2C_Read... [03:46:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:46:12]Read from MH i2c: E2 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 03 00 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 03 00 6F 2F 00 90 00 12 [03:46:12]RAPDU: 90 00 [03:46:12]wFMCommunicate OK [03:46:12]wFMCommunicate request_size=4 [03:46:12]MH_SAM_APDU [03:46:12]CAPDU: 80 0D 03 02 [03:46:12]Write to MH i2c: E2 08 00 70 2F 80 0D 03 02 00 00 00 00 1A [03:46:12]Write i2c OK [03:46:12]MH_I2C_Read... [03:46:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:46:12]Read from MH i2c: E2 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 0B 00 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 0B 00 70 2F 00 1D 92 2A E9 35 E8 AE 14 90 00 BC [03:46:12]RAPDU: 1D 92 2A E9 35 E8 AE 14 90 00 [03:46:12]wFMCommunicate OK [03:46:12]SAM_PROTO_SignData done [03:46:12]FM_MakeSignedData done [03:46:12]CreateOFDProtocolMessage [03:46:12]wFMCommunicate request_size=4 [03:46:12]MH_SAM_APDU [03:46:12]CAPDU: 80 11 00 00 [03:46:12]Write to MH i2c: E2 08 00 71 2F 80 11 00 00 00 00 00 00 1A [03:46:12]Write i2c OK [03:46:12]MH_I2C_Read... [03:46:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:12]Read from MH i2c: E2 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 17 00 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: E2 17 00 71 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 75 [03:46:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:46:12]wFMCommunicate OK [03:46:12]CreateOFDProtocolMessage done [03:46:12]OFDSenderStorePacket 139347 [03:46:12]StoreOFDPacket docnum=139347 [03:46:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 32 01 00 00 AC E1 2A 01 B6 D6 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 06 AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 20 02 00 35 04 06 00 DE 90 18 B7 CF BD 1D 92 2A E9 35 E8 AE 14 [03:46:12]CheckFolder [03:46:12]dirname=/storage/ofd_packets [03:46:12]CheckFolder done [03:46:12]ProducePacketName [03:46:12]name=ofd_packets/00139347 [03:46:12]NVStorageSaveData ofd_packets/00139347 [03:46:12]File name is /storage/ofd_packets/00139347 [03:46:12]Write 336 bytes [03:46:12]NVStorageSaveData done [03:46:12]OFDSenderStorePacket done [03:46:12]KKMCreateOFDPacket done [03:46:12]NVStorageSaveData kkm_last_timestamp [03:46:12]File name is /storage/kkm_last_timestamp [03:46:12]Write 4 bytes [03:46:12]NVStorageSaveData done [03:46:12]ExternCall_PrintAddStr [03:46:12]wPrintStart [03:46:12]Write to MH i2c: 01 00 00 72 2F A1 [03:46:12]Write i2c OK [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: 01 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: 01 07 00 [03:46:12]MH_I2C_Read... [03:46:12]Read from MH i2c: 01 07 00 72 2F 00 00 00 00 00 FF 0F B6 [03:46:12]RasterBufferAndPrint [03:46:12]line Счет N : (3)335253 [03:46:12]line ИНН: 02508201610067 [03:46:12]line Контрольно-Кассовый Чек [03:46:12]line ПРОДАЖА [03:46:12]line Товар: 4700040114120 [03:46:12]line Султан чай 1л. чер персик [03:46:12]line 1.000 * 89.00 [03:46:12]line = 89.00 [03:46:12]line НДС 12% НСП 1% [03:46:12]line > о реализуемом товаре [03:46:12]line ИТОГО: 89.00 [03:46:12]line НСП 1% : 0.79 [03:46:12]line НДС 12% : 9.45 [03:46:12]line Наличными: 89.00 [03:46:12]line Безнал.: 0.00 [03:46:12]line Место: АЗС № 101 "Партнер Нефть" [03:46:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:46:12]line СНО: Общий режим [03:46:12]line Чек 31 30.10.2024 03:46 [03:46:12]line Смена: 556 ФФД: 1.0 [03:46:12]line ЗНМ: 0300000081 [03:46:12]line РНМ: 0000000000091631 [03:46:12]line Версия ККМ: 001 [03:46:12]line ФМ: 0000000000874669 [03:46:12]line ФД: 139347 [03:46:12]line ФПД: 244710471356349 [03:46:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034614&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139347&fm=244710471356349&tin=02508201610067®Number=0000000000091631&sum=8900 [03:46:12]line 0 [03:46:12]written 0, free lines is 4095 [03:46:12]OFD Sender: Processing packet 139347 [packets to send 34, broken 33] [03:46:12]ProducePacketName [03:46:12]name=ofd_packets/00139347 [03:46:12]OFD Sender: To server: pG, [03:46:12]CommunicateWithHost lk.salyk.kg:30040 [03:46:12]ConnectInit lk.salyk.kg [03:46:12]Connected sock=11 [03:46:12]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 32 01 00 00 AC E1 2A 01 B6 D6 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 06 AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 53 20 02 00 35 04 06 00 DE 90 18 B7 CF BD 1D 92 2A E9 35 E8 AE 14 [03:46:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5C D6 47 00 EF 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 38 37 34 36 36 39 10 04 04 00 53 20 02 00 F4 03 04 00 B7 57 21 67 B6 04 01 00 00 67 B5 94 75 56 3C FD 18 [03:46:13]CommunicateWithHost err = 0 [03:46:13]CheckOFDResponse [03:46:13]1017 (14) - 77093643461234 [03:46:13]1041 (16) - 0000000000874669 [03:46:13]1040 (4) - 139347 [03:46:13]1012 (4) - 29.10.2024 21:46 [03:46:13]1206 (1) - 0 [03:46:13]OFD Sender: Remove packet 139347 [03:46:13]ProducePacketName [03:46:13]name=ofd_packets/00139347 [03:46:13]NVStorageDeleteData [03:46:13]Write to MH i2c: 01 00 00 9A 2F C9 [03:46:13]Write i2c OK [03:46:13]MH_I2C_Read... [03:46:13]Read from MH i2c: 01 [03:46:13]MH_I2C_Read... [03:46:13]Read from MH i2c: 01 07 00 [03:46:13]MH_I2C_Read... [03:46:13]Read from MH i2c: 01 07 00 9A 2F 00 00 00 00 00 1A 0D F7 [03:46:13]RasterBufferAndPrint [03:46:13]line [03:46:13]line [03:46:13]line [03:46:13]line [03:46:13]line [03:46:13]written 0, free lines is 3360 [03:46:13]MH_Cut [03:46:13]Write to MH i2c: D1 01 00 A1 2F 01 A2 [03:46:13]Write i2c OK [03:46:13]MH_I2C_Read... [03:46:13]Read from MH i2c: D1 [03:46:13]MH_I2C_Read... [03:46:13]Read from MH i2c: D1 01 00 [03:46:13]MH_I2C_Read... [03:46:13]Read from MH i2c: D1 01 00 A1 2F 00 A1 [03:46:13]Write to MH i2c: 01 00 00 A2 2F D1 [03:46:13]Write i2c OK [03:46:13]MH_I2C_Read... [03:46:13]OFD Sender: No OFD packet to send [03:46:13]*** Cut start [03:46:13]*** Partial cut [03:46:13]*** CUTSNS_PIN = 1 [03:46:13]*** CUTSNS_PIN = 0 [03:46:14]*** Brake cut motor [03:46:14]Read from MH i2c: 01 [03:46:14]MH_I2C_Read... [03:46:14]*** Stop cut motor [03:46:14]*** Cut end [03:46:14]Read from MH i2c: 01 07 00 [03:46:14]MH_I2C_Read... [03:46:14]Read from MH i2c: 01 07 00 A2 2F 00 00 00 00 00 FF 0F E6 [03:46:14]process_action close_receipt done [03:46:14]requested_data is exist [03:46:14]produce_requested_data [03:46:14]requested_item fm.sn is exist - process it [03:46:14]wFMCommunicate request_size=4 [03:46:14]MH_SAM_APDU [03:46:14]CAPDU: 80 11 00 00 [03:46:14]Write to MH i2c: E2 08 00 A3 2F 80 11 00 00 00 00 00 00 4C [03:46:14]Write i2c OK [03:46:14]MH_I2C_Read... [03:46:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:46:14]Read from MH i2c: E2 [03:46:14]MH_I2C_Read... [03:46:14]Read from MH i2c: E2 17 00 [03:46:14]MH_I2C_Read... [03:46:14]Read from MH i2c: E2 17 00 A3 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A7 [03:46:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:46:14]wFMCommunicate OK [03:46:14]requested_item fd.num is exist - process it [03:46:14]SAM_PROTO_GetFieldsCounters [03:46:14]wFMCommunicate request_size=4 [03:46:14]MH_SAM_APDU [03:46:14]CAPDU: 80 13 00 00 [03:46:14]Write to MH i2c: E2 08 00 A4 2F 80 13 00 00 00 00 00 00 4F [03:46:14]Write i2c OK [03:46:14]MH_I2C_Read... [03:46:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:46:14]Read from MH i2c: E2 [03:46:14]MH_I2C_Read... [03:46:14]Read from MH i2c: E2 62 00 [03:46:14]MH_I2C_Read... [03:46:14]Read from MH i2c: E2 62 00 A4 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 53 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 73 [03:46:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 53 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:46:14]wFMCommunicate OK [03:46:14]SAM_PROTO_GetFieldsCounters done [03:46:14]requested_item shift.num is exist - process it [03:46:14]requested_item shift.opened is exist - process it [03:46:14]req_shift_opened [03:46:14]FM_GetShiftState [03:46:14]SAM_PROTO_GetShiftState [03:46:14]wFMCommunicate request_size=4 [03:46:14]MH_SAM_APDU [03:46:14]CAPDU: 80 13 01 00 [03:46:14]Write to MH i2c: E2 08 00 A5 2F 80 13 01 00 00 00 00 00 51 [03:46:14]Write i2c OK [03:46:14]MH_I2C_Read... [03:46:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:46:14]Read from MH i2c: E2 [03:46:14]MH_I2C_Read... [03:46:14]Read from MH i2c: E2 0E 00 [03:46:14]MH_I2C_Read... [03:46:14]Read from MH i2c: E2 0E 00 A5 2F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E1 [03:46:14]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:46:14]wFMCommunicate OK [03:46:14]SAM_PROTO_GetShiftState done [03:46:14]FM_GetShiftState done [03:46:14]req_shift_opened done [03:46:14]requested_item shift.open_date is exist - process it [03:46:14]req_shift_open_date [03:46:14]req_shift_open_date done [03:46:14]produce_requested_data done [03:46:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139347,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [03:46:14]process_action_free close_receipt [03:46:14]json_value_free [03:46:14]json_value_free done [03:46:14]process_json_proto returns [03:46:14]Send response to host [03:46:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139347,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [03:46:14]free response buf [03:46:14]execute_script done [03:46:14]execute_script returns [03:46:14]free content buf [03:46:14]Sock 9.Close socket [03:46:14]Sock 9.Thread stoped [03:46:18]OFD Sender: No OFD packet to send [03:46:23]OFD Sender: No OFD packet to send [03:46:28]OFD Sender: No OFD packet to send [03:46:33]OFD Sender: No OFD packet to send [03:46:38]OFD Sender: No OFD packet to send [03:46:43]OFD Sender: No OFD packet to send [03:46:48]OFD Sender: No OFD packet to send [03:46:53]OFD Sender: No OFD packet to send [03:46:58]OFD Sender: No OFD packet to send [03:47:03]OFD Sender: No OFD packet to send [03:47:08]OFD Sender: No OFD packet to send [03:47:13]OFD Sender: No OFD packet to send [03:47:18]OFD Sender: No OFD packet to send [03:47:23]OFD Sender: No OFD packet to send [03:47:28]OFD Sender: No OFD packet to send [03:47:33]OFD Sender: No OFD packet to send [03:47:38]OFD Sender: No OFD packet to send [03:47:43]OFD Sender: No OFD packet to send [03:47:48]OFD Sender: No OFD packet to send [03:47:52]accept exits with 8 [03:47:52]New connection [03:47:52]New thread 3067141476 created [03:47:52]Thread 3067284836 joined [03:47:52]Waiting for new connection... [03:47:52] Sock 8.Parse request [03:47:52]Sock 8.Check first char [03:47:52]Sock 8.First char is OK [03:47:52]request: POST /json_proto HTTP/1.0 [03:47:52]Method: POST [03:47:52]URL: /json_proto [03:47:52]Method is POST - this is cgi request [03:47:52]url: /json_proto [03:47:52]query_string will be loaded in cgi processing [03:47:52]execute_cgi json_proto POST (null) [03:47:52]execute_cgi path=json_proto method=POST [03:47:52]POST find Content-Length [03:47:52]Host: 172.17.50.196:8080 [03:47:52]Content-Length: 640 [03:47:52]Content-Type: application/json [03:47:52] [03:47:52]POST finish read [03:47:52]Found Content-Length = 640 [03:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335254", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:47:52]execute_script... [03:47: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 : (3)335254", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:47:52]POST & json_proto [03:47:52]process_json_proto [03:47:52]json parsed OK: [03:47:52]protocol is kg_v1.0 [03:47:52]action value=close_receipt [03:47:52]process_action close_receipt [03:47:52]cmd_close_receipt [03:47:52]MH_GetDate [03:47:52]Write to MH i2c: F0 00 00 A6 2F C4 [03:47:52]Write i2c OK [03:47:52]MH_I2C_Read... [03:47:52]Read from MH i2c: F0 [03:47:52]MH_I2C_Read... [03:47:52]Read from MH i2c: F0 09 00 [03:47:52]MH_I2C_Read... [03:47:52]Read from MH i2c: F0 09 00 A6 2F 00 6C AC 21 67 72 0D 1C 67 6F [03:47:52]GetLastDocTimeStamp 1730259974 [03:47:52]current date 1730260076 [03:47:52]FM_GetShiftState [03:47:52]SAM_PROTO_GetShiftState [03:47:52]wFMCommunicate request_size=4 [03:47:52]MH_SAM_APDU [03:47:52]CAPDU: 80 13 01 00 [03:47:52]Write to MH i2c: E2 08 00 A7 2F 80 13 01 00 00 00 00 00 53 [03:47:52]Write i2c OK [03:47:52]MH_I2C_Read... [03:47:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:53]Read from MH i2c: E2 [03:47:53]MH_I2C_Read... [03:47:53]Read from MH i2c: E2 0E 00 [03:47:53]MH_I2C_Read... [03:47:53]Read from MH i2c: E2 0E 00 A7 2F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E3 [03:47:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:47:53]wFMCommunicate OK [03:47:53]SAM_PROTO_GetShiftState done [03:47:53]FM_GetShiftState done [03:47:53]opened in 1730246278 [03:47:53]opened+sec_in_day 1730332678 [03:47:53]quantity*price = 14000 [03:47:53]sum+1 = 14001 [03:47:53]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 32 30.10.2024 03:47 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139348 ФПД: 62338575349380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034756&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139348&fm=62338575349380&tin=02508201610067®Number=0000000000091631&sum=14000 0 [03:47:54]StoreToDocumentArchive [03:47:54]shift 556 fd 139348 [03:47:54]save to /storage/0556/doc_00139348 [03:47:54]save last doc name /storage/0556/doc_00139348 to /storage/kkm_last_doc_name [03:47:54]save OK [03:47:54]Clear old archive folders... [03:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=273 [03:47:54]tlvbuf is 011FBFF0 [03:47:54]SAM_PROTO_ClearQueue [03:47:54]wFMCommunicate request_size=4 [03:47:54]MH_SAM_APDU [03:47:54]CAPDU: 80 09 00 00 [03:47:54]Write to MH i2c: E2 08 00 B4 2F 80 09 00 00 00 00 00 00 55 [03:47:54]Write i2c OK [03:47:54]MH_I2C_Read... [03:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:47:54]Read from MH i2c: E2 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 03 00 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 03 00 B4 2F 00 90 00 57 [03:47:54]RAPDU: 90 00 [03:47:54]wFMCommunicate OK [03:47:54]SAM_PROTO_ClearQueue done [03:47:54]KKMCreateOFDPacket [03:47:54]OFDProtocolAddRootSTLVToBuf [03:47:54]FM_MakeSignedData [03:47:54]FM_MakeSignedData [03:47:54]SAM_PROTO_SignData [03:47:54]wFMCommunicate request_size=4 [03:47:54]MH_SAM_APDU [03:47:54]CAPDU: 80 0D 01 02 [03:47:54]Write to MH i2c: E2 08 00 B5 2F 80 0D 01 02 00 00 00 00 5D [03:47:54]Write i2c OK [03:47:54]MH_I2C_Read... [03:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:47:54]Read from MH i2c: E2 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 03 00 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 03 00 B5 2F 00 90 00 58 [03:47:54]RAPDU: 90 00 [03:47:54]wFMCommunicate OK [03:47:54]wFMCommunicate request_size=255 [03:47:54]MH_SAM_APDU [03:47:54]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 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 CF 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 20 00 00 00 F4 03 04 00 6C AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [03:47:54]Write to MH i2c: E2 02 01 B6 2F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 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 CF 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 20 00 00 00 F4 03 04 00 6C AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 CF [03:47:54]Write i2c OK [03:47:54]MH_I2C_Read... [03:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:54]Read from MH i2c: E2 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 03 00 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 03 00 B6 2F 00 90 00 59 [03:47:54]RAPDU: 90 00 [03:47:54]wFMCommunicate OK [03:47:54]wFMCommunicate request_size=32 [03:47:54]MH_SAM_APDU [03:47:54]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 54 20 02 00 35 04 06 00 38 B2 54 A3 B6 84 [03:47:54]Write to MH i2c: E2 23 00 B7 2F 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 54 20 02 00 35 04 06 00 38 B2 54 A3 B6 84 00 00 56 [03:47:54]Write i2c OK [03:47:54]MH_I2C_Read... [03:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:47:54]Read from MH i2c: E2 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 03 00 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 03 00 B7 2F 00 90 00 5A [03:47:54]RAPDU: 90 00 [03:47:54]wFMCommunicate OK [03:47:54]wFMCommunicate request_size=4 [03:47:54]MH_SAM_APDU [03:47:54]CAPDU: 80 0D 03 02 [03:47:54]Write to MH i2c: E2 08 00 B8 2F 80 0D 03 02 00 00 00 00 62 [03:47:54]Write i2c OK [03:47:54]MH_I2C_Read... [03:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:47:54]Read from MH i2c: E2 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 0B 00 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 0B 00 B8 2F 00 01 EF 31 C6 2F 4B 95 24 90 00 7D [03:47:54]RAPDU: 01 EF 31 C6 2F 4B 95 24 90 00 [03:47:54]wFMCommunicate OK [03:47:54]SAM_PROTO_SignData done [03:47:54]FM_MakeSignedData done [03:47:54]CreateOFDProtocolMessage [03:47:54]wFMCommunicate request_size=4 [03:47:54]MH_SAM_APDU [03:47:54]CAPDU: 80 11 00 00 [03:47:54]Write to MH i2c: E2 08 00 B9 2F 80 11 00 00 00 00 00 00 62 [03:47:54]Write i2c OK [03:47:54]MH_I2C_Read... [03:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:54]Read from MH i2c: E2 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 17 00 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: E2 17 00 B9 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BD [03:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:47:54]wFMCommunicate OK [03:47:54]CreateOFDProtocolMessage done [03:47:54]OFDSenderStorePacket 139348 [03:47:54]StoreOFDPacket docnum=139348 [03:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 54 E0 1D 01 EC 1F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 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 CF 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 20 00 00 00 F4 03 04 00 6C AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 20 02 00 35 04 06 00 38 B2 54 A3 B6 84 01 EF 31 C6 2F 4B 95 24 [03:47:54]CheckFolder [03:47:54]dirname=/storage/ofd_packets [03:47:54]CheckFolder done [03:47:54]ProducePacketName [03:47:54]name=ofd_packets/00139348 [03:47:54]NVStorageSaveData ofd_packets/00139348 [03:47:54]File name is /storage/ofd_packets/00139348 [03:47:54]Write 323 bytes [03:47:54]NVStorageSaveData done [03:47:54]OFDSenderStorePacket done [03:47:54]KKMCreateOFDPacket done [03:47:54]NVStorageSaveData kkm_last_timestamp [03:47:54]File name is /storage/kkm_last_timestamp [03:47:54]Write 4 bytes [03:47:54]NVStorageSaveData done [03:47:54]ExternCall_PrintAddStr [03:47:54]wPrintStart [03:47:54]Write to MH i2c: 01 00 00 BA 2F E9 [03:47:54]Write i2c OK [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: 01 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: 01 07 00 [03:47:54]MH_I2C_Read... [03:47:54]Read from MH i2c: 01 07 00 BA 2F 00 00 00 00 00 FF 0F FE [03:47:54]RasterBufferAndPrint [03:47:54]line Счет N : (3)335254 [03:47:54]line ИНН: 02508201610067 [03:47:54]line Контрольно-Кассовый Чек [03:47:54]line ПРОДАЖА [03:47:54]line Товар: 4700002082931 [03:47:54]line Водка Хорошая 0,1л [03:47:54]line 2.000 * 70.00 [03:47:54]line = 140.00 [03:47:54]line НДС 12% НСП 1% [03:47:54]line > о реализуемом товаре [03:47:54]line ИТОГО: 140.00 [03:47:54]line НСП 1% : 1.24 [03:47:54]line НДС 12% : 14.87 [03:47:54]line Наличными: 140.00 [03:47:54]line Безнал.: 0.00 [03:47:54]line Место: АЗС № 101 "Партнер Нефть" [03:47:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:47:54]line СНО: Общий режим [03:47:54]line Чек 32 30.10.2024 03:47 [03:47:54]line Смена: 556 ФФД: 1.0 [03:47:54]line ЗНМ: 0300000081 [03:47:54]line РНМ: 0000000000091631 [03:47:54]line Версия ККМ: 001 [03:47:54]line ФМ: 0000000000874669 [03:47:54]line ФД: 139348 [03:47:54]line ФПД: 62338575349380 [03:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T034756&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139348&fm=62338575349380&tin=02508201610067®Number=0000000000091631&sum=14000 [03:47:55]OFD Sender: Processing packet 139348 [packets to send 34, broken 33] [03:47:55]ProducePacketName [03:47:55]name=ofd_packets/00139348 [03:47:55]OFD Sender: To server: pG, [03:47:55]CommunicateWithHost lk.salyk.kg:30040 [03:47:55]ConnectInit lk.salyk.kg [03:47:55]line 0 [03:47:55]written 0, free lines is 4095 [03:47:55]Connected sock=10 [03:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 54 E0 1D 01 EC 1F 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 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 CF 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 20 00 00 00 F4 03 04 00 6C AC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 20 02 00 35 04 06 00 38 B2 54 A3 B6 84 01 EF 31 C6 2F 4B 95 24 [03:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5B C5 47 00 52 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 54 20 02 00 F4 03 04 00 1D 58 21 67 B6 04 01 00 00 4E 4D 53 EF 14 F2 F9 E4 [03:47:55]CommunicateWithHost err = 0 [03:47:55]CheckOFDResponse [03:47:55]1017 (14) - 77093643461234 [03:47:55]1041 (16) - 0000000000874669 [03:47:55]1040 (4) - 139348 [03:47:55]1012 (4) - 29.10.2024 21:48 [03:47:55]1206 (1) - 0 [03:47:55]OFD Sender: Remove packet 139348 [03:47:55]ProducePacketName [03:47:55]name=ofd_packets/00139348 [03:47:55]NVStorageDeleteData [03:47:55]Write to MH i2c: 01 00 00 E2 2F 11 [03:47:55]Write i2c OK [03:47:55]MH_I2C_Read... [03:47:55]Read from MH i2c: 01 [03:47:55]MH_I2C_Read... [03:47:55]Read from MH i2c: 01 07 00 [03:47:55]MH_I2C_Read... [03:47:55]Read from MH i2c: 01 07 00 E2 2F 00 00 00 00 00 25 0D 4A [03:47:55]RasterBufferAndPrint [03:47:55]line [03:47:55]line [03:47:55]line [03:47:55]line [03:47:55]line [03:47:55]written 0, free lines is 3371 [03:47:55]MH_Cut [03:47:55]Write to MH i2c: D1 01 00 E9 2F 01 EA [03:47:55]Write i2c OK [03:47:55]MH_I2C_Read... [03:47:55]Read from MH i2c: D1 [03:47:55]MH_I2C_Read... [03:47:55]Read from MH i2c: D1 01 00 [03:47:55]MH_I2C_Read... [03:47:55]Read from MH i2c: D1 01 00 E9 2F 00 E9 [03:47:55]Write to MH i2c: 01 00 00 EA 2F 19 [03:47:55]Write i2c OK [03:47:55]MH_I2C_Read... [03:47:55]OFD Sender: No OFD packet to send [03:47:56]*** Cut start [03:47:56]*** Partial cut [03:47:56]*** CUTSNS_PIN = 1 [03:47:56]*** CUTSNS_PIN = 0 [03:47:56]*** Brake cut motor [03:47:56]Read from MH i2c: 01 [03:47:56]MH_I2C_Read... [03:47:56]*** Stop cut motor [03:47:56]*** Cut end [03:47:56]Read from MH i2c: 01 07 00 [03:47:56]MH_I2C_Read... [03:47:56]Read from MH i2c: 01 07 00 EA 2F 00 00 00 00 00 FF 0F 2E [03:47:56]process_action close_receipt done [03:47:56]requested_data is exist [03:47:56]produce_requested_data [03:47:56]requested_item fm.sn is exist - process it [03:47:56]wFMCommunicate request_size=4 [03:47:56]MH_SAM_APDU [03:47:56]CAPDU: 80 11 00 00 [03:47:56]Write to MH i2c: E2 08 00 EB 2F 80 11 00 00 00 00 00 00 94 [03:47:56]Write i2c OK [03:47:56]MH_I2C_Read... [03:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:47:56]Read from MH i2c: E2 [03:47:56]MH_I2C_Read... [03:47:56]Read from MH i2c: E2 17 00 [03:47:56]MH_I2C_Read... [03:47:56]Read from MH i2c: E2 17 00 EB 2F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [03:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:47:56]wFMCommunicate OK [03:47:56]requested_item fd.num is exist - process it [03:47:56]SAM_PROTO_GetFieldsCounters [03:47:56]wFMCommunicate request_size=4 [03:47:56]MH_SAM_APDU [03:47:56]CAPDU: 80 13 00 00 [03:47:56]Write to MH i2c: E2 08 00 EC 2F 80 13 00 00 00 00 00 00 97 [03:47:56]Write i2c OK [03:47:56]MH_I2C_Read... [03:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:47:56]Read from MH i2c: E2 [03:47:56]MH_I2C_Read... [03:47:56]Read from MH i2c: E2 62 00 [03:47:56]MH_I2C_Read... [03:47:56]Read from MH i2c: E2 62 00 EC 2F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 54 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 BF [03:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 54 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:47:56]wFMCommunicate OK [03:47:56]SAM_PROTO_GetFieldsCounters done [03:47:56]requested_item shift.num is exist - process it [03:47:56]requested_item shift.opened is exist - process it [03:47:56]req_shift_opened [03:47:56]FM_GetShiftState [03:47:56]SAM_PROTO_GetShiftState [03:47:56]wFMCommunicate request_size=4 [03:47:56]MH_SAM_APDU [03:47:56]CAPDU: 80 13 01 00 [03:47:56]Write to MH i2c: E2 08 00 ED 2F 80 13 01 00 00 00 00 00 99 [03:47:56]Write i2c OK [03:47:56]MH_I2C_Read... [03:47:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:47:57]Read from MH i2c: E2 [03:47:57]MH_I2C_Read... [03:47:57]Read from MH i2c: E2 0E 00 [03:47:57]MH_I2C_Read... [03:47:57]Read from MH i2c: E2 0E 00 ED 2F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 29 [03:47:57]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:47:57]wFMCommunicate OK [03:47:57]SAM_PROTO_GetShiftState done [03:47:57]FM_GetShiftState done [03:47:57]req_shift_opened done [03:47:57]requested_item shift.open_date is exist - process it [03:47:57]req_shift_open_date [03:47:57]req_shift_open_date done [03:47:57]produce_requested_data done [03:47:57]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139348,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [03:47:57]process_action_free close_receipt [03:47:57]json_value_free [03:47:57]json_value_free done [03:47:57]process_json_proto returns [03:47:57]Send response to host [03:47:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139348,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [03:47:57]free response buf [03:47:57]execute_script done [03:47:57]execute_script returns [03:47:57]free content buf [03:47:57]Sock 8.Close socket [03:47:57]Sock 8.Thread stoped [03:48:00]OFD Sender: No OFD packet to send [03:48:05]OFD Sender: No OFD packet to send [03:48:10]OFD Sender: No OFD packet to send [03:48:15]OFD Sender: No OFD packet to send [03:48:20]OFD Sender: No OFD packet to send [03:48:25]OFD Sender: No OFD packet to send [03:48:30]OFD Sender: No OFD packet to send [03:48:35]OFD Sender: No OFD packet to send [03:48:40]OFD Sender: No OFD packet to send [03:48:45]OFD Sender: No OFD packet to send [03:48:50]OFD Sender: No OFD packet to send [03:48:55]OFD Sender: No OFD packet to send [03:49:00]OFD Sender: No OFD packet to send [03:49:05]OFD Sender: No OFD packet to send [03:49:10]OFD Sender: No OFD packet to send [03:49:15]OFD Sender: No OFD packet to send [03:49:20]OFD Sender: No OFD packet to send [03:49:25]OFD Sender: No OFD packet to send [03:49:30]OFD Sender: No OFD packet to send [03:49:35]OFD Sender: No OFD packet to send [03:49:40]OFD Sender: No OFD packet to send [03:49:45]OFD Sender: No OFD packet to send [03:49:50]OFD Sender: No OFD packet to send [03:49:55]OFD Sender: No OFD packet to send [03:50:00]OFD Sender: No OFD packet to send [03:50:05]OFD Sender: No OFD packet to send [03:50:10]OFD Sender: No OFD packet to send [03:50:15]OFD Sender: No OFD packet to send [03:50:20]OFD Sender: No OFD packet to send [03:50:26]OFD Sender: No OFD packet to send [03:50:31]OFD Sender: No OFD packet to send [03:50:36]OFD Sender: No OFD packet to send [03:50:41]OFD Sender: No OFD packet to send [03:50:46]OFD Sender: No OFD packet to send [03:50:51]OFD Sender: No OFD packet to send [03:50:56]OFD Sender: No OFD packet to send [03:51:01]OFD Sender: No OFD packet to send [03:51:06]OFD Sender: No OFD packet to send [03:51:11]OFD Sender: No OFD packet to send [03:51:16]OFD Sender: No OFD packet to send [03:51:21]OFD Sender: No OFD packet to send [03:51:26]OFD Sender: No OFD packet to send [03:51:31]OFD Sender: No OFD packet to send [03:51:36]OFD Sender: No OFD packet to send [03:51:41]OFD Sender: No OFD packet to send [03:51:46]OFD Sender: No OFD packet to send [03:51:51]OFD Sender: No OFD packet to send [03:51:56]OFD Sender: No OFD packet to send [03:52:01]OFD Sender: No OFD packet to send [03:52:06]OFD Sender: No OFD packet to send [03:52:11]OFD Sender: No OFD packet to send [03:52:16]OFD Sender: No OFD packet to send [03:52:21]OFD Sender: No OFD packet to send [03:52:26]OFD Sender: No OFD packet to send [03:52:31]OFD Sender: No OFD packet to send [03:52:36]OFD Sender: No OFD packet to send [03:52:41]OFD Sender: No OFD packet to send [03:52:46]OFD Sender: No OFD packet to send [03:52:51]OFD Sender: No OFD packet to send [03:52:56]OFD Sender: No OFD packet to send [03:53:01]OFD Sender: No OFD packet to send [03:53:06]OFD Sender: No OFD packet to send [03:53:11]OFD Sender: No OFD packet to send [03:53:16]OFD Sender: No OFD packet to send [03:53:21]OFD Sender: No OFD packet to send [03:53:26]OFD Sender: No OFD packet to send [03:53:31]OFD Sender: No OFD packet to send [03:53:36]OFD Sender: No OFD packet to send [03:53:41]OFD Sender: No OFD packet to send [03:53:46]OFD Sender: No OFD packet to send [03:53:51]OFD Sender: No OFD packet to send [03:53:56]OFD Sender: No OFD packet to send [03:54:01]OFD Sender: No OFD packet to send [03:54:06]OFD Sender: No OFD packet to send [03:54:06]accept exits with 9 [03:54:06]New connection [03:54:06]New thread 3067284836 created [03:54:06]Thread 3067141476 joined [03:54:06]Waiting for new connection... [03:54:06] Sock 9.Parse request [03:54:06]Sock 9.Check first char [03:54:06]Sock 9.First char is OK [03:54:06]request: POST /json_proto HTTP/1.0 [03:54:06]Method: POST [03:54:06]URL: /json_proto [03:54:06]Method is POST - this is cgi request [03:54:06]url: /json_proto [03:54:06]query_string will be loaded in cgi processing [03:54:06]execute_cgi json_proto POST (null) [03:54:06]execute_cgi path=json_proto method=POST [03:54:06]POST find Content-Length [03:54:06]Host: 172.17.50.196:8080 [03:54:06]Content-Length: 1319 [03:54:06]Content-Type: application/json [03:54:06] [03:54:06]POST finish read [03:54:06]Found Content-Length = 1319 [03:54:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335255", "tax_sys" : 0, "items" : [ { "code": "4607015235777", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0432\u0438\u0448\u043D\u044F 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010748616", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u041C\u0410\u0425 - \u043E\u0445\u043E\u0442\u043D\u0438\u0447\u044C\u0438 \u043A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 40", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 132.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:54:06]execute_script... [03:54:06]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335255", "tax_sys" : 0, "items" : [ { "code": "4607015235777", "name": "\u041F\u0435\u0447. \u0441\u0434. \u042F\u0448\u043A\u0438\u043D\u043E \u0432\u0438\u0448\u043D\u044F 137\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010748616", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u041C\u0410\u0425 - \u043E\u0445\u043E\u0442\u043D\u0438\u0447\u044C\u0438 \u043A\u043E\u043B\u0431\u0430\u0441\u043A\u0438 40", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4690329000476", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 132.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [03:54:06]POST & json_proto [03:54:06]process_json_proto [03:54:06]json parsed OK: [03:54:06]protocol is kg_v1.0 [03:54:06]action value=close_receipt [03:54:06]process_action close_receipt [03:54:06]cmd_close_receipt [03:54:06]MH_GetDate [03:54:06]Write to MH i2c: F0 00 00 EE 2F 0C [03:54:06]Write i2c OK [03:54:06]MH_I2C_Read... [03:54:06]Read from MH i2c: F0 [03:54:06]MH_I2C_Read... [03:54:06]Read from MH i2c: F0 09 00 [03:54:06]MH_I2C_Read... [03:54:06]Read from MH i2c: F0 09 00 EE 2F 00 E1 AD 21 67 72 0D 1C 67 2D [03:54:06]GetLastDocTimeStamp 1730260076 [03:54:06]current date 1730260449 [03:54:06]FM_GetShiftState [03:54:06]SAM_PROTO_GetShiftState [03:54:06]wFMCommunicate request_size=4 [03:54:06]MH_SAM_APDU [03:54:06]CAPDU: 80 13 01 00 [03:54:06]Write to MH i2c: E2 08 00 EF 2F 80 13 01 00 00 00 00 00 9B [03:54:06]Write i2c OK [03:54:06]MH_I2C_Read... [03:54:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:06]Read from MH i2c: E2 [03:54:06]MH_I2C_Read... [03:54:06]Read from MH i2c: E2 0E 00 [03:54:06]MH_I2C_Read... [03:54:06]Read from MH i2c: E2 0E 00 EF 2F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 2B [03:54:06]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:54:06]wFMCommunicate OK [03:54:06]SAM_PROTO_GetShiftState done [03:54:06]FM_GetShiftState done [03:54:06]opened in 1730246278 [03:54:06]opened+sec_in_day 1730332678 [03:54:06]quantity*price = 9000 [03:54:06]sum+1 = 9001 [03:54:06]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010748616 Сух Кириешки МАХ - охотничьи колбаски 40 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4690329000476 Сух Кириешки шашлык 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 132.00 НСП 1% : 1.18 НДС 12% : 14.02 Наличными: 132.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 33 30.10.2024 03:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139349 ФПД: 116948573795987 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T035410&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139349&fm=116948573795987&tin=02508201610067®Number=0000000000091631&sum=13200 0 [03:54:07]StoreToDocumentArchive [03:54:07]shift 556 fd 139349 [03:54:07]save to /storage/0556/doc_00139349 [03:54:07]save last doc name /storage/0556/doc_00139349 to /storage/kkm_last_doc_name [03:54:07]save OK [03:54:07]Clear old archive folders... [03:54:07]ProcessDocumentItem done err = 0, tmpTLVsize=541 [03:54:07]tlvbuf is 011155D0 [03:54:07]SAM_PROTO_ClearQueue [03:54:07]wFMCommunicate request_size=4 [03:54:07]MH_SAM_APDU [03:54:07]CAPDU: 80 09 00 00 [03:54:07]Write to MH i2c: E2 08 00 FC 2F 80 09 00 00 00 00 00 00 9D [03:54:07]Write i2c OK [03:54:07]MH_I2C_Read... [03:54:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [03:54:07]Read from MH i2c: E2 [03:54:07]MH_I2C_Read... [03:54:07]Read from MH i2c: E2 03 00 [03:54:07]MH_I2C_Read... [03:54:07]Read from MH i2c: E2 03 00 FC 2F 00 90 00 9F [03:54:07]RAPDU: 90 00 [03:54:07]wFMCommunicate OK [03:54:07]SAM_PROTO_ClearQueue done [03:54:07]KKMCreateOFDPacket [03:54:07]OFDProtocolAddRootSTLVToBuf [03:54:07]FM_MakeSignedData [03:54:07]FM_MakeSignedData [03:54:07]SAM_PROTO_SignData [03:54:07]wFMCommunicate request_size=4 [03:54:07]MH_SAM_APDU [03:54:07]CAPDU: 80 0D 01 02 [03:54:07]Write to MH i2c: E2 08 00 FD 2F 80 0D 01 02 00 00 00 00 A5 [03:54:07]Write i2c OK [03:54:07]MH_I2C_Read... [03:54:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [03:54:07]Read from MH i2c: E2 [03:54:07]MH_I2C_Read... [03:54:07]Read from MH i2c: E2 03 00 [03:54:07]MH_I2C_Read... [03:54:07]Read from MH i2c: E2 03 00 FD 2F 00 90 00 A0 [03:54:07]RAPDU: 90 00 [03:54:07]wFMCommunicate OK [03:54:07]wFMCommunicate request_size=255 [03:54:07]MH_SAM_APDU [03:54:07]CAPDU: 80 0D 02 02 FA 03 00 1D 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 38 36 31 36 06 04 47 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 9C D0 90 D0 A5 20 2D 20 D0 BE D1 85 D0 BE D1 82 D0 BD D0 B8 D1 87 D1 8C D0 B8 20 D0 BA D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 34 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 [03:54:07]Write to MH i2c: E2 02 01 FE 2F 80 0D 02 02 FA 00 03 00 1D 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 38 36 31 36 06 04 47 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 9C D0 90 D0 A5 20 2D 20 D0 BE D1 85 D0 BE D1 82 D0 BD D0 B8 D1 87 D1 8C D0 B8 20 D0 BA D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 34 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 94 [03:54:07]Write i2c OK [03:54:07]MH_I2C_Read... [03:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:08]Read from MH i2c: E2 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 03 00 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 03 00 FE 2F 00 90 00 A1 [03:54:08]RAPDU: 90 00 [03:54:08]wFMCommunicate OK [03:54:08]wFMCommunicate request_size=255 [03:54:08]MH_SAM_APDU [03:54:08]CAPDU: 80 0D 02 02 FA 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 AD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [03:54:08]Write to MH i2c: E2 02 01 FF 2F 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 AD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 B5 [03:54:08]Write i2c OK [03:54:08]MH_I2C_Read... [03:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:08]Read from MH i2c: E2 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 03 00 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 03 00 FF 2F 00 90 00 A2 [03:54:08]RAPDU: 90 00 [03:54:08]wFMCommunicate OK [03:54:08]wFMCommunicate request_size=50 [03:54:08]MH_SAM_APDU [03:54:08]CAPDU: 80 0D 02 02 2D 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 20 02 00 35 04 06 00 6A 5D 36 32 B6 93 [03:54:08]Write to MH i2c: E2 35 00 00 30 80 0D 02 02 2D 00 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 20 02 00 35 04 06 00 6A 5D 36 32 B6 93 00 00 FB [03:54:08]Write i2c OK [03:54:08]MH_I2C_Read... [03:54:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [03:54:08]Read from MH i2c: E2 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 03 00 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 03 00 00 30 00 90 00 A4 [03:54:08]RAPDU: 90 00 [03:54:08]wFMCommunicate OK [03:54:08]wFMCommunicate request_size=4 [03:54:08]MH_SAM_APDU [03:54:08]CAPDU: 80 0D 03 02 [03:54:08]Write to MH i2c: E2 08 00 01 30 80 0D 03 02 00 00 00 00 AC [03:54:08]Write i2c OK [03:54:08]MH_I2C_Read... [03:54:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [03:54:08]Read from MH i2c: E2 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 0B 00 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 0B 00 01 30 00 9D F2 BE DB 95 BC 5E C3 90 00 47 [03:54:08]RAPDU: 9D F2 BE DB 95 BC 5E C3 90 00 [03:54:08]wFMCommunicate OK [03:54:08]SAM_PROTO_SignData done [03:54:08]FM_MakeSignedData done [03:54:08]CreateOFDProtocolMessage [03:54:08]wFMCommunicate request_size=4 [03:54:08]MH_SAM_APDU [03:54:08]CAPDU: 80 11 00 00 [03:54:08]Write to MH i2c: E2 08 00 02 30 80 11 00 00 00 00 00 00 AC [03:54:08]Write i2c OK [03:54:08]MH_I2C_Read... [03:54:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:08]Read from MH i2c: E2 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 17 00 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: E2 17 00 02 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 07 [03:54:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:54:08]wFMCommunicate OK [03:54:08]CreateOFDProtocolMessage done [03:54:08]OFDSenderStorePacket 139349 [03:54:08]StoreOFDPacket docnum=139349 [03:54:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 02 00 00 A7 C2 29 02 C2 AB 5A 03 01 00 03 00 1D 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 38 36 31 36 06 04 47 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 9C D0 90 D0 A5 20 2D 20 D0 BE D1 85 D0 BE D1 82 D0 BD D0 B8 D1 87 D1 8C D0 B8 20 D0 BA D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 34 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 AD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 20 02 00 35 04 06 00 6A 5D 36 32 B6 93 9D F2 BE DB 95 BC 5E C3 [03:54:08]CheckFolder [03:54:08]dirname=/storage/ofd_packets [03:54:08]CheckFolder done [03:54:08]ProducePacketName [03:54:08]name=ofd_packets/00139349 [03:54:08]NVStorageSaveData ofd_packets/00139349 [03:54:08]File name is /storage/ofd_packets/00139349 [03:54:08]Write 591 bytes [03:54:08]NVStorageSaveData done [03:54:08]OFDSenderStorePacket done [03:54:08]KKMCreateOFDPacket done [03:54:08]NVStorageSaveData kkm_last_timestamp [03:54:08]File name is /storage/kkm_last_timestamp [03:54:08]Write 4 bytes [03:54:08]NVStorageSaveData done [03:54:08]ExternCall_PrintAddStr [03:54:08]wPrintStart [03:54:08]Write to MH i2c: 01 00 00 03 30 33 [03:54:08]Write i2c OK [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: 01 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: 01 07 00 [03:54:08]MH_I2C_Read... [03:54:08]Read from MH i2c: 01 07 00 03 30 00 00 00 00 00 FF 0F 48 [03:54:08]RasterBufferAndPrint [03:54:08]line Счет N : (3)335255 [03:54:08]line ИНН: 02508201610067 [03:54:08]line Контрольно-Кассовый Чек [03:54:08]line ПРОДАЖА [03:54:08]line Товар: 4607015235777 [03:54:08]line Печ. сд. Яшкино вишня 137г [03:54:08]line 1.000 * 90.00 [03:54:08]line = 90.00 [03:54:08]line НДС 12% НСП 1% [03:54:08]line > о реализуемом товаре [03:54:08]line Товар: 4607010748616 [03:54:08]line Сух Кириешки МАХ - охотничьи колбаски 40 [03:54:08]line 1.000 * 21.00 [03:54:08]line = 21.00 [03:54:08]line НДС 12% НСП 1% [03:54:08]line > о реализуемом товаре [03:54:08]line Товар: 4690329000476 [03:54:08]line Сух Кириешки шашлык 40г [03:54:08]line 1.000 * 21.00 [03:54:08]line = 21.00 [03:54:08]line НДС 12% НСП 1% [03:54:08]line > о реализуемом товаре [03:54:08]line ИТОГО: 132.00 [03:54:08]line НСП 1% : 1.18 [03:54:08]line НДС 12% : 14.02 [03:54:08]line Наличными: 132.00 [03:54:08]line Безнал.: 0.00 [03:54:08]line Место: АЗС № 101 "Партнер Нефть" [03:54:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [03:54:08]line СНО: Общий режим [03:54:08]line Чек 33 30.10.2024 03:54 [03:54:08]line Смена: 556 ФФД: 1.0 [03:54:08]line ЗНМ: 0300000081 [03:54:08]line РНМ: 0000000000091631 [03:54:08]line Версия ККМ: 001 [03:54:08]line ФМ: 0000000000874669 [03:54:08]line ФД: 139349 [03:54:08]line ФПД: 116948573795987 [03:54:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T035410&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139349&fm=116948573795987&tin=02508201610067®Number=0000000000091631&sum=13200 [03:54:08]line 0 [03:54:09]written 0, free lines is 4095 [03:54:09]OFD Sender: Processing packet 139349 [packets to send 34, broken 33] [03:54:09]ProducePacketName [03:54:09]name=ofd_packets/00139349 [03:54:09]OFD Sender: To server: pG, [03:54:09]CommunicateWithHost lk.salyk.kg:30040 [03:54:09]ConnectInit lk.salyk.kg [03:54:09]Connected sock=8 [03:54:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 31 02 00 00 A7 C2 29 02 C2 AB 5A 03 01 00 03 00 1D 02 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 37 37 37 06 04 2B 00 D0 9F D0 B5 D1 87 2E 20 D1 81 D0 B4 2E 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D0 B2 D0 B8 D1 88 D0 BD D1 8F 20 31 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 38 36 31 36 06 04 47 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 9C D0 90 D0 A5 20 2D 20 D0 BE D1 85 D0 BE D1 82 D0 BD D0 B8 D1 87 D1 8C D0 B8 20 D0 BA D0 BE D0 BB D0 B1 D0 B0 D1 81 D0 BA D0 B8 20 34 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 39 30 33 32 39 30 30 30 34 37 36 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 33 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 76 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7A 05 00 00 00 00 07 04 06 00 90 33 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 21 00 00 00 F4 03 04 00 E2 AD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 20 02 00 35 04 06 00 6A 5D 36 32 B6 93 9D F2 BE DB 95 BC 5E C3 [03:54:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 91 F5 47 00 F9 58 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 55 20 02 00 F4 03 04 00 93 59 21 67 B6 04 01 00 00 2C 40 D5 07 ED 14 C3 40 [03:54:09]CommunicateWithHost err = 0 [03:54:09]CheckOFDResponse [03:54:09]1017 (14) - 77093643461234 [03:54:09]1041 (16) - 0000000000874669 [03:54:09]1040 (4) - 139349 [03:54:09]1012 (4) - 29.10.2024 21:54 [03:54:09]1206 (1) - 0 [03:54:09]OFD Sender: Remove packet 139349 [03:54:09]ProducePacketName [03:54:09]name=ofd_packets/00139349 [03:54:09]NVStorageDeleteData [03:54:09]Write to MH i2c: 01 00 00 38 30 68 [03:54:09]Write i2c OK [03:54:09]MH_I2C_Read... [03:54:09]Read from MH i2c: 01 [03:54:09]MH_I2C_Read... [03:54:09]Read from MH i2c: 01 07 00 [03:54:09]MH_I2C_Read... [03:54:09]Read from MH i2c: 01 07 00 38 30 00 00 00 00 00 78 0C F3 [03:54:09]RasterBufferAndPrint [03:54:09]line [03:54:09]line [03:54:09]line [03:54:09]line [03:54:09]line [03:54:09]written 0, free lines is 3204 [03:54:09]MH_Cut [03:54:09]Write to MH i2c: D1 01 00 3F 30 01 41 [03:54:09]Write i2c OK [03:54:09]MH_I2C_Read... [03:54:09]Read from MH i2c: D1 [03:54:09]MH_I2C_Read... [03:54:09]Read from MH i2c: D1 01 00 [03:54:09]MH_I2C_Read... [03:54:09]Read from MH i2c: D1 01 00 3F 30 00 40 [03:54:09]Write to MH i2c: 01 00 00 40 30 70 [03:54:09]Write i2c OK [03:54:09]MH_I2C_Read... [03:54:09]OFD Sender: No OFD packet to send [03:54:10]*** Cut start [03:54:10]*** Partial cut [03:54:10]*** CUTSNS_PIN = 1 [03:54:10]*** CUTSNS_PIN = 0 [03:54:10]*** Brake cut motor [03:54:10]Read from MH i2c: 01 [03:54:10]MH_I2C_Read... [03:54:10]*** Stop cut motor [03:54:10]*** Cut end [03:54:10]Read from MH i2c: 01 07 00 [03:54:10]MH_I2C_Read... [03:54:10]Read from MH i2c: 01 07 00 40 30 00 00 00 00 00 FF 0F 85 [03:54:10]process_action close_receipt done [03:54:10]requested_data is exist [03:54:10]produce_requested_data [03:54:10]requested_item fm.sn is exist - process it [03:54:10]wFMCommunicate request_size=4 [03:54:10]MH_SAM_APDU [03:54:10]CAPDU: 80 11 00 00 [03:54:10]Write to MH i2c: E2 08 00 41 30 80 11 00 00 00 00 00 00 EB [03:54:10]Write i2c OK [03:54:10]MH_I2C_Read... [03:54:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [03:54:11]Read from MH i2c: E2 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: E2 17 00 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: E2 17 00 41 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 46 [03:54:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [03:54:11]wFMCommunicate OK [03:54:11]requested_item fd.num is exist - process it [03:54:11]SAM_PROTO_GetFieldsCounters [03:54:11]wFMCommunicate request_size=4 [03:54:11]MH_SAM_APDU [03:54:11]CAPDU: 80 13 00 00 [03:54:11]Write to MH i2c: E2 08 00 42 30 80 13 00 00 00 00 00 00 EE [03:54:11]Write i2c OK [03:54:11]MH_I2C_Read... [03:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [03:54:11]Read from MH i2c: E2 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: E2 62 00 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: E2 62 00 42 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 55 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 1A [03:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 55 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [03:54:11]wFMCommunicate OK [03:54:11]SAM_PROTO_GetFieldsCounters done [03:54:11]requested_item shift.num is exist - process it [03:54:11]requested_item shift.opened is exist - process it [03:54:11]req_shift_opened [03:54:11]FM_GetShiftState [03:54:11]SAM_PROTO_GetShiftState [03:54:11]wFMCommunicate request_size=4 [03:54:11]MH_SAM_APDU [03:54:11]CAPDU: 80 13 01 00 [03:54:11]Write to MH i2c: E2 08 00 43 30 80 13 01 00 00 00 00 00 F0 [03:54:11]Write i2c OK [03:54:11]MH_I2C_Read... [03:54:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [03:54:11]Read from MH i2c: E2 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: E2 0E 00 [03:54:11]MH_I2C_Read... [03:54:11]Read from MH i2c: E2 0E 00 43 30 00 09 00 01 86 76 21 67 00 00 00 00 90 00 80 [03:54:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [03:54:11]wFMCommunicate OK [03:54:11]SAM_PROTO_GetShiftState done [03:54:11]FM_GetShiftState done [03:54:11]req_shift_opened done [03:54:11]requested_item shift.open_date is exist - process it [03:54:11]req_shift_open_date [03:54:11]req_shift_open_date done [03:54:11]produce_requested_data done [03:54:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139349,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [03:54:11]process_action_free close_receipt [03:54:11]json_value_free [03:54:11]json_value_free done [03:54:11]process_json_proto returns [03:54:11]Send response to host [03:54:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139349,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [03:54:11]free response buf [03:54:11]execute_script done [03:54:11]execute_script returns [03:54:11]free content buf [03:54:11]Sock 9.Close socket [03:54:11]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [03:57:10]OFD Sender: No OFD packet to send [03:57:15]OFD Sender: No OFD packet to send [03:57:20]OFD Sender: No OFD packet to send [03:57:25]OFD Sender: No OFD packet to send [03:57:30]OFD Sender: No OFD packet to send [03:57:35]OFD Sender: No OFD packet to send [03:57:40]OFD Sender: No OFD packet to send [03:57:45]OFD Sender: No OFD packet to send [03:57:50]OFD Sender: No OFD packet to send [03:57:55]OFD Sender: No OFD packet to send [03:58:00]OFD Sender: No OFD packet to send [03:58:05]OFD Sender: No OFD packet to send [03:58:10]OFD Sender: No OFD packet to send [03:58:15]OFD Sender: No OFD packet to send [03:58:20]OFD Sender: No OFD packet to send [03:58:25]OFD Sender: No OFD packet to send [03:58:30]OFD Sender: No OFD packet to send [03:58:35]OFD Sender: No OFD packet to send [03:58:40]OFD Sender: No OFD packet to send [03:58:45]OFD Sender: No OFD packet to send [03:58:50]OFD Sender: No OFD packet to send [03:58:55]OFD Sender: No OFD packet to send [03:59:00]OFD Sender: No OFD packet to send [03:59:05]OFD Sender: No OFD packet to send [03:59:10]OFD Sender: No OFD packet to send [03:59:15]OFD Sender: No OFD packet to send [03:59:20]OFD Sender: No OFD packet to send [03:59:25]OFD Sender: No OFD packet to send [03:59:30]OFD Sender: No OFD packet to send [03:59:35]OFD Sender: No OFD packet to send [03:59:40]OFD Sender: No OFD packet to send [03:59:45]OFD Sender: No OFD packet to send [03:59:50]OFD Sender: No OFD packet to send [03:59:55]OFD Sender: No OFD packet to send [04:00:00]OFD Sender: No OFD packet to send [04:00:05]OFD Sender: No OFD packet to send [04:00:10]OFD Sender: No OFD packet to send [04:00:15]OFD Sender: No OFD packet to send [04:00:20]OFD Sender: No OFD packet to send [04:00:25]OFD Sender: No OFD packet to send [04:00:30]OFD Sender: No OFD packet to send [04:00:35]OFD Sender: No OFD packet to send [04:00:40]OFD Sender: No OFD packet to send [04:00:45]OFD Sender: No OFD packet to send [04:00:50]OFD Sender: No OFD packet to send [04:00:55]OFD Sender: No OFD packet to send [04:01:00]OFD Sender: No OFD packet to send [04:01:05]OFD Sender: No OFD packet to send [04:01:10]OFD Sender: No OFD packet to send [04:01:15]OFD Sender: No OFD packet to send [04:01:20]OFD Sender: No OFD packet to send [04:01:25]OFD Sender: No OFD packet to send [04:01:30]OFD Sender: No OFD packet to send [04:01:35]OFD Sender: No OFD packet to send [04:01:40]OFD Sender: No OFD packet to send [04:01:45]OFD Sender: No OFD packet to send [04:01:50]OFD Sender: No OFD packet to send [04:01:55]OFD Sender: No OFD packet to send [04:02:00]OFD Sender: No OFD packet to send [04:02:05]OFD Sender: No OFD packet to send [04:02:10]OFD Sender: No OFD packet to send [04:02:15]OFD Sender: No OFD packet to send [04:02:20]OFD Sender: No OFD packet to send [04:02:25]OFD Sender: No OFD packet to send [04:02:30]OFD Sender: No OFD packet to send [04:02:35]OFD Sender: No OFD packet to send [04:02:40]OFD Sender: No OFD packet to send [04:02:45]OFD Sender: No OFD packet to send [04:02:50]OFD Sender: No OFD packet to send [04:02:55]OFD Sender: No OFD packet to send [04:03:00]OFD Sender: No OFD packet to send [04:03:05]OFD Sender: No OFD packet to send [04:03:10]OFD Sender: No OFD packet to send [04:03:15]OFD Sender: No OFD packet to send [04:03:20]OFD Sender: No OFD packet to send [04:03:25]OFD Sender: No OFD packet to send [04:03:30]OFD Sender: No OFD packet to send [04:03:35]OFD Sender: No OFD packet to send [04:03:40]OFD Sender: No OFD packet to send [04:03:45]OFD Sender: No OFD packet to send [04:03:50]OFD Sender: No OFD packet to send [04:03:55]OFD Sender: No OFD packet to send [04:04:00]OFD Sender: No OFD packet to send [04:04:05]OFD Sender: No OFD packet to send [04:04:10]OFD Sender: No OFD packet to send [04:04:15]OFD Sender: No OFD packet to send [04:04:20]OFD Sender: No OFD packet to send [04:04:25]OFD Sender: No OFD packet to send [04:04:30]OFD Sender: No OFD packet to send [04:04:35]OFD Sender: No OFD packet to send [04:04:40]OFD Sender: No OFD packet to send [04:04:45]OFD Sender: No OFD packet to send [04:04:50]OFD Sender: No OFD packet to send [04:04:55]OFD Sender: No OFD packet to send [04:05:00]OFD Sender: No OFD packet to send [04:05:05]OFD Sender: No OFD packet to send [04:05:10]OFD Sender: No OFD packet to send [04:05:15]OFD Sender: No OFD packet to send [04:05:20]OFD Sender: No OFD packet to send [04:05:25]OFD Sender: No OFD packet to send [04:05:30]OFD Sender: No OFD packet to send [04:05:35]OFD Sender: No OFD packet to send [04:05:40]OFD Sender: No OFD packet to send [04:05:45]OFD Sender: No OFD packet to send [04:05:50]OFD Sender: No OFD packet to send [04:05:55]OFD Sender: No OFD packet to send [04:06:00]OFD Sender: No OFD packet to send [04:06:05]OFD Sender: No OFD packet to send [04:06:10]OFD Sender: No OFD packet to send [04:06:15]OFD Sender: No OFD packet to send [04:06:20]OFD Sender: No OFD packet to send [04:06:25]OFD Sender: No OFD packet to send [04:06:30]OFD Sender: No OFD packet to send [04:06:35]OFD Sender: No OFD packet to send [04:06:40]OFD Sender: No OFD packet to send [04:06:45]OFD Sender: No OFD packet to send [04:06:50]OFD Sender: No OFD packet to send [04:06:55]OFD Sender: No OFD packet to send [04:07:00]OFD Sender: No OFD packet to send [04:07:05]OFD Sender: No OFD packet to send [04:07:10]OFD Sender: No OFD packet to send [04:07:15]OFD Sender: No OFD packet to send [04:07:20]OFD Sender: No OFD packet to send [04:07:25]OFD Sender: No OFD packet to send [04:07:30]OFD Sender: No OFD packet to send [04:07:35]OFD Sender: No OFD packet to send [04:07:40]OFD Sender: No OFD packet to send [04:07:45]OFD Sender: No OFD packet to send [04:07:50]OFD Sender: No OFD packet to send [04:07:55]OFD Sender: No OFD packet to send [04:08:00]OFD Sender: No OFD packet to send [04:08:05]OFD Sender: No OFD packet to send [04:08:10]OFD Sender: No OFD packet to send [04:08:15]OFD Sender: No OFD packet to send [04:08:20]OFD Sender: No OFD packet to send [04:08:25]OFD Sender: No OFD packet to send [04:08:30]OFD Sender: No OFD packet to send [04:08:35]OFD Sender: No OFD packet to send [04:08:40]OFD Sender: No OFD packet to send [04:08:45]OFD Sender: No OFD packet to send [04:08:50]OFD Sender: No OFD packet to send [04:08:55]OFD Sender: No OFD packet to send [04:09:00]OFD Sender: No OFD packet to send [04:09:05]OFD Sender: No OFD packet to send [04:09:10]OFD Sender: No OFD packet to send [04:09:15]OFD Sender: No OFD packet to send [04:09:20]OFD Sender: No OFD packet to send [04:09:25]OFD Sender: No OFD packet to send [04:09:30]OFD Sender: No OFD packet to send [04:09:35]OFD Sender: No OFD packet to send [04:09:40]OFD Sender: No OFD packet to send [04:09:45]OFD Sender: No OFD packet to send [04:09:50]OFD Sender: No OFD packet to send [04:09:55]OFD Sender: No OFD packet to send [04:10:00]OFD Sender: No OFD packet to send [04:10:05]OFD Sender: No OFD packet to send [04:10:10]OFD Sender: No OFD packet to send [04:10:15]OFD Sender: No OFD packet to send [04:10:20]OFD Sender: No OFD packet to send [04:10:25]OFD Sender: No OFD packet to send [04:10:30]OFD Sender: No OFD packet to send [04:10:35]OFD Sender: No OFD packet to send [04:10:40]OFD Sender: No OFD packet to send [04:10:45]OFD Sender: No OFD packet to send [04:10:46]accept exits with 10 [04:10:46]New connection [04:10:46]New thread 3067141476 created [04:10:46]Thread 3067284836 joined [04:10:46]Waiting for new connection... [04:10:46] Sock 10.Parse request [04:10:46]Sock 10.Check first char [04:10:46]Sock 10.First char is OK [04:10:46]request: POST /json_proto HTTP/1.0 [04:10:46]Method: POST [04:10:46]URL: /json_proto [04:10:46]Method is POST - this is cgi request [04:10:46]url: /json_proto [04:10:46]query_string will be loaded in cgi processing [04:10:46]execute_cgi json_proto POST (null) [04:10:46]execute_cgi path=json_proto method=POST [04:10:46]POST find Content-Length [04:10:46]Host: 172.17.50.196:8080 [04:10:46]Content-Length: 647 [04:10:46]Content-Type: application/json [04:10:46] [04:10:46]POST finish read [04:10:46]Found Content-Length = 647 [04:10:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335257", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:10:46]execute_script... [04:10: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 : (3)335257", "tax_sys" : 0, "items" : [ { "code": "4700000310036", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 0,5\u043B", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:10:46]POST & json_proto [04:10:46]process_json_proto [04:10:46]json parsed OK: [04:10:46]protocol is kg_v1.0 [04:10:46]action value=close_receipt [04:10:46]process_action close_receipt [04:10:46]cmd_close_receipt [04:10:46]MH_GetDate [04:10:46]Write to MH i2c: F0 00 00 44 30 63 [04:10:46]Write i2c OK [04:10:46]MH_I2C_Read... [04:10:46]Read from MH i2c: F0 [04:10:46]MH_I2C_Read... [04:10:46]Read from MH i2c: F0 09 00 [04:10:46]MH_I2C_Read... [04:10:46]Read from MH i2c: F0 09 00 44 30 00 CA B1 21 67 72 0D 1C 67 71 [04:10:46]GetLastDocTimeStamp 1730260450 [04:10:46]current date 1730261450 [04:10:46]FM_GetShiftState [04:10:46]SAM_PROTO_GetShiftState [04:10:46]wFMCommunicate request_size=4 [04:10:46]MH_SAM_APDU [04:10:46]CAPDU: 80 13 01 00 [04:10:46]Write to MH i2c: E2 08 00 45 30 80 13 01 00 00 00 00 00 F2 [04:10:46]Write i2c OK [04:10:46]MH_I2C_Read... [04:10:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:46]Read from MH i2c: E2 [04:10:46]MH_I2C_Read... [04:10:46]Read from MH i2c: E2 0E 00 [04:10:46]MH_I2C_Read... [04:10:46]Read from MH i2c: E2 0E 00 45 30 00 09 00 01 86 76 21 67 00 00 00 00 90 00 82 [04:10:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:10:46]wFMCommunicate OK [04:10:46]SAM_PROTO_GetShiftState done [04:10:46]FM_GetShiftState done [04:10:46]opened in 1730246278 [04:10:46]opened+sec_in_day 1730332678 [04:10:46]quantity*price = 4900 [04:10:46]sum+1 = 4901 [04:10:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 34 30.10.2024 04:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139350 ФПД: 80101402379789 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T041050&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139350&fm=80101402379789&tin=02508201610067®Number=0000000000091631&sum=4900 0 [04:10:48]StoreToDocumentArchive [04:10:48]shift 556 fd 139350 [04:10:48]save to /storage/0556/doc_00139350 [04:10:48]save last doc name /storage/0556/doc_00139350 to /storage/kkm_last_doc_name [04:10:48]save OK [04:10:48]Clear old archive folders... [04:10:48]ProcessDocumentItem done err = 0, tmpTLVsize=278 [04:10:48]tlvbuf is 0116BCB0 [04:10:48]SAM_PROTO_ClearQueue [04:10:48]wFMCommunicate request_size=4 [04:10:48]MH_SAM_APDU [04:10:48]CAPDU: 80 09 00 00 [04:10:48]Write to MH i2c: E2 08 00 52 30 80 09 00 00 00 00 00 00 F4 [04:10:48]Write i2c OK [04:10:48]MH_I2C_Read... [04:10:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:10:48]Read from MH i2c: E2 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 03 00 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 03 00 52 30 00 90 00 F6 [04:10:48]RAPDU: 90 00 [04:10:48]wFMCommunicate OK [04:10:48]SAM_PROTO_ClearQueue done [04:10:48]KKMCreateOFDPacket [04:10:48]OFDProtocolAddRootSTLVToBuf [04:10:48]FM_MakeSignedData [04:10:48]FM_MakeSignedData [04:10:48]SAM_PROTO_SignData [04:10:48]wFMCommunicate request_size=4 [04:10:48]MH_SAM_APDU [04:10:48]CAPDU: 80 0D 01 02 [04:10:48]Write to MH i2c: E2 08 00 53 30 80 0D 01 02 00 00 00 00 FC [04:10:48]Write i2c OK [04:10:48]MH_I2C_Read... [04:10:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:10:48]Read from MH i2c: E2 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 03 00 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 03 00 53 30 00 90 00 F7 [04:10:48]RAPDU: 90 00 [04:10:48]wFMCommunicate OK [04:10:48]wFMCommunicate request_size=255 [04:10:48]MH_SAM_APDU [04:10:48]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CA B1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [04:10:48]Write to MH i2c: E2 02 01 54 30 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CA B1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 CE [04:10:48]Write i2c OK [04:10:48]MH_I2C_Read... [04:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:48]Read from MH i2c: E2 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 03 00 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 03 00 54 30 00 90 00 F8 [04:10:48]RAPDU: 90 00 [04:10:48]wFMCommunicate OK [04:10:48]wFMCommunicate request_size=37 [04:10:48]MH_SAM_APDU [04:10:48]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 20 02 00 35 04 06 00 48 DA 0F A2 86 0D [04:10:48]Write to MH i2c: E2 28 00 55 30 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 20 02 00 35 04 06 00 48 DA 0F A2 86 0D 00 00 3C [04:10:48]Write i2c OK [04:10:48]MH_I2C_Read... [04:10:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:10:48]Read from MH i2c: E2 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 03 00 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 03 00 55 30 00 90 00 F9 [04:10:48]RAPDU: 90 00 [04:10:48]wFMCommunicate OK [04:10:48]wFMCommunicate request_size=4 [04:10:48]MH_SAM_APDU [04:10:48]CAPDU: 80 0D 03 02 [04:10:48]Write to MH i2c: E2 08 00 56 30 80 0D 03 02 00 00 00 00 01 [04:10:48]Write i2c OK [04:10:48]MH_I2C_Read... [04:10:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:10:48]Read from MH i2c: E2 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 0B 00 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 0B 00 56 30 00 BD FE FB 05 60 48 40 39 90 00 DE [04:10:48]RAPDU: BD FE FB 05 60 48 40 39 90 00 [04:10:48]wFMCommunicate OK [04:10:48]SAM_PROTO_SignData done [04:10:48]FM_MakeSignedData done [04:10:48]CreateOFDProtocolMessage [04:10:48]wFMCommunicate request_size=4 [04:10:48]MH_SAM_APDU [04:10:48]CAPDU: 80 11 00 00 [04:10:48]Write to MH i2c: E2 08 00 57 30 80 11 00 00 00 00 00 00 01 [04:10:48]Write i2c OK [04:10:48]MH_I2C_Read... [04:10:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:10:48]Read from MH i2c: E2 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 17 00 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: E2 17 00 57 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5C [04:10:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:10:48]wFMCommunicate OK [04:10:48]CreateOFDProtocolMessage done [04:10:48]OFDSenderStorePacket 139350 [04:10:48]StoreOFDPacket docnum=139350 [04:10:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 FC 21 22 01 66 22 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CA B1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 20 02 00 35 04 06 00 48 DA 0F A2 86 0D BD FE FB 05 60 48 40 39 [04:10:48]CheckFolder [04:10:48]dirname=/storage/ofd_packets [04:10:48]CheckFolder done [04:10:48]ProducePacketName [04:10:48]name=ofd_packets/00139350 [04:10:48]NVStorageSaveData ofd_packets/00139350 [04:10:48]File name is /storage/ofd_packets/00139350 [04:10:48]Write 328 bytes [04:10:48]NVStorageSaveData done [04:10:48]OFDSenderStorePacket done [04:10:48]KKMCreateOFDPacket done [04:10:48]NVStorageSaveData kkm_last_timestamp [04:10:48]File name is /storage/kkm_last_timestamp [04:10:48]Write 4 bytes [04:10:48]NVStorageSaveData done [04:10:48]ExternCall_PrintAddStr [04:10:48]wPrintStart [04:10:48]Write to MH i2c: 01 00 00 58 30 88 [04:10:48]Write i2c OK [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: 01 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: 01 07 00 [04:10:48]MH_I2C_Read... [04:10:48]Read from MH i2c: 01 07 00 58 30 00 00 00 00 00 FF 0F 9D [04:10:48]RasterBufferAndPrint [04:10:48]line Счет N : (3)335257 [04:10:48]line ИНН: 02508201610067 [04:10:48]line Контрольно-Кассовый Чек [04:10:48]line ПРОДАЖА [04:10:48]line Товар: 4700000310036 [04:10:48]line Вода Жалалабат 27 0,5л [04:10:48]line 1.000 * 49.00 [04:10:48]line = 49.00 [04:10:48]line НДС 12% НСП 1% [04:10:48]line > о реализуемом товаре [04:10:48]line ИТОГО: 49.00 [04:10:48]line НСП 1% : 0.43 [04:10:48]line НДС 12% : 5.20 [04:10:48]line Наличными: 49.00 [04:10:48]line Безнал.: 0.00 [04:10:48]line Место: АЗС № 101 "Партнер Нефть" [04:10:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:10:48]line СНО: Общий режим [04:10:48]line Чек 34 30.10.2024 04:10 [04:10:48]line Смена: 556 ФФД: 1.0 [04:10:48]line ЗНМ: 0300000081 [04:10:48]line РНМ: 0000000000091631 [04:10:48]line Версия ККМ: 001 [04:10:48]line ФМ: 0000000000874669 [04:10:48]line ФД: 139350 [04:10:48]line ФПД: 80101402379789 [04:10:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T041050&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139350&fm=80101402379789&tin=02508201610067®Number=0000000000091631&sum=4900 [04:10:48]line 0 [04:10:48]OFD Sender: Processing packet 139350 [packets to send 34, broken 33] [04:10:48]ProducePacketName [04:10:48]name=ofd_packets/00139350 [04:10:48]OFD Sender: To server: pG, [04:10:48]CommunicateWithHost lk.salyk.kg:30040 [04:10:48]ConnectInit lk.salyk.kg [04:10:48]written 0, free lines is 4095 [04:10:48]Connected sock=9 [04:10:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 FC 21 22 01 66 22 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 33 36 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 CA B1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 20 02 00 35 04 06 00 48 DA 0F A2 86 0D BD FE FB 05 60 48 40 39 [04:10:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6F 45 47 00 80 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 56 20 02 00 F4 03 04 00 7B 5D 21 67 B6 04 01 00 00 1C 20 73 32 A4 30 30 EA [04:10:49]CommunicateWithHost err = 0 [04:10:49]CheckOFDResponse [04:10:49]1017 (14) - 77093643461234 [04:10:49]1041 (16) - 0000000000874669 [04:10:49]1040 (4) - 139350 [04:10:49]1012 (4) - 29.10.2024 22:11 [04:10:49]1206 (1) - 0 [04:10:49]OFD Sender: Remove packet 139350 [04:10:49]ProducePacketName [04:10:49]name=ofd_packets/00139350 [04:10:49]NVStorageDeleteData [04:10:49]Write to MH i2c: 01 00 00 80 30 B0 [04:10:49]Write i2c OK [04:10:49]MH_I2C_Read... [04:10:49]Read from MH i2c: 01 [04:10:49]MH_I2C_Read... [04:10:49]Read from MH i2c: 01 07 00 [04:10:49]MH_I2C_Read... [04:10:49]Read from MH i2c: 01 07 00 80 30 00 00 00 00 00 12 0D D6 [04:10:49]RasterBufferAndPrint [04:10:49]line [04:10:49]line [04:10:49]line [04:10:49]line [04:10:49]line [04:10:49]written 0, free lines is 3353 [04:10:49]MH_Cut [04:10:49]Write to MH i2c: D1 01 00 87 30 01 89 [04:10:49]Write i2c OK [04:10:49]MH_I2C_Read... [04:10:49]Read from MH i2c: D1 [04:10:49]MH_I2C_Read... [04:10:49]Read from MH i2c: D1 01 00 [04:10:49]MH_I2C_Read... [04:10:49]Read from MH i2c: D1 01 00 87 30 00 88 [04:10:49]Write to MH i2c: 01 00 00 88 30 B8 [04:10:49]Write i2c OK [04:10:49]MH_I2C_Read... [04:10:49]OFD Sender: No OFD packet to send [04:10:49]*** Cut start [04:10:49]*** Partial cut [04:10:49]*** CUTSNS_PIN = 1 [04:10:50]*** CUTSNS_PIN = 0 [04:10:50]*** Brake cut motor [04:10:50]Read from MH i2c: 01 [04:10:50]MH_I2C_Read... [04:10:50]*** Stop cut motor [04:10:50]*** Cut end [04:10:50]Read from MH i2c: 01 07 00 [04:10:50]MH_I2C_Read... [04:10:50]Read from MH i2c: 01 07 00 88 30 00 00 00 00 00 FF 0F CD [04:10:50]process_action close_receipt done [04:10:50]requested_data is exist [04:10:50]produce_requested_data [04:10:50]requested_item fm.sn is exist - process it [04:10:50]wFMCommunicate request_size=4 [04:10:50]MH_SAM_APDU [04:10:50]CAPDU: 80 11 00 00 [04:10:50]Write to MH i2c: E2 08 00 89 30 80 11 00 00 00 00 00 00 33 [04:10:50]Write i2c OK [04:10:50]MH_I2C_Read... [04:10:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:10:50]Read from MH i2c: E2 [04:10:50]MH_I2C_Read... [04:10:50]Read from MH i2c: E2 17 00 [04:10:50]MH_I2C_Read... [04:10:50]Read from MH i2c: E2 17 00 89 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8E [04:10:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:10:50]wFMCommunicate OK [04:10:50]requested_item fd.num is exist - process it [04:10:50]SAM_PROTO_GetFieldsCounters [04:10:50]wFMCommunicate request_size=4 [04:10:50]MH_SAM_APDU [04:10:50]CAPDU: 80 13 00 00 [04:10:50]Write to MH i2c: E2 08 00 8A 30 80 13 00 00 00 00 00 00 36 [04:10:50]Write i2c OK [04:10:50]MH_I2C_Read... [04:10:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:10:50]Read from MH i2c: E2 [04:10:50]MH_I2C_Read... [04:10:50]Read from MH i2c: E2 62 00 [04:10:50]MH_I2C_Read... [04:10:50]Read from MH i2c: E2 62 00 8A 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 56 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 66 [04:10:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 56 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:10:50]wFMCommunicate OK [04:10:50]SAM_PROTO_GetFieldsCounters done [04:10:50]requested_item shift.num is exist - process it [04:10:50]requested_item shift.opened is exist - process it [04:10:50]req_shift_opened [04:10:50]FM_GetShiftState [04:10:50]SAM_PROTO_GetShiftState [04:10:50]wFMCommunicate request_size=4 [04:10:50]MH_SAM_APDU [04:10:50]CAPDU: 80 13 01 00 [04:10:50]Write to MH i2c: E2 08 00 8B 30 80 13 01 00 00 00 00 00 38 [04:10:50]Write i2c OK [04:10:50]MH_I2C_Read... [04:10:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:10:50]Read from MH i2c: E2 [04:10:50]MH_I2C_Read... [04:10:50]Read from MH i2c: E2 0E 00 [04:10:50]MH_I2C_Read... [04:10:50]Read from MH i2c: E2 0E 00 8B 30 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C8 [04:10:50]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:10:50]wFMCommunicate OK [04:10:50]SAM_PROTO_GetShiftState done [04:10:50]FM_GetShiftState done [04:10:50]req_shift_opened done [04:10:50]requested_item shift.open_date is exist - process it [04:10:50]req_shift_open_date [04:10:50]req_shift_open_date done [04:10:50]produce_requested_data done [04:10:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139350,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [04:10:50]process_action_free close_receipt [04:10:50]json_value_free [04:10:50]json_value_free done [04:10:50]process_json_proto returns [04:10:50]Send response to host [04:10:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139350,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [04:10:50]free response buf [04:10:50]execute_script done [04:10:50]execute_script returns [04:10:50]free content buf [04:10:50]Sock 10.Close socket [04:10:50]Sock 10.Thread stoped [04:10:54]OFD Sender: No OFD packet to send [04:10:59]OFD Sender: No OFD packet to send [04:11:04]OFD Sender: No OFD packet to send [04:11:09]OFD Sender: No OFD packet to send [04:11:14]OFD Sender: No OFD packet to send [04:11:19]OFD Sender: No OFD packet to send [04:11:24]OFD Sender: No OFD packet to send [04:11:29]OFD Sender: No OFD packet to send [04:11:34]OFD Sender: No OFD packet to send [04:11:39]OFD Sender: No OFD packet to send [04:11:44]OFD Sender: No OFD packet to send [04:11:49]OFD Sender: No OFD packet to send [04:11:54]OFD Sender: No OFD packet to send [04:11:59]OFD Sender: No OFD packet to send [04:12:04]OFD Sender: No OFD packet to send [04:12:09]OFD Sender: No OFD packet to send [04:12:14]OFD Sender: No OFD packet to send [04:12:19]OFD Sender: No OFD packet to send [04:12:24]OFD Sender: No OFD packet to send [04:12:29]OFD Sender: No OFD packet to send [04:12:34]OFD Sender: No OFD packet to send [04:12:39]OFD Sender: No OFD packet to send [04:12:44]OFD Sender: No OFD packet to send [04:12:49]OFD Sender: No OFD packet to send [04:12:54]OFD Sender: No OFD packet to send [04:12:59]OFD Sender: No OFD packet to send [04:13:04]OFD Sender: No OFD packet to send [04:13:09]OFD Sender: No OFD packet to send [04:13:14]OFD Sender: No OFD packet to send [04:13:19]OFD Sender: No OFD packet to send [04:13:24]OFD Sender: No OFD packet to send [04:13:29]OFD Sender: No OFD packet to send [04:13:34]OFD Sender: No OFD packet to send [04:13:39]OFD Sender: No OFD packet to send [04:13:44]OFD Sender: No OFD packet to send [04:13:49]OFD Sender: No OFD packet to send [04:13:54]OFD Sender: No OFD packet to send [04:13:59]OFD Sender: No OFD packet to send [04:14:04]OFD Sender: No OFD packet to send [04:14:09]OFD Sender: No OFD packet to send [04:14:14]OFD Sender: No OFD packet to send [04:14:17]accept exits with 8 [04:14:17]New connection [04:14:17]New thread 3067284836 created [04:14:17]Thread 3067141476 joined [04:14:17]Waiting for new connection... [04:14:17] Sock 8.Parse request [04:14:17]Sock 8.Check first char [04:14:17]Sock 8.First char is OK [04:14:17]request: POST /json_proto HTTP/1.0 [04:14:17]Method: POST [04:14:17]URL: /json_proto [04:14:17]Method is POST - this is cgi request [04:14:17]url: /json_proto [04:14:17]query_string will be loaded in cgi processing [04:14:17]execute_cgi json_proto POST (null) [04:14:17]execute_cgi path=json_proto method=POST [04:14:17]POST find Content-Length [04:14:17]Host: 172.17.50.196:8080 [04:14:17]Content-Length: 900 [04:14:17]Content-Type: application/json [04:14:17] [04:14:17]POST finish read [04:14:17]Found Content-Length = 900 [04:14:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335258", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:14:17]execute_script... [04:14: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 : (3)335258", "tax_sys" : 0, "items" : [ { "code": "5449000005489", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B \u0431/\u0433", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:14:17]POST & json_proto [04:14:17]process_json_proto [04:14:17]json parsed OK: [04:14:17]protocol is kg_v1.0 [04:14:17]action value=close_receipt [04:14:17]process_action close_receipt [04:14:17]cmd_close_receipt [04:14:17]MH_GetDate [04:14:17]Write to MH i2c: F0 00 00 8C 30 AB [04:14:17]Write i2c OK [04:14:17]MH_I2C_Read... [04:14:17]Read from MH i2c: F0 [04:14:17]MH_I2C_Read... [04:14:17]Read from MH i2c: F0 09 00 [04:14:17]MH_I2C_Read... [04:14:17]Read from MH i2c: F0 09 00 8C 30 00 9C B2 21 67 72 0D 1C 67 8C [04:14:17]GetLastDocTimeStamp 1730261450 [04:14:17]current date 1730261660 [04:14:17]FM_GetShiftState [04:14:17]SAM_PROTO_GetShiftState [04:14:17]wFMCommunicate request_size=4 [04:14:17]MH_SAM_APDU [04:14:17]CAPDU: 80 13 01 00 [04:14:17]Write to MH i2c: E2 08 00 8D 30 80 13 01 00 00 00 00 00 3A [04:14:17]Write i2c OK [04:14:17]MH_I2C_Read... [04:14:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:17]Read from MH i2c: E2 [04:14:17]MH_I2C_Read... [04:14:17]Read from MH i2c: E2 0E 00 [04:14:17]MH_I2C_Read... [04:14:17]Read from MH i2c: E2 0E 00 8D 30 00 09 00 01 86 76 21 67 00 00 00 00 90 00 CA [04:14:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:14:17]wFMCommunicate OK [04:14:17]SAM_PROTO_GetShiftState done [04:14:17]FM_GetShiftState done [04:14:17]opened in 1730246278 [04:14:17]opened+sec_in_day 1730332678 [04:14:17]quantity*price = 5000 [04:14:17]sum+1 = 5001 [04:14:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5449000006271 Напиток Фанта 1л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 35 30.10.2024 04:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139351 ФПД: 137567529323575 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T041420&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139351&fm=137567529323575&tin=02508201610067®Number=0000000000091631&sum=17500 0 [04:14:18]StoreToDocumentArchive [04:14:18]shift 556 fd 139351 [04:14:18]save to /storage/0556/doc_00139351 [04:14:18]save last doc name /storage/0556/doc_00139351 to /storage/kkm_last_doc_name [04:14:18]save OK [04:14:18]Clear old archive folders... [04:14:18]ProcessDocumentItem done err = 0, tmpTLVsize=376 [04:14:18]tlvbuf is B6F2B820 [04:14:18]SAM_PROTO_ClearQueue [04:14:18]wFMCommunicate request_size=4 [04:14:18]MH_SAM_APDU [04:14:18]CAPDU: 80 09 00 00 [04:14:18]Write to MH i2c: E2 08 00 9A 30 80 09 00 00 00 00 00 00 3C [04:14:18]Write i2c OK [04:14:18]MH_I2C_Read... [04:14:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:14:18]Read from MH i2c: E2 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 03 00 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 03 00 9A 30 00 90 00 3E [04:14:18]RAPDU: 90 00 [04:14:18]wFMCommunicate OK [04:14:18]SAM_PROTO_ClearQueue done [04:14:18]KKMCreateOFDPacket [04:14:18]OFDProtocolAddRootSTLVToBuf [04:14:18]FM_MakeSignedData [04:14:18]FM_MakeSignedData [04:14:18]SAM_PROTO_SignData [04:14:18]wFMCommunicate request_size=4 [04:14:18]MH_SAM_APDU [04:14:18]CAPDU: 80 0D 01 02 [04:14:18]Write to MH i2c: E2 08 00 9B 30 80 0D 01 02 00 00 00 00 44 [04:14:18]Write i2c OK [04:14:18]MH_I2C_Read... [04:14:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:14:18]Read from MH i2c: E2 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 03 00 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 03 00 9B 30 00 90 00 3F [04:14:18]RAPDU: 90 00 [04:14:18]wFMCommunicate OK [04:14:18]wFMCommunicate request_size=255 [04:14:18]MH_SAM_APDU [04:14:18]CAPDU: 80 0D 02 02 FA 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 [04:14:18]Write to MH i2c: E2 02 01 9C 30 80 0D 02 02 FA 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 00 00 CA [04:14:18]Write i2c OK [04:14:18]MH_I2C_Read... [04:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:18]Read from MH i2c: E2 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 03 00 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 03 00 9C 30 00 90 00 40 [04:14:18]RAPDU: 90 00 [04:14:18]wFMCommunicate OK [04:14:18]wFMCommunicate request_size=135 [04:14:18]MH_SAM_APDU [04:14:18]CAPDU: 80 0D 02 02 82 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 9C B2 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 20 02 00 35 04 06 00 7D 1D EF B7 CC 37 [04:14:18]Write to MH i2c: E2 8A 00 9D 30 80 0D 02 02 82 00 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 9C B2 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 20 02 00 35 04 06 00 7D 1D EF B7 CC 37 00 00 56 [04:14:18]Write i2c OK [04:14:18]MH_I2C_Read... [04:14:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:14:18]Read from MH i2c: E2 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 03 00 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 03 00 9D 30 00 90 00 41 [04:14:18]RAPDU: 90 00 [04:14:18]wFMCommunicate OK [04:14:18]wFMCommunicate request_size=4 [04:14:18]MH_SAM_APDU [04:14:18]CAPDU: 80 0D 03 02 [04:14:18]Write to MH i2c: E2 08 00 9E 30 80 0D 03 02 00 00 00 00 49 [04:14:18]Write i2c OK [04:14:18]MH_I2C_Read... [04:14:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:14:18]Read from MH i2c: E2 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 0B 00 [04:14:18]MH_I2C_Read... [04:14:18]Read from MH i2c: E2 0B 00 9E 30 00 D4 1A 9C 52 D0 2F F8 FE 90 00 1B [04:14:18]RAPDU: D4 1A 9C 52 D0 2F F8 FE 90 00 [04:14:18]wFMCommunicate OK [04:14:18]SAM_PROTO_SignData done [04:14:18]FM_MakeSignedData done [04:14:18]CreateOFDProtocolMessage [04:14:18]wFMCommunicate request_size=4 [04:14:18]MH_SAM_APDU [04:14:18]CAPDU: 80 11 00 00 [04:14:18]Write to MH i2c: E2 08 00 9F 30 80 11 00 00 00 00 00 00 49 [04:14:18]Write i2c OK [04:14:18]MH_I2C_Read... [04:14:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:19]Read from MH i2c: E2 [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: E2 17 00 [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: E2 17 00 9F 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [04:14:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:14:19]wFMCommunicate OK [04:14:19]CreateOFDProtocolMessage done [04:14:19]OFDSenderStorePacket 139351 [04:14:19]StoreOFDPacket docnum=139351 [04:14:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8C 01 00 00 35 35 84 01 5F 47 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 9C B2 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 20 02 00 35 04 06 00 7D 1D EF B7 CC 37 D4 1A 9C 52 D0 2F F8 FE [04:14:19]CheckFolder [04:14:19]dirname=/storage/ofd_packets [04:14:19]CheckFolder done [04:14:19]ProducePacketName [04:14:19]name=ofd_packets/00139351 [04:14:19]NVStorageSaveData ofd_packets/00139351 [04:14:19]File name is /storage/ofd_packets/00139351 [04:14:19]Write 426 bytes [04:14:19]NVStorageSaveData done [04:14:19]OFDSenderStorePacket done [04:14:19]KKMCreateOFDPacket done [04:14:19]NVStorageSaveData kkm_last_timestamp [04:14:19]File name is /storage/kkm_last_timestamp [04:14:19]Write 4 bytes [04:14:19]NVStorageSaveData done [04:14:19]ExternCall_PrintAddStr [04:14:19]wPrintStart [04:14:19]Write to MH i2c: 01 00 00 A0 30 D0 [04:14:19]Write i2c OK [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: 01 [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: 01 07 00 [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: 01 07 00 A0 30 00 00 00 00 00 FF 0F E5 [04:14:19]RasterBufferAndPrint [04:14:19]line Счет N : (3)335258 [04:14:19]line ИНН: 02508201610067 [04:14:19]line Контрольно-Кассовый Чек [04:14:19]line ПРОДАЖА [04:14:19]line Товар: 5449000005489 [04:14:19]line Вода Бонаква 1л б/г [04:14:19]line 1.000 * 50.00 [04:14:19]line = 50.00 [04:14:19]line НДС 12% НСП 1% [04:14:19]line > о реализуемом товаре [04:14:19]line Товар: 5449000006271 [04:14:19]line Напиток Фанта 1л [04:14:19]line 1.000 * 125.00 [04:14:19]line = 125.00 [04:14:19]line НДС 12% НСП 1% [04:14:19]line > о реализуемом товаре [04:14:19]line ИТОГО: 175.00 [04:14:19]line НСП 1% : 1.55 [04:14:19]line НДС 12% : 18.58 [04:14:19]line Наличными: 175.00 [04:14:19]line Безнал.: 0.00 [04:14:19]line Место: АЗС № 101 "Партнер Нефть" [04:14:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:14:19]line СНО: Общий режим [04:14:19]line Чек 35 30.10.2024 04:14 [04:14:19]line Смена: 556 ФФД: 1.0 [04:14:19]line ЗНМ: 0300000081 [04:14:19]line РНМ: 0000000000091631 [04:14:19]line Версия ККМ: 001 [04:14:19]line ФМ: 0000000000874669 [04:14:19]line ФД: 139351 [04:14:19]line ФПД: 137567529323575 [04:14:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T041420&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139351&fm=137567529323575&tin=02508201610067®Number=0000000000091631&sum=17500 [04:14:19]line 0 [04:14:19]OFD Sender: Processing packet 139351 [packets to send 34, broken 33] [04:14:19]ProducePacketName [04:14:19]name=ofd_packets/00139351 [04:14:19]OFD Sender: To server: pG, [04:14:19]CommunicateWithHost lk.salyk.kg:30040 [04:14:19]ConnectInit lk.salyk.kg [04:14:19]written 0, free lines is 4095 [04:14:19]Connected sock=10 [04:14:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8C 01 00 00 35 35 84 01 5F 47 5A 03 01 00 03 00 78 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 35 34 38 39 06 04 21 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 9C B2 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 20 02 00 35 04 06 00 7D 1D EF B7 CC 37 D4 1A 9C 52 D0 2F F8 FE [04:14:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 19 82 47 00 CF AE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 57 20 02 00 F4 03 04 00 4E 5E 21 67 B6 04 01 00 00 E2 3C 01 EA 9F D9 95 D4 [04:14:19]CommunicateWithHost err = 0 [04:14:19]CheckOFDResponse [04:14:19]1017 (14) - 77093643461234 [04:14:19]1041 (16) - 0000000000874669 [04:14:19]1040 (4) - 139351 [04:14:19]1012 (4) - 29.10.2024 22:14 [04:14:19]1206 (1) - 0 [04:14:19]OFD Sender: Remove packet 139351 [04:14:19]ProducePacketName [04:14:19]name=ofd_packets/00139351 [04:14:19]NVStorageDeleteData [04:14:19]Write to MH i2c: 01 00 00 CE 30 FE [04:14:19]Write i2c OK [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: 01 [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: 01 07 00 [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: 01 07 00 CE 30 00 00 00 00 00 B6 0C C7 [04:14:19]RasterBufferAndPrint [04:14:19]line [04:14:19]line [04:14:19]line [04:14:19]line [04:14:19]line [04:14:19]written 0, free lines is 3262 [04:14:19]MH_Cut [04:14:19]Write to MH i2c: D1 01 00 D5 30 01 D7 [04:14:19]Write i2c OK [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: D1 [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: D1 01 00 [04:14:19]MH_I2C_Read... [04:14:19]Read from MH i2c: D1 01 00 D5 30 00 D6 [04:14:19]Write to MH i2c: 01 00 00 D6 30 06 [04:14:19]Write i2c OK [04:14:19]MH_I2C_Read... [04:14:20]OFD Sender: No OFD packet to send [04:14:20]*** Cut start [04:14:20]*** Partial cut [04:14:20]*** CUTSNS_PIN = 1 [04:14:20]*** CUTSNS_PIN = 0 [04:14:20]*** Brake cut motor [04:14:21]Read from MH i2c: 01 [04:14:21]MH_I2C_Read... [04:14:21]*** Stop cut motor [04:14:21]*** Cut end [04:14:21]Read from MH i2c: 01 07 00 [04:14:21]MH_I2C_Read... [04:14:21]Read from MH i2c: 01 07 00 D6 30 00 00 00 00 00 FF 0F 1B [04:14:21]process_action close_receipt done [04:14:21]requested_data is exist [04:14:21]produce_requested_data [04:14:21]requested_item fm.sn is exist - process it [04:14:21]wFMCommunicate request_size=4 [04:14:21]MH_SAM_APDU [04:14:21]CAPDU: 80 11 00 00 [04:14:21]Write to MH i2c: E2 08 00 D7 30 80 11 00 00 00 00 00 00 81 [04:14:21]Write i2c OK [04:14:21]MH_I2C_Read... [04:14:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:14:21]Read from MH i2c: E2 [04:14:21]MH_I2C_Read... [04:14:21]Read from MH i2c: E2 17 00 [04:14:21]MH_I2C_Read... [04:14:21]Read from MH i2c: E2 17 00 D7 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DC [04:14:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:14:21]wFMCommunicate OK [04:14:21]requested_item fd.num is exist - process it [04:14:21]SAM_PROTO_GetFieldsCounters [04:14:21]wFMCommunicate request_size=4 [04:14:21]MH_SAM_APDU [04:14:21]CAPDU: 80 13 00 00 [04:14:21]Write to MH i2c: E2 08 00 D8 30 80 13 00 00 00 00 00 00 84 [04:14:21]Write i2c OK [04:14:21]MH_I2C_Read... [04:14:21]Read from MH i2c: E2 [04:14:21]MH_I2C_Read... [04:14:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:14:21]Read from MH i2c: E2 62 00 [04:14:21]MH_I2C_Read... [04:14:21]Read from MH i2c: E2 62 00 D8 30 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 57 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 B8 [04:14:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 57 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:14:21]wFMCommunicate OK [04:14:21]SAM_PROTO_GetFieldsCounters done [04:14:21]requested_item shift.num is exist - process it [04:14:21]requested_item shift.opened is exist - process it [04:14:21]req_shift_opened [04:14:21]FM_GetShiftState [04:14:21]SAM_PROTO_GetShiftState [04:14:21]wFMCommunicate request_size=4 [04:14:21]MH_SAM_APDU [04:14:21]CAPDU: 80 13 01 00 [04:14:21]Write to MH i2c: E2 08 00 D9 30 80 13 01 00 00 00 00 00 86 [04:14:21]Write i2c OK [04:14:21]MH_I2C_Read... [04:14:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:14:21]Read from MH i2c: E2 [04:14:21]MH_I2C_Read... [04:14:21]Read from MH i2c: E2 0E 00 [04:14:21]MH_I2C_Read... [04:14:21]Read from MH i2c: E2 0E 00 D9 30 00 09 00 01 86 76 21 67 00 00 00 00 90 00 16 [04:14:21]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:14:21]wFMCommunicate OK [04:14:21]SAM_PROTO_GetShiftState done [04:14:21]FM_GetShiftState done [04:14:21]req_shift_opened done [04:14:21]requested_item shift.open_date is exist - process it [04:14:21]req_shift_open_date [04:14:21]req_shift_open_date done [04:14:21]produce_requested_data done [04:14:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139351,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [04:14:21]process_action_free close_receipt [04:14:21]json_value_free [04:14:21]json_value_free done [04:14:21]process_json_proto returns [04:14:21]Send response to host [04:14:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139351,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [04:14:21]free response buf [04:14:21]execute_script done [04:14:21]execute_script returns [04:14:21]free content buf [04:14:21]Sock 8.Close socket [04:14:21]Sock 8.Thread stoped [04:14:25]OFD Sender: No OFD packet to send [04:14:30]OFD Sender: No OFD packet to send [04:14:35]OFD Sender: No OFD packet to send [04:14:40]OFD Sender: No OFD packet to send [04:14:45]OFD Sender: No OFD packet to send [04:14:50]OFD Sender: No OFD packet to send [04:14:55]OFD Sender: No OFD packet to send [04:15:00]OFD Sender: No OFD packet to send [04:15:05]OFD Sender: No OFD packet to send [04:15:10]OFD Sender: No OFD packet to send [04:15:15]OFD Sender: No OFD packet to send [04:15:20]OFD Sender: No OFD packet to send [04:15:25]OFD Sender: No OFD packet to send [04:15:30]OFD Sender: No OFD packet to send [04:15:35]OFD Sender: No OFD packet to send [04:15:40]OFD Sender: No OFD packet to send [04:15:45]OFD Sender: No OFD packet to send [04:15:50]OFD Sender: No OFD packet to send [04:15:55]OFD Sender: No OFD packet to send [04:16:00]OFD Sender: No OFD packet to send [04:16:05]OFD Sender: No OFD packet to send [04:16:10]OFD Sender: No OFD packet to send [04:16:15]OFD Sender: No OFD packet to send [04:16:20]OFD Sender: No OFD packet to send [04:16:25]OFD Sender: No OFD packet to send [04:16:29]accept exits with 9 [04:16:29]New connection [04:16:29]New thread 3067141476 created [04:16:29]Thread 3067284836 joined [04:16:29]Waiting for new connection... [04:16:29] Sock 9.Parse request [04:16:29]Sock 9.Check first char [04:16:29]Sock 9.First char is OK [04:16:29]request: POST /json_proto HTTP/1.0 [04:16:29]Method: POST [04:16:29]URL: /json_proto [04:16:29]Method is POST - this is cgi request [04:16:29]url: /json_proto [04:16:29]query_string will be loaded in cgi processing [04:16:29]execute_cgi json_proto POST (null) [04:16:29]execute_cgi path=json_proto method=POST [04:16:29]POST find Content-Length [04:16:29]Host: 172.17.50.196:8080 [04:16:29]Content-Length: 698 [04:16:29]Content-Type: application/json [04:16:29] [04:16:29]POST finish read [04:16:29]Found Content-Length = 698 [04:16:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335259", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:29]execute_script... [04:16: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 : (3)335259", "tax_sys" : 0, "items" : [ { "code": "4700000480364", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u044D\u043A\u0437\u043E\u0442\u0438\u043A 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:16:29]POST & json_proto [04:16:29]process_json_proto [04:16:29]json parsed OK: [04:16:29]protocol is kg_v1.0 [04:16:29]action value=close_receipt [04:16:29]process_action close_receipt [04:16:29]cmd_close_receipt [04:16:29]MH_GetDate [04:16:29]Write to MH i2c: F0 00 00 DA 30 F9 [04:16:29]Write i2c OK [04:16:29]MH_I2C_Read... [04:16:29]Read from MH i2c: F0 [04:16:29]MH_I2C_Read... [04:16:29]Read from MH i2c: F0 09 00 [04:16:29]MH_I2C_Read... [04:16:29]Read from MH i2c: F0 09 00 DA 30 00 21 B3 21 67 72 0D 1C 67 60 [04:16:29]GetLastDocTimeStamp 1730261660 [04:16:29]current date 1730261793 [04:16:29]FM_GetShiftState [04:16:29]SAM_PROTO_GetShiftState [04:16:29]wFMCommunicate request_size=4 [04:16:29]MH_SAM_APDU [04:16:29]CAPDU: 80 13 01 00 [04:16:29]Write to MH i2c: E2 08 00 DB 30 80 13 01 00 00 00 00 00 88 [04:16:29]Write i2c OK [04:16:29]MH_I2C_Read... [04:16:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:29]Read from MH i2c: E2 [04:16:29]MH_I2C_Read... [04:16:29]Read from MH i2c: E2 0E 00 [04:16:29]MH_I2C_Read... [04:16:29]Read from MH i2c: E2 0E 00 DB 30 00 09 00 01 86 76 21 67 00 00 00 00 90 00 18 [04:16:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:16:29]wFMCommunicate OK [04:16:29]SAM_PROTO_GetShiftState done [04:16:29]FM_GetShiftState done [04:16:29]opened in 1730246278 [04:16:29]opened+sec_in_day 1730332678 [04:16:29]quantity*price = 19000 [04:16:29]sum+1 = 19001 [04:16:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 36 30.10.2024 04:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139352 ФПД: 184173923011840 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T041633&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139352&fm=184173923011840&tin=02508201610067®Number=0000000000091631&sum=19000 0 [04:16:31]StoreToDocumentArchive [04:16:31]shift 556 fd 139352 [04:16:31]save to /storage/0556/doc_00139352 [04:16:31]save last doc name /storage/0556/doc_00139352 to /storage/kkm_last_doc_name [04:16:31]save OK [04:16:31]Clear old archive folders... [04:16:31]ProcessDocumentItem done err = 0, tmpTLVsize=299 [04:16:31]tlvbuf is 011A9470 [04:16:31]SAM_PROTO_ClearQueue [04:16:31]wFMCommunicate request_size=4 [04:16:31]MH_SAM_APDU [04:16:31]CAPDU: 80 09 00 00 [04:16:31]Write to MH i2c: E2 08 00 E8 30 80 09 00 00 00 00 00 00 8A [04:16:31]Write i2c OK [04:16:31]MH_I2C_Read... [04:16:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:16:31]Read from MH i2c: E2 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 03 00 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 03 00 E8 30 00 90 00 8C [04:16:31]RAPDU: 90 00 [04:16:31]wFMCommunicate OK [04:16:31]SAM_PROTO_ClearQueue done [04:16:31]KKMCreateOFDPacket [04:16:31]OFDProtocolAddRootSTLVToBuf [04:16:31]FM_MakeSignedData [04:16:31]FM_MakeSignedData [04:16:31]SAM_PROTO_SignData [04:16:31]wFMCommunicate request_size=4 [04:16:31]MH_SAM_APDU [04:16:31]CAPDU: 80 0D 01 02 [04:16:31]Write to MH i2c: E2 08 00 E9 30 80 0D 01 02 00 00 00 00 92 [04:16:31]Write i2c OK [04:16:31]MH_I2C_Read... [04:16:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:16:31]Read from MH i2c: E2 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 03 00 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 03 00 E9 30 00 90 00 8D [04:16:31]RAPDU: 90 00 [04:16:31]wFMCommunicate OK [04:16:31]wFMCommunicate request_size=255 [04:16:31]MH_SAM_APDU [04:16:31]CAPDU: 80 0D 02 02 FA 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 21 B3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 [04:16:31]Write to MH i2c: E2 02 01 EA 30 80 0D 02 02 FA 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 21 B3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 00 00 69 [04:16:31]Write i2c OK [04:16:31]MH_I2C_Read... [04:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:31]Read from MH i2c: E2 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 03 00 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 03 00 EA 30 00 90 00 8E [04:16:31]RAPDU: 90 00 [04:16:31]wFMCommunicate OK [04:16:31]wFMCommunicate request_size=58 [04:16:31]MH_SAM_APDU [04:16:31]CAPDU: 80 0D 02 02 35 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 20 02 00 35 04 06 00 A7 81 55 42 0D 00 [04:16:31]Write to MH i2c: E2 3D 00 EB 30 80 0D 02 02 35 00 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 20 02 00 35 04 06 00 A7 81 55 42 0D 00 00 00 CD [04:16:31]Write i2c OK [04:16:31]MH_I2C_Read... [04:16:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:16:31]Read from MH i2c: E2 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 03 00 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 03 00 EB 30 00 90 00 8F [04:16:31]RAPDU: 90 00 [04:16:31]wFMCommunicate OK [04:16:31]wFMCommunicate request_size=4 [04:16:31]MH_SAM_APDU [04:16:31]CAPDU: 80 0D 03 02 [04:16:31]Write to MH i2c: E2 08 00 EC 30 80 0D 03 02 00 00 00 00 97 [04:16:31]Write i2c OK [04:16:31]MH_I2C_Read... [04:16:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:16:31]Read from MH i2c: E2 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 0B 00 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 0B 00 EC 30 00 1F 37 46 02 72 C7 DE 58 90 00 A5 [04:16:31]RAPDU: 1F 37 46 02 72 C7 DE 58 90 00 [04:16:31]wFMCommunicate OK [04:16:31]SAM_PROTO_SignData done [04:16:31]FM_MakeSignedData done [04:16:31]CreateOFDProtocolMessage [04:16:31]wFMCommunicate request_size=4 [04:16:31]MH_SAM_APDU [04:16:31]CAPDU: 80 11 00 00 [04:16:31]Write to MH i2c: E2 08 00 ED 30 80 11 00 00 00 00 00 00 97 [04:16:31]Write i2c OK [04:16:31]MH_I2C_Read... [04:16:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:31]Read from MH i2c: E2 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 17 00 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: E2 17 00 ED 30 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F2 [04:16:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:16:31]wFMCommunicate OK [04:16:31]CreateOFDProtocolMessage done [04:16:31]OFDSenderStorePacket 139352 [04:16:31]StoreOFDPacket docnum=139352 [04:16:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3F 01 00 00 75 1B 37 01 E6 FD 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 21 B3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 20 02 00 35 04 06 00 A7 81 55 42 0D 00 1F 37 46 02 72 C7 DE 58 [04:16:31]CheckFolder [04:16:31]dirname=/storage/ofd_packets [04:16:31]CheckFolder done [04:16:31]ProducePacketName [04:16:31]name=ofd_packets/00139352 [04:16:31]NVStorageSaveData ofd_packets/00139352 [04:16:31]File name is /storage/ofd_packets/00139352 [04:16:31]Write 349 bytes [04:16:31]NVStorageSaveData done [04:16:31]OFDSenderStorePacket done [04:16:31]KKMCreateOFDPacket done [04:16:31]NVStorageSaveData kkm_last_timestamp [04:16:31]File name is /storage/kkm_last_timestamp [04:16:31]Write 4 bytes [04:16:31]NVStorageSaveData done [04:16:31]ExternCall_PrintAddStr [04:16:31]wPrintStart [04:16:31]Write to MH i2c: 01 00 00 EE 30 1E [04:16:31]Write i2c OK [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: 01 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: 01 07 00 [04:16:31]MH_I2C_Read... [04:16:31]Read from MH i2c: 01 07 00 EE 30 00 00 00 00 00 FF 0F 33 [04:16:31]RasterBufferAndPrint [04:16:31]line Счет N : (3)335259 [04:16:31]line ИНН: 02508201610067 [04:16:31]line Контрольно-Кассовый Чек [04:16:31]line ПРОДАЖА [04:16:31]line Товар: 4700000480364 [04:16:31]line Напиток энерг Nitro экзотик 0.45 ж/б [04:16:31]line 2.000 * 95.00 [04:16:31]line = 190.00 [04:16:31]line НДС 12% НСП 1% [04:16:31]line > о реализуемом товаре [04:16:31]line ИТОГО: 190.00 [04:16:31]line НСП 1% : 1.68 [04:16:31]line НДС 12% : 20.18 [04:16:31]line Наличными: 190.00 [04:16:31]line Безнал.: 0.00 [04:16:31]line Место: АЗС № 101 "Партнер Нефть" [04:16:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:16:31]line СНО: Общий режим [04:16:31]line Чек 36 30.10.2024 04:16 [04:16:31]line Смена: 556 ФФД: 1.0 [04:16:31]line ЗНМ: 0300000081 [04:16:31]line РНМ: 0000000000091631 [04:16:31]line Версия ККМ: 001 [04:16:31]line ФМ: 0000000000874669 [04:16:31]line ФД: 139352 [04:16:31]line ФПД: 184173923011840 [04:16:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T041633&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139352&fm=184173923011840&tin=02508201610067®Number=0000000000091631&sum=19000 [04:16:32]line 0 [04:16:32]OFD Sender: Processing packet 139352 [packets to send 34, broken 33] [04:16:32]ProducePacketName [04:16:32]name=ofd_packets/00139352 [04:16:32]OFD Sender: To server: pG, [04:16:32]CommunicateWithHost lk.salyk.kg:30040 [04:16:32]ConnectInit lk.salyk.kg [04:16:32]written 0, free lines is 4095 [04:16:32]Connected sock=10 [04:16:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3F 01 00 00 75 1B 37 01 E6 FD 5A 03 01 00 03 00 2B 01 1E 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 36 34 06 04 39 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D1 8D D0 BA D0 B7 D0 BE D1 82 D0 B8 D0 BA 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 24 00 00 00 F4 03 04 00 21 B3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 20 02 00 35 04 06 00 A7 81 55 42 0D 00 1F 37 46 02 72 C7 DE 58 [04:16:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A2 1D 47 00 AF 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 58 20 02 00 F4 03 04 00 D2 5E 21 67 B6 04 01 00 00 74 38 DA 4E DE 84 8D 24 [04:16:32]CommunicateWithHost err = 0 [04:16:32]CheckOFDResponse [04:16:32]1017 (14) - 77093643461234 [04:16:32]1041 (16) - 0000000000874669 [04:16:32]1040 (4) - 139352 [04:16:32]1012 (4) - 29.10.2024 22:16 [04:16:32]1206 (1) - 0 [04:16:32]OFD Sender: Remove packet 139352 [04:16:32]ProducePacketName [04:16:32]name=ofd_packets/00139352 [04:16:32]NVStorageDeleteData [04:16:32]Write to MH i2c: 01 00 00 17 31 48 [04:16:32]Write i2c OK [04:16:32]MH_I2C_Read... [04:16:32]Read from MH i2c: 01 [04:16:32]MH_I2C_Read... [04:16:32]Read from MH i2c: 01 07 00 [04:16:32]MH_I2C_Read... [04:16:32]Read from MH i2c: 01 07 00 17 31 00 00 00 00 00 FA 0C 55 [04:16:32]RasterBufferAndPrint [04:16:32]line [04:16:32]line [04:16:32]line [04:16:32]line [04:16:32]line [04:16:32]written 0, free lines is 3330 [04:16:32]MH_Cut [04:16:32]Write to MH i2c: D1 01 00 1E 31 01 21 [04:16:32]Write i2c OK [04:16:32]MH_I2C_Read... [04:16:32]Read from MH i2c: D1 [04:16:32]MH_I2C_Read... [04:16:32]Read from MH i2c: D1 01 00 [04:16:32]MH_I2C_Read... [04:16:32]Read from MH i2c: D1 01 00 1E 31 00 20 [04:16:32]Write to MH i2c: 01 00 00 1F 31 50 [04:16:32]Write i2c OK [04:16:32]MH_I2C_Read... [04:16:32]OFD Sender: No OFD packet to send [04:16:33]*** Cut start [04:16:33]*** Partial cut [04:16:33]*** CUTSNS_PIN = 1 [04:16:33]*** CUTSNS_PIN = 0 [04:16:33]*** Brake cut motor [04:16:33]Read from MH i2c: 01 [04:16:33]MH_I2C_Read... [04:16:33]*** Stop cut motor [04:16:33]*** Cut end [04:16:33]Read from MH i2c: 01 07 00 [04:16:33]MH_I2C_Read... [04:16:33]Read from MH i2c: 01 07 00 1F 31 00 00 00 00 00 FF 0F 65 [04:16:33]process_action close_receipt done [04:16:33]requested_data is exist [04:16:33]produce_requested_data [04:16:33]requested_item fm.sn is exist - process it [04:16:33]wFMCommunicate request_size=4 [04:16:33]MH_SAM_APDU [04:16:33]CAPDU: 80 11 00 00 [04:16:33]Write to MH i2c: E2 08 00 20 31 80 11 00 00 00 00 00 00 CB [04:16:33]Write i2c OK [04:16:33]MH_I2C_Read... [04:16:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:16:33]Read from MH i2c: E2 [04:16:33]MH_I2C_Read... [04:16:33]Read from MH i2c: E2 17 00 [04:16:33]MH_I2C_Read... [04:16:33]Read from MH i2c: E2 17 00 20 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 26 [04:16:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:16:33]wFMCommunicate OK [04:16:33]requested_item fd.num is exist - process it [04:16:33]SAM_PROTO_GetFieldsCounters [04:16:33]wFMCommunicate request_size=4 [04:16:33]MH_SAM_APDU [04:16:33]CAPDU: 80 13 00 00 [04:16:33]Write to MH i2c: E2 08 00 21 31 80 13 00 00 00 00 00 00 CE [04:16:33]Write i2c OK [04:16:33]MH_I2C_Read... [04:16:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:16:33]Read from MH i2c: E2 [04:16:33]MH_I2C_Read... [04:16:33]Read from MH i2c: E2 62 00 [04:16:33]MH_I2C_Read... [04:16:33]Read from MH i2c: E2 62 00 21 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 58 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [04:16:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 58 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:16:33]wFMCommunicate OK [04:16:33]SAM_PROTO_GetFieldsCounters done [04:16:33]requested_item shift.num is exist - process it [04:16:33]requested_item shift.opened is exist - process it [04:16:33]req_shift_opened [04:16:33]FM_GetShiftState [04:16:33]SAM_PROTO_GetShiftState [04:16:33]wFMCommunicate request_size=4 [04:16:33]MH_SAM_APDU [04:16:33]CAPDU: 80 13 01 00 [04:16:33]Write to MH i2c: E2 08 00 22 31 80 13 01 00 00 00 00 00 D0 [04:16:33]Write i2c OK [04:16:33]MH_I2C_Read... [04:16:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:16:33]Read from MH i2c: E2 [04:16:33]MH_I2C_Read... [04:16:33]Read from MH i2c: E2 0E 00 [04:16:33]MH_I2C_Read... [04:16:33]Read from MH i2c: E2 0E 00 22 31 00 09 00 01 86 76 21 67 00 00 00 00 90 00 60 [04:16:33]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:16:33]wFMCommunicate OK [04:16:33]SAM_PROTO_GetShiftState done [04:16:33]FM_GetShiftState done [04:16:33]req_shift_opened done [04:16:33]requested_item shift.open_date is exist - process it [04:16:33]req_shift_open_date [04:16:33]req_shift_open_date done [04:16:33]produce_requested_data done [04:16:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139352,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [04:16:33]process_action_free close_receipt [04:16:33]json_value_free [04:16:33]json_value_free done [04:16:33]process_json_proto returns [04:16:33]Send response to host [04:16:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139352,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [04:16:33]free response buf [04:16:33]execute_script done [04:16:33]execute_script returns [04:16:33]free content buf [04:16:33]Sock 9.Close socket [04:16:33]Sock 9.Thread stoped [04:16:37]OFD Sender: No OFD packet to send [04:16:42]OFD Sender: No OFD packet to send [04:16:47]OFD Sender: No OFD packet to send [04:16:52]OFD Sender: No OFD packet to send [04:16:57]OFD Sender: No OFD packet to send [04:17:02]OFD Sender: No OFD packet to send [04:17:07]OFD Sender: No OFD packet to send [04:17:12]OFD Sender: No OFD packet to send [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:17]OFD Sender: No OFD packet to send [04:19:22]OFD Sender: No OFD packet to send [04:19:27]OFD Sender: No OFD packet to send [04:19:32]OFD Sender: No OFD packet to send [04:19:37]OFD Sender: No OFD packet to send [04:19:42]OFD Sender: No OFD packet to send [04:19:47]OFD Sender: No OFD packet to send [04:19:52]OFD Sender: No OFD packet to send [04:19:57]OFD Sender: No OFD packet to send [04:20:02]OFD Sender: No OFD packet to send [04:20:07]OFD Sender: No OFD packet to send [04:20:12]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:48]OFD Sender: No OFD packet to send [04:20:53]OFD Sender: No OFD packet to send [04:20:58]OFD Sender: No OFD packet to send [04:21:03]OFD Sender: No OFD packet to send [04:21:08]OFD Sender: No OFD packet to send [04:21:13]OFD Sender: No OFD packet to send [04:21:18]OFD Sender: No OFD packet to send [04:21:23]OFD Sender: No OFD packet to send [04:21:28]OFD Sender: No OFD packet to send [04:23:53]OFD Sender: No OFD packet to send [04:23:58]OFD Sender: No OFD packet to send [04:24:03]OFD Sender: No OFD packet to send [04:24:08]OFD Sender: No OFD packet to send [04:24:13]OFD Sender: No OFD packet to send [04:24:18]OFD Sender: No OFD packet to send [04:24:23]OFD Sender: No OFD packet to send [04:24:28]OFD Sender: No OFD packet to send [04:24:33]OFD Sender: No OFD packet to send [04:24:38]OFD Sender: No OFD packet to send [04:24:43]OFD Sender: No OFD packet to send [04:24:48]OFD Sender: No OFD packet to send [04:24:53]OFD Sender: No OFD packet to send [04:24:58]OFD Sender: No OFD packet to send [04:25:03]OFD Sender: No OFD packet to send [04:25:08]OFD Sender: No OFD packet to send [04:25:13]OFD Sender: No OFD packet to send [04:25:18]OFD Sender: No OFD packet to send [04:25:23]OFD Sender: No OFD packet to send [04:25:28]OFD Sender: No OFD packet to send [04:25:33]OFD Sender: No OFD packet to send [04:25:38]OFD Sender: No OFD packet to send [04:25:43]OFD Sender: No OFD packet to send [04:25:48]OFD Sender: No OFD packet to send [04:25:53]OFD Sender: No OFD packet to send [04:25:58]OFD Sender: No OFD packet to send [04:26:01]ConnectInit Can't connect to host [04:26:03]OFD Sender: No OFD packet to send [04:26:08]OFD Sender: No OFD packet to send [04:26:13]OFD Sender: No OFD packet to send [04:26:18]OFD Sender: No OFD packet to send [04:26:23]OFD Sender: No OFD packet to send [04:26:28]OFD Sender: No OFD packet to send [04:26:33]OFD Sender: No OFD packet to send [04:26:38]OFD Sender: No OFD packet to send [04:26:43]OFD Sender: No OFD packet to send [04:26:48]OFD Sender: No OFD packet to send [04:26:53]OFD Sender: No OFD packet to send [04:26:58]OFD Sender: No OFD packet to send [04:27:03]OFD Sender: No OFD packet to send [04:27:08]OFD Sender: No OFD packet to send [04:27:13]OFD Sender: No OFD packet to send [04:27:18]recv_with_timeout no data received [04:27:18]OFD Sender: No OFD packet to send [04:27:23]OFD Sender: No OFD packet to send [04:27:28]OFD Sender: No OFD packet to send [04:27:33]OFD Sender: No OFD packet to send [04:27:38]OFD Sender: No OFD packet to send [04:27:43]OFD Sender: No OFD packet to send [04:27:48]OFD Sender: No OFD packet to send [04:27:53]OFD Sender: No OFD packet to send [04:27:58]OFD Sender: No OFD packet to send [04:28:03]OFD Sender: No OFD packet to send [04:28:08]OFD Sender: No OFD packet to send [04:28:13]OFD Sender: No OFD packet to send [04:28:18]OFD Sender: No OFD packet to send [04:28:23]OFD Sender: No OFD packet to send [04:28:28]OFD Sender: No OFD packet to send [04:28:33]OFD Sender: No OFD packet to send [04:28:38]OFD Sender: No OFD packet to send [04:28:43]OFD Sender: No OFD packet to send [04:28:48]OFD Sender: No OFD packet to send [04:28:53]OFD Sender: No OFD packet to send [04:28:58]OFD Sender: No OFD packet to send [04:29:03]OFD Sender: No OFD packet to send [04:29:08]OFD Sender: No OFD packet to send [04:29:13]OFD Sender: No OFD packet to send [04:29:18]OFD Sender: No OFD packet to send [04:29:23]OFD Sender: No OFD packet to send [04:29:28]OFD Sender: No OFD packet to send [04:29:33]OFD Sender: No OFD packet to send [04:29:38]OFD Sender: No OFD packet to send [04:29:43]OFD Sender: No OFD packet to send [04:29:48]OFD Sender: No OFD packet to send [04:29:53]OFD Sender: No OFD packet to send [04:29:58]OFD Sender: No OFD packet to send [04:30:03]OFD Sender: No OFD packet to send [04:30:08]OFD Sender: No OFD packet to send [04:30:13]OFD Sender: No OFD packet to send [04:30:18]OFD Sender: No OFD packet to send [04:30:23]OFD Sender: No OFD packet to send [04:30:28]OFD Sender: No OFD packet to send [04:30:33]OFD Sender: No OFD packet to send [04:30:35]accept exits with 8 [04:30:35]New connection [04:30:35]New thread 3067284836 created [04:30:35]Thread 3067141476 joined [04:30:35]Waiting for new connection... [04:30:35] Sock 8.Parse request [04:30:35]Sock 8.Check first char [04:30:35]Sock 8.First char is OK [04:30:35]request: POST /json_proto HTTP/1.0 [04:30:35]Method: POST [04:30:35]URL: /json_proto [04:30:35]Method is POST - this is cgi request [04:30:35]url: /json_proto [04:30:35]query_string will be loaded in cgi processing [04:30:35]execute_cgi json_proto POST (null) [04:30:35]execute_cgi path=json_proto method=POST [04:30:35]POST find Content-Length [04:30:35]Host: 172.17.50.196:8080 [04:30:35]Content-Length: 614 [04:30:35]Content-Type: application/json [04:30:35] [04:30:35]POST finish read [04:30:35]Found Content-Length = 614 [04:30:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335261", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:35]execute_script... [04: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 : (3)335261", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:30:35]POST & json_proto [04:30:35]process_json_proto [04:30:35]json parsed OK: [04:30:35]protocol is kg_v1.0 [04:30:35]action value=close_receipt [04:30:35]process_action close_receipt [04:30:35]cmd_close_receipt [04:30:35]MH_GetDate [04:30:35]Write to MH i2c: F0 00 00 23 31 43 [04:30:35]Write i2c OK [04:30:35]MH_I2C_Read... [04:30:35]Read from MH i2c: F0 [04:30:35]MH_I2C_Read... [04:30:35]Read from MH i2c: F0 09 00 [04:30:35]MH_I2C_Read... [04:30:35]Read from MH i2c: F0 09 00 23 31 00 6F B6 21 67 72 0D 1C 67 FB [04:30:35]GetLastDocTimeStamp 1730261793 [04:30:35]current date 1730262639 [04:30:35]FM_GetShiftState [04:30:35]SAM_PROTO_GetShiftState [04:30:35]wFMCommunicate request_size=4 [04:30:35]MH_SAM_APDU [04:30:35]CAPDU: 80 13 01 00 [04:30:35]Write to MH i2c: E2 08 00 24 31 80 13 01 00 00 00 00 00 D2 [04:30:35]Write i2c OK [04:30:35]MH_I2C_Read... [04:30:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:35]Read from MH i2c: E2 [04:30:35]MH_I2C_Read... [04:30:35]Read from MH i2c: E2 0E 00 [04:30:35]MH_I2C_Read... [04:30:35]Read from MH i2c: E2 0E 00 24 31 00 09 00 01 86 76 21 67 00 00 00 00 90 00 62 [04:30:35]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:30:35]wFMCommunicate OK [04:30:35]SAM_PROTO_GetShiftState done [04:30:35]FM_GetShiftState done [04:30:35]opened in 1730246278 [04:30:35]opened+sec_in_day 1730332678 [04:30:35]quantity*price = 11900 [04:30:35]sum+1 = 11901 [04:30:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.05 НДС 12% : 12.64 Наличными: 119.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 37 30.10.2024 04:30 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139353 ФПД: 142273604872439 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T043039&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139353&fm=142273604872439&tin=02508201610067®Number=0000000000091631&sum=11900 0 [04:30:37]StoreToDocumentArchive [04:30:37]shift 556 fd 139353 [04:30:37]save to /storage/0556/doc_00139353 [04:30:37]save last doc name /storage/0556/doc_00139353 to /storage/kkm_last_doc_name [04:30:37]save OK [04:30:37]Clear old archive folders... [04:30:37]ProcessDocumentItem done err = 0, tmpTLVsize=266 [04:30:37]tlvbuf is 01112F40 [04:30:37]SAM_PROTO_ClearQueue [04:30:37]wFMCommunicate request_size=4 [04:30:37]MH_SAM_APDU [04:30:37]CAPDU: 80 09 00 00 [04:30:37]Write to MH i2c: E2 08 00 31 31 80 09 00 00 00 00 00 00 D4 [04:30:37]Write i2c OK [04:30:37]MH_I2C_Read... [04:30:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:30:37]Read from MH i2c: E2 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 03 00 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 03 00 31 31 00 90 00 D6 [04:30:37]RAPDU: 90 00 [04:30:37]wFMCommunicate OK [04:30:37]SAM_PROTO_ClearQueue done [04:30:37]KKMCreateOFDPacket [04:30:37]OFDProtocolAddRootSTLVToBuf [04:30:37]FM_MakeSignedData [04:30:37]FM_MakeSignedData [04:30:37]SAM_PROTO_SignData [04:30:37]wFMCommunicate request_size=4 [04:30:37]MH_SAM_APDU [04:30:37]CAPDU: 80 0D 01 02 [04:30:37]Write to MH i2c: E2 08 00 32 31 80 0D 01 02 00 00 00 00 DC [04:30:37]Write i2c OK [04:30:37]MH_I2C_Read... [04:30:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:30:37]Read from MH i2c: E2 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 03 00 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 03 00 32 31 00 90 00 D7 [04:30:37]RAPDU: 90 00 [04:30:37]wFMCommunicate OK [04:30:37]wFMCommunicate request_size=255 [04:30:37]MH_SAM_APDU [04:30:37]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 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 6F B6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [04:30:37]Write to MH i2c: E2 02 01 33 31 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 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 6F B6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 D7 [04:30:37]Write i2c OK [04:30:37]MH_I2C_Read... [04:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:37]Read from MH i2c: E2 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 03 00 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 03 00 33 31 00 90 00 D8 [04:30:37]RAPDU: 90 00 [04:30:37]wFMCommunicate OK [04:30:37]wFMCommunicate request_size=25 [04:30:37]MH_SAM_APDU [04:30:37]CAPDU: 80 0D 02 02 14 36 39 10 04 04 00 59 20 02 00 35 04 06 00 81 65 A7 AD E8 F7 [04:30:37]Write to MH i2c: E2 1C 00 34 31 80 0D 02 02 14 00 36 39 10 04 04 00 59 20 02 00 35 04 06 00 81 65 A7 AD E8 F7 00 00 61 [04:30:37]Write i2c OK [04:30:37]MH_I2C_Read... [04:30:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:30:37]Read from MH i2c: E2 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 03 00 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 03 00 34 31 00 90 00 D9 [04:30:37]RAPDU: 90 00 [04:30:37]wFMCommunicate OK [04:30:37]wFMCommunicate request_size=4 [04:30:37]MH_SAM_APDU [04:30:37]CAPDU: 80 0D 03 02 [04:30:37]Write to MH i2c: E2 08 00 35 31 80 0D 03 02 00 00 00 00 E1 [04:30:37]Write i2c OK [04:30:37]MH_I2C_Read... [04:30:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:30:37]Read from MH i2c: E2 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 0B 00 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 0B 00 35 31 00 5A CF 45 94 8B D3 BF 8E 90 00 8F [04:30:37]RAPDU: 5A CF 45 94 8B D3 BF 8E 90 00 [04:30:37]wFMCommunicate OK [04:30:37]SAM_PROTO_SignData done [04:30:37]FM_MakeSignedData done [04:30:37]CreateOFDProtocolMessage [04:30:37]wFMCommunicate request_size=4 [04:30:37]MH_SAM_APDU [04:30:37]CAPDU: 80 11 00 00 [04:30:37]Write to MH i2c: E2 08 00 36 31 80 11 00 00 00 00 00 00 E1 [04:30:37]Write i2c OK [04:30:37]MH_I2C_Read... [04:30:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:37]Read from MH i2c: E2 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 17 00 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: E2 17 00 36 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3C [04:30:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:30:37]wFMCommunicate OK [04:30:37]CreateOFDProtocolMessage done [04:30:37]OFDSenderStorePacket 139353 [04:30:37]StoreOFDPacket docnum=139353 [04:30:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1E 01 00 00 E5 00 16 01 35 58 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 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 6F B6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 20 02 00 35 04 06 00 81 65 A7 AD E8 F7 5A CF 45 94 8B D3 BF 8E [04:30:37]CheckFolder [04:30:37]dirname=/storage/ofd_packets [04:30:37]CheckFolder done [04:30:37]ProducePacketName [04:30:37]name=ofd_packets/00139353 [04:30:37]NVStorageSaveData ofd_packets/00139353 [04:30:37]File name is /storage/ofd_packets/00139353 [04:30:37]Write 316 bytes [04:30:37]NVStorageSaveData done [04:30:37]OFDSenderStorePacket done [04:30:37]KKMCreateOFDPacket done [04:30:37]NVStorageSaveData kkm_last_timestamp [04:30:37]File name is /storage/kkm_last_timestamp [04:30:37]Write 4 bytes [04:30:37]NVStorageSaveData done [04:30:37]OFD Sender: Processing packet 139353 [packets to send 34, broken 33] [04:30:37]ProducePacketName [04:30:37]name=ofd_packets/00139353 [04:30:37]OFD Sender: To server: pG, [04:30:37]CommunicateWithHost lk.salyk.kg:30040 [04:30:37]ConnectInit lk.salyk.kg [04:30:37]ExternCall_PrintAddStr [04:30:37]wPrintStart [04:30:37]Write to MH i2c: 01 00 00 37 31 68 [04:30:37]Write i2c OK [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: 01 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: 01 07 00 [04:30:37]MH_I2C_Read... [04:30:37]Read from MH i2c: 01 07 00 37 31 00 00 00 00 00 FF 0F 7D [04:30:37]RasterBufferAndPrint [04:30:37]line Счет N : (3)335261 [04:30:37]line ИНН: 02508201610067 [04:30:37]line Контрольно-Кассовый Чек [04:30:37]line ПРОДАЖА [04:30:37]line Товар: 4870001570071 [04:30:37]line Напиток Pepsi 1л [04:30:37]line 1.000 * 119.00 [04:30:37]line = 119.00 [04:30:37]line НДС 12% НСП 1% [04:30:37]line > о реализуемом товаре [04:30:37]line ИТОГО: 119.00 [04:30:37]line НСП 1% : 1.05 [04:30:37]line НДС 12% : 12.64 [04:30:37]line Наличными: 119.00 [04:30:37]line Безнал.: 0.00 [04:30:37]line Место: АЗС № 101 "Партнер Нефть" [04:30:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:30:37]line СНО: Общий режим [04:30:37]line Чек 37 30.10.2024 04:30 [04:30:37]line Смена: 556 ФФД: 1.0 [04:30:37]line ЗНМ: 0300000081 [04:30:37]line РНМ: 0000000000091631 [04:30:37]line Версия ККМ: 001 [04:30:37]line ФМ: 0000000000874669 [04:30:37]line ФД: 139353 [04:30:37]line ФПД: 142273604872439 [04:30:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T043039&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139353&fm=142273604872439&tin=02508201610067®Number=0000000000091631&sum=11900 [04:30:38]line 0 [04:30:38]Connected sock=11 [04:30:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1E 01 00 00 E5 00 16 01 35 58 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 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 6F B6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 59 20 02 00 35 04 06 00 81 65 A7 AD E8 F7 5A CF 45 94 8B D3 BF 8E [04:30:38]written 0, free lines is 4095 [04:30:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E2 92 47 00 74 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 38 37 34 36 36 39 10 04 04 00 59 20 02 00 F4 03 04 00 20 62 21 67 B6 04 01 00 00 E3 1F 11 9C C5 EC 9F 8C [04:30:38]CommunicateWithHost err = 0 [04:30:38]CheckOFDResponse [04:30:38]1017 (14) - 77093643461234 [04:30:38]1041 (16) - 0000000000874669 [04:30:38]1040 (4) - 139353 [04:30:38]1012 (4) - 29.10.2024 22:30 [04:30:38]1206 (1) - 0 [04:30:38]OFD Sender: Remove packet 139353 [04:30:38]ProducePacketName [04:30:38]name=ofd_packets/00139353 [04:30:38]NVStorageDeleteData [04:30:38]Write to MH i2c: 01 00 00 5F 31 90 [04:30:38]Write i2c OK [04:30:38]MH_I2C_Read... [04:30:38]Read from MH i2c: 01 [04:30:38]MH_I2C_Read... [04:30:38]Read from MH i2c: 01 07 00 [04:30:38]MH_I2C_Read... [04:30:38]Read from MH i2c: 01 07 00 5F 31 00 00 00 00 00 0C 0D B0 [04:30:38]RasterBufferAndPrint [04:30:38]line [04:30:38]line [04:30:38]line [04:30:38]line [04:30:38]line [04:30:38]written 0, free lines is 3346 [04:30:38]MH_Cut [04:30:38]Write to MH i2c: D1 01 00 66 31 01 69 [04:30:38]Write i2c OK [04:30:38]MH_I2C_Read... [04:30:38]Read from MH i2c: D1 [04:30:38]MH_I2C_Read... [04:30:38]Read from MH i2c: D1 01 00 [04:30:38]MH_I2C_Read... [04:30:38]Read from MH i2c: D1 01 00 66 31 00 68 [04:30:38]Write to MH i2c: 01 00 00 67 31 98 [04:30:38]Write i2c OK [04:30:38]MH_I2C_Read... [04:30:38]OFD Sender: No OFD packet to send [04:30:39]*** Cut start [04:30:39]*** Partial cut [04:30:39]*** CUTSNS_PIN = 1 [04:30:39]*** CUTSNS_PIN = 0 [04:30:39]*** Brake cut motor [04:30:39]Read from MH i2c: 01 [04:30:39]MH_I2C_Read... [04:30:39]*** Stop cut motor [04:30:39]*** Cut end [04:30:39]Read from MH i2c: 01 07 00 [04:30:39]MH_I2C_Read... [04:30:39]Read from MH i2c: 01 07 00 67 31 00 00 00 00 00 FF 0F AD [04:30:39]process_action close_receipt done [04:30:39]requested_data is exist [04:30:39]produce_requested_data [04:30:39]requested_item fm.sn is exist - process it [04:30:39]wFMCommunicate request_size=4 [04:30:39]MH_SAM_APDU [04:30:39]CAPDU: 80 11 00 00 [04:30:39]Write to MH i2c: E2 08 00 68 31 80 11 00 00 00 00 00 00 13 [04:30:39]Write i2c OK [04:30:39]MH_I2C_Read... [04:30:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:30:39]Read from MH i2c: E2 [04:30:39]MH_I2C_Read... [04:30:39]Read from MH i2c: E2 17 00 [04:30:39]MH_I2C_Read... [04:30:39]Read from MH i2c: E2 17 00 68 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6E [04:30:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:30:39]wFMCommunicate OK [04:30:39]requested_item fd.num is exist - process it [04:30:39]SAM_PROTO_GetFieldsCounters [04:30:39]wFMCommunicate request_size=4 [04:30:39]MH_SAM_APDU [04:30:39]CAPDU: 80 13 00 00 [04:30:39]Write to MH i2c: E2 08 00 69 31 80 13 00 00 00 00 00 00 16 [04:30:39]Write i2c OK [04:30:39]MH_I2C_Read... [04:30:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:30:39]Read from MH i2c: E2 [04:30:39]MH_I2C_Read... [04:30:39]Read from MH i2c: E2 62 00 [04:30:39]MH_I2C_Read... [04:30:39]Read from MH i2c: E2 62 00 69 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 59 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [04:30:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 59 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:30:39]wFMCommunicate OK [04:30:39]SAM_PROTO_GetFieldsCounters done [04:30:39]requested_item shift.num is exist - process it [04:30:39]requested_item shift.opened is exist - process it [04:30:39]req_shift_opened [04:30:39]FM_GetShiftState [04:30:39]SAM_PROTO_GetShiftState [04:30:39]wFMCommunicate request_size=4 [04:30:39]MH_SAM_APDU [04:30:39]CAPDU: 80 13 01 00 [04:30:39]Write to MH i2c: E2 08 00 6A 31 80 13 01 00 00 00 00 00 18 [04:30:39]Write i2c OK [04:30:39]MH_I2C_Read... [04:30:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:30:39]Read from MH i2c: E2 [04:30:39]MH_I2C_Read... [04:30:39]Read from MH i2c: E2 0E 00 [04:30:39]MH_I2C_Read... [04:30:39]Read from MH i2c: E2 0E 00 6A 31 00 09 00 01 86 76 21 67 00 00 00 00 90 00 A8 [04:30:39]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:30:39]wFMCommunicate OK [04:30:39]SAM_PROTO_GetShiftState done [04:30:39]FM_GetShiftState done [04:30:39]req_shift_opened done [04:30:39]requested_item shift.open_date is exist - process it [04:30:39]req_shift_open_date [04:30:39]req_shift_open_date done [04:30:39]produce_requested_data done [04:30:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139353,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [04:30:39]process_action_free close_receipt [04:30:39]json_value_free [04:30:39]json_value_free done [04:30:39]process_json_proto returns [04:30:39]Send response to host [04:30:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139353,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [04:30:39]free response buf [04:30:39]execute_script done [04:30:39]execute_script returns [04:30:39]free content buf [04:30:39]Sock 8.Close socket [04:30:39]Sock 8.Thread stoped [04:30:43]OFD Sender: No OFD packet to send [04:30:48]OFD Sender: No OFD packet to send [04:30:53]OFD Sender: No OFD packet to send [04:30:58]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:31]accept exits with 9 [04:31:31]New connection [04:31:31]New thread 3067141476 created [04:31:31]Thread 3067284836 joined [04:31:31]Waiting for new connection... [04:31:31] Sock 9.Parse request [04:31:31]Sock 9.Check first char [04:31:31]Sock 9.First char is OK [04:31:31]request: POST /json_proto HTTP/1.0 [04:31:31]Method: POST [04:31:31]URL: /json_proto [04:31:31]Method is POST - this is cgi request [04:31:31]url: /json_proto [04:31:31]query_string will be loaded in cgi processing [04:31:31]execute_cgi json_proto POST (null) [04:31:31]execute_cgi path=json_proto method=POST [04:31:31]POST find Content-Length [04:31:31]Host: 172.17.50.196:8080 [04:31:31]Content-Length: 928 [04:31:31]Content-Type: application/json [04:31:31] [04:31:31]POST finish read [04:31:31]Found Content-Length = 928 [04:31:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335262", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:31]execute_script... [04:31: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 : (3)335262", "tax_sys" : 0, "items" : [ { "code": "4700000480517", "name": "\u041F\u0438\u0432\u043E \u0416\u0438\u0432\u043E\u0435 1\u043B \u041F\u042D\u0422", "price" : 199.00, "quantity" : 1.000, "sum" : 199.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4620006995702", "name": "\u0412\u043E\u0434\u043A\u0430 \u0417\u0435\u043B\u0435\u043D\u0430\u044F \u041C\u0430\u0440\u043A\u0430 0,1\u043B", "price" : 140.00, "quantity" : 1.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:31:31]POST & json_proto [04:31:31]process_json_proto [04:31:31]json parsed OK: [04:31:31]protocol is kg_v1.0 [04:31:31]action value=close_receipt [04:31:31]process_action close_receipt [04:31:31]cmd_close_receipt [04:31:31]MH_GetDate [04:31:31]Write to MH i2c: F0 00 00 6B 31 8B [04:31:31]Write i2c OK [04:31:31]MH_I2C_Read... [04:31:31]Read from MH i2c: F0 [04:31:31]MH_I2C_Read... [04:31:31]Read from MH i2c: F0 09 00 [04:31:31]MH_I2C_Read... [04:31:31]Read from MH i2c: F0 09 00 6B 31 00 A6 B6 21 67 72 0D 1C 67 7A [04:31:31]GetLastDocTimeStamp 1730262639 [04:31:31]current date 1730262694 [04:31:31]FM_GetShiftState [04:31:31]SAM_PROTO_GetShiftState [04:31:31]wFMCommunicate request_size=4 [04:31:31]MH_SAM_APDU [04:31:31]CAPDU: 80 13 01 00 [04:31:31]Write to MH i2c: E2 08 00 6C 31 80 13 01 00 00 00 00 00 1A [04:31:31]Write i2c OK [04:31:31]MH_I2C_Read... [04:31:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:31]Read from MH i2c: E2 [04:31:31]MH_I2C_Read... [04:31:31]Read from MH i2c: E2 0E 00 [04:31:31]MH_I2C_Read... [04:31:31]Read from MH i2c: E2 0E 00 6C 31 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AA [04:31:31]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:31:31]wFMCommunicate OK [04:31:31]SAM_PROTO_GetShiftState done [04:31:31]FM_GetShiftState done [04:31:31]opened in 1730246278 [04:31:31]opened+sec_in_day 1730332678 [04:31:31]quantity*price = 19900 [04:31:31]sum+1 = 19901 [04:31:31]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4620006995702 Водка Зеленая Марка 0,1л 1.000 * 140.00 = 140.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 339.00 НСП 1% : 3.00 НДС 12% : 36.00 Наличными: 339.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 38 30.10.2024 04:31 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139354 ФПД: 201916692872068 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T043134&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139354&fm=201916692872068&tin=02508201610067®Number=0000000000091631&sum=33900 0 [04:31:32]StoreToDocumentArchive [04:31:32]shift 556 fd 139354 [04:31:32]save to /storage/0556/doc_00139354 [04:31:32]save last doc name /storage/0556/doc_00139354 to /storage/kkm_last_doc_name [04:31:32]save OK [04:31:32]Clear old archive folders... [04:31:32]ProcessDocumentItem done err = 0, tmpTLVsize=386 [04:31:32]tlvbuf is 011E5280 [04:31:32]SAM_PROTO_ClearQueue [04:31:32]wFMCommunicate request_size=4 [04:31:32]MH_SAM_APDU [04:31:32]CAPDU: 80 09 00 00 [04:31:32]Write to MH i2c: E2 08 00 79 31 80 09 00 00 00 00 00 00 1C [04:31:32]Write i2c OK [04:31:32]MH_I2C_Read... [04:31:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:31:32]Read from MH i2c: E2 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 03 00 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 03 00 79 31 00 90 00 1E [04:31:32]RAPDU: 90 00 [04:31:32]wFMCommunicate OK [04:31:32]SAM_PROTO_ClearQueue done [04:31:32]KKMCreateOFDPacket [04:31:32]OFDProtocolAddRootSTLVToBuf [04:31:32]FM_MakeSignedData [04:31:32]FM_MakeSignedData [04:31:32]SAM_PROTO_SignData [04:31:32]wFMCommunicate request_size=4 [04:31:32]MH_SAM_APDU [04:31:32]CAPDU: 80 0D 01 02 [04:31:32]Write to MH i2c: E2 08 00 7A 31 80 0D 01 02 00 00 00 00 24 [04:31:32]Write i2c OK [04:31:32]MH_I2C_Read... [04:31:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:31:32]Read from MH i2c: E2 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 03 00 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 03 00 7A 31 00 90 00 1F [04:31:32]RAPDU: 90 00 [04:31:32]wFMCommunicate OK [04:31:32]wFMCommunicate request_size=255 [04:31:32]MH_SAM_APDU [04:31:32]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [04:31:32]Write to MH i2c: E2 02 01 7B 31 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 46 [04:31:32]Write i2c OK [04:31:32]MH_I2C_Read... [04:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:32]Read from MH i2c: E2 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 03 00 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 03 00 7B 31 00 90 00 20 [04:31:32]RAPDU: 90 00 [04:31:32]wFMCommunicate OK [04:31:32]wFMCommunicate request_size=145 [04:31:32]MH_SAM_APDU [04:31:32]CAPDU: 80 0D 02 02 8C 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 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 26 00 00 00 F4 03 04 00 A6 B6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 20 02 00 35 04 06 00 B7 A4 64 C0 BB 84 [04:31:32]Write to MH i2c: E2 94 00 7C 31 80 0D 02 02 8C 00 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 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 26 00 00 00 F4 03 04 00 A6 B6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 20 02 00 35 04 06 00 B7 A4 64 C0 BB 84 00 00 22 [04:31:32]Write i2c OK [04:31:32]MH_I2C_Read... [04:31:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:31:32]Read from MH i2c: E2 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 03 00 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 03 00 7C 31 00 90 00 21 [04:31:32]RAPDU: 90 00 [04:31:32]wFMCommunicate OK [04:31:32]wFMCommunicate request_size=4 [04:31:32]MH_SAM_APDU [04:31:32]CAPDU: 80 0D 03 02 [04:31:32]Write to MH i2c: E2 08 00 7D 31 80 0D 03 02 00 00 00 00 29 [04:31:32]Write i2c OK [04:31:32]MH_I2C_Read... [04:31:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:31:32]Read from MH i2c: E2 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 0B 00 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 0B 00 7D 31 00 1E BA D0 B7 4A 5A EB 97 90 00 AF [04:31:32]RAPDU: 1E BA D0 B7 4A 5A EB 97 90 00 [04:31:32]wFMCommunicate OK [04:31:32]SAM_PROTO_SignData done [04:31:32]FM_MakeSignedData done [04:31:32]CreateOFDProtocolMessage [04:31:32]wFMCommunicate request_size=4 [04:31:32]MH_SAM_APDU [04:31:32]CAPDU: 80 11 00 00 [04:31:32]Write to MH i2c: E2 08 00 7E 31 80 11 00 00 00 00 00 00 29 [04:31:32]Write i2c OK [04:31:32]MH_I2C_Read... [04:31:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:32]Read from MH i2c: E2 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 17 00 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: E2 17 00 7E 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 84 [04:31:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:31:32]wFMCommunicate OK [04:31:32]CreateOFDProtocolMessage done [04:31:32]OFDSenderStorePacket 139354 [04:31:32]StoreOFDPacket docnum=139354 [04:31:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 96 01 00 00 30 61 8E 01 42 4F 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 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 26 00 00 00 F4 03 04 00 A6 B6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 20 02 00 35 04 06 00 B7 A4 64 C0 BB 84 1E BA D0 B7 4A 5A EB 97 [04:31:32]CheckFolder [04:31:32]dirname=/storage/ofd_packets [04:31:32]CheckFolder done [04:31:32]ProducePacketName [04:31:32]name=ofd_packets/00139354 [04:31:32]NVStorageSaveData ofd_packets/00139354 [04:31:32]File name is /storage/ofd_packets/00139354 [04:31:32]Write 436 bytes [04:31:32]NVStorageSaveData done [04:31:32]OFDSenderStorePacket done [04:31:32]KKMCreateOFDPacket done [04:31:32]NVStorageSaveData kkm_last_timestamp [04:31:32]File name is /storage/kkm_last_timestamp [04:31:32]Write 4 bytes [04:31:32]NVStorageSaveData done [04:31:32]ExternCall_PrintAddStr [04:31:32]wPrintStart [04:31:32]Write to MH i2c: 01 00 00 7F 31 B0 [04:31:32]Write i2c OK [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: 01 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: 01 07 00 [04:31:32]MH_I2C_Read... [04:31:32]Read from MH i2c: 01 07 00 7F 31 00 00 00 00 00 FF 0F C5 [04:31:32]RasterBufferAndPrint [04:31:32]line Счет N : (3)335262 [04:31:32]line ИНН: 02508201610067 [04:31:32]line Контрольно-Кассовый Чек [04:31:32]line ПРОДАЖА [04:31:32]line Товар: 4700000480517 [04:31:33]line Пиво Живое 1л ПЭТ [04:31:33]line 1.000 * 199.00 [04:31:33]line = 199.00 [04:31:33]line НДС 12% НСП 1% [04:31:33]line > о реализуемом товаре [04:31:33]line Товар: 4620006995702 [04:31:33]line Водка Зеленая Марка 0,1л [04:31:33]line 1.000 * 140.00 [04:31:33]line = 140.00 [04:31:33]line НДС 12% НСП 1% [04:31:33]line > о реализуемом товаре [04:31:33]line ИТОГО: 339.00 [04:31:33]line НСП 1% : 3.00 [04:31:33]line НДС 12% : 36.00 [04:31:33]line Наличными: 339.00 [04:31:33]line Безнал.: 0.00 [04:31:33]line Место: АЗС № 101 "Партнер Нефть" [04:31:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:31:33]line СНО: Общий режим [04:31:33]line Чек 38 30.10.2024 04:31 [04:31:33]line Смена: 556 ФФД: 1.0 [04:31:33]line ЗНМ: 0300000081 [04:31:33]line РНМ: 0000000000091631 [04:31:33]line Версия ККМ: 001 [04:31:33]line ФМ: 0000000000874669 [04:31:33]line ФД: 139354 [04:31:33]line ФПД: 201916692872068 [04:31:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T043134&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139354&fm=201916692872068&tin=02508201610067®Number=0000000000091631&sum=33900 [04:31:33]line 0 [04:31:33]OFD Sender: Processing packet 139354 [packets to send 34, broken 33] [04:31:33]ProducePacketName [04:31:33]name=ofd_packets/00139354 [04:31:33]OFD Sender: To server: pG, [04:31:33]CommunicateWithHost lk.salyk.kg:30040 [04:31:33]ConnectInit lk.salyk.kg [04:31:33]written 0, free lines is 4095 [04:31:33]Connected sock=10 [04:31:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 96 01 00 00 30 61 8E 01 42 4F 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 35 31 37 06 04 1E 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 96 D0 B8 D0 B2 D0 BE D0 B5 20 31 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 BC 4D 00 00 00 00 13 04 06 00 BC 4D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 36 32 30 30 30 36 39 39 35 37 30 32 06 04 2A 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 97 D0 B5 D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 9C D0 B0 D1 80 D0 BA D0 B0 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 B0 36 00 00 00 00 13 04 06 00 B0 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 10 0E 00 00 00 00 07 04 06 00 6C 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 26 00 00 00 F4 03 04 00 A6 B6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 20 02 00 35 04 06 00 B7 A4 64 C0 BB 84 1E BA D0 B7 4A 5A EB 97 [04:31:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C8 27 47 00 77 AA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5A 20 02 00 F4 03 04 00 58 62 21 67 B6 04 01 00 00 73 FF C8 8D 14 63 8C D6 [04:31:33]CommunicateWithHost err = 0 [04:31:33]CheckOFDResponse [04:31:33]1017 (14) - 77093643461234 [04:31:33]1041 (16) - 0000000000874669 [04:31:33]1040 (4) - 139354 [04:31:33]1012 (4) - 29.10.2024 22:31 [04:31:33]1206 (1) - 0 [04:31:33]OFD Sender: Remove packet 139354 [04:31:33]ProducePacketName [04:31:33]name=ofd_packets/00139354 [04:31:33]NVStorageDeleteData [04:31:33]Write to MH i2c: 01 00 00 AD 31 DE [04:31:33]Write i2c OK [04:31:33]MH_I2C_Read... [04:31:33]Read from MH i2c: 01 [04:31:33]MH_I2C_Read... [04:31:33]Read from MH i2c: 01 07 00 [04:31:33]MH_I2C_Read... [04:31:33]Read from MH i2c: 01 07 00 AD 31 00 00 00 00 00 D6 0C C7 [04:31:33]RasterBufferAndPrint [04:31:33]line [04:31:33]line [04:31:33]line [04:31:33]line [04:31:33]line [04:31:33]written 0, free lines is 3295 [04:31:33]MH_Cut [04:31:33]Write to MH i2c: D1 01 00 B4 31 01 B7 [04:31:33]Write i2c OK [04:31:33]MH_I2C_Read... [04:31:33]Read from MH i2c: D1 [04:31:33]MH_I2C_Read... [04:31:33]Read from MH i2c: D1 01 00 [04:31:33]MH_I2C_Read... [04:31:33]Read from MH i2c: D1 01 00 B4 31 00 B6 [04:31:33]Write to MH i2c: 01 00 00 B5 31 E6 [04:31:33]Write i2c OK [04:31:33]MH_I2C_Read... [04:31:34]OFD Sender: No OFD packet to send [04:31:34]*** Cut start [04:31:34]*** Partial cut [04:31:34]*** CUTSNS_PIN = 1 [04:31:34]*** CUTSNS_PIN = 0 [04:31:34]*** Brake cut motor [04:31:35]Read from MH i2c: 01 [04:31:35]MH_I2C_Read... [04:31:35]*** Stop cut motor [04:31:35]*** Cut end [04:31:35]Read from MH i2c: 01 07 00 [04:31:35]MH_I2C_Read... [04:31:35]Read from MH i2c: 01 07 00 B5 31 00 00 00 00 00 FF 0F FB [04:31:35]process_action close_receipt done [04:31:35]requested_data is exist [04:31:35]produce_requested_data [04:31:35]requested_item fm.sn is exist - process it [04:31:35]wFMCommunicate request_size=4 [04:31:35]MH_SAM_APDU [04:31:35]CAPDU: 80 11 00 00 [04:31:35]Write to MH i2c: E2 08 00 B6 31 80 11 00 00 00 00 00 00 61 [04:31:35]Write i2c OK [04:31:35]MH_I2C_Read... [04:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:31:35]Read from MH i2c: E2 [04:31:35]MH_I2C_Read... [04:31:35]Read from MH i2c: E2 17 00 [04:31:35]MH_I2C_Read... [04:31:35]Read from MH i2c: E2 17 00 B6 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BC [04:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:31:35]wFMCommunicate OK [04:31:35]requested_item fd.num is exist - process it [04:31:35]SAM_PROTO_GetFieldsCounters [04:31:35]wFMCommunicate request_size=4 [04:31:35]MH_SAM_APDU [04:31:35]CAPDU: 80 13 00 00 [04:31:35]Write to MH i2c: E2 08 00 B7 31 80 13 00 00 00 00 00 00 64 [04:31:35]Write i2c OK [04:31:35]MH_I2C_Read... [04:31:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:31:35]Read from MH i2c: E2 [04:31:35]MH_I2C_Read... [04:31:35]Read from MH i2c: E2 62 00 [04:31:35]MH_I2C_Read... [04:31:35]Read from MH i2c: E2 62 00 B7 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5A 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 A4 [04:31:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5A 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:31:35]wFMCommunicate OK [04:31:35]SAM_PROTO_GetFieldsCounters done [04:31:35]requested_item shift.num is exist - process it [04:31:35]requested_item shift.opened is exist - process it [04:31:35]req_shift_opened [04:31:35]FM_GetShiftState [04:31:35]SAM_PROTO_GetShiftState [04:31:35]wFMCommunicate request_size=4 [04:31:35]MH_SAM_APDU [04:31:35]CAPDU: 80 13 01 00 [04:31:35]Write to MH i2c: E2 08 00 B8 31 80 13 01 00 00 00 00 00 66 [04:31:35]Write i2c OK [04:31:35]MH_I2C_Read... [04:31:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:31:35]Read from MH i2c: E2 [04:31:35]MH_I2C_Read... [04:31:35]Read from MH i2c: E2 0E 00 [04:31:35]MH_I2C_Read... [04:31:35]Read from MH i2c: E2 0E 00 B8 31 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F6 [04:31:35]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:31:35]wFMCommunicate OK [04:31:35]SAM_PROTO_GetShiftState done [04:31:35]FM_GetShiftState done [04:31:35]req_shift_opened done [04:31:35]requested_item shift.open_date is exist - process it [04:31:35]req_shift_open_date [04:31:35]req_shift_open_date done [04:31:35]produce_requested_data done [04:31:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139354,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [04:31:35]process_action_free close_receipt [04:31:35]json_value_free [04:31:35]json_value_free done [04:31:35]process_json_proto returns [04:31:35]Send response to host [04:31:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139354,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [04:31:35]free response buf [04:31:35]execute_script done [04:31:35]execute_script returns [04:31:35]free content buf [04:31:35]Sock 9.Close socket [04:31:35]Sock 9.Thread stoped [04:31:39]OFD Sender: No OFD packet to send [04:31:44]OFD Sender: No OFD packet to send [04:31:49]OFD Sender: No OFD packet to send [04:31:54]OFD Sender: No OFD packet to send [04:31:59]OFD Sender: No OFD packet to send [04:32:04]OFD Sender: No OFD packet to send [04:32:09]OFD Sender: No OFD packet to send [04:32:14]OFD Sender: No OFD packet to send [04:32:19]OFD Sender: No OFD packet to send [04:32:24]OFD Sender: No OFD packet to send [04:32:29]OFD Sender: No OFD packet to send [04:32:34]OFD Sender: No OFD packet to send [04:32:39]OFD Sender: No OFD packet to send [04:32:44]OFD Sender: No OFD packet to send [04:32:49]OFD Sender: No OFD packet to send [04:32:54]OFD Sender: No OFD packet to send [04:32:59]OFD Sender: No OFD packet to send [04:33:04]OFD Sender: No OFD packet to send [04:33:09]OFD Sender: No OFD packet to send [04:33:14]OFD Sender: No OFD packet to send [04:33:19]OFD Sender: No OFD packet to send [04:33:19]int [04:33:19]Write to MH i2c: 01 00 00 B9 31 EA [04:33:19]Write i2c OK [04:33:19]MH_I2C_Read... [04:33:19]Read from MH i2c: 01 [04:33:19]MH_I2C_Read... [04:33:19]Read from MH i2c: 01 07 00 [04:33:19]MH_I2C_Read... [04:33:19]*** FLAG_PRN_PAP1 set [04:33:19]*** FLAG_PRN_PAP1 reset [04:33:19]Read from MH i2c: 01 07 00 B9 31 00 00 00 00 00 FF 0F FF [04:33:19]state=0 [04:33:19]int [04:33:19]Write to MH i2c: 01 00 00 BA 31 EB [04:33:19]*** FLAG_PRN_PAP1 set [04:33:19]Write i2c OK [04:33:19]MH_I2C_Read... [04:33:19]Read from MH i2c: 01 [04:33:19]MH_I2C_Read... [04:33:19]Read from MH i2c: 01 07 00 [04:33:19]MH_I2C_Read... [04:33:19]Read from MH i2c: 01 07 00 BA 31 00 01 00 00 00 FF 0F 01 [04:33:19]state=0 [04:33:19]No paper [04:33:20]int [04:33:20]Write to MH i2c: 01 00 00 BB 31 EC [04:33:20]*** FLAG_PRN_PAP2 set [04:33:20]Write i2c OK [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 BB 31 00 03 00 00 00 FF 0F 04 [04:33:20]state=0 [04:33:20]No paper [04:33:20]Cover opened [04:33:20]int [04:33:20]Write to MH i2c: 01 00 00 BC 31 ED [04:33:20]*** FLAG_PRN_PAP2 reset [04:33:20]Write i2c OK [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 BC 31 00 01 00 00 00 FF 0F 03 [04:33:20]state=3 [04:33:20]No paper [04:33:20]Cover closed [04:33:20]int [04:33:20]Write to MH i2c: 01 00 00 BD 31 EE [04:33:20]*** FLAG_PRN_PAP2 set [04:33:20]Write i2c OK [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 BD 31 00 03 00 00 00 FF 0F 06 [04:33:20]state=0 [04:33:20]No paper [04:33:20]Cover opened [04:33:20]int [04:33:20]Write to MH i2c: 01 00 00 BE 31 EF [04:33:20]*** FLAG_PRN_PAP2 reset [04:33:20]Write i2c OK [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 BE 31 00 01 00 00 00 FF 0F 05 [04:33:20]state=3 [04:33:20]No paper [04:33:20]Cover closed [04:33:20]int [04:33:20]Write to MH i2c: 01 00 00 BF 31 F0 [04:33:20]*** FLAG_PRN_PAP2 set [04:33:20]Write i2c OK [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 BF 31 00 03 00 00 00 FF 0F 08 [04:33:20]state=0 [04:33:20]No paper [04:33:20]Cover opened [04:33:20]int [04:33:20]Write to MH i2c: 01 00 00 C0 31 F1 [04:33:20]*** FLAG_PRN_PAP2 reset [04:33:20]Write i2c OK [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 C0 31 00 01 00 00 00 FF 0F 07 [04:33:20]state=3 [04:33:20]No paper [04:33:20]Cover closed [04:33:20]int [04:33:20]Write to MH i2c: 01 00 00 C1 31 F2 [04:33:20]*** FLAG_PRN_PAP2 set [04:33:20]Write i2c OK [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 [04:33:20]MH_I2C_Read... [04:33:20]Read from MH i2c: 01 07 00 C1 31 00 03 00 00 00 FF 0F 0A [04:33:20]state=0 [04:33:20]No paper [04:33:20]Cover opened [04:33:24]OFD Sender: No OFD packet to send [04:33:25]Write to MH i2c: 01 00 00 C2 31 F3 [04:33:25]Write i2c OK [04:33:25]MH_I2C_Read... [04:33:25]Read from MH i2c: 01 [04:33:25]MH_I2C_Read... [04:33:25]Read from MH i2c: 01 07 00 [04:33:25]MH_I2C_Read... [04:33:25]Read from MH i2c: 01 07 00 C2 31 00 03 00 00 00 FF 0F 0B [04:33:25]state=3 [04:33:25]No paper [04:33:25]Cover opened [04:33:26]int [04:33:26]Write to MH i2c: 01 00 00 C3 31 F4 [04:33:26]*** FLAG_PRN_PAP2 reset [04:33:26]Write i2c OK [04:33:26]MH_I2C_Read... [04:33:26]Read from MH i2c: 01 [04:33:26]MH_I2C_Read... [04:33:26]Read from MH i2c: 01 07 00 [04:33:26]MH_I2C_Read... [04:33:26]Read from MH i2c: 01 07 00 C3 31 00 01 00 00 00 FF 0F 0A [04:33:26]state=3 [04:33:26]No paper [04:33:26]Cover closed [04:33:26]int [04:33:26]Write to MH i2c: 01 00 00 C4 31 F5 [04:33:26]*** FLAG_PRN_PAP1 reset [04:33:26]Write i2c OK [04:33:26]MH_I2C_Read... [04:33:26]Read from MH i2c: 01 [04:33:26]MH_I2C_Read... [04:33:26]Read from MH i2c: 01 07 00 [04:33:26]MH_I2C_Read... [04:33:26]Read from MH i2c: 01 07 00 C4 31 00 00 00 00 00 FF 0F 0A [04:33:26]state=0 [04:33:29]OFD Sender: No OFD packet to send [04:33:34]OFD Sender: No OFD packet to send [04:33:34]accept exits with 8 [04:33:34]New connection [04:33:34]New thread 3067284836 created [04:33:34]Thread 3067141476 joined [04:33:34]Waiting for new connection... [04:33:34] Sock 8.Parse request [04:33:34]Sock 8.Check first char [04:33:34]Sock 8.First char is OK [04:33:34]request: POST /json_proto HTTP/1.0 [04:33:34]Method: POST [04:33:34]URL: /json_proto [04:33:34]Method is POST - this is cgi request [04:33:34]url: /json_proto [04:33:34]query_string will be loaded in cgi processing [04:33:34]execute_cgi json_proto POST (null) [04:33:34]execute_cgi path=json_proto method=POST [04:33:34]POST find Content-Length [04:33:34]Host: 172.17.50.196:8080 [04:33:34]Content-Length: 215 [04:33:34]Content-Type: application/json [04:33:34] [04:33:34]POST finish read [04:33:34]Found Content-Length = 215 [04:33:34]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" ] } } [04:33:34]execute_script... [04:33:34]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" ] } } [04:33:34]POST & json_proto [04:33:34]process_json_proto [04:33:34]json parsed OK: [04:33:34]protocol is kg_v1.0 [04:33:34]action value=get_value [04:33:34]process_action get_value [04:33:34]cmd_get_value [04:33:34]process_action get_value done [04:33:34]requested_data is exist [04:33:34]produce_requested_data [04:33:34]requested_item kkm.sn is exist - process it [04:33:34]requested_item kkm.ver is exist - process it [04:33:34]requested_item fm.sn is exist - process it [04:33:34]wFMCommunicate request_size=4 [04:33:34]MH_SAM_APDU [04:33:34]CAPDU: 80 11 00 00 [04:33:34]Write to MH i2c: E2 08 00 C5 31 80 11 00 00 00 00 00 00 70 [04:33:34]Write i2c OK [04:33:34]MH_I2C_Read... [04:33:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:33:35]Read from MH i2c: E2 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 17 00 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 17 00 C5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CB [04:33:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:33:35]wFMCommunicate OK [04:33:35]requested_item fd.num is exist - process it [04:33:35]SAM_PROTO_GetFieldsCounters [04:33:35]wFMCommunicate request_size=4 [04:33:35]MH_SAM_APDU [04:33:35]CAPDU: 80 13 00 00 [04:33:35]Write to MH i2c: E2 08 00 C6 31 80 13 00 00 00 00 00 00 73 [04:33:35]Write i2c OK [04:33:35]MH_I2C_Read... [04:33:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:33:35]Read from MH i2c: E2 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 62 00 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 62 00 C6 31 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5A 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 B3 [04:33:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5A 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:33:35]wFMCommunicate OK [04:33:35]SAM_PROTO_GetFieldsCounters done [04:33:35]requested_item shift.num is exist - process it [04:33:35]requested_item shift.opened is exist - process it [04:33:35]req_shift_opened [04:33:35]FM_GetShiftState [04:33:35]SAM_PROTO_GetShiftState [04:33:35]wFMCommunicate request_size=4 [04:33:35]MH_SAM_APDU [04:33:35]CAPDU: 80 13 01 00 [04:33:35]Write to MH i2c: E2 08 00 C7 31 80 13 01 00 00 00 00 00 75 [04:33:35]Write i2c OK [04:33:35]MH_I2C_Read... [04:33:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:33:35]Read from MH i2c: E2 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 0E 00 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 0E 00 C7 31 00 09 00 01 86 76 21 67 00 00 00 00 90 00 05 [04:33:35]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:33:35]wFMCommunicate OK [04:33:35]SAM_PROTO_GetShiftState done [04:33:35]FM_GetShiftState done [04:33:35]req_shift_opened done [04:33:35]requested_item shift.open_date is exist - process it [04:33:35]req_shift_open_date [04:33:35]req_shift_open_date done [04:33:35]produce_requested_data done [04:33:35]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139354,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [04:33:35]process_action_free get_value [04:33:35]json_value_free [04:33:35]json_value_free done [04:33:35]process_json_proto returns [04:33:35]Send response to host [04:33:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139354,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [04:33:35]free response buf [04:33:35]execute_script done [04:33:35]execute_script returns [04:33:35]free content buf [04:33:35]Sock 8.Close socket [04:33:35]Sock 8.Thread stoped [04:33:35]accept exits with 9 [04:33:35]New connection [04:33:35]New thread 3067141476 created [04:33:35]Thread 3067284836 joined [04:33:35]Waiting for new connection... [04:33:35] Sock 9.Parse request [04:33:35]Sock 9.Check first char [04:33:35]Sock 9.First char is OK [04:33:35]request: POST /json_proto HTTP/1.0 [04:33:35]Method: POST [04:33:35]URL: /json_proto [04:33:35]Method is POST - this is cgi request [04:33:35]url: /json_proto [04:33:35]query_string will be loaded in cgi processing [04:33:35]execute_cgi json_proto POST (null) [04:33:35]execute_cgi path=json_proto method=POST [04:33:35]POST find Content-Length [04:33:35]Host: 172.17.50.196:8080 [04:33:35]Content-Length: 331 [04:33:35]Content-Type: application/json [04:33:35] [04:33:35]POST finish read [04:33:35]Found Content-Length = 331 [04:33:35]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" ] } } [04:33:35]execute_script... [04:33:35]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" ] } } [04:33:35]POST & json_proto [04:33:35]process_json_proto [04:33:35]json parsed OK: [04:33:35]protocol is kg_v1.0 [04:33:35]action value=get_value [04:33:35]process_action get_value [04:33:35]cmd_get_value [04:33:35]process_action get_value done [04:33:35]requested_data is exist [04:33:35]produce_requested_data [04:33:35]requested_item fm.sale.total is exist - process it [04:33:35]SAM_PROTO_GetFMData [04:33:35]wFMCommunicate request_size=4 [04:33:35]MH_SAM_APDU [04:33:35]CAPDU: 80 13 03 00 [04:33:35]Write to MH i2c: E2 08 00 C8 31 80 13 03 00 00 00 00 00 78 [04:33:35]Write i2c OK [04:33:35]MH_I2C_Read... [04:33:35]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [04:33:35]Read from MH i2c: E2 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 FD 00 [04:33:35]MH_I2C_Read... [04:33:35]Read from MH i2c: E2 FD 00 C8 31 00 C7 04 85 04 C3 04 6E 04 04 00 02 1C 02 00 69 04 A3 00 6F 04 04 00 B7 19 02 00 B1 04 05 00 60 B4 0C 52 01 70 04 05 00 84 A5 EB 02 01 72 04 04 00 DC 0E 21 4F 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 1C E3 E6 23 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 9A A5 FD 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 30 [04:33:35]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 02 1C 02 00 69 04 A3 00 6F 04 04 00 B7 19 02 00 B1 04 05 00 60 B4 0C 52 01 70 04 05 00 84 A5 EB 02 01 72 04 04 00 DC 0E 21 4F 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 1C E3 E6 23 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 9A A5 FD 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [04:33:35]wFMCommunicate OK [04:33:35]wFMCommunicate request_size=4 [04:33:35]MH_SAM_APDU [04:33:35]CAPDU: 80 17 00 00 [04:33:35]Write to MH i2c: E2 08 00 C9 31 80 17 00 00 00 00 00 00 7A [04:33:35]Write i2c OK [04:33:35]MH_I2C_Read... [04:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:33:36]Read from MH i2c: E2 [04:33:36]MH_I2C_Read... [04:33:36]Read from MH i2c: E2 FD 00 [04:33:36]MH_I2C_Read... [04:33:36]Read from MH i2c: E2 FD 00 C9 31 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 91 [04:33:36]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:33:36]wFMCommunicate OK [04:33:36]wFMCommunicate request_size=4 [04:33:36]MH_SAM_APDU [04:33:36]CAPDU: 80 17 00 00 [04:33:36]Write to MH i2c: E2 08 00 CA 31 80 17 00 00 00 00 00 00 7B [04:33:36]Write i2c OK [04:33:36]MH_I2C_Read... [04:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:33:36]Read from MH i2c: E2 [04:33:36]MH_I2C_Read... [04:33:36]Read from MH i2c: E2 FD 00 [04:33:36]MH_I2C_Read... [04:33:36]Read from MH i2c: E2 FD 00 CA 31 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 53 [04:33:36]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:33:36]wFMCommunicate OK [04:33:36]wFMCommunicate request_size=4 [04:33:36]MH_SAM_APDU [04:33:36]CAPDU: 80 17 00 00 [04:33:36]Write to MH i2c: E2 08 00 CB 31 80 17 00 00 00 00 00 00 7C [04:33:36]Write i2c OK [04:33:36]MH_I2C_Read... [04:33:36]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:33:36]Read from MH i2c: E2 [04:33:36]MH_I2C_Read... [04:33:36]Read from MH i2c: E2 FD 00 [04:33:36]MH_I2C_Read... [04:33:36]Read from MH i2c: E2 FD 00 CB 31 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [04:33:36]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [04:33:36]wFMCommunicate OK [04:33:36]wFMCommunicate request_size=4 [04:33:36]MH_SAM_APDU [04:33:36]CAPDU: 80 17 00 00 [04:33:36]Write to MH i2c: E2 08 00 CC 31 80 17 00 00 00 00 00 00 7D [04:33:36]Write i2c OK [04:33:36]MH_I2C_Read... [04:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [04:33:37]Read from MH i2c: E2 [04:33:37]MH_I2C_Read... [04:33:37]Read from MH i2c: E2 E4 00 [04:33:37]MH_I2C_Read... [04:33:37]Read from MH i2c: E2 E4 00 CC 31 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 5D [04:33:37]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [04:33:37]wFMCommunicate OK [04:33:37]SAM_PROTO_GetFMData done [04:33:37]requested_item fm.sale_refund.total is exist - process it [04:33:37]requested_item fm.buy.total is exist - process it [04:33:37]requested_item shift.sale.total is exist - process it [04:33:37]SAM_PROTO_GetShiftData [04:33:37]wFMCommunicate request_size=4 [04:33:37]MH_SAM_APDU [04:33:37]CAPDU: 80 13 02 00 [04:33:37]Write to MH i2c: E2 08 00 CD 31 80 13 02 00 00 00 00 00 7C [04:33:37]Write i2c OK [04:33:37]MH_I2C_Read... [04:33:37]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [04:33:37]Read from MH i2c: E2 [04:33:37]MH_I2C_Read... [04:33:37]Read from MH i2c: E2 FD 00 [04:33:37]MH_I2C_Read... [04:33:37]Read from MH i2c: E2 FD 00 CD 31 00 AE 04 AA 04 AA 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 26 00 00 00 B1 04 03 00 F0 DB 0B 70 04 03 00 58 75 0A 72 04 03 00 98 66 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5F 42 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DC 1A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 CD [04:33:37]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 26 00 00 00 69 04 9B 00 6F 04 04 00 26 00 00 00 B1 04 03 00 F0 DB 0B 70 04 03 00 58 75 0A 72 04 03 00 98 66 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 5F 42 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 DC 1A EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [04:33:37]wFMCommunicate OK [04:33:37]wFMCommunicate request_size=4 [04:33:37]MH_SAM_APDU [04:33:37]CAPDU: 80 17 00 00 [04:33:37]Write to MH i2c: E2 08 00 CE 31 80 17 00 00 00 00 00 00 7F [04:33:37]Write i2c OK [04:33:37]MH_I2C_Read... [04:33:37]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:33:37]Read from MH i2c: E2 [04:33:37]MH_I2C_Read... [04:33:37]Read from MH i2c: E2 FD 00 [04:33:37]MH_I2C_Read... [04:33:37]Read from MH i2c: E2 FD 00 CE 31 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 A1 [04:33:37]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [04:33:37]wFMCommunicate OK [04:33:37]wFMCommunicate request_size=4 [04:33:37]MH_SAM_APDU [04:33:37]CAPDU: 80 17 00 00 [04:33:37]Write to MH i2c: E2 08 00 CF 31 80 17 00 00 00 00 00 00 80 [04:33:37]Write i2c OK [04:33:37]MH_I2C_Read... [04:33:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:33:38]Read from MH i2c: E2 [04:33:38]MH_I2C_Read... [04:33:38]Read from MH i2c: E2 FD 00 [04:33:38]MH_I2C_Read... [04:33:38]Read from MH i2c: E2 FD 00 CF 31 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 37 [04:33:38]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [04:33:38]wFMCommunicate OK [04:33:38]wFMCommunicate request_size=4 [04:33:38]MH_SAM_APDU [04:33:38]CAPDU: 80 17 00 00 [04:33:38]Write to MH i2c: E2 08 00 D0 31 80 17 00 00 00 00 00 00 81 [04:33:38]Write i2c OK [04:33:38]MH_I2C_Read... [04:33:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [04:33:38]Read from MH i2c: E2 [04:33:38]MH_I2C_Read... [04:33:38]Read from MH i2c: E2 FD 00 [04:33:38]MH_I2C_Read... [04:33:38]Read from MH i2c: E2 FD 00 D0 31 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 F3 [04:33:38]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [04:33:38]wFMCommunicate OK [04:33:38]wFMCommunicate request_size=4 [04:33:38]MH_SAM_APDU [04:33:38]CAPDU: 80 17 00 00 [04:33:38]Write to MH i2c: E2 08 00 D1 31 80 17 00 00 00 00 00 00 82 [04:33:38]Write i2c OK [04:33:38]MH_I2C_Read... [04:33:38]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [04:33:38]Read from MH i2c: E2 [04:33:38]MH_I2C_Read... [04:33:38]Read from MH i2c: E2 CB 00 [04:33:38]MH_I2C_Read... [04:33:38]Read from MH i2c: E2 CB 00 D1 31 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 6B [04:33:38]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [04:33:38]wFMCommunicate OK [04:33:38]SAM_PROTO_GetShiftData done [04:33:38]requested_item shift.sale.total_cash is exist - process it [04:33:38]requested_item shift.sale_refund.total is exist - process it [04:33:38]requested_item shift.sale_refund.total_cash is exist - process it [04:33:38]requested_item shift.buy.total is exist - process it [04:33:38]requested_item shift.buy.total_cash is exist - process it [04:33:38]produce_requested_data done [04:33:38]produce_requested_data return {"fm.sale.total":56715316.16,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":7772.00,"shift.sale.total_cash":6854.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} [04:33:38]process_action_free get_value [04:33:38]json_value_free [04:33:38]json_value_free done [04:33:38]process_json_proto returns [04:33:38]Send response to host [04:33:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56715316.16,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":7772.00,"shift.sale.total_cash":6854.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}}} [04:33:38]free response buf [04:33:38]execute_script done [04:33:38]execute_script returns [04:33:38]free content buf [04:33:38]Sock 9.Close socket [04:33:38]Sock 9.Thread stoped [04:33:39]OFD Sender: No OFD packet to send [04:33:44]OFD Sender: No OFD packet to send [04:33:49]OFD Sender: No OFD packet to send [04:33:54]OFD Sender: No OFD packet to send [04:33:59]OFD Sender: No OFD packet to send [04:34:04]OFD Sender: No OFD packet to send [04:34:09]OFD Sender: No OFD packet to send [04:34:14]OFD Sender: No OFD packet to send [04:34:19]OFD Sender: No OFD packet to send [04:34:24]OFD Sender: No OFD packet to send [04:34:29]OFD Sender: No OFD packet to send [04:34:34]OFD Sender: No OFD packet to send [04:34:39]OFD Sender: No OFD packet to send [04:34:42]accept exits with 8 [04:34:42]New connection [04:34:42]New thread 3067284836 created [04:34:42]Thread 3067141476 joined [04:34:42]Waiting for new connection... [04:34:42] Sock 8.Parse request [04:34:42]Sock 8.Check first char [04:34:42]Sock 8.First char is OK [04:34:42]request: POST /json_proto HTTP/1.0 [04:34:42]Method: POST [04:34:42]URL: /json_proto [04:34:42]Method is POST - this is cgi request [04:34:42]url: /json_proto [04:34:42]query_string will be loaded in cgi processing [04:34:42]execute_cgi json_proto POST (null) [04:34:42]execute_cgi path=json_proto method=POST [04:34:42]POST find Content-Length [04:34:42]Host: 172.17.50.196:8080 [04:34:42]Content-Length: 989 [04:34:42]Content-Type: application/json [04:34:42] [04:34:42]POST finish read [04:34:42]Found Content-Length = 989 [04:34:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335263", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:42]execute_script... [04:34: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 : (3)335263", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:34:42]POST & json_proto [04:34:42]process_json_proto [04:34:42]json parsed OK: [04:34:42]protocol is kg_v1.0 [04:34:42]action value=close_receipt [04:34:42]process_action close_receipt [04:34:42]cmd_close_receipt [04:34:42]MH_GetDate [04:34:42]Write to MH i2c: F0 00 00 D2 31 F2 [04:34:42]Write i2c OK [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: F0 [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: F0 09 00 [04:34:42]MH_I2C_Read... [04:34:42]Read from MH i2c: F0 09 00 D2 31 00 65 B7 21 67 72 0D 1C 67 A1 [04:34:42]GetLastDocTimeStamp 1730262694 [04:34:42]current date 1730262885 [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 31 80 13 01 00 00 00 00 00 81 [04:34:42]Write i2c OK [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 [04:34:42]MH_I2C_Read... [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 31 00 09 00 01 86 76 21 67 00 00 00 00 90 00 11 [04:34:42]RAPDU: 09 00 01 86 76 21 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]opened in 1730246278 [04:34:42]opened+sec_in_day 1730332678 [04:34:42]quantity*price = 14500 [04:34:42]sum+1 = 14501 [04:34:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400969 Арахис жарен Караван орехов Стандарт 40 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.63 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 39 30.10.2024 04:34 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139355 ФПД: 33179424003304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T043445&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139355&fm=33179424003304&tin=02508201610067®Number=0000000000091631&sum=18500 0 [04:34:43]StoreToDocumentArchive [04:34:43]shift 556 fd 139355 [04:34:43]save to /storage/0556/doc_00139355 [04:34:43]save last doc name /storage/0556/doc_00139355 to /storage/kkm_last_doc_name [04:34:43]save OK [04:34:43]Clear old archive folders... [04:34:43]ProcessDocumentItem done err = 0, tmpTLVsize=409 [04:34:43]tlvbuf is 0112CD80 [04:34:43]SAM_PROTO_ClearQueue [04:34:43]wFMCommunicate request_size=4 [04:34:43]MH_SAM_APDU [04:34:43]CAPDU: 80 09 00 00 [04:34:43]Write to MH i2c: E2 08 00 E0 31 80 09 00 00 00 00 00 00 83 [04:34:43]Write i2c OK [04:34:43]MH_I2C_Read... [04:34:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:34:43]Read from MH i2c: E2 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 03 00 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 03 00 E0 31 00 90 00 85 [04:34:43]RAPDU: 90 00 [04:34:43]wFMCommunicate OK [04:34:43]SAM_PROTO_ClearQueue done [04:34:43]KKMCreateOFDPacket [04:34:43]OFDProtocolAddRootSTLVToBuf [04:34:43]FM_MakeSignedData [04:34:43]FM_MakeSignedData [04:34:43]SAM_PROTO_SignData [04:34:43]wFMCommunicate request_size=4 [04:34:43]MH_SAM_APDU [04:34:43]CAPDU: 80 0D 01 02 [04:34:43]Write to MH i2c: E2 08 00 E1 31 80 0D 01 02 00 00 00 00 8B [04:34:43]Write i2c OK [04:34:43]MH_I2C_Read... [04:34:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:34:43]Read from MH i2c: E2 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 03 00 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 03 00 E1 31 00 90 00 86 [04:34:43]RAPDU: 90 00 [04:34:43]wFMCommunicate OK [04:34:43]wFMCommunicate request_size=255 [04:34:43]MH_SAM_APDU [04:34:43]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [04:34:43]Write to MH i2c: E2 02 01 E2 31 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 0E [04:34:43]Write i2c OK [04:34:43]MH_I2C_Read... [04:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:43]Read from MH i2c: E2 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 03 00 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 03 00 E2 31 00 90 00 87 [04:34:43]RAPDU: 90 00 [04:34:43]wFMCommunicate OK [04:34:43]wFMCommunicate request_size=168 [04:34:43]MH_SAM_APDU [04:34:43]CAPDU: 80 0D 02 02 A3 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 65 B7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 20 02 00 35 04 06 00 1E 2D 2F C8 14 E8 [04:34:43]Write to MH i2c: E2 AB 00 E3 31 80 0D 02 02 A3 00 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 65 B7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 20 02 00 35 04 06 00 1E 2D 2F C8 14 E8 00 00 3D [04:34:43]Write i2c OK [04:34:43]MH_I2C_Read... [04:34:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:34:43]Read from MH i2c: E2 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 03 00 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 03 00 E3 31 00 90 00 88 [04:34:43]RAPDU: 90 00 [04:34:43]wFMCommunicate OK [04:34:43]wFMCommunicate request_size=4 [04:34:43]MH_SAM_APDU [04:34:43]CAPDU: 80 0D 03 02 [04:34:43]Write to MH i2c: E2 08 00 E4 31 80 0D 03 02 00 00 00 00 90 [04:34:43]Write i2c OK [04:34:43]MH_I2C_Read... [04:34:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:34:43]Read from MH i2c: E2 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 0B 00 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 0B 00 E4 31 00 B9 FB 2F 4A F0 6B 3D 7B 90 00 D1 [04:34:43]RAPDU: B9 FB 2F 4A F0 6B 3D 7B 90 00 [04:34:43]wFMCommunicate OK [04:34:43]SAM_PROTO_SignData done [04:34:43]FM_MakeSignedData done [04:34:43]CreateOFDProtocolMessage [04:34:43]wFMCommunicate request_size=4 [04:34:43]MH_SAM_APDU [04:34:43]CAPDU: 80 11 00 00 [04:34:43]Write to MH i2c: E2 08 00 E5 31 80 11 00 00 00 00 00 00 90 [04:34:43]Write i2c OK [04:34:43]MH_I2C_Read... [04:34:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:43]Read from MH i2c: E2 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 17 00 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: E2 17 00 E5 31 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EB [04:34:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:34:43]wFMCommunicate OK [04:34:43]CreateOFDProtocolMessage done [04:34:43]OFDSenderStorePacket 139355 [04:34:43]StoreOFDPacket docnum=139355 [04:34:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AD 01 00 00 55 2B A5 01 D6 A4 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 65 B7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 20 02 00 35 04 06 00 1E 2D 2F C8 14 E8 B9 FB 2F 4A F0 6B 3D 7B [04:34:43]CheckFolder [04:34:43]dirname=/storage/ofd_packets [04:34:43]CheckFolder done [04:34:43]ProducePacketName [04:34:43]name=ofd_packets/00139355 [04:34:43]NVStorageSaveData ofd_packets/00139355 [04:34:43]File name is /storage/ofd_packets/00139355 [04:34:43]Write 459 bytes [04:34:43]NVStorageSaveData done [04:34:43]OFDSenderStorePacket done [04:34:43]KKMCreateOFDPacket done [04:34:43]NVStorageSaveData kkm_last_timestamp [04:34:43]File name is /storage/kkm_last_timestamp [04:34:43]Write 4 bytes [04:34:43]NVStorageSaveData done [04:34:43]ExternCall_PrintAddStr [04:34:43]wPrintStart [04:34:43]Write to MH i2c: 01 00 00 E6 31 17 [04:34:43]Write i2c OK [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: 01 [04:34:43]MH_I2C_Read... [04:34:43]Read from MH i2c: 01 07 00 [04:34:44]MH_I2C_Read... [04:34:44]OFD Sender: Processing packet 139355 [packets to send 34, broken 33] [04:34:44]ProducePacketName [04:34:44]name=ofd_packets/00139355 [04:34:44]Read from MH i2c: 01 OFD Sender: To server: pG, [04:34:44]07 CommunicateWithHost lk.salyk.kg:30040 [04:34:44]00 ConnectInit lk.salyk.kg [04:34:44]E6 31 00 00 00 00 00 FF 0F 2C [04:34:44]RasterBufferAndPrint [04:34:44]line Счет N : (3)335263 [04:34:44]line ИНН: 02508201610067 [04:34:44]line Контрольно-Кассовый Чек [04:34:44]line ПРОДАЖА [04:34:44]line Товар: 4700001610012 [04:34:44]line Пиво Арпа 0,5л [04:34:44]line 1.000 * 145.00 [04:34:44]line = 145.00 [04:34:44]line НДС 12% НСП 1% [04:34:44]line > о реализуемом товаре [04:34:44]line Товар: 4630007400969 [04:34:44]line Арахис жарен Караван орехов Стандарт 40 [04:34:44]line 1.000 * 40.00 [04:34:44]line = 40.00 [04:34:44]line НДС 12% НСП 1% [04:34:44]line > о реализуемом товаре [04:34:44]line ИТОГО: 185.00 [04:34:44]line НСП 1% : 1.63 [04:34:44]line НДС 12% : 19.65 [04:34:44]line Наличными: 185.00 [04:34:44]line Безнал.: 0.00 [04:34:44]line Место: АЗС № 101 "Партнер Нефть" [04:34:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:34:44]line СНО: Общий режим [04:34:44]line Чек 39 30.10.2024 04:34 [04:34:44]line Смена: 556 ФФД: 1.0 [04:34:44]line ЗНМ: 0300000081 [04:34:44]line РНМ: 0000000000091631 [04:34:44]line Версия ККМ: 001 [04:34:44]line ФМ: 0000000000874669 [04:34:44]line ФД: 139355 [04:34:44]line ФПД: 33179424003304 [04:34:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T043445&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139355&fm=33179424003304&tin=02508201610067®Number=0000000000091631&sum=18500 [04:34:44]line 0 [04:34:44]written 0, free lines is 4095 [04:34:44]Connected sock=11 [04:34:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AD 01 00 00 55 2B A5 01 D6 A4 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 65 B7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 20 02 00 35 04 06 00 1E 2D 2F C8 14 E8 B9 FB 2F 4A F0 6B 3D 7B [04:34:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2B CE 47 00 9B 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5B 20 02 00 F4 03 04 00 17 63 21 67 B6 04 01 00 00 BA 17 00 8F 1B 21 87 21 [04:34:44]CommunicateWithHost err = 0 [04:34:44]CheckOFDResponse [04:34:44]1017 (14) - 77093643461234 [04:34:44]1041 (16) - 0000000000874669 [04:34:44]1040 (4) - 139355 [04:34:44]1012 (4) - 29.10.2024 22:35 [04:34:44]1206 (1) - 0 [04:34:44]OFD Sender: Remove packet 139355 [04:34:44]ProducePacketName [04:34:44]name=ofd_packets/00139355 [04:34:44]NVStorageDeleteData [04:34:44]Write to MH i2c: 01 00 00 15 32 47 [04:34:44]Write i2c OK [04:34:44]MH_I2C_Read... [04:34:44]Read from MH i2c: 01 [04:34:44]MH_I2C_Read... [04:34:44]Read from MH i2c: 01 07 00 [04:34:44]MH_I2C_Read... [04:34:44]Read from MH i2c: 01 07 00 15 32 00 00 00 00 00 B1 0C 0B [04:34:44]RasterBufferAndPrint [04:34:44]line [04:34:44]line [04:34:44]line [04:34:44]line [04:34:44]line [04:34:44]written 0, free lines is 3258 [04:34:44]MH_Cut [04:34:44]Write to MH i2c: D1 01 00 1C 32 01 20 [04:34:44]Write i2c OK [04:34:44]MH_I2C_Read... [04:34:44]Read from MH i2c: D1 [04:34:44]MH_I2C_Read... [04:34:44]Read from MH i2c: D1 01 00 [04:34:44]MH_I2C_Read... [04:34:44]Read from MH i2c: D1 01 00 1C 32 00 1F [04:34:44]Write to MH i2c: 01 00 00 1D 32 4F [04:34:44]Write i2c OK [04:34:44]MH_I2C_Read... [04:34:44]OFD Sender: No OFD packet to send [04:34:45]*** Cut start [04:34:45]*** Partial cut [04:34:45]*** CUTSNS_PIN = 1 [04:34:45]*** CUTSNS_PIN = 0 [04:34:45]*** Brake cut motor [04:34:46]Read from MH i2c: 01 [04:34:46]MH_I2C_Read... [04:34:46]*** Stop cut motor [04:34:46]*** Cut end [04:34:46]Read from MH i2c: 01 07 00 [04:34:46]MH_I2C_Read... [04:34:46]Read from MH i2c: 01 07 00 1D 32 00 00 00 00 00 FF 0F 64 [04:34:46]process_action close_receipt done [04:34:46]requested_data is exist [04:34:46]produce_requested_data [04:34:46]requested_item fm.sn is exist - process it [04:34:46]wFMCommunicate request_size=4 [04:34:46]MH_SAM_APDU [04:34:46]CAPDU: 80 11 00 00 [04:34:46]Write to MH i2c: E2 08 00 1E 32 80 11 00 00 00 00 00 00 CA [04:34:46]Write i2c OK [04:34:46]MH_I2C_Read... [04:34:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:34:46]Read from MH i2c: E2 [04:34:46]MH_I2C_Read... [04:34:46]Read from MH i2c: E2 17 00 [04:34:46]MH_I2C_Read... [04:34:46]Read from MH i2c: E2 17 00 1E 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 25 [04:34:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:34:46]wFMCommunicate OK [04:34:46]requested_item fd.num is exist - process it [04:34:46]SAM_PROTO_GetFieldsCounters [04:34:46]wFMCommunicate request_size=4 [04:34:46]MH_SAM_APDU [04:34:46]CAPDU: 80 13 00 00 [04:34:46]Write to MH i2c: E2 08 00 1F 32 80 13 00 00 00 00 00 00 CD [04:34:46]Write i2c OK [04:34:46]MH_I2C_Read... [04:34:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:34:46]Read from MH i2c: E2 [04:34:46]MH_I2C_Read... [04:34:46]Read from MH i2c: E2 62 00 [04:34:46]MH_I2C_Read... [04:34:46]Read from MH i2c: E2 62 00 1F 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5B 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 11 [04:34:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5B 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:34:46]wFMCommunicate OK [04:34:46]SAM_PROTO_GetFieldsCounters done [04:34:46]requested_item shift.num is exist - process it [04:34:46]requested_item shift.opened is exist - process it [04:34:46]req_shift_opened [04:34:46]FM_GetShiftState [04:34:46]SAM_PROTO_GetShiftState [04:34:46]wFMCommunicate request_size=4 [04:34:46]MH_SAM_APDU [04:34:46]CAPDU: 80 13 01 00 [04:34:46]Write to MH i2c: E2 08 00 20 32 80 13 01 00 00 00 00 00 CF [04:34:46]Write i2c OK [04:34:46]MH_I2C_Read... [04:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:34:46]Read from MH i2c: E2 [04:34:46]MH_I2C_Read... [04:34:46]Read from MH i2c: E2 0E 00 [04:34:46]MH_I2C_Read... [04:34:46]Read from MH i2c: E2 0E 00 20 32 00 09 00 01 86 76 21 67 00 00 00 00 90 00 5F [04:34:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:34:46]wFMCommunicate OK [04:34:46]SAM_PROTO_GetShiftState done [04:34:46]FM_GetShiftState done [04:34:46]req_shift_opened done [04:34:46]requested_item shift.open_date is exist - process it [04:34:46]req_shift_open_date [04:34:46]req_shift_open_date done [04:34:46]produce_requested_data done [04:34:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139355,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [04:34:46]process_action_free close_receipt [04:34:46]json_value_free [04:34:46]json_value_free done [04:34:46]process_json_proto returns [04:34:46]Send response to host [04:34:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139355,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [04:34:46]free response buf [04:34:46]execute_script done [04:34:46]execute_script returns [04:34:46]free content buf [04:34:46]Sock 8.Close socket [04:34:46]Sock 8.Thread stoped [04:34:49]OFD Sender: No OFD packet to send [04:34:54]OFD Sender: No OFD packet to send [04:34:59]OFD Sender: No OFD packet to send [04:35:04]OFD Sender: No OFD packet to send [04:35:09]OFD Sender: No OFD packet to send [04:35:14]OFD Sender: No OFD packet to send [04:35:19]OFD Sender: No OFD packet to send [04:35:24]OFD Sender: No OFD packet to send [04:35:29]OFD Sender: No OFD packet to send [04:35:35]OFD Sender: No OFD packet to send [04:35:40]OFD Sender: No OFD packet to send [04:35:45]OFD Sender: No OFD packet to send [04:35:50]OFD Sender: No OFD packet to send [04:35:55]OFD Sender: No OFD packet to send [04:36:00]OFD Sender: No OFD packet to send [04:36:05]OFD Sender: No OFD packet to send [04:36:10]OFD Sender: No OFD packet to send [04:36:15]OFD Sender: No OFD packet to send [04:36:20]OFD Sender: No OFD packet to send [04:36:25]OFD Sender: No OFD packet to send [04:36:30]OFD Sender: No OFD packet to send [04:36:35]OFD Sender: No OFD packet to send [04:36:40]OFD Sender: No OFD packet to send [04:36:45]OFD Sender: No OFD packet to send [04:36:50]OFD Sender: No OFD packet to send [04:36:55]OFD Sender: No OFD packet to send [04:37:00]OFD Sender: No OFD packet to send [04:37:05]OFD Sender: No OFD packet to send [04:37:10]OFD Sender: No OFD packet to send [04:37:15]OFD Sender: No OFD packet to send [04:37:20]OFD Sender: No OFD packet to send [04:37:25]OFD Sender: No OFD packet to send [04:37:30]OFD Sender: No OFD packet to send [04:37:35]OFD Sender: No OFD packet to send [04:37:40]OFD Sender: No OFD packet to send [04:37:45]OFD Sender: No OFD packet to send [04:37:50]OFD Sender: No OFD packet to send [04:37:55]OFD Sender: No OFD packet to send [04:38:00]OFD Sender: No OFD packet to send [04:38:05]OFD Sender: No OFD packet to send [04:38:10]OFD Sender: No OFD packet to send [04:38:15]OFD Sender: No OFD packet to send [04:38:20]OFD Sender: No OFD packet to send [04:38:25]OFD Sender: No OFD packet to send [04:38:30]OFD Sender: No OFD packet to send [04:38:35]OFD Sender: No OFD packet to send [04:38:40]OFD Sender: No OFD packet to send [04:38:45]OFD Sender: No OFD packet to send [04:38:50]OFD Sender: No OFD packet to send [04:38:55]OFD Sender: No OFD packet to send [04:39:00]OFD Sender: No OFD packet to send [04:39:05]OFD Sender: No OFD packet to send [04:39:10]OFD Sender: No OFD packet to send [04:39:15]OFD Sender: No OFD packet to send [04:39:20]OFD Sender: No OFD packet to send [04:39:25]OFD Sender: No OFD packet to send [04:39:30]OFD Sender: No OFD packet to send [04:39:35]OFD Sender: No OFD packet to send [04:39:40]OFD Sender: No OFD packet to send [04:39:45]OFD Sender: No OFD packet to send [04:39:50]OFD Sender: No OFD packet to send [04:39:55]OFD Sender: No OFD packet to send [04:40:00]OFD Sender: No OFD packet to send [04:40:05]OFD Sender: No OFD packet to send [04:40:10]OFD Sender: No OFD packet to send [04:40:15]OFD Sender: No OFD packet to send [04:40:20]OFD Sender: No OFD packet to send [04:40:25]OFD Sender: No OFD packet to send [04:40:30]OFD Sender: No OFD packet to send [04:40:35]OFD Sender: No OFD packet to send [04:40:40]OFD Sender: No OFD packet to send [04:40:45]OFD Sender: No OFD packet to send [04:40:50]OFD Sender: No OFD packet to send [04:40:55]OFD Sender: No OFD packet to send [04:41:00]OFD Sender: No OFD packet to send [04:41:05]OFD Sender: No OFD packet to send [04:41:10]OFD Sender: No OFD packet to send [04:41:15]OFD Sender: No OFD packet to send [04:41:20]OFD Sender: No OFD packet to send [04:41:25]OFD Sender: No OFD packet to send [04:41:30]OFD Sender: No OFD packet to send [04:41:35]OFD Sender: No OFD packet to send [04:41:40]OFD Sender: No OFD packet to send [04:41:45]OFD Sender: No OFD packet to send [04:41:50]OFD Sender: No OFD packet to send [04:41:55]OFD Sender: No OFD packet to send [04:42:00]OFD Sender: No OFD packet to send [04:42:05]OFD Sender: No OFD packet to send [04:42:10]OFD Sender: No OFD packet to send [04:42:15]OFD Sender: No OFD packet to send [04:42:20]OFD Sender: No OFD packet to send [04:42:25]OFD Sender: No OFD packet to send [04:42:30]OFD Sender: No OFD packet to send [04:42:35]OFD Sender: No OFD packet to send [04:42:40]OFD Sender: No OFD packet to send [04:42:45]OFD Sender: No OFD packet to send [04:42:50]OFD Sender: No OFD packet to send [04:42:55]OFD Sender: No OFD packet to send [04:43:00]OFD Sender: No OFD packet to send [04:43:05]OFD Sender: No OFD packet to send [04:43:10]OFD Sender: No OFD packet to send [04:43:15]OFD Sender: No OFD packet to send [04:43:20]OFD Sender: No OFD packet to send [04:43:25]OFD Sender: No OFD packet to send [04:43:30]OFD Sender: No OFD packet to send [04:43:35]OFD Sender: No OFD packet to send [04:43:40]OFD Sender: No OFD packet to send [04:43:45]OFD Sender: No OFD packet to send [04:43:50]OFD Sender: No OFD packet to send [04:43:55]OFD Sender: No OFD packet to send [04:44:00]OFD Sender: No OFD packet to send [04:44:05]OFD Sender: No OFD packet to send [04:44:10]OFD Sender: No OFD packet to send [04:44:15]OFD Sender: No OFD packet to send [04:44:20]OFD Sender: No OFD packet to send [04:44:25]OFD Sender: No OFD packet to send [04:44:30]OFD Sender: No OFD packet to send [04:44:35]OFD Sender: No OFD packet to send [04:44:40]OFD Sender: No OFD packet to send [04:44:45]OFD Sender: No OFD packet to send [04:44:50]OFD Sender: No OFD packet to send [04:44:55]OFD Sender: No OFD packet to send [04:45:00]OFD Sender: No OFD packet to send [04:45:05]OFD Sender: No OFD packet to send [04:45:10]OFD Sender: No OFD packet to send [04:45:15]OFD Sender: No OFD packet to send [04:45:20]OFD Sender: No OFD packet to send [04:45:25]OFD Sender: No OFD packet to send [04:45:30]OFD Sender: No OFD packet to send [04:45:35]OFD Sender: No OFD packet to send [04:45:40]OFD Sender: No OFD packet to send [04:45:45]OFD Sender: No OFD packet to send [04:45:50]OFD Sender: No OFD packet to send [04:45:55]OFD Sender: No OFD packet to send [04:46:00]OFD Sender: No OFD packet to send [04:46:05]OFD Sender: No OFD packet to send [04:46:10]OFD Sender: No OFD packet to send [04:46:15]OFD Sender: No OFD packet to send [04:46:20]OFD Sender: No OFD packet to send [04:46:25]OFD Sender: No OFD packet to send [04:46:30]OFD Sender: No OFD packet to send [04:46:35]OFD Sender: No OFD packet to send [04:46:40]OFD Sender: No OFD packet to send [04:46:45]OFD Sender: No OFD packet to send [04:46:50]OFD Sender: No OFD packet to send [04:46:55]OFD Sender: No OFD packet to send [04:47:00]OFD Sender: No OFD packet to send [04:47:05]OFD Sender: No OFD packet to send [04:47:10]OFD Sender: No OFD packet to send [04:47:15]OFD Sender: No OFD packet to send [04:47:20]OFD Sender: No OFD packet to send [04:47:25]OFD Sender: No OFD packet to send [04:47:30]OFD Sender: No OFD packet to send [04:47:35]OFD Sender: No OFD packet to send [04:47:40]OFD Sender: No OFD packet to send [04:47:45]OFD Sender: No OFD packet to send [04:47:50]OFD Sender: No OFD packet to send [04:47:55]OFD Sender: No OFD packet to send [04:48:00]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:30]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [04:51:30]OFD Sender: No OFD packet to send [04:51:35]OFD Sender: No OFD packet to send [04:51:40]OFD Sender: No OFD packet to send [04:51:45]OFD Sender: No OFD packet to send [04:51:50]OFD Sender: No OFD packet to send [04:51:55]OFD Sender: No OFD packet to send [04:52:00]OFD Sender: No OFD packet to send [04:52:05]OFD Sender: No OFD packet to send [04:52:10]OFD Sender: No OFD packet to send [04:52:15]OFD Sender: No OFD packet to send [04:52:20]OFD Sender: No OFD packet to send [04:52:25]OFD Sender: No OFD packet to send [04:52:30]OFD Sender: No OFD packet to send [04:52:35]OFD Sender: No OFD packet to send [04:52:40]OFD Sender: No OFD packet to send [04:52:45]OFD Sender: No OFD packet to send [04:52:50]OFD Sender: No OFD packet to send [04:52:55]OFD Sender: No OFD packet to send [04:53:00]OFD Sender: No OFD packet to send [04:53:05]OFD Sender: No OFD packet to send [04:53:10]OFD Sender: No OFD packet to send [04:53:15]OFD Sender: No OFD packet to send [04:53:20]OFD Sender: No OFD packet to send [04:53:25]OFD Sender: No OFD packet to send [04:53:30]OFD Sender: No OFD packet to send [04:53:35]OFD Sender: No OFD packet to send [04:53:40]OFD Sender: No OFD packet to send [04:53:45]OFD Sender: No OFD packet to send [04:53:50]OFD Sender: No OFD packet to send [04:53:55]OFD Sender: No OFD packet to send [04:54:00]OFD Sender: No OFD packet to send [04:54:05]OFD Sender: No OFD packet to send [04:54:10]OFD Sender: No OFD packet to send [04:54:15]OFD Sender: No OFD packet to send [04:54:20]OFD Sender: No OFD packet to send [04:54:25]OFD Sender: No OFD packet to send [04:54:30]OFD Sender: No OFD packet to send [04:54:35]OFD Sender: No OFD packet to send [04:54:40]OFD Sender: No OFD packet to send [04:54:45]accept exits with 9 [04:54:45]New connection [04:54:45]New thread 3067141476 created [04:54:45]Thread 3067284836 joined [04:54:45]Waiting for new connection... [04:54:45] Sock 9.Parse request [04:54:45]Sock 9.Check first char [04:54:45]Sock 9.First char is OK [04:54:45]request: POST /json_proto HTTP/1.0 [04:54:45]Method: POST [04:54:46]URL: /json_proto [04:54:46]Method is POST - this is cgi request [04:54:46]url: /json_proto [04:54:46]query_string will be loaded in cgi processing [04:54:46]execute_cgi json_proto POST (null) [04:54:46]execute_cgi path=json_proto method=POST [04:54:46]POST find Content-Length [04:54:46]Host: 172.17.50.196:8080 [04:54:46]Content-Length: 989 [04:54:46]Content-Type: application/json [04:54:46] [04:54:46]POST finish read [04:54:46]Found Content-Length = 989 [04:54:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335264", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:46]execute_script... [04: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 : (3)335264", "tax_sys" : 0, "items" : [ { "code": "4700001610012", "name": "\u041F\u0438\u0432\u043E \u0410\u0440\u043F\u0430 0,5\u043B", "price" : 145.00, "quantity" : 1.000, "sum" : 145.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400969", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 40 ", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [04:54:46]POST & json_proto [04:54:46]process_json_proto [04:54:46]json parsed OK: [04:54:46]protocol is kg_v1.0 [04:54:46]action value=close_receipt [04:54:46]process_action close_receipt [04:54:46]cmd_close_receipt [04:54:46]MH_GetDate [04:54:46]Write to MH i2c: F0 00 00 21 32 42 [04:54:46]OFD Sender: No OFD packet to send [04:54:46]Write i2c OK [04:54:46]MH_I2C_Read... [04:54:46]Read from MH i2c: F0 [04:54:46]MH_I2C_Read... [04:54:46]Read from MH i2c: F0 09 00 [04:54:46]MH_I2C_Read... [04:54:46]Read from MH i2c: F0 09 00 21 32 00 19 BC 21 67 72 0D 1C 67 AA [04:54:46]GetLastDocTimeStamp 1730262885 [04:54:46]current date 1730264089 [04:54:46]FM_GetShiftState [04:54:46]SAM_PROTO_GetShiftState [04:54:46]wFMCommunicate request_size=4 [04:54:46]MH_SAM_APDU [04:54:46]CAPDU: 80 13 01 00 [04:54:46]Write to MH i2c: E2 08 00 22 32 80 13 01 00 00 00 00 00 D1 [04:54:46]Write i2c OK [04:54:46]MH_I2C_Read... [04:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:46]Read from MH i2c: E2 [04:54:46]MH_I2C_Read... [04:54:46]Read from MH i2c: E2 0E 00 [04:54:46]MH_I2C_Read... [04:54:46]Read from MH i2c: E2 0E 00 22 32 00 09 00 01 86 76 21 67 00 00 00 00 90 00 61 [04:54:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:54:46]wFMCommunicate OK [04:54:46]SAM_PROTO_GetShiftState done [04:54:46]FM_GetShiftState done [04:54:46]opened in 1730246278 [04:54:46]opened+sec_in_day 1730332678 [04:54:46]quantity*price = 14500 [04:54:46]sum+1 = 14501 [04:54:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400969 Арахис жарен Караван орехов Стандарт 40 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.63 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 40 30.10.2024 04:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139356 ФПД: 166614705834979 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T045449&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139356&fm=166614705834979&tin=02508201610067®Number=0000000000091631&sum=18500 0 [04:54:47]StoreToDocumentArchive [04:54:47]shift 556 fd 139356 [04:54:47]save to /storage/0556/doc_00139356 [04:54:47]save last doc name /storage/0556/doc_00139356 to /storage/kkm_last_doc_name [04:54:47]save OK [04:54:47]Clear old archive folders... [04:54:47]ProcessDocumentItem done err = 0, tmpTLVsize=409 [04:54:47]tlvbuf is 0111A7B0 [04:54:47]SAM_PROTO_ClearQueue [04:54:47]wFMCommunicate request_size=4 [04:54:47]MH_SAM_APDU [04:54:47]CAPDU: 80 09 00 00 [04:54:47]Write to MH i2c: E2 08 00 2F 32 80 09 00 00 00 00 00 00 D3 [04:54:47]Write i2c OK [04:54:47]MH_I2C_Read... [04:54:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [04:54:47]Read from MH i2c: E2 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 03 00 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 03 00 2F 32 00 90 00 D5 [04:54:47]RAPDU: 90 00 [04:54:47]wFMCommunicate OK [04:54:47]SAM_PROTO_ClearQueue done [04:54:47]KKMCreateOFDPacket [04:54:47]OFDProtocolAddRootSTLVToBuf [04:54:47]FM_MakeSignedData [04:54:47]FM_MakeSignedData [04:54:47]SAM_PROTO_SignData [04:54:47]wFMCommunicate request_size=4 [04:54:47]MH_SAM_APDU [04:54:47]CAPDU: 80 0D 01 02 [04:54:47]Write to MH i2c: E2 08 00 30 32 80 0D 01 02 00 00 00 00 DB [04:54:47]Write i2c OK [04:54:47]MH_I2C_Read... [04:54:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [04:54:47]Read from MH i2c: E2 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 03 00 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 03 00 30 32 00 90 00 D6 [04:54:47]RAPDU: 90 00 [04:54:47]wFMCommunicate OK [04:54:47]wFMCommunicate request_size=255 [04:54:47]MH_SAM_APDU [04:54:47]CAPDU: 80 0D 02 02 FA 03 00 99 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 [04:54:47]Write to MH i2c: E2 02 01 31 32 80 0D 02 02 FA 00 03 00 99 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 00 00 5E [04:54:47]Write i2c OK [04:54:47]MH_I2C_Read... [04:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:47]Read from MH i2c: E2 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 03 00 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 03 00 31 32 00 90 00 D7 [04:54:47]RAPDU: 90 00 [04:54:47]wFMCommunicate OK [04:54:47]wFMCommunicate request_size=168 [04:54:47]MH_SAM_APDU [04:54:47]CAPDU: 80 0D 02 02 A3 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 19 BC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 20 02 00 35 04 06 00 97 89 02 5B 0B E3 [04:54:47]Write to MH i2c: E2 AB 00 32 32 80 0D 02 02 A3 00 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 19 BC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 20 02 00 35 04 06 00 97 89 02 5B 0B E3 00 00 75 [04:54:47]Write i2c OK [04:54:47]MH_I2C_Read... [04:54:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [04:54:47]Read from MH i2c: E2 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 03 00 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 03 00 32 32 00 90 00 D8 [04:54:47]RAPDU: 90 00 [04:54:47]wFMCommunicate OK [04:54:47]wFMCommunicate request_size=4 [04:54:47]MH_SAM_APDU [04:54:47]CAPDU: 80 0D 03 02 [04:54:47]Write to MH i2c: E2 08 00 33 32 80 0D 03 02 00 00 00 00 E0 [04:54:47]Write i2c OK [04:54:47]MH_I2C_Read... [04:54:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [04:54:47]Read from MH i2c: E2 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 0B 00 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 0B 00 33 32 00 11 15 BC B4 64 2E B4 CE 90 00 8B [04:54:47]RAPDU: 11 15 BC B4 64 2E B4 CE 90 00 [04:54:47]wFMCommunicate OK [04:54:47]SAM_PROTO_SignData done [04:54:47]FM_MakeSignedData done [04:54:47]CreateOFDProtocolMessage [04:54:47]wFMCommunicate request_size=4 [04:54:47]MH_SAM_APDU [04:54:47]CAPDU: 80 11 00 00 [04:54:47]Write to MH i2c: E2 08 00 34 32 80 11 00 00 00 00 00 00 E0 [04:54:47]Write i2c OK [04:54:47]MH_I2C_Read... [04:54:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:47]Read from MH i2c: E2 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 17 00 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: E2 17 00 34 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3B [04:54:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:54:47]wFMCommunicate OK [04:54:47]CreateOFDProtocolMessage done [04:54:47]OFDSenderStorePacket 139356 [04:54:47]StoreOFDPacket docnum=139356 [04:54:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AD 01 00 00 A3 DB A5 01 B9 28 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 19 BC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 20 02 00 35 04 06 00 97 89 02 5B 0B E3 11 15 BC B4 64 2E B4 CE [04:54:47]CheckFolder [04:54:47]dirname=/storage/ofd_packets [04:54:47]CheckFolder done [04:54:47]ProducePacketName [04:54:47]name=ofd_packets/00139356 [04:54:47]NVStorageSaveData ofd_packets/00139356 [04:54:47]File name is /storage/ofd_packets/00139356 [04:54:47]Write 459 bytes [04:54:47]NVStorageSaveData done [04:54:47]OFDSenderStorePacket done [04:54:47]KKMCreateOFDPacket done [04:54:47]NVStorageSaveData kkm_last_timestamp [04:54:47]File name is /storage/kkm_last_timestamp [04:54:47]Write 4 bytes [04:54:47]NVStorageSaveData done [04:54:47]ExternCall_PrintAddStr [04:54:47]wPrintStart [04:54:47]Write to MH i2c: 01 00 00 35 32 67 [04:54:47]Write i2c OK [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: 01 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: 01 07 00 [04:54:47]MH_I2C_Read... [04:54:47]Read from MH i2c: 01 07 00 35 32 00 00 00 00 00 FF 0F 7C [04:54:47]RasterBufferAndPrint [04:54:47]line Счет N : (3)335264 [04:54:47]line ИНН: 02508201610067 [04:54:48]line Контрольно-Кассовый Чек [04:54:48]line ПРОДАЖА [04:54:48]line Товар: 4700001610012 [04:54:48]line Пиво Арпа 0,5л [04:54:48]line 1.000 * 145.00 [04:54:48]line = 145.00 [04:54:48]line НДС 12% НСП 1% [04:54:48]line > о реализуемом товаре [04:54:48]line Товар: 4630007400969 [04:54:48]line Арахис жарен Караван орехов Стандарт 40 [04:54:48]line 1.000 * 40.00 [04:54:48]line = 40.00 [04:54:48]line НДС 12% НСП 1% [04:54:48]line > о реализуемом товаре [04:54:48]line ИТОГО: 185.00 [04:54:48]line НСП 1% : 1.63 [04:54:48]line НДС 12% : 19.65 [04:54:48]line Наличными: 185.00 [04:54:48]line Безнал.: 0.00 [04:54:48]line Место: АЗС № 101 "Партнер Нефть" [04:54:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [04:54:48]line СНО: Общий режим [04:54:48]line Чек 40 30.10.2024 04:54 [04:54:48]line Смена: 556 ФФД: 1.0 [04:54:48]line ЗНМ: 0300000081 [04:54:48]line РНМ: 0000000000091631 [04:54:48]line Версия ККМ: 001 [04:54:48]line ФМ: 0000000000874669 [04:54:48]line ФД: 139356 [04:54:48]line ФПД: 166614705834979 [04:54:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T045449&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139356&fm=166614705834979&tin=02508201610067®Number=0000000000091631&sum=18500 [04:54:48]line 0 [04:54:48]OFD Sender: Processing packet 139356 [packets to send 34, broken 33] [04:54:48]ProducePacketName [04:54:48]name=ofd_packets/00139356 [04:54:48]OFD Sender: To server: pG, [04:54:48]CommunicateWithHost lk.salyk.kg:30040 [04:54:48]ConnectInit lk.salyk.kg [04:54:48]written 0, free lines is 4095 [04:54:48]Connected sock=10 [04:54:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AD 01 00 00 A3 DB A5 01 B9 28 5A 03 01 00 03 00 99 01 1E 04 01 00 01 23 04 5B 00 8A 04 0D 00 34 37 30 30 30 30 31 36 31 30 30 31 32 06 04 17 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 90 D1 80 D0 BF D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 A4 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 36 39 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 34 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 28 00 00 00 F4 03 04 00 19 BC 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 20 02 00 35 04 06 00 97 89 02 5B 0B E3 11 15 BC B4 64 2E B4 CE [04:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 58 47 47 00 37 42 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5C 20 02 00 F4 03 04 00 CB 67 21 67 B6 04 01 00 00 80 FF AC 3E 63 28 50 5D [04:54:48]CommunicateWithHost err = 0 [04:54:48]CheckOFDResponse [04:54:48]1017 (14) - 77093643461234 [04:54:48]1041 (16) - 0000000000874669 [04:54:48]1040 (4) - 139356 [04:54:48]1012 (4) - 29.10.2024 22:55 [04:54:48]1206 (1) - 0 [04:54:48]OFD Sender: Remove packet 139356 [04:54:48]ProducePacketName [04:54:48]name=ofd_packets/00139356 [04:54:48]NVStorageDeleteData [04:54:48]Write to MH i2c: 01 00 00 64 32 96 [04:54:48]Write i2c OK [04:54:48]MH_I2C_Read... [04:54:48]Read from MH i2c: 01 [04:54:48]MH_I2C_Read... [04:54:48]Read from MH i2c: 01 07 00 [04:54:48]MH_I2C_Read... [04:54:48]Read from MH i2c: 01 07 00 64 32 00 00 00 00 00 B1 0C 5A [04:54:48]RasterBufferAndPrint [04:54:48]line [04:54:48]line [04:54:48]line [04:54:48]line [04:54:48]line [04:54:48]written 0, free lines is 3258 [04:54:48]MH_Cut [04:54:48]Write to MH i2c: D1 01 00 6B 32 01 6F [04:54:48]Write i2c OK [04:54:48]MH_I2C_Read... [04:54:48]Read from MH i2c: D1 [04:54:48]MH_I2C_Read... [04:54:48]Read from MH i2c: D1 01 00 [04:54:48]MH_I2C_Read... [04:54:48]Read from MH i2c: D1 01 00 6B 32 00 6E [04:54:48]Write to MH i2c: 01 00 00 6C 32 9E [04:54:48]Write i2c OK [04:54:48]MH_I2C_Read... [04:54:48]OFD Sender: No OFD packet to send [04:54:49]*** Cut start [04:54:49]*** Partial cut [04:54:49]*** CUTSNS_PIN = 1 [04:54:49]*** CUTSNS_PIN = 0 [04:54:49]*** Brake cut motor [04:54:50]Read from MH i2c: 01 [04:54:50]MH_I2C_Read... [04:54:50]*** Stop cut motor [04:54:50]*** Cut end [04:54:50]Read from MH i2c: 01 07 00 [04:54:50]MH_I2C_Read... [04:54:50]Read from MH i2c: 01 07 00 6C 32 00 00 00 00 00 FF 0F B3 [04:54:50]process_action close_receipt done [04:54:50]requested_data is exist [04:54:50]produce_requested_data [04:54:50]requested_item fm.sn is exist - process it [04:54:50]wFMCommunicate request_size=4 [04:54:50]MH_SAM_APDU [04:54:50]CAPDU: 80 11 00 00 [04:54:50]Write to MH i2c: E2 08 00 6D 32 80 11 00 00 00 00 00 00 19 [04:54:50]Write i2c OK [04:54:50]MH_I2C_Read... [04:54:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [04:54:50]Read from MH i2c: E2 [04:54:50]MH_I2C_Read... [04:54:50]Read from MH i2c: E2 17 00 [04:54:50]MH_I2C_Read... [04:54:50]Read from MH i2c: E2 17 00 6D 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 74 [04:54:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [04:54:50]wFMCommunicate OK [04:54:50]requested_item fd.num is exist - process it [04:54:50]SAM_PROTO_GetFieldsCounters [04:54:50]wFMCommunicate request_size=4 [04:54:50]MH_SAM_APDU [04:54:50]CAPDU: 80 13 00 00 [04:54:50]Write to MH i2c: E2 08 00 6E 32 80 13 00 00 00 00 00 00 1C [04:54:50]Write i2c OK [04:54:50]MH_I2C_Read... [04:54:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [04:54:50]Read from MH i2c: E2 [04:54:50]MH_I2C_Read... [04:54:50]Read from MH i2c: E2 62 00 [04:54:50]MH_I2C_Read... [04:54:50]Read from MH i2c: E2 62 00 6E 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5C 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 64 [04:54:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5C 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 28 00 00 00 5E 04 04 00 28 00 00 00 57 04 04 00 29 00 00 00 19 04 04 00 00 00 00 00 90 00 [04:54:50]wFMCommunicate OK [04:54:50]SAM_PROTO_GetFieldsCounters done [04:54:50]requested_item shift.num is exist - process it [04:54:50]requested_item shift.opened is exist - process it [04:54:50]req_shift_opened [04:54:50]FM_GetShiftState [04:54:50]SAM_PROTO_GetShiftState [04:54:50]wFMCommunicate request_size=4 [04:54:50]MH_SAM_APDU [04:54:50]CAPDU: 80 13 01 00 [04:54:50]Write to MH i2c: E2 08 00 6F 32 80 13 01 00 00 00 00 00 1E [04:54:50]Write i2c OK [04:54:50]MH_I2C_Read... [04:54:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [04:54:50]Read from MH i2c: E2 [04:54:50]MH_I2C_Read... [04:54:50]Read from MH i2c: E2 0E 00 [04:54:50]MH_I2C_Read... [04:54:50]Read from MH i2c: E2 0E 00 6F 32 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AE [04:54:50]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [04:54:50]wFMCommunicate OK [04:54:50]SAM_PROTO_GetShiftState done [04:54:50]FM_GetShiftState done [04:54:50]req_shift_opened done [04:54:50]requested_item shift.open_date is exist - process it [04:54:50]req_shift_open_date [04:54:50]req_shift_open_date done [04:54:50]produce_requested_data done [04:54:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139356,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [04:54:50]process_action_free close_receipt [04:54:50]json_value_free [04:54:50]json_value_free done [04:54:50]process_json_proto returns [04:54:50]Send response to host [04:54:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139356,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [04:54:50]free response buf [04:54:50]execute_script done [04:54:50]execute_script returns [04:54:50]free content buf [04:54:50]Sock 9.Close socket [04:54:50]Sock 9.Thread stoped [04:54:53]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:14]OFD Sender: No OFD packet to send [04:57:19]OFD Sender: No OFD packet to send [04:57:24]OFD Sender: No OFD packet to send [04:57:29]OFD Sender: No OFD packet to send [04:57:34]OFD Sender: No OFD packet to send [04:57:39]OFD Sender: No OFD packet to send [04:57:44]OFD Sender: No OFD packet to send [04:57:49]OFD Sender: No OFD packet to send [04:57:54]OFD Sender: No OFD packet to send [04:57:59]OFD Sender: No OFD packet to send [04:58:04]OFD Sender: No OFD packet to send [04:58:09]OFD Sender: No OFD packet to send [04:58:14]OFD Sender: No OFD packet to send [04:58:19]OFD Sender: No OFD packet to send [04:58:24]OFD Sender: No OFD packet to send [04:58:29]OFD Sender: No OFD packet to send [04:58:34]OFD Sender: No OFD packet to send [04:58:39]OFD Sender: No OFD packet to send [04:58:44]OFD Sender: No OFD packet to send [04:58:49]OFD Sender: No OFD packet to send [04:58:54]OFD Sender: No OFD packet to send [04:58:59]OFD Sender: No OFD packet to send [04:59:04]OFD Sender: No OFD packet to send [04:59:09]OFD Sender: No OFD packet to send [04:59:14]OFD Sender: No OFD packet to send [04:59:19]OFD Sender: No OFD packet to send [04:59:24]OFD Sender: No OFD packet to send [04:59:29]OFD Sender: No OFD packet to send [04:59:34]OFD Sender: No OFD packet to send [04:59:39]OFD Sender: No OFD packet to send [04:59:44]OFD Sender: No OFD packet to send [04:59:49]OFD Sender: No OFD packet to send [04:59:54]OFD Sender: No OFD packet to send [04:59:59]OFD Sender: No OFD packet to send [05:00:04]OFD Sender: No OFD packet to send [05:00:09]OFD Sender: No OFD packet to send [05:00:14]OFD Sender: No OFD packet to send [05:00:19]OFD Sender: No OFD packet to send [05:00:24]OFD Sender: No OFD packet to send [05:00:29]OFD Sender: No OFD packet to send [05:00:34]OFD Sender: No OFD packet to send [05:00:39]OFD Sender: No OFD packet to send [05:00:44]OFD Sender: No OFD packet to send [05:00:49]OFD Sender: No OFD packet to send [05:00:54]OFD Sender: No OFD packet to send [05:00:59]OFD Sender: No OFD packet to send [05:01:04]OFD Sender: No OFD packet to send [05:01:09]OFD Sender: No OFD packet to send [05:01:14]OFD Sender: No OFD packet to send [05:01:19]OFD Sender: No OFD packet to send [05:01:24]OFD Sender: No OFD packet to send [05:01:29]OFD Sender: No OFD packet to send [05:01:34]OFD Sender: No OFD packet to send [05:01:39]OFD Sender: No OFD packet to send [05:01:44]OFD Sender: No OFD packet to send [05:01:49]OFD Sender: No OFD packet to send [05:01:54]OFD Sender: No OFD packet to send [05:01:59]OFD Sender: No OFD packet to send [05:02:04]OFD Sender: No OFD packet to send [05:02:09]OFD Sender: No OFD packet to send [05:02:14]OFD Sender: No OFD packet to send [05:02:19]OFD Sender: No OFD packet to send [05:02:24]OFD Sender: No OFD packet to send [05:02:29]OFD Sender: No OFD packet to send [05:02:34]OFD Sender: No OFD packet to send [05:02:39]OFD Sender: No OFD packet to send [05:02:44]OFD Sender: No OFD packet to send [05:02:49]OFD Sender: No OFD packet to send [05:02:54]OFD Sender: No OFD packet to send [05:02:59]OFD Sender: No OFD packet to send [05:03:04]OFD Sender: No OFD packet to send [05:03:09]OFD Sender: No OFD packet to send [05:03:14]OFD Sender: No OFD packet to send [05:03:19]OFD Sender: No OFD packet to send [05:03:24]OFD Sender: No OFD packet to send [05:03:29]OFD Sender: No OFD packet to send [05:03: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:19]OFD Sender: No OFD packet to send [05:04:24]OFD Sender: No OFD packet to send [05:04:29]OFD Sender: No OFD packet to send [05:04:34]OFD Sender: No OFD packet to send [05:04:39]OFD Sender: No OFD packet to send [05:04:44]OFD Sender: No OFD packet to send [05:04:49]OFD Sender: No OFD packet to send [05:04:54]OFD Sender: No OFD packet to send [05:04:59]OFD Sender: No OFD packet to send [05:05:04]OFD Sender: No OFD packet to send [05:05:09]OFD Sender: No OFD packet to send [05:05:14]OFD Sender: No OFD packet to send [05:05:19]OFD Sender: No OFD packet to send [05:05:24]OFD Sender: No OFD packet to send [05:05:29]OFD Sender: No OFD packet to send [05:05:34]OFD Sender: No OFD packet to send [05:05:39]OFD Sender: No OFD packet to send [05:05:44]OFD Sender: No OFD packet to send [05:05:49]OFD Sender: No OFD packet to send [05:05:54]OFD Sender: No OFD packet to send [05:05:59]OFD Sender: No OFD packet to send [05:06:04]OFD Sender: No OFD packet to send [05:06:09]OFD Sender: No OFD packet to send [05:06:14]OFD Sender: No OFD packet to send [05:06:19]OFD Sender: No OFD packet to send [05:06:24]OFD Sender: No OFD packet to send [05:06:29]OFD Sender: No OFD packet to send [05:06:34]OFD Sender: No OFD packet to send [05:06:39]OFD Sender: No OFD packet to send [05:06:44]OFD Sender: No OFD packet to send [05:06:49]OFD Sender: No OFD packet to send [05:06:54]OFD Sender: No OFD packet to send [05:06:59]OFD Sender: No OFD packet to send [05:07:04]OFD Sender: No OFD packet to send [05:07:09]OFD Sender: No OFD packet to send [05:07:14]OFD Sender: No OFD packet to send [05:07:19]OFD Sender: No OFD packet to send [05:07:24]OFD Sender: No OFD packet to send [05:07:29]OFD Sender: No OFD packet to send [05:07:34]OFD Sender: No OFD packet to send [05:07:39]OFD Sender: No OFD packet to send [05:07:44]OFD Sender: No OFD packet to send [05:07:49]OFD Sender: No OFD packet to send [05:07:54]OFD Sender: No OFD packet to send [05:07:59]OFD Sender: No OFD packet to send [05:08:04]OFD Sender: No OFD packet to send [05:08:09]OFD Sender: No OFD packet to send [05:08:14]OFD Sender: No OFD packet to send [05:08:19]OFD Sender: No OFD packet to send [05:08:24]OFD Sender: No OFD packet to send [05:08:29]OFD Sender: No OFD packet to send [05:08:34]OFD Sender: No OFD packet to send [05:08:39]OFD Sender: No OFD packet to send [05:08:44]OFD Sender: No OFD packet to send [05:08:49]OFD Sender: No OFD packet to send [05:08:54]OFD Sender: No OFD packet to send [05:08:59]OFD Sender: No OFD packet to send [05:09:04]OFD Sender: No OFD packet to send [05:09:09]OFD Sender: No OFD packet to send [05:09:14]OFD Sender: No OFD packet to send [05:09:19]OFD Sender: No OFD packet to send [05:09:24]OFD Sender: No OFD packet to send [05:09:29]OFD Sender: No OFD packet to send [05:09:34]OFD Sender: No OFD packet to send [05:09:39]OFD Sender: No OFD packet to send [05:09:44]OFD Sender: No OFD packet to send [05:09:49]OFD Sender: No OFD packet to send [05:09:54]OFD Sender: No OFD packet to send [05:09:59]OFD Sender: No OFD packet to send [05:10:04]OFD Sender: No OFD packet to send [05:10:09]OFD Sender: No OFD packet to send [05:10:14]OFD Sender: No OFD packet to send [05:10:19]OFD Sender: No OFD packet to send [05:10:24]OFD Sender: No OFD packet to send [05:10:29]OFD Sender: No OFD packet to send [05:10:34]OFD Sender: No OFD packet to send [05:10:39]OFD Sender: No OFD packet to send [05:10:44]OFD Sender: No OFD packet to send [05:10:49]OFD Sender: No OFD packet to send [05:10:54]OFD Sender: No OFD packet to send [05:10:59]OFD Sender: No OFD packet to send [05:11:04]OFD Sender: No OFD packet to send [05:11:09]OFD Sender: No OFD packet to send [05:11:14]OFD Sender: No OFD packet to send [05:11:19]OFD Sender: No OFD packet to send [05:11:24]OFD Sender: No OFD packet to send [05:11:29]OFD Sender: No OFD packet to send [05:11:34]OFD Sender: No OFD packet to send [05:11:39]OFD Sender: No OFD packet to send [05:11:44]OFD Sender: No OFD packet to send [05:11:49]OFD Sender: No OFD packet to send [05:11:54]OFD Sender: No OFD packet to send [05:11:59]OFD Sender: No OFD packet to send [05:12:04]OFD Sender: No OFD packet to send [05:12:09]OFD Sender: No OFD packet to send [05:12:14]OFD Sender: No OFD packet to send [05:12:19]OFD Sender: No OFD packet to send [05:12:24]OFD Sender: No OFD packet to send [05:12:29]OFD Sender: No OFD packet to send [05:12:34]OFD Sender: No OFD packet to send [05:12:39]OFD Sender: No OFD packet to send [05:12:44]OFD Sender: No OFD packet to send [05:12:49]OFD Sender: No OFD packet to send [05:12:54]OFD Sender: No OFD packet to send [05:12:59]OFD Sender: No OFD packet to send [05:13:04]OFD Sender: No OFD packet to send [05:13:09]OFD Sender: No OFD packet to send [05:13:14]OFD Sender: No OFD packet to send [05:13:19]OFD Sender: No OFD packet to send [05:13:24]OFD Sender: No OFD packet to send [05:13:29]OFD Sender: No OFD packet to send [05:13:34]OFD Sender: No OFD packet to send [05:13:39]OFD Sender: No OFD packet to send [05:13:44]OFD Sender: No OFD packet to send [05:13:49]OFD Sender: No OFD packet to send [05:13:54]OFD Sender: No OFD packet to send [05:13:59]OFD Sender: No OFD packet to send [05:14:04]OFD Sender: No OFD packet to send [05:14:09]OFD Sender: No OFD packet to send [05:14:14]OFD Sender: No OFD packet to send [05:14:20]OFD Sender: No OFD packet to send [05:14:25]OFD Sender: No OFD packet to send [05:14:30]OFD Sender: No OFD packet to send [05:14:35]OFD Sender: No OFD packet to send [05:14:40]OFD Sender: No OFD packet to send [05:14:45]OFD Sender: No OFD packet to send [05:14:50]OFD Sender: No OFD packet to send [05:14:55]OFD Sender: No OFD packet to send [05:15:00]OFD Sender: No OFD packet to send [05:15:05]OFD Sender: No OFD packet to send [05:15:10]OFD Sender: No OFD packet to send [05:15:15]OFD Sender: No OFD packet to send [05:15:20]OFD Sender: No OFD packet to send [05:15:25]OFD Sender: No OFD packet to send [05:15:30]OFD Sender: No OFD packet to send [05:15:35]OFD Sender: No OFD packet to send [05:15:40]OFD Sender: No OFD packet to send [05:15:45]OFD Sender: No OFD packet to send [05:15:50]OFD Sender: No OFD packet to send [05:15:55]OFD Sender: No OFD packet to send [05:16:00]OFD Sender: No OFD packet to send [05:16:05]OFD Sender: No OFD packet to send [05:16:10]OFD Sender: No OFD packet to send [05:16:15]OFD Sender: No OFD packet to send [05:16:20]OFD Sender: No OFD packet to send [05:16:25]OFD Sender: No OFD packet to send [05:16:30]OFD Sender: No OFD packet to send [05:16:35]OFD Sender: No OFD packet to send [05:16:40]OFD Sender: No OFD packet to send [05:16:45]OFD Sender: No OFD packet to send [05:16:50]OFD Sender: No OFD packet to send [05:16:55]OFD Sender: No OFD packet to send [05:17:00]OFD Sender: No OFD packet to send [05:17:05]OFD Sender: No OFD packet to send [05:17:10]OFD Sender: No OFD packet to send [05:17:15]OFD Sender: No OFD packet to send [05:17:20]OFD Sender: No OFD packet to send [05:17:25]OFD Sender: No OFD packet to send [05:17:30]OFD Sender: No OFD packet to send [05:17:35]OFD Sender: No OFD packet to send [05:17:40]OFD Sender: No OFD packet to send [05:17:45]OFD Sender: No OFD packet to send [05:17:49]accept exits with 8 [05:17:49]New connection [05:17:49]New thread 3067284836 created [05:17:49]Thread 3067141476 joined [05:17:49]Waiting for new connection... [05:17:49] Sock 8.Parse request [05:17:49]Sock 8.Check first char [05:17:49]Sock 8.First char is OK [05:17:49]request: POST /json_proto HTTP/1.0 [05:17:49]Method: POST [05:17:49]URL: /json_proto [05:17:49]Method is POST - this is cgi request [05:17:49]url: /json_proto [05:17:49]query_string will be loaded in cgi processing [05:17:49]execute_cgi json_proto POST (null) [05:17:49]execute_cgi path=json_proto method=POST [05:17:49]POST find Content-Length [05:17:49]Host: 172.17.50.196:8080 [05:17:49]Content-Length: 708 [05:17:49]Content-Type: application/json [05:17:49] [05:17:49]POST finish read [05:17:49]Found Content-Length = 708 [05:17:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335265", "tax_sys" : 0, "items" : [ { "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:17:49]execute_script... [05:17: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 : (3)335265", "tax_sys" : 0, "items" : [ { "code": "4607015235401", "name": "\u041F\u0440\u044F\u043D\u0438\u043A\u0438 \u042F\u0448\u043A\u0438\u043D\u043E \u0448\u043E\u043A\u043E\u043B\u0430\u0434\u043D\u044B\u0435 350\u0433", "price" : 129.00, "quantity" : 1.000, "sum" : 129.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 129.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:17:49]POST & json_proto [05:17:49]process_json_proto [05:17:49]json parsed OK: [05:17:49]protocol is kg_v1.0 [05:17:49]action value=close_receipt [05:17:49]process_action close_receipt [05:17:49]cmd_close_receipt [05:17:49]MH_GetDate [05:17:49]Write to MH i2c: F0 00 00 70 32 91 [05:17:49]Write i2c OK [05:17:49]MH_I2C_Read... [05:17:49]Read from MH i2c: F0 [05:17:49]MH_I2C_Read... [05:17:49]Read from MH i2c: F0 09 00 [05:17:49]MH_I2C_Read... [05:17:49]Read from MH i2c: F0 09 00 70 32 00 81 C1 21 67 72 0D 1C 67 66 [05:17:49]GetLastDocTimeStamp 1730264089 [05:17:49]current date 1730265473 [05:17:49]FM_GetShiftState [05:17:49]SAM_PROTO_GetShiftState [05:17:49]wFMCommunicate request_size=4 [05:17:49]MH_SAM_APDU [05:17:49]CAPDU: 80 13 01 00 [05:17:49]Write to MH i2c: E2 08 00 71 32 80 13 01 00 00 00 00 00 20 [05:17:49]Write i2c OK [05:17:49]MH_I2C_Read... [05:17:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:17:49]Read from MH i2c: E2 [05:17:49]MH_I2C_Read... [05:17:49]Read from MH i2c: E2 0E 00 [05:17:49]MH_I2C_Read... [05:17:49]Read from MH i2c: E2 0E 00 71 32 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B0 [05:17:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [05:17:49]wFMCommunicate OK [05:17:49]SAM_PROTO_GetShiftState done [05:17:49]FM_GetShiftState done [05:17:49]opened in 1730246278 [05:17:49]opened+sec_in_day 1730332678 [05:17:49]quantity*price = 12900 [05:17:49]sum+1 = 12901 [05:17:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 129.00 НСП 1% : 1.14 НДС 12% : 13.70 Наличными: 129.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 41 30.10.2024 05:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139357 ФПД: 123594620848350 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T051753&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139357&fm=123594620848350&tin=02508201610067®Number=0000000000091631&sum=12900 0 [05:17:50]StoreToDocumentArchive [05:17:50]shift 556 fd 139357 [05:17:50]save to /storage/0556/doc_00139357 [05:17:50]save last doc name /storage/0556/doc_00139357 to /storage/kkm_last_doc_name [05:17:50]save OK [05:17:50]Clear old archive folders... [05:17:50]ProcessDocumentItem done err = 0, tmpTLVsize=296 [05:17:50]tlvbuf is 011E4E70 [05:17:50]SAM_PROTO_ClearQueue [05:17:50]wFMCommunicate request_size=4 [05:17:50]MH_SAM_APDU [05:17:50]CAPDU: 80 09 00 00 [05:17:50]Write to MH i2c: E2 08 00 7E 32 80 09 00 00 00 00 00 00 22 [05:17:50]Write i2c OK [05:17:50]MH_I2C_Read... [05:17:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:17:50]Read from MH i2c: E2 [05:17:50]MH_I2C_Read... [05:17:50]Read from MH i2c: E2 03 00 [05:17:50]MH_I2C_Read... [05:17:50]Read from MH i2c: E2 03 00 7E 32 00 90 00 24 [05:17:50]RAPDU: 90 00 [05:17:50]wFMCommunicate OK [05:17:50]SAM_PROTO_ClearQueue done [05:17:50]KKMCreateOFDPacket [05:17:50]OFDProtocolAddRootSTLVToBuf [05:17:50]FM_MakeSignedData [05:17:50]FM_MakeSignedData [05:17:50]SAM_PROTO_SignData [05:17:50]wFMCommunicate request_size=4 [05:17:50]MH_SAM_APDU [05:17:50]CAPDU: 80 0D 01 02 [05:17:50]Write to MH i2c: E2 08 00 7F 32 80 0D 01 02 00 00 00 00 2A [05:17:50]Write i2c OK [05:17:50]MH_I2C_Read... [05:17:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:17:51]Read from MH i2c: E2 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 03 00 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 03 00 7F 32 00 90 00 25 [05:17:51]RAPDU: 90 00 [05:17:51]wFMCommunicate OK [05:17:51]wFMCommunicate request_size=255 [05:17:51]MH_SAM_APDU [05:17:51]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 81 C1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [05:17:51]Write to MH i2c: E2 02 01 80 32 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 81 C1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 E7 [05:17:51]Write i2c OK [05:17:51]MH_I2C_Read... [05:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:17:51]Read from MH i2c: E2 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 03 00 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 03 00 80 32 00 90 00 26 [05:17:51]RAPDU: 90 00 [05:17:51]wFMCommunicate OK [05:17:51]wFMCommunicate request_size=55 [05:17:51]MH_SAM_APDU [05:17:51]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 20 02 00 35 04 06 00 70 68 9D 78 C8 DE [05:17:51]Write to MH i2c: E2 3A 00 81 32 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 20 02 00 35 04 06 00 70 68 9D 78 C8 DE 00 00 9B [05:17:51]Write i2c OK [05:17:51]MH_I2C_Read... [05:17:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:17:51]Read from MH i2c: E2 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 03 00 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 03 00 81 32 00 90 00 27 [05:17:51]RAPDU: 90 00 [05:17:51]wFMCommunicate OK [05:17:51]wFMCommunicate request_size=4 [05:17:51]MH_SAM_APDU [05:17:51]CAPDU: 80 0D 03 02 [05:17:51]Write to MH i2c: E2 08 00 82 32 80 0D 03 02 00 00 00 00 2F [05:17:51]Write i2c OK [05:17:51]MH_I2C_Read... [05:17:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:17:51]Read from MH i2c: E2 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 0B 00 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 0B 00 82 32 00 4F 50 52 D0 E3 2E 8B 50 90 00 DD [05:17:51]RAPDU: 4F 50 52 D0 E3 2E 8B 50 90 00 [05:17:51]wFMCommunicate OK [05:17:51]SAM_PROTO_SignData done [05:17:51]FM_MakeSignedData done [05:17:51]CreateOFDProtocolMessage [05:17:51]wFMCommunicate request_size=4 [05:17:51]MH_SAM_APDU [05:17:51]CAPDU: 80 11 00 00 [05:17:51]Write to MH i2c: E2 08 00 83 32 80 11 00 00 00 00 00 00 2F [05:17:51]Write i2c OK [05:17:51]MH_I2C_Read... [05:17:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:17:51]Read from MH i2c: E2 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 17 00 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: E2 17 00 83 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8A [05:17:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:17:51]wFMCommunicate OK [05:17:51]CreateOFDProtocolMessage done [05:17:51]OFDSenderStorePacket 139357 [05:17:51]StoreOFDPacket docnum=139357 [05:17:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 CE 06 34 01 1D F6 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 81 C1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 20 02 00 35 04 06 00 70 68 9D 78 C8 DE 4F 50 52 D0 E3 2E 8B 50 [05:17:51]CheckFolder [05:17:51]dirname=/storage/ofd_packets [05:17:51]CheckFolder done [05:17:51]ProducePacketName [05:17:51]name=ofd_packets/00139357 [05:17:51]NVStorageSaveData ofd_packets/00139357 [05:17:51]File name is /storage/ofd_packets/00139357 [05:17:51]Write 346 bytes [05:17:51]NVStorageSaveData done [05:17:51]OFDSenderStorePacket done [05:17:51]KKMCreateOFDPacket done [05:17:51]NVStorageSaveData kkm_last_timestamp [05:17:51]File name is /storage/kkm_last_timestamp [05:17:51]Write 4 bytes [05:17:51]NVStorageSaveData done [05:17:51]ExternCall_PrintAddStr [05:17:51]wPrintStart [05:17:51]Write to MH i2c: 01 00 00 84 32 B6 [05:17:51]Write i2c OK [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: 01 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: 01 07 00 [05:17:51]MH_I2C_Read... [05:17:51]Read from MH i2c: 01 07 00 84 32 00 00 00 00 00 FF 0F CB [05:17:51]RasterBufferAndPrint [05:17:51]line Счет N : (3)335265 [05:17:51]line ИНН: 02508201610067 [05:17:51]line Контрольно-Кассовый Чек [05:17:51]line ПРОДАЖА [05:17:51]line Товар: 4607015235401 [05:17:51]line Пряники Яшкино шоколадные 350г [05:17:51]line 1.000 * 129.00 [05:17:51]line = 129.00 [05:17:51]line НДС 12% НСП 1% [05:17:51]line > о реализуемом товаре [05:17:51]line ИТОГО: 129.00 [05:17:51]line НСП 1% : 1.14 [05:17:51]line НДС 12% : 13.70 [05:17:51]line Наличными: 129.00 [05:17:51]line Безнал.: 0.00 [05:17:51]line Место: АЗС № 101 "Партнер Нефть" [05:17:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:17:51]line СНО: Общий режим [05:17:51]line Чек 41 30.10.2024 05:17 [05:17:51]line Смена: 556 ФФД: 1.0 [05:17:51]line ЗНМ: 0300000081 [05:17:51]line РНМ: 0000000000091631 [05:17:51]line Версия ККМ: 001 [05:17:51]line ФМ: 0000000000874669 [05:17:51]line ФД: 139357 [05:17:51]line ФПД: 123594620848350 [05:17:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T051753&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139357&fm=123594620848350&tin=02508201610067®Number=0000000000091631&sum=12900 [05:17:51]line 0 [05:17:51]OFD Sender: Processing packet 139357 [packets to send 34, broken 33] [05:17:51]ProducePacketName [05:17:51]name=ofd_packets/00139357 [05:17:51]OFD Sender: To server: pG, [05:17:51]CommunicateWithHost lk.salyk.kg:30040 [05:17:51]ConnectInit lk.salyk.kg [05:17:51]written 0, free lines is 4095 [05:17:51]Connected sock=10 [05:17:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 CE 06 34 01 1D F6 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 37 30 31 35 32 33 35 34 30 31 06 04 36 00 D0 9F D1 80 D1 8F D0 BD D0 B8 D0 BA D0 B8 20 D0 AF D1 88 D0 BA D0 B8 D0 BD D0 BE 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 D0 BD D1 8B D0 B5 20 33 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 64 32 00 00 00 00 13 04 06 00 64 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 64 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 72 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5A 05 00 00 00 00 07 04 06 00 64 32 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 29 00 00 00 F4 03 04 00 81 C1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 20 02 00 35 04 06 00 70 68 9D 78 C8 DE 4F 50 52 D0 E3 2E 8B 50 [05:17:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 89 1B 47 00 77 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5D 20 02 00 F4 03 04 00 32 6D 21 67 B6 04 01 00 00 B3 93 46 DF 03 32 53 01 [05:17:52]CommunicateWithHost err = 0 [05:17:52]CheckOFDResponse [05:17:52]1017 (14) - 77093643461234 [05:17:52]1041 (16) - 0000000000874669 [05:17:52]1040 (4) - 139357 [05:17:52]1012 (4) - 29.10.2024 23:18 [05:17:52]1206 (1) - 0 [05:17:52]OFD Sender: Remove packet 139357 [05:17:52]ProducePacketName [05:17:52]name=ofd_packets/00139357 [05:17:52]NVStorageDeleteData [05:17:52]Write to MH i2c: 01 00 00 AD 32 DF [05:17:52]Write i2c OK [05:17:52]MH_I2C_Read... [05:17:52]Read from MH i2c: 01 [05:17:52]MH_I2C_Read... [05:17:52]Read from MH i2c: 01 07 00 [05:17:52]MH_I2C_Read... [05:17:52]Read from MH i2c: 01 07 00 AD 32 00 00 00 00 00 F1 0C E3 [05:17:52]RasterBufferAndPrint [05:17:52]line [05:17:52]line [05:17:52]line [05:17:52]line [05:17:52]line [05:17:52]written 0, free lines is 3323 [05:17:52]MH_Cut [05:17:52]Write to MH i2c: D1 01 00 B4 32 01 B8 [05:17:52]Write i2c OK [05:17:52]MH_I2C_Read... [05:17:52]Read from MH i2c: D1 [05:17:52]MH_I2C_Read... [05:17:52]Read from MH i2c: D1 01 00 [05:17:52]MH_I2C_Read... [05:17:52]Read from MH i2c: D1 01 00 B4 32 00 B7 [05:17:52]Write to MH i2c: 01 00 00 B5 32 E7 [05:17:52]Write i2c OK [05:17:52]MH_I2C_Read... [05:17:52]OFD Sender: No OFD packet to send [05:17:52]*** Cut start [05:17:52]*** Partial cut [05:17:52]*** CUTSNS_PIN = 1 [05:17:52]*** CUTSNS_PIN = 0 [05:17:53]*** Brake cut motor [05:17:53]Read from MH i2c: 01 [05:17:53]MH_I2C_Read... [05:17:53]*** Stop cut motor [05:17:53]*** Cut end [05:17:53]Read from MH i2c: 01 07 00 [05:17:53]MH_I2C_Read... [05:17:53]Read from MH i2c: 01 07 00 B5 32 00 00 00 00 00 FF 0F FC [05:17:53]process_action close_receipt done [05:17:53]requested_data is exist [05:17:53]produce_requested_data [05:17:53]requested_item fm.sn is exist - process it [05:17:53]wFMCommunicate request_size=4 [05:17:53]MH_SAM_APDU [05:17:53]CAPDU: 80 11 00 00 [05:17:53]Write to MH i2c: E2 08 00 B6 32 80 11 00 00 00 00 00 00 62 [05:17:53]Write i2c OK [05:17:53]MH_I2C_Read... [05:17:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:17:53]Read from MH i2c: E2 [05:17:53]MH_I2C_Read... [05:17:53]Read from MH i2c: E2 17 00 [05:17:53]MH_I2C_Read... [05:17:53]Read from MH i2c: E2 17 00 B6 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BD [05:17:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:17:53]wFMCommunicate OK [05:17:53]requested_item fd.num is exist - process it [05:17:53]SAM_PROTO_GetFieldsCounters [05:17:53]wFMCommunicate request_size=4 [05:17:53]MH_SAM_APDU [05:17:53]CAPDU: 80 13 00 00 [05:17:53]Write to MH i2c: E2 08 00 B7 32 80 13 00 00 00 00 00 00 65 [05:17:53]Write i2c OK [05:17:53]MH_I2C_Read... [05:17:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:17:53]Read from MH i2c: E2 [05:17:53]MH_I2C_Read... [05:17:53]Read from MH i2c: E2 62 00 [05:17:53]MH_I2C_Read... [05:17:53]Read from MH i2c: E2 62 00 B7 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5D 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 B1 [05:17:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5D 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 29 00 00 00 5E 04 04 00 29 00 00 00 57 04 04 00 2A 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:17:53]wFMCommunicate OK [05:17:53]SAM_PROTO_GetFieldsCounters done [05:17:53]requested_item shift.num is exist - process it [05:17:53]requested_item shift.opened is exist - process it [05:17:53]req_shift_opened [05:17:53]FM_GetShiftState [05:17:53]SAM_PROTO_GetShiftState [05:17:53]wFMCommunicate request_size=4 [05:17:53]MH_SAM_APDU [05:17:53]CAPDU: 80 13 01 00 [05:17:53]Write to MH i2c: E2 08 00 B8 32 80 13 01 00 00 00 00 00 67 [05:17:53]Write i2c OK [05:17:53]MH_I2C_Read... [05:17:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:17:53]Read from MH i2c: E2 [05:17:53]MH_I2C_Read... [05:17:53]Read from MH i2c: E2 0E 00 [05:17:53]MH_I2C_Read... [05:17:53]Read from MH i2c: E2 0E 00 B8 32 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F7 [05:17:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [05:17:53]wFMCommunicate OK [05:17:53]SAM_PROTO_GetShiftState done [05:17:53]FM_GetShiftState done [05:17:53]req_shift_opened done [05:17:53]requested_item shift.open_date is exist - process it [05:17:53]req_shift_open_date [05:17:53]req_shift_open_date done [05:17:53]produce_requested_data done [05:17:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139357,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [05:17:53]process_action_free close_receipt [05:17:53]json_value_free [05:17:53]json_value_free done [05:17:53]process_json_proto returns [05:17:53]Send response to host [05:17:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139357,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [05:17:53]free response buf [05:17:53]execute_script done [05:17:53]execute_script returns [05:17:53]free content buf [05:17:53]Sock 8.Close socket [05:17:53]Sock 8.Thread stoped [05:17:57]OFD Sender: No OFD packet to send [05:18:02]OFD Sender: No OFD packet to send [05:18:07]OFD Sender: No OFD packet to send [05:18:12]OFD Sender: No OFD packet to send [05:18:17]OFD Sender: No OFD packet to send [05:18:22]OFD Sender: No OFD packet to send [05:18:27]OFD Sender: No OFD packet to send [05:18:32]OFD Sender: No OFD packet to send [05:18:37]OFD Sender: No OFD packet to send [05:18:42]OFD Sender: No OFD packet to send [05:18:47]OFD Sender: No OFD packet to send [05:18:52]OFD Sender: No OFD packet to send [05:18:57]OFD Sender: No OFD packet to send [05:19:02]OFD Sender: No OFD packet to send [05:19:07]OFD Sender: No OFD packet to send [05:19:12]OFD Sender: No OFD packet to send [05:19:17]OFD Sender: No OFD packet to send [05:19:22]OFD Sender: No OFD packet to send [05:19:27]OFD Sender: No OFD packet to send [05:19:32]OFD Sender: No OFD packet to send [05:19:37]OFD Sender: No OFD packet to send [05:19:42]OFD Sender: No OFD packet to send [05:19:47]OFD Sender: No OFD packet to send [05:19:52]OFD Sender: No OFD packet to send [05:19:57]OFD Sender: No OFD packet to send [05:20:02]OFD Sender: No OFD packet to send [05:20:07]OFD Sender: No OFD packet to send [05:20:12]OFD Sender: No OFD packet to send [05:20:17]OFD Sender: No OFD packet to send [05:20:22]OFD Sender: No OFD packet to send [05:20:27]OFD Sender: No OFD packet to send [05:20:32]OFD Sender: No OFD packet to send [05:20:37]OFD Sender: No OFD packet to send [05:20:42]OFD Sender: No OFD packet to send [05:20:47]OFD Sender: No OFD packet to send [05:20:52]OFD Sender: No OFD packet to send [05:20:57]OFD Sender: No OFD packet to send [05:21:02]OFD Sender: No OFD packet to send [05:21:07]OFD Sender: No OFD packet to send [05:21:12]OFD Sender: No OFD packet to send [05:21:17]OFD Sender: No OFD packet to send [05:21:22]OFD Sender: No OFD packet to send [05:21:27]OFD Sender: No OFD packet to send [05:21:32]OFD Sender: No OFD packet to send [05:21:37]OFD Sender: No OFD packet to send [05:21:42]OFD Sender: No OFD packet to send [05:21:47]OFD Sender: No OFD packet to send [05:21:52]OFD Sender: No OFD packet to send [05:21:57]OFD Sender: No OFD packet to send [05:22:02]OFD Sender: No OFD packet to send [05:22:07]OFD Sender: No OFD packet to send [05:22:12]OFD Sender: No OFD packet to send [05:22:17]OFD Sender: No OFD packet to send [05:22:22]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [05:24:37]OFD Sender: No OFD packet to send [05:24:42]OFD Sender: No OFD packet to send [05:24:47]OFD Sender: No OFD packet to send [05:24:52]OFD Sender: No OFD packet to send [05:24:57]OFD Sender: No OFD packet to send [05:25:02]OFD Sender: No OFD packet to send [05:25:07]OFD Sender: No OFD packet to send [05:25:12]OFD Sender: No OFD packet to send [05:25:18]OFD Sender: No OFD packet to send [05:25:23]OFD Sender: No OFD packet to send [05:25:28]OFD Sender: No OFD packet to send [05:25:33]OFD Sender: No OFD packet to send [05:25:38]OFD Sender: No OFD packet to send [05:25:43]OFD Sender: No OFD packet to send [05:25:48]OFD Sender: No OFD packet to send [05:25:53]OFD Sender: No OFD packet to send [05:25:58]OFD Sender: No OFD packet to send [05:26:03]OFD Sender: No OFD packet to send [05:26:08]OFD Sender: No OFD packet to send [05:26:13]OFD Sender: No OFD packet to send [05:26:18]OFD Sender: No OFD packet to send [05:26:23]OFD Sender: No OFD packet to send [05:26:28]OFD Sender: No OFD packet to send [05:26:33]OFD Sender: No OFD packet to send [05:26:38]OFD Sender: No OFD packet to send [05:26:43]OFD Sender: No OFD packet to send [05:26:48]OFD Sender: No OFD packet to send [05:26:53]OFD Sender: No OFD packet to send [05:26:58]OFD Sender: No OFD packet to send [05:27:03]OFD Sender: No OFD packet to send [05:27:08]OFD Sender: No OFD packet to send [05:27:13]OFD Sender: No OFD packet to send [05:27:18]OFD Sender: No OFD packet to send [05:27:23]OFD Sender: No OFD packet to send [05:27:28]OFD Sender: No OFD packet to send [05:27:33]OFD Sender: No OFD packet to send [05:27:38]OFD Sender: No OFD packet to send [05:27:43]OFD Sender: No OFD packet to send [05:27:48]OFD Sender: No OFD packet to send [05:27:53]OFD Sender: No OFD packet to send [05:27:58]OFD Sender: No OFD packet to send [05:28:03]OFD Sender: No OFD packet to send [05:28:08]OFD Sender: No OFD packet to send [05:28:13]OFD Sender: No OFD packet to send [05:28:18]OFD Sender: No OFD packet to send [05:28:23]OFD Sender: No OFD packet to send [05:28:28]OFD Sender: No OFD packet to send [05:28:33]OFD Sender: No OFD packet to send [05:28:38]OFD Sender: No OFD packet to send [05:28:43]OFD Sender: No OFD packet to send [05:28:48]OFD Sender: No OFD packet to send [05:28:53]OFD Sender: No OFD packet to send [05:28:58]OFD Sender: No OFD packet to send [05:29:03]OFD Sender: No OFD packet to send [05:29:08]OFD Sender: No OFD packet to send [05:29:13]OFD Sender: No OFD packet to send [05:29:18]OFD Sender: No OFD packet to send [05:29:23]OFD Sender: No OFD packet to send [05:29:28]OFD Sender: No OFD packet to send [05:29:33]OFD Sender: No OFD packet to send [05:29:38]OFD Sender: No OFD packet to send [05:29:43]OFD Sender: No OFD packet to send [05:29:48]OFD Sender: No OFD packet to send [05:29:53]OFD Sender: No OFD packet to send [05:29:58]OFD Sender: No OFD packet to send [05:30:03]OFD Sender: No OFD packet to send [05:30:08]OFD Sender: No OFD packet to send [05:30:13]OFD Sender: No OFD packet to send [05:30:18]OFD Sender: No OFD packet to send [05:30:23]OFD Sender: No OFD packet to send [05:30:28]OFD Sender: No OFD packet to send [05:30:33]OFD Sender: No OFD packet to send [05:30:38]OFD Sender: No OFD packet to send [05:30:43]OFD Sender: No OFD packet to send [05:30:48]OFD Sender: No OFD packet to send [05:30:53]OFD Sender: No OFD packet to send [05:30:58]OFD Sender: No OFD packet to send [05:31:03]OFD Sender: No OFD packet to send [05:31:08]OFD Sender: No OFD packet to send [05:31:13]OFD Sender: No OFD packet to send [05:31:18]OFD Sender: No OFD packet to send [05:31:23]OFD Sender: No OFD packet to send [05:31:28]OFD Sender: No OFD packet to send [05:31:33]OFD Sender: No OFD packet to send [05:31:38]OFD Sender: No OFD packet to send [05:31:43]OFD Sender: No OFD packet to send [05:31:48]OFD Sender: No OFD packet to send [05:31:53]OFD Sender: No OFD packet to send [05:31:58]OFD Sender: No OFD packet to send [05:32:03]OFD Sender: No OFD packet to send [05:32:08]OFD Sender: No OFD packet to send [05:32:13]OFD Sender: No OFD packet to send [05:32:18]OFD Sender: No OFD packet to send [05:32:23]OFD Sender: No OFD packet to send [05:32:28]OFD Sender: No OFD packet to send [05:32:33]OFD Sender: No OFD packet to send [05:32:38]OFD Sender: No OFD packet to send [05:32:43]OFD Sender: No OFD packet to send [05:32:48]OFD Sender: No OFD packet to send [05:32:53]OFD Sender: No OFD packet to send [05:32:58]OFD Sender: No OFD packet to send [05:33:03]OFD Sender: No OFD packet to send [05:33:08]OFD Sender: No OFD packet to send [05:33:13]OFD Sender: No OFD packet to send [05:33:18]OFD Sender: No OFD packet to send [05:33:23]OFD Sender: No OFD packet to send [05:33:28]OFD Sender: No OFD packet to send [05:33:33]OFD Sender: No OFD packet to send [05:33:38]OFD Sender: No OFD packet to send [05:33:43]OFD Sender: No OFD packet to send [05:33:48]OFD Sender: No OFD packet to send [05:33:53]OFD Sender: No OFD packet to send [05:33:58]OFD Sender: No OFD packet to send [05:34:03]OFD Sender: No OFD packet to send [05:34:08]OFD Sender: No OFD packet to send [05:34:13]OFD Sender: No OFD packet to send [05:34:18]OFD Sender: No OFD packet to send [05:34:23]OFD Sender: No OFD packet to send [05:34:28]OFD Sender: No OFD packet to send [05:34:33]OFD Sender: No OFD packet to send [05:34:38]OFD Sender: No OFD packet to send [05:34:43]OFD Sender: No OFD packet to send [05:34:48]OFD Sender: No OFD packet to send [05:34:53]OFD Sender: No OFD packet to send [05:34:58]OFD Sender: No OFD packet to send [05:35:03]OFD Sender: No OFD packet to send [05:35:08]OFD Sender: No OFD packet to send [05:35:13]OFD Sender: No OFD packet to send [05:35:18]OFD Sender: No OFD packet to send [05:35:23]OFD Sender: No OFD packet to send [05:35: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:53]OFD Sender: No OFD packet to send [05:37:58]OFD Sender: No OFD packet to send [05:38:03]OFD Sender: No OFD packet to send [05:38:08]OFD Sender: No OFD packet to send [05:38:13]OFD Sender: No OFD packet to send [05:38:18]OFD Sender: No OFD packet to send [05:38:23]OFD Sender: No OFD packet to send [05:38:28]OFD Sender: No OFD packet to send [05:38:33]OFD Sender: No OFD packet to send [05:38:38]OFD Sender: No OFD packet to send [05:38:43]OFD Sender: No OFD packet to send [05:38:48]OFD Sender: No OFD packet to send [05:38:53]OFD Sender: No OFD packet to send [05:38:58]OFD Sender: No OFD packet to send [05:39:03]OFD Sender: No OFD packet to send [05:39:08]OFD Sender: No OFD packet to send [05:39:13]OFD Sender: No OFD packet to send [05:39:18]OFD Sender: No OFD packet to send [05:39:23]OFD Sender: No OFD packet to send [05:39:28]OFD Sender: No OFD packet to send [05:39:33]OFD Sender: No OFD packet to send [05:39:38]OFD Sender: No OFD packet to send [05:39:43]OFD Sender: No OFD packet to send [05:39:48]OFD Sender: No OFD packet to send [05:39:53]OFD Sender: No OFD packet to send [05:39:58]OFD Sender: No OFD packet to send [05:40:03]OFD Sender: No OFD packet to send [05:40:08]OFD Sender: No OFD packet to send [05:40:09]accept exits with 9 [05:40:09]New connection [05:40:09]New thread 3067141476 created [05:40:09]Thread 3067284836 joined [05:40:09]Waiting for new connection... [05:40:09] Sock 9.Parse request [05:40:09]Sock 9.Check first char [05:40:09]Sock 9.First char is OK [05:40:09]request: POST /json_proto HTTP/1.0 [05:40:09]Method: POST [05:40:09]URL: /json_proto [05:40:09]Method is POST - this is cgi request [05:40:09]url: /json_proto [05:40:09]query_string will be loaded in cgi processing [05:40:09]execute_cgi json_proto POST (null) [05:40:09]execute_cgi path=json_proto method=POST [05:40:09]POST find Content-Length [05:40:09]Host: 172.17.50.196:8080 [05:40:09]Content-Length: 630 [05:40:09]Content-Type: application/json [05:40:09] [05:40:09]POST finish read [05:40:09]Found Content-Length = 630 [05:40:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335266", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:09]execute_script... [05:40: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 : (3)335266", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:40:09]POST & json_proto [05:40:09]process_json_proto [05:40:09]json parsed OK: [05:40:09]protocol is kg_v1.0 [05:40:09]action value=close_receipt [05:40:09]process_action close_receipt [05:40:09]cmd_close_receipt [05:40:09]MH_GetDate [05:40:09]Write to MH i2c: F0 00 00 B9 32 DA [05:40:09]Write i2c OK [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: F0 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: F0 09 00 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: F0 09 00 B9 32 00 BD C6 21 67 72 0D 1C 67 F0 [05:40:09]GetLastDocTimeStamp 1730265473 [05:40:09]current date 1730266813 [05:40:09]FM_GetShiftState [05:40:09]SAM_PROTO_GetShiftState [05:40:09]wFMCommunicate request_size=4 [05:40:09]MH_SAM_APDU [05:40:09]CAPDU: 80 13 01 00 [05:40:09]Write to MH i2c: E2 08 00 BA 32 80 13 01 00 00 00 00 00 69 [05:40:09]Write i2c OK [05:40:09]MH_I2C_Read... [05:40:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:09]Read from MH i2c: E2 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: E2 0E 00 [05:40:09]MH_I2C_Read... [05:40:09]Read from MH i2c: E2 0E 00 BA 32 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F9 [05:40:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [05:40:09]wFMCommunicate OK [05:40:09]SAM_PROTO_GetShiftState done [05:40:09]FM_GetShiftState done [05:40:09]opened in 1730246278 [05:40:09]opened+sec_in_day 1730332678 [05:40:09]quantity*price = 5000 [05:40:09]sum+1 = 5001 [05:40:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 42 30.10.2024 05:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139358 ФПД: 226394981708516 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T054013&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139358&fm=226394981708516&tin=02508201610067®Number=0000000000091631&sum=5000 0 [05:40:10]StoreToDocumentArchive [05:40:10]shift 556 fd 139358 [05:40:10]save to /storage/0556/doc_00139358 [05:40:10]save last doc name /storage/0556/doc_00139358 to /storage/kkm_last_doc_name [05:40:10]save OK [05:40:10]Clear old archive folders... [05:40:10]ProcessDocumentItem done err = 0, tmpTLVsize=269 [05:40:10]tlvbuf is B6F2BA50 [05:40:10]SAM_PROTO_ClearQueue [05:40:10]wFMCommunicate request_size=4 [05:40:10]MH_SAM_APDU [05:40:10]CAPDU: 80 09 00 00 [05:40:10]Write to MH i2c: E2 08 00 C7 32 80 09 00 00 00 00 00 00 6B [05:40:10]Write i2c OK [05:40:10]MH_I2C_Read... [05:40:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:40:10]Read from MH i2c: E2 [05:40:10]MH_I2C_Read... [05:40:10]Read from MH i2c: E2 03 00 [05:40:10]MH_I2C_Read... [05:40:10]Read from MH i2c: E2 03 00 C7 32 00 90 00 6D [05:40:10]RAPDU: 90 00 [05:40:10]wFMCommunicate OK [05:40:10]SAM_PROTO_ClearQueue done [05:40:10]KKMCreateOFDPacket [05:40:10]OFDProtocolAddRootSTLVToBuf [05:40:10]FM_MakeSignedData [05:40:10]FM_MakeSignedData [05:40:10]SAM_PROTO_SignData [05:40:10]wFMCommunicate request_size=4 [05:40:10]MH_SAM_APDU [05:40:10]CAPDU: 80 0D 01 02 [05:40:10]Write to MH i2c: E2 08 00 C8 32 80 0D 01 02 00 00 00 00 73 [05:40:10]Write i2c OK [05:40:10]MH_I2C_Read... [05:40:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:40:10]Read from MH i2c: E2 [05:40:10]MH_I2C_Read... [05:40:10]Read from MH i2c: E2 03 00 [05:40:10]MH_I2C_Read... [05:40:10]Read from MH i2c: E2 03 00 C8 32 00 90 00 6E [05:40:10]RAPDU: 90 00 [05:40:10]wFMCommunicate OK [05:40:10]wFMCommunicate request_size=255 [05:40:10]MH_SAM_APDU [05:40:10]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 BD C6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [05:40:10]Write to MH i2c: E2 02 01 C9 32 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 BD C6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 E8 [05:40:10]Write i2c OK [05:40:10]MH_I2C_Read... [05:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:11]Read from MH i2c: E2 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: E2 03 00 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: E2 03 00 C9 32 00 90 00 6F [05:40:11]RAPDU: 90 00 [05:40:11]wFMCommunicate OK [05:40:11]wFMCommunicate request_size=28 [05:40:11]MH_SAM_APDU [05:40:11]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 5E 20 02 00 35 04 06 00 CD E7 B0 76 B2 E4 [05:40:11]Write to MH i2c: E2 1F 00 CA 32 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 5E 20 02 00 35 04 06 00 CD E7 B0 76 B2 E4 00 00 FB [05:40:11]Write i2c OK [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: E2 [05:40:11]MH_I2C_Read... [05:40:11]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:40:11]Read from MH i2c: E2 03 00 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: E2 03 00 CA 32 00 90 00 70 [05:40:11]RAPDU: 90 00 [05:40:11]wFMCommunicate OK [05:40:11]wFMCommunicate request_size=4 [05:40:11]MH_SAM_APDU [05:40:11]CAPDU: 80 0D 03 02 [05:40:11]Write to MH i2c: E2 08 00 CB 32 80 0D 03 02 00 00 00 00 78 [05:40:11]Write i2c OK [05:40:11]MH_I2C_Read... [05:40:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:40:11]Read from MH i2c: E2 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: E2 0B 00 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: E2 0B 00 CB 32 00 45 85 86 F7 0D E4 21 90 90 00 62 [05:40:11]RAPDU: 45 85 86 F7 0D E4 21 90 90 00 [05:40:11]wFMCommunicate OK [05:40:11]SAM_PROTO_SignData done [05:40:11]FM_MakeSignedData done [05:40:11]CreateOFDProtocolMessage [05:40:11]wFMCommunicate request_size=4 [05:40:11]MH_SAM_APDU [05:40:11]CAPDU: 80 11 00 00 [05:40:11]Write to MH i2c: E2 08 00 CC 32 80 11 00 00 00 00 00 00 78 [05:40:11]Write i2c OK [05:40:11]MH_I2C_Read... [05:40:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:11]Read from MH i2c: E2 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: E2 17 00 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: E2 17 00 CC 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D3 [05:40:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:40:11]wFMCommunicate OK [05:40:11]CreateOFDProtocolMessage done [05:40:11]OFDSenderStorePacket 139358 [05:40:11]StoreOFDPacket docnum=139358 [05:40:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 A7 EB 19 01 73 B3 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 BD C6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 20 02 00 35 04 06 00 CD E7 B0 76 B2 E4 45 85 86 F7 0D E4 21 90 [05:40:11]CheckFolder [05:40:11]dirname=/storage/ofd_packets [05:40:11]CheckFolder done [05:40:11]ProducePacketName [05:40:11]name=ofd_packets/00139358 [05:40:11]NVStorageSaveData ofd_packets/00139358 [05:40:11]File name is /storage/ofd_packets/00139358 [05:40:11]Write 319 bytes [05:40:11]NVStorageSaveData done [05:40:11]OFDSenderStorePacket done [05:40:11]KKMCreateOFDPacket done [05:40:11]NVStorageSaveData kkm_last_timestamp [05:40:11]File name is /storage/kkm_last_timestamp [05:40:11]Write 4 bytes [05:40:11]NVStorageSaveData done [05:40:11]ExternCall_PrintAddStr [05:40:11]wPrintStart [05:40:11]Write to MH i2c: 01 00 00 CD 32 FF [05:40:11]Write i2c OK [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: 01 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: 01 07 00 [05:40:11]MH_I2C_Read... [05:40:11]Read from MH i2c: 01 07 00 CD 32 00 00 00 00 00 FF 0F 14 [05:40:11]RasterBufferAndPrint [05:40:11]line Счет N : (3)335266 [05:40:11]line ИНН: 02508201610067 [05:40:11]line Контрольно-Кассовый Чек [05:40:11]line ПРОДАЖА [05:40:11]line Товар: 4700000160358 [05:40:11]line Вода Легенда 1л [05:40:11]line 1.000 * 50.00 [05:40:11]line = 50.00 [05:40:11]line НДС 12% НСП 1% [05:40:11]line > о реализуемом товаре [05:40:11]line ИТОГО: 50.00 [05:40:11]line НСП 1% : 0.44 [05:40:11]line НДС 12% : 5.31 [05:40:11]line Наличными: 50.00 [05:40:11]line Безнал.: 0.00 [05:40:11]line Место: АЗС № 101 "Партнер Нефть" [05:40:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:40:11]line СНО: Общий режим [05:40:11]line Чек 42 30.10.2024 05:40 [05:40:11]line Смена: 556 ФФД: 1.0 [05:40:11]line ЗНМ: 0300000081 [05:40:11]line РНМ: 0000000000091631 [05:40:11]line Версия ККМ: 001 [05:40:11]line ФМ: 0000000000874669 [05:40:11]line ФД: 139358 [05:40:11]line ФПД: 226394981708516 [05:40:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T054013&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139358&fm=226394981708516&tin=02508201610067®Number=0000000000091631&sum=5000 [05:40:11]line 0 [05:40:11]OFD Sender: Processing packet 139358 [packets to send 34, broken 33] [05:40:11]ProducePacketName [05:40:11]name=ofd_packets/00139358 [05:40:11]OFD Sender: To server: pG, [05:40:11]CommunicateWithHost lk.salyk.kg:30040 [05:40:11]ConnectInit lk.salyk.kg [05:40:11]written 0, free lines is 4095 [05:40:11]Connected sock=10 [05:40:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 A7 EB 19 01 73 B3 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 BD C6 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 20 02 00 35 04 06 00 CD E7 B0 76 B2 E4 45 85 86 F7 0D E4 21 90 [05:40:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E2 70 47 00 2B 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5E 20 02 00 F4 03 04 00 6E 72 21 67 B6 04 01 00 00 3D F3 81 71 42 79 CD E5 [05:40:11]CommunicateWithHost err = 0 [05:40:11]CheckOFDResponse [05:40:11]1017 (14) - 77093643461234 [05:40:11]1041 (16) - 0000000000874669 [05:40:11]1040 (4) - 139358 [05:40:11]1012 (4) - 29.10.2024 23:40 [05:40:11]1206 (1) - 0 [05:40:11]OFD Sender: Remove packet 139358 [05:40:11]ProducePacketName [05:40:11]name=ofd_packets/00139358 [05:40:11]NVStorageDeleteData [05:40:12]Write to MH i2c: 01 00 00 F5 32 27 [05:40:12]Write i2c OK [05:40:12]MH_I2C_Read... [05:40:12]Read from MH i2c: 01 [05:40:12]MH_I2C_Read... [05:40:12]Read from MH i2c: 01 07 00 [05:40:12]MH_I2C_Read... [05:40:12]Read from MH i2c: 01 07 00 F5 32 00 00 00 00 00 1C 0D 57 [05:40:12]RasterBufferAndPrint [05:40:12]line [05:40:12]line [05:40:12]line [05:40:12]line [05:40:12]line [05:40:12]written 0, free lines is 3361 [05:40:12]MH_Cut [05:40:12]Write to MH i2c: D1 01 00 FC 32 01 00 [05:40:12]Write i2c OK [05:40:12]MH_I2C_Read... [05:40:12]Read from MH i2c: D1 [05:40:12]MH_I2C_Read... [05:40:12]Read from MH i2c: D1 01 00 [05:40:12]MH_I2C_Read... [05:40:12]Read from MH i2c: D1 01 00 FC 32 00 FF [05:40:12]Write to MH i2c: 01 00 00 FD 32 2F [05:40:12]Write i2c OK [05:40:12]MH_I2C_Read... [05:40:12]OFD Sender: No OFD packet to send [05:40:12]*** Cut start [05:40:12]*** Partial cut [05:40:12]*** CUTSNS_PIN = 1 [05:40:12]*** CUTSNS_PIN = 0 [05:40:12]*** Brake cut motor [05:40:13]Read from MH i2c: 01 [05:40:13]MH_I2C_Read... [05:40:13]*** Stop cut motor [05:40:13]*** Cut end [05:40:13]Read from MH i2c: 01 07 00 [05:40:13]MH_I2C_Read... [05:40:13]Read from MH i2c: 01 07 00 FD 32 00 00 00 00 00 FF 0F 44 [05:40:13]process_action close_receipt done [05:40:13]requested_data is exist [05:40:13]produce_requested_data [05:40:13]requested_item fm.sn is exist - process it [05:40:13]wFMCommunicate request_size=4 [05:40:13]MH_SAM_APDU [05:40:13]CAPDU: 80 11 00 00 [05:40:13]Write to MH i2c: E2 08 00 FE 32 80 11 00 00 00 00 00 00 AA [05:40:13]Write i2c OK [05:40:13]MH_I2C_Read... [05:40:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:40:13]Read from MH i2c: E2 [05:40:13]MH_I2C_Read... [05:40:13]Read from MH i2c: E2 17 00 [05:40:13]MH_I2C_Read... [05:40:13]Read from MH i2c: E2 17 00 FE 32 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 05 [05:40:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:40:13]wFMCommunicate OK [05:40:13]requested_item fd.num is exist - process it [05:40:13]SAM_PROTO_GetFieldsCounters [05:40:13]wFMCommunicate request_size=4 [05:40:13]MH_SAM_APDU [05:40:13]CAPDU: 80 13 00 00 [05:40:13]Write to MH i2c: E2 08 00 FF 32 80 13 00 00 00 00 00 00 AD [05:40:13]Write i2c OK [05:40:13]MH_I2C_Read... [05:40:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:40:13]Read from MH i2c: E2 [05:40:13]MH_I2C_Read... [05:40:13]Read from MH i2c: E2 62 00 [05:40:13]MH_I2C_Read... [05:40:13]Read from MH i2c: E2 62 00 FF 32 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5E 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [05:40:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5E 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2A 00 00 00 5E 04 04 00 2A 00 00 00 57 04 04 00 2B 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:40:13]wFMCommunicate OK [05:40:13]SAM_PROTO_GetFieldsCounters done [05:40:13]requested_item shift.num is exist - process it [05:40:13]requested_item shift.opened is exist - process it [05:40:13]req_shift_opened [05:40:13]FM_GetShiftState [05:40:13]SAM_PROTO_GetShiftState [05:40:13]wFMCommunicate request_size=4 [05:40:13]MH_SAM_APDU [05:40:13]CAPDU: 80 13 01 00 [05:40:13]Write to MH i2c: E2 08 00 00 33 80 13 01 00 00 00 00 00 B0 [05:40:13]Write i2c OK [05:40:13]MH_I2C_Read... [05:40:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:40:13]Read from MH i2c: E2 [05:40:13]MH_I2C_Read... [05:40:13]Read from MH i2c: E2 0E 00 [05:40:13]MH_I2C_Read... [05:40:13]Read from MH i2c: E2 0E 00 00 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 40 [05:40:13]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [05:40:13]wFMCommunicate OK [05:40:13]SAM_PROTO_GetShiftState done [05:40:13]FM_GetShiftState done [05:40:13]req_shift_opened done [05:40:13]requested_item shift.open_date is exist - process it [05:40:13]req_shift_open_date [05:40:13]req_shift_open_date done [05:40:13]produce_requested_data done [05:40:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139358,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [05:40:13]process_action_free close_receipt [05:40:13]json_value_free [05:40:13]json_value_free done [05:40:13]process_json_proto returns [05:40:13]Send response to host [05:40:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139358,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [05:40:13]free response buf [05:40:13]execute_script done [05:40:13]execute_script returns [05:40:13]free content buf [05:40:13]Sock 9.Close socket [05:40:13]Sock 9.Thread stoped [05:40:17]OFD Sender: No OFD packet to send [05:40:22]OFD Sender: No OFD packet to send [05:40:27]OFD Sender: No OFD packet to send [05:40:32]OFD Sender: No OFD packet to send [05:40:37]OFD Sender: No OFD packet to send [05:40:42]OFD Sender: No OFD packet to send [05:40:47]OFD Sender: No OFD packet to send [05:40:52]OFD Sender: No OFD packet to send [05:40:57]OFD Sender: No OFD packet to send [05:41:02]OFD Sender: No OFD packet to send [05:41:07]OFD Sender: No OFD packet to send [05:41:12]OFD Sender: No OFD packet to send [05:41:17]OFD Sender: No OFD packet to send [05:41:22]OFD Sender: No OFD packet to send [05:41:27]OFD Sender: No OFD packet to send [05:41:32]OFD Sender: No OFD packet to send [05:41:37]OFD Sender: No OFD packet to send [05:41:42]OFD Sender: No OFD packet to send [05:41:47]OFD Sender: No OFD packet to send [05:41:52]OFD Sender: No OFD packet to send [05:41:57]OFD Sender: No OFD packet to send [05:42:02]OFD Sender: No OFD packet to send [05:42:07]OFD Sender: No OFD packet to send [05:42:12]OFD Sender: No OFD packet to send [05:42:17]OFD Sender: No OFD packet to send [05:42:22]OFD Sender: No OFD packet to send [05:42:27]OFD Sender: No OFD packet to send [05:42:32]OFD Sender: No OFD packet to send [05:42:37]OFD Sender: No OFD packet to send [05:42:42]OFD Sender: No OFD packet to send [05:42:47]OFD Sender: No OFD packet to send [05:42:52]OFD Sender: No OFD packet to send [05:42:57]OFD Sender: No OFD packet to send [05:43:02]OFD Sender: No OFD packet to send [05:43:07]OFD Sender: No OFD packet to send [05:43:12]OFD Sender: No OFD packet to send [05:43:17]OFD Sender: No OFD packet to send [05:43:22]OFD Sender: No OFD packet to send [05:43:27]OFD Sender: No OFD packet to send [05:43:32]OFD Sender: No OFD packet to send [05:43:37]OFD Sender: No OFD packet to send [05:43:42]OFD Sender: No OFD packet to send [05:43:47]OFD Sender: No OFD packet to send [05:43:52]OFD Sender: No OFD packet to send [05:43:57]OFD Sender: No OFD packet to send [05:44:02]OFD Sender: No OFD packet to send [05:44:07]OFD Sender: No OFD packet to send [05:44:12]OFD Sender: No OFD packet to send [05:44:17]OFD Sender: No OFD packet to send [05:44:22]OFD Sender: No OFD packet to send [05:44:27]OFD Sender: No OFD packet to send [05:44:32]OFD Sender: No OFD packet to send [05:44:37]OFD Sender: No OFD packet to send [05:44:42]OFD Sender: No OFD packet to send [05:44:47]OFD Sender: No OFD packet to send [05:44:52]OFD Sender: No OFD packet to send [05:44:57]OFD Sender: No OFD packet to send [05:45:02]OFD Sender: No OFD packet to send [05:45:07]OFD Sender: No OFD packet to send [05:45:12]OFD Sender: No OFD packet to send [05:45:17]OFD Sender: No OFD packet to send [05:45:22]OFD Sender: No OFD packet to send [05:45:27]OFD Sender: No OFD packet to send [05:45:32]OFD Sender: No OFD packet to send [05:45:37]OFD Sender: No OFD packet to send [05:45:42]OFD Sender: No OFD packet to send [05:45:47]OFD Sender: No OFD packet to send [05:45:52]OFD Sender: No OFD packet to send [05:45:57]OFD Sender: No OFD packet to send [05:46:02]OFD Sender: No OFD packet to send [05:46:07]OFD Sender: No OFD packet to send [05:46:12]OFD Sender: No OFD packet to send [05:46:17]OFD Sender: No OFD packet to send [05:46:22]OFD Sender: No OFD packet to send [05:46:27]OFD Sender: No OFD packet to send [05:46:32]OFD Sender: No OFD packet to send [05:46:37]OFD Sender: No OFD packet to send [05:46:47]OFD Sender: No OFD packet to send [05:46:52]OFD Sender: No OFD packet to send [05:46:57]OFD Sender: No OFD packet to send [05:47:02]OFD Sender: No OFD packet to send [05:47:07]OFD Sender: No OFD packet to send [05:47:12]OFD Sender: No OFD packet to send [05:47:17]OFD Sender: No OFD packet to send [05:47:22]OFD Sender: No OFD packet to send [05:47:27]OFD Sender: No OFD packet to send [05:47:32]OFD Sender: No OFD packet to send [05:47:37]OFD Sender: No OFD packet to send [05:47:42]OFD Sender: No OFD packet to send [05:47:47]OFD Sender: No OFD packet to send [05:47:52]OFD Sender: No OFD packet to send [05:47:57]OFD Sender: No OFD packet to send [05:48:02]OFD Sender: No OFD packet to send [05:48:07]OFD Sender: No OFD packet to send [05:48:12]OFD Sender: No OFD packet to send [05:48:17]OFD Sender: No OFD packet to send [05:48:22]OFD Sender: No OFD packet to send [05:48:27]OFD Sender: No OFD packet to send [05:48:32]OFD Sender: No OFD packet to send [05:48:37]OFD Sender: No OFD packet to send [05:48:42]OFD Sender: No OFD packet to send [05:48:47]OFD Sender: No OFD packet to send [05:48:52]OFD Sender: No OFD packet to send [05:48:57]OFD Sender: No OFD packet to send [05:48:58]ConnectInit Can't connect to host [05:49:02]OFD Sender: No OFD packet to send [05:49:12]OFD Sender: No OFD packet to send [05:49:17]OFD Sender: No OFD packet to send [05:49:22]OFD Sender: No OFD packet to send [05:49:27]OFD Sender: No OFD packet to send [05:49:32]OFD Sender: No OFD packet to send [05:49:37]OFD Sender: No OFD packet to send [05:49:42]OFD Sender: No OFD packet to send [05:49:47]OFD Sender: No OFD packet to send [05:49:52]OFD Sender: No OFD packet to send [05:49:57]OFD Sender: No OFD packet to send [05:50:02]OFD Sender: No OFD packet to send [05:50:07]OFD Sender: No OFD packet to send [05:50:12]OFD Sender: No OFD packet to send [05:50:17]OFD Sender: No OFD packet to send [05:50:22]OFD Sender: No OFD packet to send [05:50:27]OFD Sender: No OFD packet to send [05:50:32]OFD Sender: No OFD packet to send [05:50:37]OFD Sender: No OFD packet to send [05:50:42]OFD Sender: No OFD packet to send [05:50:47]OFD Sender: No OFD packet to send [05:50:52]OFD Sender: No OFD packet to send [05:50:57]OFD Sender: No OFD packet to send [05:51:02]OFD Sender: No OFD packet to send [05:51:07]OFD Sender: No OFD packet to send [05:51:12]OFD Sender: No OFD packet to send [05:51:17]OFD Sender: No OFD packet to send [05:51:21]ConnectInit Can't connect to host [05:51:22]OFD Sender: No OFD packet to send [05:51:27]OFD Sender: No OFD packet to send [05:51:32]OFD Sender: No OFD packet to send [05:51:37]OFD Sender: No OFD packet to send [05:51:42]OFD Sender: No OFD packet to send [05:51:47]OFD Sender: No OFD packet to send [05:51:52]OFD Sender: No OFD packet to send [05:51:57]OFD Sender: No OFD packet to send [05:52:03]OFD Sender: No OFD packet to send [05:52:08]OFD Sender: No OFD packet to send [05:52:13]OFD Sender: No OFD packet to send [05:52:18]OFD Sender: No OFD packet to send [05:52:23]OFD Sender: No OFD packet to send [05:52:28]OFD Sender: No OFD packet to send [05:52:33]OFD Sender: No OFD packet to send [05:52:38]OFD Sender: No OFD packet to send [05:52:43]OFD Sender: No OFD packet to send [05:52:48]OFD Sender: No OFD packet to send [05:52:53]OFD Sender: No OFD packet to send [05:52:58]OFD Sender: No OFD packet to send [05:53:03]OFD Sender: No OFD packet to send [05:53:08]OFD Sender: No OFD packet to send [05:53:13]OFD Sender: No OFD packet to send [05:53:18]OFD Sender: No OFD packet to send [05:53:23]OFD Sender: No OFD packet to send [05:53:28]OFD Sender: No OFD packet to send [05:53:33]OFD Sender: No OFD packet to send [05:53:38]OFD Sender: No OFD packet to send [05:53:43]OFD Sender: No OFD packet to send [05:53:48]OFD Sender: No OFD packet to send [05:53:53]OFD Sender: No OFD packet to send [05:53:58]OFD Sender: No OFD packet to send [05:54:03]OFD Sender: No OFD packet to send [05:54:08]OFD Sender: No OFD packet to send [05:54:13]OFD Sender: No OFD packet to send [05:54:18]OFD Sender: No OFD packet to send [05:54:23]OFD Sender: No OFD packet to send [05:54:28]OFD Sender: No OFD packet to send [05:54:33]OFD Sender: No OFD packet to send [05:54:38]OFD Sender: No OFD packet to send [05:54:43]OFD Sender: No OFD packet to send [05:54:48]OFD Sender: No OFD packet to send [05:54:53]OFD Sender: No OFD packet to send [05:54:58]OFD Sender: No OFD packet to send [05:55:03]OFD Sender: No OFD packet to send [05:55:08]OFD Sender: No OFD packet to send [05:55:13]OFD Sender: No OFD packet to send [05:55:18]OFD Sender: No OFD packet to send [05:55:23]OFD Sender: No OFD packet to send [05:55:28]OFD Sender: No OFD packet to send [05:55:33]OFD Sender: No OFD packet to send [05:55:38]OFD Sender: No OFD packet to send [05:55:43]OFD Sender: No OFD packet to send [05:55:48]OFD Sender: No OFD packet to send [05:55:53]OFD Sender: No OFD packet to send [05:55:58]OFD Sender: No OFD packet to send [05:56:03]OFD Sender: No OFD packet to send [05:56:08]OFD Sender: No OFD packet to send [05:56:13]OFD Sender: No OFD packet to send [05:56:18]OFD Sender: No OFD packet to send [05:56:23]OFD Sender: No OFD packet to send [05:56:28]OFD Sender: No OFD packet to send [05:56:29]accept exits with 8 [05:56:29]New connection [05:56:29]New thread 3067284836 created [05:56:29]Thread 3067141476 joined [05:56:29]Waiting for new connection... [05:56:29] Sock 8.Parse request [05:56:29]Sock 8.Check first char [05:56:29]Sock 8.First char is OK [05:56:29]request: POST /json_proto HTTP/1.0 [05:56:29]Method: POST [05:56:29]URL: /json_proto [05:56:29]Method is POST - this is cgi request [05:56:29]url: /json_proto [05:56:29]query_string will be loaded in cgi processing [05:56:29]execute_cgi json_proto POST (null) [05:56:29]execute_cgi path=json_proto method=POST [05:56:29]POST find Content-Length [05:56:29]Host: 172.17.50.196:8080 [05:56:29]Content-Length: 1064 [05:56:29]Content-Type: application/json [05:56:29] [05:56:29]POST finish read [05:56:29]Found Content-Length = 1064 [05:56:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335267", "tax_sys" : 0, "items" : [ { "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:56:29]execute_script... [05:56:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335267", "tax_sys" : 0, "items" : [ { "code": "4607010740733", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0448\u0430\u0448\u043B\u044B\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.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" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [05:56:29]POST & json_proto [05:56:29]process_json_proto [05:56:29]json parsed OK: [05:56:29]protocol is kg_v1.0 [05:56:29]action value=close_receipt [05:56:29]process_action close_receipt [05:56:29]cmd_close_receipt [05:56:29]MH_GetDate [05:56:29]Write to MH i2c: F0 00 00 01 33 23 [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: F0 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: F0 09 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: F0 09 00 01 33 00 91 CA 21 67 72 0D 1C 67 11 [05:56:29]GetLastDocTimeStamp 1730266813 [05:56:29]current date 1730267793 [05:56:29]FM_GetShiftState [05:56:29]SAM_PROTO_GetShiftState [05:56:29]wFMCommunicate request_size=4 [05:56:29]MH_SAM_APDU [05:56:29]CAPDU: 80 13 01 00 [05:56:29]Write to MH i2c: E2 08 00 02 33 80 13 01 00 00 00 00 00 B2 [05:56:29]Write i2c OK [05:56:29]MH_I2C_Read... [05:56:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:29]Read from MH i2c: E2 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 0E 00 [05:56:29]MH_I2C_Read... [05:56:29]Read from MH i2c: E2 0E 00 02 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 42 [05:56:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [05:56:29]wFMCommunicate OK [05:56:29]SAM_PROTO_GetShiftState done [05:56:29]FM_GetShiftState done [05:56:29]opened in 1730246278 [05:56:29]opened+sec_in_day 1730332678 [05:56:29]quantity*price = 4500 [05:56:29]sum+1 = 4501 [05:56:29]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 0.00 Безнал.: 175.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 43 30.10.2024 05:56 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139359 ФПД: 129175198923918 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T055633&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139359&fm=129175198923918&tin=02508201610067®Number=0000000000091631&sum=17500 0 [05:56:30]StoreToDocumentArchive [05:56:30]shift 556 fd 139359 [05:56:30]save to /storage/0556/doc_00139359 [05:56:30]save last doc name /storage/0556/doc_00139359 to /storage/kkm_last_doc_name [05:56:30]save OK [05:56:30]Clear old archive folders... [05:56:30]ProcessDocumentItem done err = 0, tmpTLVsize=397 [05:56:30]tlvbuf is B6F2BE30 [05:56:30]SAM_PROTO_ClearQueue [05:56:30]wFMCommunicate request_size=4 [05:56:30]MH_SAM_APDU [05:56:30]CAPDU: 80 09 00 00 [05:56:30]Write to MH i2c: E2 08 00 0F 33 80 09 00 00 00 00 00 00 B4 [05:56:30]Write i2c OK [05:56:30]MH_I2C_Read... [05:56:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [05:56:30]Read from MH i2c: E2 [05:56:30]MH_I2C_Read... [05:56:30]Read from MH i2c: E2 03 00 [05:56:30]MH_I2C_Read... [05:56:30]Read from MH i2c: E2 03 00 0F 33 00 90 00 B6 [05:56:30]RAPDU: 90 00 [05:56:30]wFMCommunicate OK [05:56:30]SAM_PROTO_ClearQueue done [05:56:30]KKMCreateOFDPacket [05:56:30]OFDProtocolAddRootSTLVToBuf [05:56:30]FM_MakeSignedData [05:56:30]FM_MakeSignedData [05:56:30]SAM_PROTO_SignData [05:56:30]wFMCommunicate request_size=4 [05:56:30]MH_SAM_APDU [05:56:30]CAPDU: 80 0D 01 02 [05:56:30]Write to MH i2c: E2 08 00 10 33 80 0D 01 02 00 00 00 00 BC [05:56:30]Write i2c OK [05:56:30]MH_I2C_Read... [05:56:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [05:56:30]Read from MH i2c: E2 [05:56:30]MH_I2C_Read... [05:56:30]Read from MH i2c: E2 03 00 [05:56:30]MH_I2C_Read... [05:56:30]Read from MH i2c: E2 03 00 10 33 00 90 00 B7 [05:56:30]RAPDU: 90 00 [05:56:30]wFMCommunicate OK [05:56:30]wFMCommunicate request_size=255 [05:56:30]MH_SAM_APDU [05:56:30]CAPDU: 80 0D 02 02 FA 03 00 8D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 [05:56:30]Write to MH i2c: E2 02 01 11 33 80 0D 02 02 FA 00 03 00 8D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 00 00 3D [05:56:30]Write i2c OK [05:56:30]MH_I2C_Read... [05:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:31]Read from MH i2c: E2 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 03 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 03 00 11 33 00 90 00 B8 [05:56:31]RAPDU: 90 00 [05:56:31]wFMCommunicate OK [05:56:31]wFMCommunicate request_size=156 [05:56:31]MH_SAM_APDU [05:56:31]CAPDU: 80 0D 02 02 97 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 91 CA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 20 02 00 35 04 06 00 75 7B F1 D8 7C 8E [05:56:31]Write to MH i2c: E2 9F 00 12 33 80 0D 02 02 97 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 91 CA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 20 02 00 35 04 06 00 75 7B F1 D8 7C 8E 00 00 1D [05:56:31]Write i2c OK [05:56:31]MH_I2C_Read... [05:56:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [05:56:31]Read from MH i2c: E2 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 03 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 03 00 12 33 00 90 00 B9 [05:56:31]RAPDU: 90 00 [05:56:31]wFMCommunicate OK [05:56:31]wFMCommunicate request_size=4 [05:56:31]MH_SAM_APDU [05:56:31]CAPDU: 80 0D 03 02 [05:56:31]Write to MH i2c: E2 08 00 13 33 80 0D 03 02 00 00 00 00 C1 [05:56:31]Write i2c OK [05:56:31]MH_I2C_Read... [05:56:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [05:56:31]Read from MH i2c: E2 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 0B 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 0B 00 13 33 00 F2 36 73 B9 35 BE 8A 51 90 00 E4 [05:56:31]RAPDU: F2 36 73 B9 35 BE 8A 51 90 00 [05:56:31]wFMCommunicate OK [05:56:31]SAM_PROTO_SignData done [05:56:31]FM_MakeSignedData done [05:56:31]CreateOFDProtocolMessage [05:56:31]wFMCommunicate request_size=4 [05:56:31]MH_SAM_APDU [05:56:31]CAPDU: 80 11 00 00 [05:56:31]Write to MH i2c: E2 08 00 14 33 80 11 00 00 00 00 00 00 C1 [05:56:31]Write i2c OK [05:56:31]MH_I2C_Read... [05:56:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:31]Read from MH i2c: E2 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 17 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: E2 17 00 14 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1C [05:56:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:56:31]wFMCommunicate OK [05:56:31]CreateOFDProtocolMessage done [05:56:31]OFDSenderStorePacket 139359 [05:56:31]StoreOFDPacket docnum=139359 [05:56:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A1 01 00 00 02 D3 99 01 DD 74 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 91 CA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 20 02 00 35 04 06 00 75 7B F1 D8 7C 8E F2 36 73 B9 35 BE 8A 51 [05:56:31]CheckFolder [05:56:31]dirname=/storage/ofd_packets [05:56:31]CheckFolder done [05:56:31]ProducePacketName [05:56:31]name=ofd_packets/00139359 [05:56:31]NVStorageSaveData ofd_packets/00139359 [05:56:31]File name is /storage/ofd_packets/00139359 [05:56:31]Write 447 bytes [05:56:31]NVStorageSaveData done [05:56:31]OFDSenderStorePacket done [05:56:31]KKMCreateOFDPacket done [05:56:31]NVStorageSaveData kkm_last_timestamp [05:56:31]File name is /storage/kkm_last_timestamp [05:56:31]Write 4 bytes [05:56:31]NVStorageSaveData done [05:56:31]ExternCall_PrintAddStr [05:56:31]wPrintStart [05:56:31]Write to MH i2c: 01 00 00 15 33 48 [05:56:31]OFD Sender: Processing packet 139359 [packets to send 34, broken 33] [05:56:31]ProducePacketName [05:56:31]name=ofd_packets/00139359 [05:56:31]Write i2c OK [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: 01 [05:56:31]MH_I2C_Read... [05:56:31]OFD Sender: To server: pG, [05:56:31]CommunicateWithHost lk.salyk.kg:30040 [05:56:31]Read from MH i2c: ConnectInit lk.salyk.kg [05:56:31]01 07 00 [05:56:31]MH_I2C_Read... [05:56:31]Read from MH i2c: 01 07 00 15 33 00 00 00 00 00 FF 0F 5D [05:56:31]RasterBufferAndPrint [05:56:31]line Счет N : (3)335267 [05:56:31]line ИНН: 02508201610067 [05:56:31]line Контрольно-Кассовый Чек [05:56:31]line ПРОДАЖА [05:56:31]line Товар: 4607010740733 [05:56:31]line Чипсы Чипсоны шашлык 40г [05:56:31]line 1.000 * 45.00 [05:56:31]line = 45.00 [05:56:31]line НДС 12% НСП 1% [05:56:31]line > о реализуемом товаре [05:56:31]line Товар: 2000036220012 [05:56:31]line Кофе Капучино XL(GABB TRADE) [05:56:31]line 1.000 * 130.00 [05:56:31]line = 130.00 [05:56:31]line НДС 12% НСП 1% [05:56:31]line > о реализуемом товаре [05:56:31]line ИТОГО: 175.00 [05:56:31]line НСП 1% : 1.55 [05:56:31]line НДС 12% : 18.58 [05:56:31]line Наличными: 0.00 [05:56:31]line Безнал.: 175.00 [05:56:31]line Место: АЗС № 101 "Партнер Нефть" [05:56:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [05:56:31]line СНО: Общий режим [05:56:31]line Чек 43 30.10.2024 05:56 [05:56:31]line Смена: 556 ФФД: 1.0 [05:56:31]line ЗНМ: 0300000081 [05:56:31]line РНМ: 0000000000091631 [05:56:31]line Версия ККМ: 001 [05:56:31]line Платежная система: Mbank [05:56:31]line ФМ: 0000000000874669 [05:56:31]line ФД: 139359 [05:56:31]line ФПД: 129175198923918 [05:56:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T055633&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139359&fm=129175198923918&tin=02508201610067®Number=0000000000091631&sum=17500 [05:56:31]line 0 [05:56:31]written 0, free lines is 4095 [05:56:31]Connected sock=11 [05:56:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A1 01 00 00 02 D3 99 01 DD 74 5A 03 01 00 03 00 8D 01 1E 04 01 00 01 23 04 6F 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 33 33 06 04 2B 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 88 D0 B0 D1 88 D0 BB D1 8B D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2B 00 00 00 F4 03 04 00 91 CA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 5F 20 02 00 35 04 06 00 75 7B F1 D8 7C 8E F2 36 73 B9 35 BE 8A 51 [05:56:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 07 22 47 00 25 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 38 37 34 36 36 39 10 04 04 00 5F 20 02 00 F4 03 04 00 42 76 21 67 B6 04 01 00 00 55 67 6D 48 E0 24 64 54 [05:56:32]CommunicateWithHost err = 0 [05:56:32]CheckOFDResponse [05:56:32]1017 (14) - 77093643461234 [05:56:32]1041 (16) - 0000000000874669 [05:56:32]1040 (4) - 139359 [05:56:32]1012 (4) - 29.10.2024 23:56 [05:56:32]1206 (1) - 0 [05:56:32]OFD Sender: Remove packet 139359 [05:56:32]ProducePacketName [05:56:32]name=ofd_packets/00139359 [05:56:32]NVStorageDeleteData [05:56:32]Write to MH i2c: 01 00 00 45 33 78 [05:56:32]Write i2c OK [05:56:32]MH_I2C_Read... [05:56:32]Read from MH i2c: 01 [05:56:32]MH_I2C_Read... [05:56:32]Read from MH i2c: 01 07 00 [05:56:32]MH_I2C_Read... [05:56:32]Read from MH i2c: 01 07 00 45 33 00 00 00 00 00 C0 0C 4B [05:56:32]RasterBufferAndPrint [05:56:32]line [05:56:32]line [05:56:32]line [05:56:32]line [05:56:32]line [05:56:32]written 0, free lines is 3273 [05:56:32]MH_Cut [05:56:32]Write to MH i2c: D1 01 00 4C 33 01 51 [05:56:32]Write i2c OK [05:56:32]MH_I2C_Read... [05:56:32]Read from MH i2c: D1 [05:56:32]MH_I2C_Read... [05:56:32]Read from MH i2c: D1 01 00 [05:56:32]MH_I2C_Read... [05:56:32]Read from MH i2c: D1 01 00 4C 33 00 50 [05:56:32]Write to MH i2c: 01 00 00 4D 33 80 [05:56:32]Write i2c OK [05:56:32]MH_I2C_Read... [05:56:32]OFD Sender: No OFD packet to send [05:56:33]*** Cut start [05:56:33]*** Partial cut [05:56:33]*** CUTSNS_PIN = 1 [05:56:33]*** CUTSNS_PIN = 0 [05:56:33]*** Brake cut motor [05:56:33]Read from MH i2c: 01 [05:56:33]MH_I2C_Read... [05:56:33]*** Stop cut motor [05:56:33]*** Cut end [05:56:33]Read from MH i2c: 01 07 00 [05:56:33]MH_I2C_Read... [05:56:33]Read from MH i2c: 01 07 00 4D 33 00 00 00 00 00 FF 0F 95 [05:56:33]process_action close_receipt done [05:56:33]requested_data is exist [05:56:33]produce_requested_data [05:56:33]requested_item fm.sn is exist - process it [05:56:33]wFMCommunicate request_size=4 [05:56:33]MH_SAM_APDU [05:56:33]CAPDU: 80 11 00 00 [05:56:33]Write to MH i2c: E2 08 00 4E 33 80 11 00 00 00 00 00 00 FB [05:56:33]Write i2c OK [05:56:33]MH_I2C_Read... [05:56:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [05:56:33]Read from MH i2c: E2 [05:56:33]MH_I2C_Read... [05:56:33]Read from MH i2c: E2 17 00 [05:56:33]MH_I2C_Read... [05:56:33]Read from MH i2c: E2 17 00 4E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 56 [05:56:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [05:56:33]wFMCommunicate OK [05:56:33]requested_item fd.num is exist - process it [05:56:33]SAM_PROTO_GetFieldsCounters [05:56:33]wFMCommunicate request_size=4 [05:56:33]MH_SAM_APDU [05:56:33]CAPDU: 80 13 00 00 [05:56:33]Write to MH i2c: E2 08 00 4F 33 80 13 00 00 00 00 00 00 FE [05:56:33]Write i2c OK [05:56:33]MH_I2C_Read... [05:56:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [05:56:33]Read from MH i2c: E2 [05:56:33]MH_I2C_Read... [05:56:33]Read from MH i2c: E2 62 00 [05:56:33]MH_I2C_Read... [05:56:33]Read from MH i2c: E2 62 00 4F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5F 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 52 [05:56:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 5F 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2B 00 00 00 5E 04 04 00 2B 00 00 00 57 04 04 00 2C 00 00 00 19 04 04 00 00 00 00 00 90 00 [05:56:33]wFMCommunicate OK [05:56:33]SAM_PROTO_GetFieldsCounters done [05:56:33]requested_item shift.num is exist - process it [05:56:33]requested_item shift.opened is exist - process it [05:56:33]req_shift_opened [05:56:33]FM_GetShiftState [05:56:33]SAM_PROTO_GetShiftState [05:56:33]wFMCommunicate request_size=4 [05:56:33]MH_SAM_APDU [05:56:33]CAPDU: 80 13 01 00 [05:56:33]Write to MH i2c: E2 08 00 50 33 80 13 01 00 00 00 00 00 00 [05:56:33]Write i2c OK [05:56:33]MH_I2C_Read... [05:56:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [05:56:34]Read from MH i2c: E2 [05:56:34]MH_I2C_Read... [05:56:34]Read from MH i2c: E2 0E 00 [05:56:34]MH_I2C_Read... [05:56:34]Read from MH i2c: E2 0E 00 50 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 90 [05:56:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [05:56:34]wFMCommunicate OK [05:56:34]SAM_PROTO_GetShiftState done [05:56:34]FM_GetShiftState done [05:56:34]req_shift_opened done [05:56:34]requested_item shift.open_date is exist - process it [05:56:34]req_shift_open_date [05:56:34]req_shift_open_date done [05:56:34]produce_requested_data done [05:56:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139359,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [05:56:34]process_action_free close_receipt [05:56:34]json_value_free [05:56:34]json_value_free done [05:56:34]process_json_proto returns [05:56:34]Send response to host [05:56:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139359,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [05:56:34]free response buf [05:56:34]execute_script done [05:56:34]execute_script returns [05:56:34]free content buf [05:56:34]Sock 8.Close socket [05:56:34]Sock 8.Thread stoped [05:56:37]OFD Sender: No OFD packet to send [05:56:42]OFD Sender: No OFD packet to send [05:56:47]OFD Sender: No OFD packet to send [05:56:57]OFD Sender: No OFD packet to send [05:57:02]OFD Sender: No OFD packet to send [05:57:07]OFD Sender: No OFD packet to send [05:57:12]OFD Sender: No OFD packet to send [05:57:17]OFD Sender: No OFD packet to send [05:57:22]OFD Sender: No OFD packet to send [05:57:27]OFD Sender: No OFD packet to send [05:57:32]OFD Sender: No OFD packet to send [05:57:37]OFD Sender: No OFD packet to send [05:57:42]OFD Sender: No OFD packet to send [05:57:47]OFD Sender: No OFD packet to send [05:57:52]OFD Sender: No OFD packet to send [05:57:57]OFD Sender: No OFD packet to send [05:58:02]OFD Sender: No OFD packet to send [05:58:07]OFD Sender: No OFD packet to send [05:58:12]OFD Sender: No OFD packet to send [05:58:17]OFD Sender: No OFD packet to send [05:58:22]OFD Sender: No OFD packet to send [05:58:27]OFD Sender: No OFD packet to send [05:58:32]OFD Sender: No OFD packet to send [05:58:37]OFD Sender: No OFD packet to send [05:58:42]OFD Sender: No OFD packet to send [05:58:47]OFD Sender: No OFD packet to send [05:58:52]OFD Sender: No OFD packet to send [05:58:57]OFD Sender: No OFD packet to send [05:59:02]OFD Sender: No OFD packet to send [05:59:07]ConnectInit Can't connect to host [05:59:07]OFD Sender: No OFD packet to send [05:59:12]OFD Sender: No OFD packet to send [05:59:17]OFD Sender: No OFD packet to send [05:59:22]OFD Sender: No OFD packet to send [05:59:27]OFD Sender: No OFD packet to send [05:59:32]OFD Sender: No OFD packet to send [05:59:37]OFD Sender: No OFD packet to send [05:59:42]OFD Sender: No OFD packet to send [05:59:47]OFD Sender: No OFD packet to send [05:59:52]OFD Sender: No OFD packet to send [05:59:57]OFD Sender: No OFD packet to send [06:00:02]OFD Sender: No OFD packet to send [06:00:07]OFD Sender: No OFD packet to send [06:00:12]OFD Sender: No OFD packet to send [06:00:17]OFD Sender: No OFD packet to send [06:00:22]OFD Sender: No OFD packet to send [06:00:27]OFD Sender: No OFD packet to send [06:00:32]OFD Sender: No OFD packet to send [06:00:37]OFD Sender: No OFD packet to send [06:00:42]OFD Sender: No OFD packet to send [06:00:47]OFD Sender: No OFD packet to send [06:00:52]OFD Sender: No OFD packet to send [06:00:57]OFD Sender: No OFD packet to send [06:01:02]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:13]OFD Sender: No OFD packet to send [06:03:18]OFD Sender: No OFD packet to send [06:03:23]OFD Sender: No OFD packet to send [06:03:28]OFD Sender: No OFD packet to send [06:03:33]OFD Sender: No OFD packet to send [06:03:38]OFD Sender: No OFD packet to send [06:03:43]OFD Sender: No OFD packet to send [06:03:48]OFD Sender: No OFD packet to send [06:03:53]OFD Sender: No OFD packet to send [06:03:58]OFD Sender: No OFD packet to send [06:04:03]OFD Sender: No OFD packet to send [06:04:08]OFD Sender: No OFD packet to send [06:04:13]OFD Sender: No OFD packet to send [06:04:18]OFD Sender: No OFD packet to send [06:04:23]OFD Sender: No OFD packet to send [06:04:28]OFD Sender: No OFD packet to send [06:04:33]OFD Sender: No OFD packet to send [06:04:38]OFD Sender: No OFD packet to send [06:04:43]OFD Sender: No OFD packet to send [06:04:48]OFD Sender: No OFD packet to send [06:04:53]OFD Sender: No OFD packet to send [06:04:58]OFD Sender: No OFD packet to send [06:05:03]OFD Sender: No OFD packet to send [06:05:08]OFD Sender: No OFD packet to send [06:05:13]OFD Sender: No OFD packet to send [06:05:18]OFD Sender: No OFD packet to send [06:05:23]OFD Sender: No OFD packet to send [06:05:28]OFD Sender: No OFD packet to send [06:05:33]OFD Sender: No OFD packet to send [06:05:38]OFD Sender: No OFD packet to send [06:05:43]OFD Sender: No OFD packet to send [06:05:48]OFD Sender: No OFD packet to send [06:05:53]OFD Sender: No OFD packet to send [06:05:58]OFD Sender: No OFD packet to send [06:06:03]OFD Sender: No OFD packet to send [06:06:08]OFD Sender: No OFD packet to send [06:06:13]OFD Sender: No OFD packet to send [06:06:18]OFD Sender: No OFD packet to send [06:06:23]OFD Sender: No OFD packet to send [06:06:28]OFD Sender: No OFD packet to send [06:06:33]OFD Sender: No OFD packet to send [06:06:38]OFD Sender: No OFD packet to send [06:06:43]OFD Sender: No OFD packet to send [06:06:48]OFD Sender: No OFD packet to send [06:06:53]OFD Sender: No OFD packet to send [06:06:58]OFD Sender: No OFD packet to send [06:07:03]OFD Sender: No OFD packet to send [06:07:08]OFD Sender: No OFD packet to send [06:07:13]OFD Sender: No OFD packet to send [06:07:18]OFD Sender: No OFD packet to send [06:07:23]OFD Sender: No OFD packet to send [06:07:28]OFD Sender: No OFD packet to send [06:07:33]OFD Sender: No OFD packet to send [06:07:38]OFD Sender: No OFD packet to send [06:07:43]OFD Sender: No OFD packet to send [06:07:48]OFD Sender: No OFD packet to send [06:07:53]OFD Sender: No OFD packet to send [06:07:58]OFD Sender: No OFD packet to send [06:08:03]OFD Sender: No OFD packet to send [06:08:08]OFD Sender: No OFD packet to send [06:08:13]OFD Sender: No OFD packet to send [06:08:18]OFD Sender: No OFD packet to send [06:08:23]OFD Sender: No OFD packet to send [06:08:28]OFD Sender: No OFD packet to send [06:08:33]OFD Sender: No OFD packet to send [06:08:38]OFD Sender: No OFD packet to send [06:08:43]OFD Sender: No OFD packet to send [06:08:48]OFD Sender: No OFD packet to send [06:08:53]OFD Sender: No OFD packet to send [06:08:58]OFD Sender: No OFD packet to send [06:09:03]OFD Sender: No OFD packet to send [06:09:08]OFD Sender: No OFD packet to send [06:09:13]OFD Sender: No OFD packet to send [06:09:18]OFD Sender: No OFD packet to send [06:09:23]OFD Sender: No OFD packet to send [06:09:28]OFD Sender: No OFD packet to send [06:09:33]OFD Sender: No OFD packet to send [06:09:38]OFD Sender: No OFD packet to send [06:09:43]OFD Sender: No OFD packet to send [06:09:48]OFD Sender: No OFD packet to send [06:09:53]OFD Sender: No OFD packet to send [06:09:58]OFD Sender: No OFD packet to send [06:10:03]OFD Sender: No OFD packet to send [06:10:08]OFD Sender: No OFD packet to send [06:10:13]OFD Sender: No OFD packet to send [06:10:18]OFD Sender: No OFD packet to send [06:10:23]OFD Sender: No OFD packet to send [06:10:28]OFD Sender: No OFD packet to send [06:10:33]OFD Sender: No OFD packet to send [06:10:38]OFD Sender: No OFD packet to send [06:10:43]OFD Sender: No OFD packet to send [06:10:48]OFD Sender: No OFD packet to send [06:10:53]OFD Sender: No OFD packet to send [06:10:58]OFD Sender: No OFD packet to send [06:11:03]OFD Sender: No OFD packet to send [06:11:08]OFD Sender: No OFD packet to send [06:11:13]OFD Sender: No OFD packet to send [06:11:18]OFD Sender: No OFD packet to send [06:11:23]OFD Sender: No OFD packet to send [06:11:28]OFD Sender: No OFD packet to send [06:11:33]OFD Sender: No OFD packet to send [06:11:38]OFD Sender: No OFD packet to send [06:11:43]OFD Sender: No OFD packet to send [06:11:48]OFD Sender: No OFD packet to send [06:11:53]OFD Sender: No OFD packet to send [06:11:58]OFD Sender: No OFD packet to send [06:12:03]OFD Sender: No OFD packet to send [06:12:08]OFD Sender: No OFD packet to send [06:12:13]OFD Sender: No OFD packet to send [06:12:18]OFD Sender: No OFD packet to send [06:12:23]OFD Sender: No OFD packet to send [06:12:28]OFD Sender: No OFD packet to send [06:12:33]OFD Sender: No OFD packet to send [06:12:38]OFD Sender: No OFD packet to send [06:12:43]OFD Sender: No OFD packet to send [06:12:48]OFD Sender: No OFD packet to send [06:12:53]OFD Sender: No OFD packet to send [06:12:58]OFD Sender: No OFD packet to send [06:13:03]OFD Sender: No OFD packet to send [06:13:08]OFD Sender: No OFD packet to send [06:13:13]OFD Sender: No OFD packet to send [06:13:18]OFD Sender: No OFD packet to send [06:13:23]OFD Sender: No OFD packet to send [06:13:28]OFD Sender: No OFD packet to send [06:13:33]OFD Sender: No OFD packet to send [06:13:38]OFD Sender: No OFD packet to send [06:13:43]OFD Sender: No OFD packet to send [06:13:48]OFD Sender: No OFD packet to send [06:13:53]OFD Sender: No OFD packet to send [06:13:58]OFD Sender: No OFD packet to send [06:14:03]OFD Sender: No OFD packet to send [06:14:08]OFD Sender: No OFD packet to send [06:14:13]OFD Sender: No OFD packet to send [06:14:18]OFD Sender: No OFD packet to send [06:14:23]OFD Sender: No OFD packet to send [06:14:28]OFD Sender: No OFD packet to send [06:14:33]OFD Sender: No OFD packet to send [06:14:38]OFD Sender: No OFD packet to send [06:14:43]OFD Sender: No OFD packet to send [06:14:48]OFD Sender: No OFD packet to send [06:14:53]OFD Sender: No OFD packet to send [06:14:58]OFD Sender: No OFD packet to send [06:15:03]OFD Sender: No OFD packet to send [06:15:08]OFD Sender: No OFD packet to send [06:15:13]OFD Sender: No OFD packet to send [06:15:18]OFD Sender: No OFD packet to send [06:15:23]OFD Sender: No OFD packet to send [06:15:28]OFD Sender: No OFD packet to send [06:15:33]OFD Sender: No OFD packet to send [06:15:38]OFD Sender: No OFD packet to send [06:15:43]OFD Sender: No OFD packet to send [06:15:48]OFD Sender: No OFD packet to send [06:15:53]OFD Sender: No OFD packet to send [06:15:58]OFD Sender: No OFD packet to send [06:16:03]OFD Sender: No OFD packet to send [06:16:08]OFD Sender: No OFD packet to send [06:16:13]OFD Sender: No OFD packet to send [06:16:18]OFD Sender: No OFD packet to send [06:16:23]OFD Sender: No OFD packet to send [06:16:28]OFD Sender: No OFD packet to send [06:16:33]OFD Sender: No OFD packet to send [06:16:38]OFD Sender: No OFD packet to send [06:16:43]OFD Sender: No OFD packet to send [06:16:48]OFD Sender: No OFD packet to send [06:16:53]OFD Sender: No OFD packet to send [06:16:58]OFD Sender: No OFD packet to send [06:17:03]OFD Sender: No OFD packet to send [06:17:08]OFD Sender: No OFD packet to send [06:17:13]OFD Sender: No OFD packet to send [06:17:18]OFD Sender: No OFD packet to send [06:17:23]OFD Sender: No OFD packet to send [06:17:28]OFD Sender: No OFD packet to send [06:17:33]OFD Sender: No OFD packet to send [06:17:38]OFD Sender: No OFD packet to send [06:17:43]OFD Sender: No OFD packet to send [06:17:48]OFD Sender: No OFD packet to send [06:17:53]OFD Sender: No OFD packet to send [06:17:58]OFD Sender: No OFD packet to send [06:18:03]OFD Sender: No OFD packet to send [06:18:08]OFD Sender: No OFD packet to send [06:18:13]OFD Sender: No OFD packet to send [06:18:18]OFD Sender: No OFD packet to send [06:18:23]OFD Sender: No OFD packet to send [06:18:28]OFD Sender: No OFD packet to send [06:18:33]OFD Sender: No OFD packet to send [06:18:38]OFD Sender: No OFD packet to send [06:18:43]OFD Sender: No OFD packet to send [06:18:48]OFD Sender: No OFD packet to send [06:18:53]OFD Sender: No OFD packet to send [06:18:58]OFD Sender: No OFD packet to send [06:19:03]OFD Sender: No OFD packet to send [06:19:08]OFD Sender: No OFD packet to send [06:19:13]OFD Sender: No OFD packet to send [06:19:18]OFD Sender: No OFD packet to send [06:19:23]OFD Sender: No OFD packet to send [06:19:28]OFD Sender: No OFD packet to send [06:19:33]OFD Sender: No OFD packet to send [06:19:38]OFD Sender: No OFD packet to send [06:19:43]OFD Sender: No OFD packet to send [06:19:48]OFD Sender: No OFD packet to send [06:19:53]OFD Sender: No OFD packet to send [06:19:58]OFD Sender: No OFD packet to send [06:20:03]OFD Sender: No OFD packet to send [06:20:08]OFD Sender: No OFD packet to send [06:20:13]OFD Sender: No OFD packet to send [06:20:18]OFD Sender: No OFD packet to send [06:20:23]OFD Sender: No OFD packet to send [06:20:28]OFD Sender: No OFD packet to send [06:20:33]OFD Sender: No OFD packet to send [06:20:38]OFD Sender: No OFD packet to send [06:20:43]OFD Sender: No OFD packet to send [06:20:48]OFD Sender: No OFD packet to send [06:20:53]OFD Sender: No OFD packet to send [06:20:58]OFD Sender: No OFD packet to send [06:21:03]OFD Sender: No OFD packet to send [06:21:08]OFD Sender: No OFD packet to send [06:21:13]OFD Sender: No OFD packet to send [06:21:18]OFD Sender: No OFD packet to send [06:21:23]OFD Sender: No OFD packet to send [06:21:28]OFD Sender: No OFD packet to send [06:21:33]OFD Sender: No OFD packet to send [06:21:38]OFD Sender: No OFD packet to send [06:21:43]OFD Sender: No OFD packet to send [06:21:48]OFD Sender: No OFD packet to send [06:21:53]OFD Sender: No OFD packet to send [06:21:58]OFD Sender: No OFD packet to send [06:22:03]OFD Sender: No OFD packet to send [06:22:08]OFD Sender: No OFD packet to send [06:22:13]OFD Sender: No OFD packet to send [06:22:18]OFD Sender: No OFD packet to send [06:22:24]OFD Sender: No OFD packet to send [06:22:29]OFD Sender: No OFD packet to send [06:22:34]OFD Sender: No OFD packet to send [06:22:39]OFD Sender: No OFD packet to send [06:22:44]OFD Sender: No OFD packet to send [06:22:49]OFD Sender: No OFD packet to send [06:22:54]OFD Sender: No OFD packet to send [06:22:59]OFD Sender: No OFD packet to send [06:23:04]OFD Sender: No OFD packet to send [06:23:09]OFD Sender: No OFD packet to send [06:23:14]OFD Sender: No OFD packet to send [06:23:19]OFD Sender: No OFD packet to send [06:23:24]OFD Sender: No OFD packet to send [06:23:29]OFD Sender: No OFD packet to send [06:23:34]OFD Sender: No OFD packet to send [06:23:39]OFD Sender: No OFD packet to send [06:23:44]OFD Sender: No OFD packet to send [06:23:49]OFD Sender: No OFD packet to send [06:23:54]OFD Sender: No OFD packet to send [06:23:59]OFD Sender: No OFD packet to send [06:24:04]OFD Sender: No OFD packet to send [06:24:09]OFD Sender: No OFD packet to send [06:24:14]OFD Sender: No OFD packet to send [06:24:19]OFD Sender: No OFD packet to send [06:24:24]OFD Sender: No OFD packet to send [06:24:29]OFD Sender: No OFD packet to send [06:24:34]OFD Sender: No OFD packet to send [06:24:39]OFD Sender: No OFD packet to send [06:24:44]OFD Sender: No OFD packet to send [06:24:49]OFD Sender: No OFD packet to send [06:24:54]OFD Sender: No OFD packet to send [06:24:55]accept exits with 9 [06:24:55]New connection [06:24:55]New thread 3067141476 created [06:24:55]Thread 3067284836 joined [06:24:55]Waiting for new connection... [06:24:55] Sock 9.Parse request [06:24:55]Sock 9.Check first char [06:24:55]Sock 9.First char is OK [06:24:55]request: POST /json_proto HTTP/1.0 [06:24:55]Method: POST [06:24:55]URL: /json_proto [06:24:55]Method is POST - this is cgi request [06:24:55]url: /json_proto [06:24:55]query_string will be loaded in cgi processing [06:24:55]execute_cgi json_proto POST (null) [06:24:55]execute_cgi path=json_proto method=POST [06:24:55]POST find Content-Length [06:24:55]Host: 172.17.50.196:8080 [06:24:55]Content-Length: 1019 [06:24:55]Content-Type: application/json [06:24:55] [06:24:55]POST finish read [06:24:55]Found Content-Length = 1019 [06:24:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335268", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.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" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:55]execute_script... [06:24: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 : (3)335268", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 2.000, "sum" : 20.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" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:24:55]POST & json_proto [06:24:55]process_json_proto [06:24:55]json parsed OK: [06:24:55]protocol is kg_v1.0 [06:24:55]action value=close_receipt [06:24:55]process_action close_receipt [06:24:55]cmd_close_receipt [06:24:55]MH_GetDate [06:24:55]Write to MH i2c: F0 00 00 51 33 73 [06:24:55]Write i2c OK [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: F0 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: F0 09 00 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: F0 09 00 51 33 00 3B D1 21 67 72 0D 1C 67 12 [06:24:55]GetLastDocTimeStamp 1730267793 [06:24:55]current date 1730269499 [06:24:55]FM_GetShiftState [06:24:55]SAM_PROTO_GetShiftState [06:24:55]wFMCommunicate request_size=4 [06:24:55]MH_SAM_APDU [06:24:55]CAPDU: 80 13 01 00 [06:24:55]Write to MH i2c: E2 08 00 52 33 80 13 01 00 00 00 00 00 02 [06:24:55]Write i2c OK [06:24:55]MH_I2C_Read... [06:24:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:24:55]Read from MH i2c: E2 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: E2 0E 00 [06:24:55]MH_I2C_Read... [06:24:55]Read from MH i2c: E2 0E 00 52 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 92 [06:24:55]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [06:24:55]wFMCommunicate OK [06:24:55]SAM_PROTO_GetShiftState done [06:24:55]FM_GetShiftState done [06:24:55]opened in 1730246278 [06:24:55]opened+sec_in_day 1730332678 [06:24:55]quantity*price = 9900 [06:24:55]sum+1 = 9901 [06:24:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46231529 Mentos ПФ Арбуз 6*100*2 2.000 * 10.00 = 20.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.06 НДС 12% : 12.63 Наличными: 0.00 Безнал.: 119.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 44 30.10.2024 06:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139360 ФПД: 90453587828323 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T062459&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139360&fm=90453587828323&tin=02508201610067®Number=0000000000091631&sum=11900 0 [06:24:56]StoreToDocumentArchive [06:24:56]shift 556 fd 139360 [06:24:56]save to /storage/0556/doc_00139360 [06:24:56]save last doc name /storage/0556/doc_00139360 to /storage/kkm_last_doc_name [06:24:56]save OK [06:24:56]Clear old archive folders... [06:24:56]ProcessDocumentItem done err = 0, tmpTLVsize=390 [06:24:56]tlvbuf is 0112F780 [06:24:56]SAM_PROTO_ClearQueue [06:24:56]wFMCommunicate request_size=4 [06:24:56]MH_SAM_APDU [06:24:56]CAPDU: 80 09 00 00 [06:24:56]Write to MH i2c: E2 08 00 5F 33 80 09 00 00 00 00 00 00 04 [06:24:56]Write i2c OK [06:24:56]MH_I2C_Read... [06:24:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:24:56]Read from MH i2c: E2 [06:24:56]MH_I2C_Read... [06:24:56]Read from MH i2c: E2 03 00 [06:24:56]MH_I2C_Read... [06:24:56]Read from MH i2c: E2 03 00 5F 33 00 90 00 06 [06:24:56]RAPDU: 90 00 [06:24:56]wFMCommunicate OK [06:24:56]SAM_PROTO_ClearQueue done [06:24:56]KKMCreateOFDPacket [06:24:56]OFDProtocolAddRootSTLVToBuf [06:24:56]FM_MakeSignedData [06:24:56]FM_MakeSignedData [06:24:56]SAM_PROTO_SignData [06:24:56]wFMCommunicate request_size=4 [06:24:56]MH_SAM_APDU [06:24:56]CAPDU: 80 0D 01 02 [06:24:56]Write to MH i2c: E2 08 00 60 33 80 0D 01 02 00 00 00 00 0C [06:24:56]Write i2c OK [06:24:56]MH_I2C_Read... [06:24:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:24:57]Read from MH i2c: E2 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 03 00 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 03 00 60 33 00 90 00 07 [06:24:57]RAPDU: 90 00 [06:24:57]wFMCommunicate OK [06:24:57]wFMCommunicate request_size=255 [06:24:57]MH_SAM_APDU [06:24:57]CAPDU: 80 0D 02 02 FA 03 00 86 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 [06:24:57]Write to MH i2c: E2 02 01 61 33 80 0D 02 02 FA 00 03 00 86 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 3C [06:24:57]Write i2c OK [06:24:57]MH_I2C_Read... [06:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:57]Read from MH i2c: E2 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 03 00 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 03 00 61 33 00 90 00 08 [06:24:57]RAPDU: 90 00 [06:24:57]wFMCommunicate OK [06:24:57]wFMCommunicate request_size=149 [06:24:57]MH_SAM_APDU [06:24:57]CAPDU: 80 0D 02 02 90 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3B D1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 60 20 02 00 35 04 06 00 52 44 5D F8 9E 63 [06:24:57]Write to MH i2c: E2 98 00 62 33 80 0D 02 02 90 00 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3B D1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 60 20 02 00 35 04 06 00 52 44 5D F8 9E 63 00 00 C3 [06:24:57]Write i2c OK [06:24:57]MH_I2C_Read... [06:24:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:24:57]Read from MH i2c: E2 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 03 00 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 03 00 62 33 00 90 00 09 [06:24:57]RAPDU: 90 00 [06:24:57]wFMCommunicate OK [06:24:57]wFMCommunicate request_size=4 [06:24:57]MH_SAM_APDU [06:24:57]CAPDU: 80 0D 03 02 [06:24:57]Write to MH i2c: E2 08 00 63 33 80 0D 03 02 00 00 00 00 11 [06:24:57]Write i2c OK [06:24:57]MH_I2C_Read... [06:24:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:24:57]Read from MH i2c: E2 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 0B 00 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 0B 00 63 33 00 E1 6E 1B 1D F6 26 0F D6 90 00 9A [06:24:57]RAPDU: E1 6E 1B 1D F6 26 0F D6 90 00 [06:24:57]wFMCommunicate OK [06:24:57]SAM_PROTO_SignData done [06:24:57]FM_MakeSignedData done [06:24:57]CreateOFDProtocolMessage [06:24:57]wFMCommunicate request_size=4 [06:24:57]MH_SAM_APDU [06:24:57]CAPDU: 80 11 00 00 [06:24:57]Write to MH i2c: E2 08 00 64 33 80 11 00 00 00 00 00 00 11 [06:24:57]Write i2c OK [06:24:57]MH_I2C_Read... [06:24:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:57]Read from MH i2c: E2 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 17 00 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: E2 17 00 64 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6C [06:24:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:24:57]wFMCommunicate OK [06:24:57]CreateOFDProtocolMessage done [06:24:57]OFDSenderStorePacket 139360 [06:24:57]StoreOFDPacket docnum=139360 [06:24:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9A 01 00 00 91 09 92 01 0F B2 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3B D1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 60 20 02 00 35 04 06 00 52 44 5D F8 9E 63 E1 6E 1B 1D F6 26 0F D6 [06:24:57]CheckFolder [06:24:57]dirname=/storage/ofd_packets [06:24:57]CheckFolder done [06:24:57]ProducePacketName [06:24:57]name=ofd_packets/00139360 [06:24:57]NVStorageSaveData ofd_packets/00139360 [06:24:57]File name is /storage/ofd_packets/00139360 [06:24:57]Write 440 bytes [06:24:57]NVStorageSaveData done [06:24:57]OFDSenderStorePacket done [06:24:57]KKMCreateOFDPacket done [06:24:57]NVStorageSaveData kkm_last_timestamp [06:24:57]File name is /storage/kkm_last_timestamp [06:24:57]Write 4 bytes [06:24:57]NVStorageSaveData done [06:24:57]ExternCall_PrintAddStr [06:24:57]wPrintStart [06:24:57]Write to MH i2c: 01 00 00 65 33 98 [06:24:57]Write i2c OK [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: 01 [06:24:57]MH_I2C_Read... [06:24:57]Read from MH i2c: 01 07 00 [06:24:57]MH_I2C_Read... [06:24:57]OFD Sender: Processing packet 139360 [packets to send 34, broken 33] [06:24:57]ProducePacketName [06:24:57]name=ofd_packets/00139360 [06:24:57]OFD Sender: To server: pG, [06:24:57]CommunicateWithHost lk.salyk.kg:30040 [06:24:57]ConnectInit lk.salyk.kg [06:24:57]Read from MH i2c: 01 07 00 65 33 00 00 00 00 00 FF 0F AD [06:24:57]RasterBufferAndPrint [06:24:57]line Счет N : (3)335268 [06:24:57]line ИНН: 02508201610067 [06:24:57]line Контрольно-Кассовый Чек [06:24:57]line ПРОДАЖА [06:24:57]line Товар: 4870022003305 [06:24:57]line Напиток Gorilla эн нат ж/б 0,5/0,45л [06:24:57]line 1.000 * 99.00 [06:24:57]line = 99.00 [06:24:57]line НДС 12% НСП 1% [06:24:57]line > о реализуемом товаре [06:24:57]line Товар: 46231529 [06:24:57]line Mentos ПФ Арбуз 6*100*2 [06:24:57]line 2.000 * 10.00 [06:24:57]line = 20.00 [06:24:57]line НДС 12% НСП 1% [06:24:57]line > о реализуемом товаре [06:24:57]line ИТОГО: 119.00 [06:24:57]line НСП 1% : 1.06 [06:24:57]line НДС 12% : 12.63 [06:24:57]line Наличными: 0.00 [06:24:57]line Безнал.: 119.00 [06:24:57]line Место: АЗС № 101 "Партнер Нефть" [06:24:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:24:57]line СНО: Общий режим [06:24:57]line Чек 44 30.10.2024 06:24 [06:24:57]line Смена: 556 ФФД: 1.0 [06:24:57]line ЗНМ: 0300000081 [06:24:57]line РНМ: 0000000000091631 [06:24:57]line Версия ККМ: 001 [06:24:57]line Платежная система: Mbank [06:24:57]line ФМ: 0000000000874669 [06:24:57]line ФД: 139360 [06:24:57]line ФПД: 90453587828323 [06:24:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T062459&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139360&fm=90453587828323&tin=02508201610067®Number=0000000000091631&sum=11900 [06:24:57]line 0 [06:24:57]written 0, free lines is 4095 [06:24:58]Connected sock=10 [06:24:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9A 01 00 00 91 09 92 01 0F B2 5A 03 01 00 03 00 86 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EF 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2C 00 00 00 F4 03 04 00 3B D1 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 60 20 02 00 35 04 06 00 52 44 5D F8 9E 63 E1 6E 1B 1D F6 26 0F D6 [06:24:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 80 33 47 00 73 29 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 60 20 02 00 F4 03 04 00 ED 7C 21 67 B6 04 01 00 00 3C 83 DA 79 B4 38 24 F1 [06:24:58]CommunicateWithHost err = 0 [06:24:58]CheckOFDResponse [06:24:58]1017 (14) - 77093643461234 [06:24:58]1041 (16) - 0000000000874669 [06:24:58]1040 (4) - 139360 [06:24:58]1012 (4) - 30.10.2024 00:25 [06:24:58]1206 (1) - 0 [06:24:58]OFD Sender: Remove packet 139360 [06:24:58]ProducePacketName [06:24:58]name=ofd_packets/00139360 [06:24:58]NVStorageDeleteData [06:24:58]Write to MH i2c: 01 00 00 95 33 C8 [06:24:58]Write i2c OK [06:24:58]MH_I2C_Read... [06:24:58]Read from MH i2c: 01 [06:24:58]MH_I2C_Read... [06:24:58]Read from MH i2c: 01 07 00 [06:24:58]MH_I2C_Read... [06:24:58]Read from MH i2c: 01 07 00 95 33 00 00 00 00 00 B4 0C 8F [06:24:58]RasterBufferAndPrint [06:24:58]line [06:24:58]line [06:24:58]line [06:24:58]line [06:24:58]line [06:24:58]written 0, free lines is 3262 [06:24:58]MH_Cut [06:24:58]Write to MH i2c: D1 01 00 9C 33 01 A1 [06:24:58]Write i2c OK [06:24:58]MH_I2C_Read... [06:24:58]Read from MH i2c: D1 [06:24:58]MH_I2C_Read... [06:24:58]Read from MH i2c: D1 01 00 [06:24:58]MH_I2C_Read... [06:24:58]Read from MH i2c: D1 01 00 9C 33 00 A0 [06:24:58]Write to MH i2c: 01 00 00 9D 33 D0 [06:24:58]Write i2c OK [06:24:58]MH_I2C_Read... [06:24:58]OFD Sender: No OFD packet to send [06:24:59]*** Cut start [06:24:59]*** Partial cut [06:24:59]*** CUTSNS_PIN = 1 [06:24:59]*** CUTSNS_PIN = 0 [06:24:59]*** Brake cut motor [06:24:59]Read from MH i2c: 01 [06:24:59]MH_I2C_Read... [06:24:59]*** Stop cut motor [06:24:59]*** Cut end [06:24:59]Read from MH i2c: 01 07 00 [06:24:59]MH_I2C_Read... [06:24:59]Read from MH i2c: 01 07 00 9D 33 00 00 00 00 00 FF 0F E5 [06:24:59]process_action close_receipt done [06:24:59]requested_data is exist [06:24:59]produce_requested_data [06:24:59]requested_item fm.sn is exist - process it [06:24:59]wFMCommunicate request_size=4 [06:24:59]MH_SAM_APDU [06:24:59]CAPDU: 80 11 00 00 [06:24:59]Write to MH i2c: E2 08 00 9E 33 80 11 00 00 00 00 00 00 4B [06:24:59]Write i2c OK [06:24:59]MH_I2C_Read... [06:24:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:24:59]Read from MH i2c: E2 [06:24:59]MH_I2C_Read... [06:24:59]Read from MH i2c: E2 17 00 [06:24:59]MH_I2C_Read... [06:24:59]Read from MH i2c: E2 17 00 9E 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A6 [06:24:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:24:59]wFMCommunicate OK [06:24:59]requested_item fd.num is exist - process it [06:24:59]SAM_PROTO_GetFieldsCounters [06:24:59]wFMCommunicate request_size=4 [06:24:59]MH_SAM_APDU [06:24:59]CAPDU: 80 13 00 00 [06:24:59]Write to MH i2c: E2 08 00 9F 33 80 13 00 00 00 00 00 00 4E [06:24:59]Write i2c OK [06:24:59]MH_I2C_Read... [06:24:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:24:59]Read from MH i2c: E2 [06:24:59]MH_I2C_Read... [06:24:59]Read from MH i2c: E2 62 00 [06:24:59]MH_I2C_Read... [06:24:59]Read from MH i2c: E2 62 00 9F 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 60 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 A6 [06:24:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 60 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2C 00 00 00 5E 04 04 00 2C 00 00 00 57 04 04 00 2D 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:24:59]wFMCommunicate OK [06:24:59]SAM_PROTO_GetFieldsCounters done [06:24:59]requested_item shift.num is exist - process it [06:24:59]requested_item shift.opened is exist - process it [06:24:59]req_shift_opened [06:24:59]FM_GetShiftState [06:24:59]SAM_PROTO_GetShiftState [06:24:59]wFMCommunicate request_size=4 [06:24:59]MH_SAM_APDU [06:24:59]CAPDU: 80 13 01 00 [06:24:59]Write to MH i2c: E2 08 00 A0 33 80 13 01 00 00 00 00 00 50 [06:24:59]Write i2c OK [06:24:59]MH_I2C_Read... [06:25:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:25:00]Read from MH i2c: E2 [06:25:00]MH_I2C_Read... [06:25:00]Read from MH i2c: E2 0E 00 [06:25:00]MH_I2C_Read... [06:25:00]Read from MH i2c: E2 0E 00 A0 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E0 [06:25:00]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [06:25:00]wFMCommunicate OK [06:25:00]SAM_PROTO_GetShiftState done [06:25:00]FM_GetShiftState done [06:25:00]req_shift_opened done [06:25:00]requested_item shift.open_date is exist - process it [06:25:00]req_shift_open_date [06:25:00]req_shift_open_date done [06:25:00]produce_requested_data done [06:25:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139360,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [06:25:00]process_action_free close_receipt [06:25:00]json_value_free [06:25:00]json_value_free done [06:25:00]process_json_proto returns [06:25:00]Send response to host [06:25:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139360,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [06:25:00]free response buf [06:25:00]execute_script done [06:25:00]execute_script returns [06:25:00]free content buf [06:25:00]Sock 9.Close socket [06:25:00]Sock 9.Thread stoped [06:25:03]OFD Sender: No OFD packet to send [06:25:08]OFD Sender: No OFD packet to send [06:25:13]OFD Sender: No OFD packet to send [06:25:18]OFD Sender: No OFD packet to send [06:25:23]OFD Sender: No OFD packet to send [06:25:28]OFD Sender: No OFD packet to send [06:25:33]OFD Sender: No OFD packet to send [06:25:38]OFD Sender: No OFD packet to send [06:25:43]OFD Sender: No OFD packet to send [06:25:48]OFD Sender: No OFD packet to send [06:25:53]OFD Sender: No OFD packet to send [06:25:58]OFD Sender: No OFD packet to send [06:26:03]OFD Sender: No OFD packet to send [06:26:08]OFD Sender: No OFD packet to send [06:26:13]OFD Sender: No OFD packet to send [06:26:18]OFD Sender: No OFD packet to send [06:26:23]OFD Sender: No OFD packet to send [06:26:28]OFD Sender: No OFD packet to send [06:26:33]OFD Sender: No OFD packet to send [06:26:38]OFD Sender: No OFD packet to send [06:26:43]OFD Sender: No OFD packet to send [06:26:48]OFD Sender: No OFD packet to send [06:26:53]OFD Sender: No OFD packet to send [06:26:58]OFD Sender: No OFD packet to send [06:27:03]OFD Sender: No OFD packet to send [06:27:08]OFD Sender: No OFD packet to send [06:27:13]OFD Sender: No OFD packet to send [06:27:18]OFD Sender: No OFD packet to send [06:27:23]OFD Sender: No OFD packet to send [06:27:28]OFD Sender: No OFD packet to send [06:27:33]OFD Sender: No OFD packet to send [06:27:38]OFD Sender: No OFD packet to send [06:27:43]OFD Sender: No OFD packet to send [06:27:48]OFD Sender: No OFD packet to send [06:27:53]OFD Sender: No OFD packet to send [06:27:58]OFD Sender: No OFD packet to send [06:28:03]OFD Sender: No OFD packet to send [06:28:08]OFD Sender: No OFD packet to send [06:28:13]OFD Sender: No OFD packet to send [06:28:18]OFD Sender: No OFD packet to send [06:28:23]OFD Sender: No OFD packet to send [06:28:28]OFD Sender: No OFD packet to send [06:28:33]OFD Sender: No OFD packet to send [06:28:38]OFD Sender: No OFD packet to send [06:28:43]OFD Sender: No OFD packet to send [06:28:48]OFD Sender: No OFD packet to send [06:28:53]OFD Sender: No OFD packet to send [06:28:58]OFD Sender: No OFD packet to send [06:29:03]OFD Sender: No OFD packet to send [06:29:09]OFD Sender: No OFD packet to send [06:29:14]OFD Sender: No OFD packet to send [06:29:19]OFD Sender: No OFD packet to send [06:29:24]OFD Sender: No OFD packet to send [06:29:29]OFD Sender: No OFD packet to send [06:29:34]OFD Sender: No OFD packet to send [06:29:39]OFD Sender: No OFD packet to send [06:29:44]OFD Sender: No OFD packet to send [06:29:49]OFD Sender: No OFD packet to send [06:29:54]OFD Sender: No OFD packet to send [06:29:59]OFD Sender: No OFD packet to send [06:30:04]OFD Sender: No OFD packet to send [06:30:09]OFD Sender: No OFD packet to send [06:30:14]OFD Sender: No OFD packet to send [06:30:19]OFD Sender: No OFD packet to send [06:30:24]OFD Sender: No OFD packet to send [06:30:29]OFD Sender: No OFD packet to send [06:30:34]OFD Sender: No OFD packet to send [06:30:39]OFD Sender: No OFD packet to send [06:30:44]OFD Sender: No OFD packet to send [06:30:49]OFD Sender: No OFD packet to send [06:30:54]OFD Sender: No OFD packet to send [06:30:59]OFD Sender: No OFD packet to send [06:31:04]OFD Sender: No OFD packet to send [06:31:09]OFD Sender: No OFD packet to send [06:31:14]OFD Sender: No OFD packet to send [06:31:19]OFD Sender: No OFD packet to send [06:31:24]OFD Sender: No OFD packet to send [06:31:29]OFD Sender: No OFD packet to send [06:31:34]OFD Sender: No OFD packet to send [06:31:39]OFD Sender: No OFD packet to send [06:31:44]OFD Sender: No OFD packet to send [06:31:49]OFD Sender: No OFD packet to send [06:31:54]OFD Sender: No OFD packet to send [06:31:59]OFD Sender: No OFD packet to send [06:32:04]OFD Sender: No OFD packet to send [06:32:09]OFD Sender: No OFD packet to send [06:32:14]OFD Sender: No OFD packet to send [06:32:19]OFD Sender: No OFD packet to send [06:32:24]OFD Sender: No OFD packet to send [06:32:29]OFD Sender: No OFD packet to send [06:32:34]OFD Sender: No OFD packet to send [06:32:39]OFD Sender: No OFD packet to send [06:32:44]OFD Sender: No OFD packet to send [06:32:49]OFD Sender: No OFD packet to send [06:32:54]OFD Sender: No OFD packet to send [06:32:59]OFD Sender: No OFD packet to send [06:33:04]OFD Sender: No OFD packet to send [06:33:09]OFD Sender: No OFD packet to send [06:33:14]OFD Sender: No OFD packet to send [06:33:19]OFD Sender: No OFD packet to send [06:33:24]OFD Sender: No OFD packet to send [06:33:29]OFD Sender: No OFD packet to send [06:33:34]OFD Sender: No OFD packet to send [06:33:39]OFD Sender: No OFD packet to send [06:33:44]OFD Sender: No OFD packet to send [06:33:49]OFD Sender: No OFD packet to send [06:33:54]OFD Sender: No OFD packet to send [06:33:59]OFD Sender: No OFD packet to send [06:34:04]OFD Sender: No OFD packet to send [06:34:09]OFD Sender: No OFD packet to send [06:34:14]OFD Sender: No OFD packet to send [06:34:19]OFD Sender: No OFD packet to send [06:34:24]OFD Sender: No OFD packet to send [06:34:29]OFD Sender: No OFD packet to send [06:34:34]OFD Sender: No OFD packet to send [06:34:39]OFD Sender: No OFD packet to send [06:34:44]OFD Sender: No OFD packet to send [06:34:49]OFD Sender: No OFD packet to send [06:34:54]OFD Sender: No OFD packet to send [06:34:59]OFD Sender: No OFD packet to send [06:35:04]OFD Sender: No OFD packet to send [06:35:09]OFD Sender: No OFD packet to send [06:35:14]OFD Sender: No OFD packet to send [06:35:19]OFD Sender: No OFD packet to send [06:35:24]OFD Sender: No OFD packet to send [06:35:29]OFD Sender: No OFD packet to send [06:35:34]OFD Sender: No OFD packet to send [06:35:39]OFD Sender: No OFD packet to send [06:35:44]OFD Sender: No OFD packet to send [06:35:49]OFD Sender: No OFD packet to send [06:35:54]OFD Sender: No OFD packet to send [06:35:59]OFD Sender: No OFD packet to send [06:36:04]OFD Sender: No OFD packet to send [06:36:09]OFD Sender: No OFD packet to send [06:36:14]OFD Sender: No OFD packet to send [06:36:19]OFD Sender: No OFD packet to send [06:36:24]OFD Sender: No OFD packet to send [06:36:29]OFD Sender: No OFD packet to send [06:36:34]OFD Sender: No OFD packet to send [06:36:39]OFD Sender: No OFD packet to send [06:36:44]OFD Sender: No OFD packet to send [06:36:49]OFD Sender: No OFD packet to send [06:36:54]OFD Sender: No OFD packet to send [06:36:59]OFD Sender: No OFD packet to send [06:37:04]OFD Sender: No OFD packet to send [06:37:09]OFD Sender: No OFD packet to send [06:37:14]OFD Sender: No OFD packet to send [06:37:19]OFD Sender: No OFD packet to send [06:37:24]OFD Sender: No OFD packet to send [06:37:29]OFD Sender: No OFD packet to send [06:37:34]OFD Sender: No OFD packet to send [06:37:39]OFD Sender: No OFD packet to send [06:37:44]OFD Sender: No OFD packet to send [06:37:49]OFD Sender: No OFD packet to send [06:37:54]OFD Sender: No OFD packet to send [06:37:59]OFD Sender: No OFD packet to send [06:38:04]OFD Sender: No OFD packet to send [06:38:09]OFD Sender: No OFD packet to send [06:38:14]OFD Sender: No OFD packet to send [06:38:19]OFD Sender: No OFD packet to send [06:38:24]OFD Sender: No OFD packet to send [06:38:29]OFD Sender: No OFD packet to send [06:38:34]OFD Sender: No OFD packet to send [06:38:39]OFD Sender: No OFD packet to send [06:38:44]OFD Sender: No OFD packet to send [06:38:49]OFD Sender: No OFD packet to send [06:38:54]OFD Sender: No OFD packet to send [06:38:59]OFD Sender: No OFD packet to send [06:39:04]OFD Sender: No OFD packet to send [06:39:09]OFD Sender: No OFD packet to send [06:39:14]OFD Sender: No OFD packet to send [06:39:19]OFD Sender: No OFD packet to send [06:39:24]OFD Sender: No OFD packet to send [06:39:29]OFD Sender: No OFD packet to send [06:39:34]OFD Sender: No OFD packet to send [06:39:39]OFD Sender: No OFD packet to send [06:39:44]OFD Sender: No OFD packet to send [06:39:49]OFD Sender: No OFD packet to send [06:39:54]OFD Sender: No OFD packet to send [06:39:59]OFD Sender: No OFD packet to send [06:40:04]OFD Sender: No OFD packet to send [06:40:09]OFD Sender: No OFD packet to send [06:40:14]OFD Sender: No OFD packet to send [06:40:19]OFD Sender: No OFD packet to send [06:40:24]OFD Sender: No OFD packet to send [06:40:29]OFD Sender: No OFD packet to send [06:40:34]OFD Sender: No OFD packet to send [06:40:39]OFD Sender: No OFD packet to send [06:40:44]OFD Sender: No OFD packet to send [06:40:49]OFD Sender: No OFD packet to send [06:40:54]OFD Sender: No OFD packet to send [06:40:59]OFD Sender: No OFD packet to send [06:41:04]OFD Sender: No OFD packet to send [06:41:09]OFD Sender: No OFD packet to send [06:41:14]OFD Sender: No OFD packet to send [06:41:19]OFD Sender: No OFD packet to send [06:41:24]OFD Sender: No OFD packet to send [06:41:29]OFD Sender: No OFD packet to send [06:41:34]OFD Sender: No OFD packet to send [06:41:39]OFD Sender: No OFD packet to send [06:41:44]OFD Sender: No OFD packet to send [06:41:49]OFD Sender: No OFD packet to send [06:41:54]OFD Sender: No OFD packet to send [06:41:59]OFD Sender: No OFD packet to send [06:42:04]OFD Sender: No OFD packet to send [06:42:09]OFD Sender: No OFD packet to send [06:42:14]OFD Sender: No OFD packet to send [06:42:19]OFD Sender: No OFD packet to send [06:42:24]OFD Sender: No OFD packet to send [06:42:29]OFD Sender: No OFD packet to send [06:42:34]OFD Sender: No OFD packet to send [06:42:39]OFD Sender: No OFD packet to send [06:42:44]OFD Sender: No OFD packet to send [06:42:49]OFD Sender: No OFD packet to send [06:42:54]OFD Sender: No OFD packet to send [06:42:59]OFD Sender: No OFD packet to send [06:43:04]OFD Sender: No OFD packet to send [06:43:09]OFD Sender: No OFD packet to send [06:43:14]OFD Sender: No OFD packet to send [06:43:19]OFD Sender: No OFD packet to send [06:43:24]OFD Sender: No OFD packet to send [06:43:29]OFD Sender: No OFD packet to send [06:43:34]OFD Sender: No OFD packet to send [06:43:39]OFD Sender: No OFD packet to send [06:43:44]OFD Sender: No OFD packet to send [06:43:49]OFD Sender: No OFD packet to send [06:43:54]OFD Sender: No OFD packet to send [06:43:59]OFD Sender: No OFD packet to send [06:44:04]OFD Sender: No OFD packet to send [06:44:09]OFD Sender: No OFD packet to send [06:44:14]OFD Sender: No OFD packet to send [06:44:19]OFD Sender: No OFD packet to send [06:44:24]OFD Sender: No OFD packet to send [06:44:29]OFD Sender: No OFD packet to send [06:44:34]OFD Sender: No OFD packet to send [06:44:39]OFD Sender: No OFD packet to send [06:44:44]OFD Sender: No OFD packet to send [06:44:49]OFD Sender: No OFD packet to send [06:44:54]OFD Sender: No OFD packet to send [06:44:59]OFD Sender: No OFD packet to send [06:45:04]OFD Sender: No OFD packet to send [06:45:09]OFD Sender: No OFD packet to send [06:45:14]OFD Sender: No OFD packet to send [06:45:19]OFD Sender: No OFD packet to send [06:45:24]OFD Sender: No OFD packet to send [06:45:29]OFD Sender: No OFD packet to send [06:45:34]OFD Sender: No OFD packet to send [06:45:39]OFD Sender: No OFD packet to send [06:45:44]OFD Sender: No OFD packet to send [06:45:49]OFD Sender: No OFD packet to send [06:45:54]OFD Sender: No OFD packet to send [06:45:59]OFD Sender: No OFD packet to send [06:46:04]OFD Sender: No OFD packet to send [06:46:09]OFD Sender: No OFD packet to send [06:46:14]OFD Sender: No OFD packet to send [06:46:19]OFD Sender: No OFD packet to send [06:46:24]OFD Sender: No OFD packet to send [06:46:29]OFD Sender: No OFD packet to send [06:46:34]OFD Sender: No OFD packet to send [06:46:39]OFD Sender: No OFD packet to send [06:46:44]OFD Sender: No OFD packet to send [06:46:49]OFD Sender: No OFD packet to send [06:46:54]OFD Sender: No OFD packet to send [06:46:59]OFD Sender: No OFD packet to send [06:47:04]OFD Sender: No OFD packet to send [06:47:09]OFD Sender: No OFD packet to send [06:47:14]OFD Sender: No OFD packet to send [06:47:19]OFD Sender: No OFD packet to send [06:47:24]OFD Sender: No OFD packet to send [06:47:29]OFD Sender: No OFD packet to send [06:47:34]OFD Sender: No OFD packet to send [06:47:39]OFD Sender: No OFD packet to send [06:47:44]OFD Sender: No OFD packet to send [06:47:49]OFD Sender: No OFD packet to send [06:47:54]OFD Sender: No OFD packet to send [06:48:00]OFD Sender: No OFD packet to send [06:48:05]OFD Sender: No OFD packet to send [06:48:10]OFD Sender: No OFD packet to send [06:48:15]OFD Sender: No OFD packet to send [06:48:20]OFD Sender: No OFD packet to send [06:48:25]OFD Sender: No OFD packet to send [06:48:30]OFD Sender: No OFD packet to send [06:48:35]OFD Sender: No OFD packet to send [06:48:40]OFD Sender: No OFD packet to send [06:48:45]OFD Sender: No OFD packet to send [06:48:50]OFD Sender: No OFD packet to send [06:48:55]OFD Sender: No OFD packet to send [06:49:00]OFD Sender: No OFD packet to send [06:49:05]OFD Sender: No OFD packet to send [06:49:10]OFD Sender: No OFD packet to send [06:49:15]OFD Sender: No OFD packet to send [06:49:20]OFD Sender: No OFD packet to send [06:49:25]OFD Sender: No OFD packet to send [06:49:30]OFD Sender: No OFD packet to send [06:49:35]OFD Sender: No OFD packet to send [06:49:40]OFD Sender: No OFD packet to send [06:49:45]OFD Sender: No OFD packet to send [06:49:50]OFD Sender: No OFD packet to send [06:49:55]OFD Sender: No OFD packet to send [06:50:00]OFD Sender: No OFD packet to send [06:50:05]OFD Sender: No OFD packet to send [06:50:10]OFD Sender: No OFD packet to send [06:50:15]OFD Sender: No OFD packet to send [06:50:20]OFD Sender: No OFD packet to send [06:50:25]OFD Sender: No OFD packet to send [06:50:30]OFD Sender: No OFD packet to send [06:50:35]OFD Sender: No OFD packet to send [06:50:40]OFD Sender: No OFD packet to send [06:50:45]OFD Sender: No OFD packet to send [06:50:50]OFD Sender: No OFD packet to send [06:50:55]OFD Sender: No OFD packet to send [06:51:00]OFD Sender: No OFD packet to send [06:51:05]OFD Sender: No OFD packet to send [06:51:10]OFD Sender: No OFD packet to send [06:51:15]OFD Sender: No OFD packet to send [06:51:20]OFD Sender: No OFD packet to send [06:51:25]OFD Sender: No OFD packet to send [06:51:30]OFD Sender: No OFD packet to send [06:51:35]OFD Sender: No OFD packet to send [06:51:40]OFD Sender: No OFD packet to send [06:51:45]OFD Sender: No OFD packet to send [06:51:49]accept exits with 8 [06:51:49]New connection [06:51:49]New thread 3067284836 created [06:51:49]Thread 3067141476 joined [06:51:49]Waiting for new connection... [06:51:49] Sock 8.Parse request [06:51:49]Sock 8.Check first char [06:51:49]Sock 8.First char is OK [06:51:49]request: POST /json_proto HTTP/1.0 [06:51:49]Method: POST [06:51:49]URL: /json_proto [06:51:49]Method is POST - this is cgi request [06:51:49]url: /json_proto [06:51:49]query_string will be loaded in cgi processing [06:51:49]execute_cgi json_proto POST (null) [06:51:49]execute_cgi path=json_proto method=POST [06:51:49]POST find Content-Length [06:51:49]Host: 172.17.50.196:8080 [06:51:49]Content-Length: 670 [06:51:49]Content-Type: application/json [06:51:49] [06:51:49]POST finish read [06:51:49]Found Content-Length = 670 [06:51:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335269", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:49]execute_script... [06:51: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 : (3)335269", "tax_sys" : 0, "items" : [ { "code": "4700003010056", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B Let`s Go! \u0437\u0435\u043B \u043B\u0438\u043C \u041F\u042D\u0422 1,25\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [06:51:49]POST & json_proto [06:51:49]process_json_proto [06:51:49]json parsed OK: [06:51:49]protocol is kg_v1.0 [06:51:49]action value=close_receipt [06:51:49]process_action close_receipt [06:51:49]cmd_close_receipt [06:51:49]MH_GetDate [06:51:49]Write to MH i2c: F0 00 00 A1 33 C3 [06:51:49]Write i2c OK [06:51:49]MH_I2C_Read... [06:51:49]Read from MH i2c: F0 [06:51:49]MH_I2C_Read... [06:51:49]Read from MH i2c: F0 09 00 [06:51:49]MH_I2C_Read... [06:51:49]Read from MH i2c: F0 09 00 A1 33 00 89 D7 21 67 72 0D 1C 67 B6 [06:51:49]GetLastDocTimeStamp 1730269499 [06:51:49]current date 1730271113 [06:51:49]FM_GetShiftState [06:51:49]SAM_PROTO_GetShiftState [06:51:49]wFMCommunicate request_size=4 [06:51:49]MH_SAM_APDU [06:51:49]CAPDU: 80 13 01 00 [06:51:49]Write to MH i2c: E2 08 00 A2 33 80 13 01 00 00 00 00 00 52 [06:51:49]Write i2c OK [06:51:49]MH_I2C_Read... [06:51:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:49]Read from MH i2c: E2 [06:51:49]MH_I2C_Read... [06:51:49]Read from MH i2c: E2 0E 00 [06:51:49]MH_I2C_Read... [06:51:49]Read from MH i2c: E2 0E 00 A2 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E2 [06:51:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [06:51:49]wFMCommunicate OK [06:51:49]SAM_PROTO_GetShiftState done [06:51:49]FM_GetShiftState done [06:51:49]opened in 1730246278 [06:51:49]opened+sec_in_day 1730332678 [06:51:49]quantity*price = 9500 [06:51:49]sum+1 = 9501 [06:51:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 45 30.10.2024 06:51 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139361 ФПД: 268061206688209 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T065153&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139361&fm=268061206688209&tin=02508201610067®Number=0000000000091631&sum=9500 0 [06:51:50]StoreToDocumentArchive [06:51:50]shift 556 fd 139361 [06:51:50]save to /storage/0556/doc_00139361 [06:51:50]save last doc name /storage/0556/doc_00139361 to /storage/kkm_last_doc_name [06:51:50]save OK [06:51:50]Clear old archive folders... [06:51:50]ProcessDocumentItem done err = 0, tmpTLVsize=293 [06:51:50]tlvbuf is B6FA9B90 [06:51:50]SAM_PROTO_ClearQueue [06:51:50]wFMCommunicate request_size=4 [06:51:50]MH_SAM_APDU [06:51:50]CAPDU: 80 09 00 00 [06:51:50]Write to MH i2c: E2 08 00 AF 33 80 09 00 00 00 00 00 00 54 [06:51:50]Write i2c OK [06:51:50]MH_I2C_Read... [06:51:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [06:51:50]Read from MH i2c: E2 [06:51:50]MH_I2C_Read... [06:51:50]Read from MH i2c: E2 03 00 [06:51:50]MH_I2C_Read... [06:51:50]Read from MH i2c: E2 03 00 AF 33 00 90 00 56 [06:51:50]RAPDU: 90 00 [06:51:50]wFMCommunicate OK [06:51:50]SAM_PROTO_ClearQueue done [06:51:50]KKMCreateOFDPacket [06:51:50]OFDProtocolAddRootSTLVToBuf [06:51:50]FM_MakeSignedData [06:51:50]FM_MakeSignedData [06:51:50]SAM_PROTO_SignData [06:51:50]wFMCommunicate request_size=4 [06:51:50]MH_SAM_APDU [06:51:50]CAPDU: 80 0D 01 02 [06:51:50]Write to MH i2c: E2 08 00 B0 33 80 0D 01 02 00 00 00 00 5C [06:51:50]Write i2c OK [06:51:50]MH_I2C_Read... [06:51:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [06:51:50]Read from MH i2c: E2 [06:51:50]MH_I2C_Read... [06:51:50]Read from MH i2c: E2 03 00 [06:51:50]MH_I2C_Read... [06:51:50]Read from MH i2c: E2 03 00 B0 33 00 90 00 57 [06:51:50]RAPDU: 90 00 [06:51:50]wFMCommunicate OK [06:51:50]wFMCommunicate request_size=255 [06:51:50]MH_SAM_APDU [06:51:50]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 2D 00 00 00 F4 03 04 00 89 D7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [06:51:50]Write to MH i2c: E2 02 01 B1 33 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 2D 00 00 00 F4 03 04 00 89 D7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 97 [06:51:50]Write i2c OK [06:51:50]MH_I2C_Read... [06:51:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:50]Read from MH i2c: E2 [06:51:50]MH_I2C_Read... [06:51:50]Read from MH i2c: E2 03 00 [06:51:50]MH_I2C_Read... [06:51:50]Read from MH i2c: E2 03 00 B1 33 00 90 00 58 [06:51:50]RAPDU: 90 00 [06:51:50]wFMCommunicate OK [06:51:50]wFMCommunicate request_size=52 [06:51:50]MH_SAM_APDU [06:51:50]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 20 02 00 35 04 06 00 F3 CC DD 00 B1 D1 [06:51:50]Write to MH i2c: E2 37 00 B2 33 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 20 02 00 35 04 06 00 F3 CC DD 00 B1 D1 00 00 C6 [06:51:50]Write i2c OK [06:51:50]MH_I2C_Read... [06:51:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [06:51:51]Read from MH i2c: E2 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: E2 03 00 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: E2 03 00 B2 33 00 90 00 59 [06:51:51]RAPDU: 90 00 [06:51:51]wFMCommunicate OK [06:51:51]wFMCommunicate request_size=4 [06:51:51]MH_SAM_APDU [06:51:51]CAPDU: 80 0D 03 02 [06:51:51]Write to MH i2c: E2 08 00 B3 33 80 0D 03 02 00 00 00 00 61 [06:51:51]Write i2c OK [06:51:51]MH_I2C_Read... [06:51:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [06:51:51]Read from MH i2c: E2 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: E2 0B 00 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: E2 0B 00 B3 33 00 DF 05 CD 22 2A 7A A2 BA 90 00 35 [06:51:51]RAPDU: DF 05 CD 22 2A 7A A2 BA 90 00 [06:51:51]wFMCommunicate OK [06:51:51]SAM_PROTO_SignData done [06:51:51]FM_MakeSignedData done [06:51:51]CreateOFDProtocolMessage [06:51:51]wFMCommunicate request_size=4 [06:51:51]MH_SAM_APDU [06:51:51]CAPDU: 80 11 00 00 [06:51:51]Write to MH i2c: E2 08 00 B4 33 80 11 00 00 00 00 00 00 61 [06:51:51]Write i2c OK [06:51:51]MH_I2C_Read... [06:51:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:51]Read from MH i2c: E2 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: E2 17 00 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: E2 17 00 B4 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BC [06:51:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:51:51]wFMCommunicate OK [06:51:51]CreateOFDProtocolMessage done [06:51:51]OFDSenderStorePacket 139361 [06:51:51]StoreOFDPacket docnum=139361 [06:51:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 47 E0 31 01 B9 33 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 2D 00 00 00 F4 03 04 00 89 D7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 20 02 00 35 04 06 00 F3 CC DD 00 B1 D1 DF 05 CD 22 2A 7A A2 BA [06:51:51]CheckFolder [06:51:51]dirname=/storage/ofd_packets [06:51:51]CheckFolder done [06:51:51]ProducePacketName [06:51:51]name=ofd_packets/00139361 [06:51:51]NVStorageSaveData ofd_packets/00139361 [06:51:51]File name is /storage/ofd_packets/00139361 [06:51:51]Write 343 bytes [06:51:51]NVStorageSaveData done [06:51:51]OFDSenderStorePacket done [06:51:51]KKMCreateOFDPacket done [06:51:51]NVStorageSaveData kkm_last_timestamp [06:51:51]File name is /storage/kkm_last_timestamp [06:51:51]Write 4 bytes [06:51:51]NVStorageSaveData done [06:51:51]ExternCall_PrintAddStr [06:51:51]wPrintStart [06:51:51]Write to MH i2c: 01 00 00 B5 33 E8 [06:51:51]Write i2c OK [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: 01 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: 01 07 00 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: 01 07 00 B5 33 00 00 00 00 00 FF 0F FD [06:51:51]RasterBufferAndPrint [06:51:51]line Счет N : (3)335269 [06:51:51]line ИНН: 02508201610067 [06:51:51]line Контрольно-Кассовый Чек [06:51:51]line ПРОДАЖА [06:51:51]line Товар: 4700003010056 [06:51:51]line Чай хол Let`s Go! зел лим ПЭТ 1,25л [06:51:51]line 1.000 * 95.00 [06:51:51]line = 95.00 [06:51:51]line НДС 12% НСП 1% [06:51:51]line > о реализуемом товаре [06:51:51]line ИТОГО: 95.00 [06:51:51]line НСП 1% : 0.84 [06:51:51]line НДС 12% : 10.09 [06:51:51]line Наличными: 95.00 [06:51:51]line Безнал.: 0.00 [06:51:51]line Место: АЗС № 101 "Партнер Нефть" [06:51:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [06:51:51]line СНО: Общий режим [06:51:51]line Чек 45 30.10.2024 06:51 [06:51:51]line Смена: 556 ФФД: 1.0 [06:51:51]line ЗНМ: 0300000081 [06:51:51]line РНМ: 0000000000091631 [06:51:51]line Версия ККМ: 001 [06:51:51]line ФМ: 0000000000874669 [06:51:51]line ФД: 139361 [06:51:51]line ФПД: 268061206688209 [06:51:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T065153&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139361&fm=268061206688209&tin=02508201610067®Number=0000000000091631&sum=9500 [06:51:51]OFD Sender: Processing packet 139361 [packets to send 34, broken 33] [06:51:51]ProducePacketName [06:51:51]name=ofd_packets/00139361 [06:51:51]OFD Sender: To server: pG, [06:51:51]CommunicateWithHost lk.salyk.kg:30040 [06:51:51]ConnectInit lk.salyk.kg [06:51:51]line 0 [06:51:51]written 0, free lines is 4095 [06:51:51]Connected sock=10 [06:51:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 47 E0 31 01 B9 33 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 37 30 30 30 30 33 30 31 30 30 35 36 06 04 33 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB 20 4C 65 74 60 73 20 47 6F 21 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC 20 D0 9F D0 AD D0 A2 20 31 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 2D 00 00 00 F4 03 04 00 89 D7 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 61 20 02 00 35 04 06 00 F3 CC DD 00 B1 D1 DF 05 CD 22 2A 7A A2 BA [06:51:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 16 59 47 00 88 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 38 37 34 36 36 39 10 04 04 00 61 20 02 00 F4 03 04 00 3A 83 21 67 B6 04 01 00 00 63 74 5F 4B 90 3D C9 19 [06:51:51]CommunicateWithHost err = 0 [06:51:51]CheckOFDResponse [06:51:51]1017 (14) - 77093643461234 [06:51:51]1041 (16) - 0000000000874669 [06:51:51]1040 (4) - 139361 [06:51:51]1012 (4) - 30.10.2024 00:52 [06:51:51]1206 (1) - 0 [06:51:51]OFD Sender: Remove packet 139361 [06:51:51]ProducePacketName [06:51:51]name=ofd_packets/00139361 [06:51:51]NVStorageDeleteData [06:51:51]Write to MH i2c: 01 00 00 DE 33 11 [06:51:51]Write i2c OK [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: 01 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: 01 07 00 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: 01 07 00 DE 33 00 00 00 00 00 1B 0D 40 [06:51:51]RasterBufferAndPrint [06:51:51]line [06:51:51]line [06:51:51]line [06:51:51]line [06:51:51]line [06:51:51]written 0, free lines is 3364 [06:51:51]MH_Cut [06:51:51]Write to MH i2c: D1 01 00 E5 33 01 EA [06:51:51]Write i2c OK [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: D1 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: D1 01 00 [06:51:51]MH_I2C_Read... [06:51:51]Read from MH i2c: D1 01 00 E5 33 00 E9 [06:51:51]Write to MH i2c: 01 00 00 E6 33 19 [06:51:51]Write i2c OK [06:51:51]MH_I2C_Read... [06:51:52]OFD Sender: No OFD packet to send [06:51:52]*** Cut start [06:51:52]*** Partial cut [06:51:52]*** CUTSNS_PIN = 1 [06:51:52]*** CUTSNS_PIN = 0 [06:51:52]*** Brake cut motor [06:51:53]Read from MH i2c: 01 [06:51:53]MH_I2C_Read... [06:51:53]*** Stop cut motor [06:51:53]*** Cut end [06:51:53]Read from MH i2c: 01 07 00 [06:51:53]MH_I2C_Read... [06:51:53]Read from MH i2c: 01 07 00 E6 33 00 00 00 00 00 FF 0F 2E [06:51:53]process_action close_receipt done [06:51:53]requested_data is exist [06:51:53]produce_requested_data [06:51:53]requested_item fm.sn is exist - process it [06:51:53]wFMCommunicate request_size=4 [06:51:53]MH_SAM_APDU [06:51:53]CAPDU: 80 11 00 00 [06:51:53]Write to MH i2c: E2 08 00 E7 33 80 11 00 00 00 00 00 00 94 [06:51:53]Write i2c OK [06:51:53]MH_I2C_Read... [06:51:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [06:51:53]Read from MH i2c: E2 [06:51:53]MH_I2C_Read... [06:51:53]Read from MH i2c: E2 17 00 [06:51:53]MH_I2C_Read... [06:51:53]Read from MH i2c: E2 17 00 E7 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [06:51:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [06:51:53]wFMCommunicate OK [06:51:53]requested_item fd.num is exist - process it [06:51:53]SAM_PROTO_GetFieldsCounters [06:51:53]wFMCommunicate request_size=4 [06:51:53]MH_SAM_APDU [06:51:53]CAPDU: 80 13 00 00 [06:51:53]Write to MH i2c: E2 08 00 E8 33 80 13 00 00 00 00 00 00 97 [06:51:53]Write i2c OK [06:51:53]MH_I2C_Read... [06:51:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [06:51:53]Read from MH i2c: E2 [06:51:53]MH_I2C_Read... [06:51:53]Read from MH i2c: E2 62 00 [06:51:53]MH_I2C_Read... [06:51:53]Read from MH i2c: E2 62 00 E8 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 61 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F3 [06:51:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 61 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [06:51:53]wFMCommunicate OK [06:51:53]SAM_PROTO_GetFieldsCounters done [06:51:53]requested_item shift.num is exist - process it [06:51:53]requested_item shift.opened is exist - process it [06:51:53]req_shift_opened [06:51:53]FM_GetShiftState [06:51:53]SAM_PROTO_GetShiftState [06:51:53]wFMCommunicate request_size=4 [06:51:53]MH_SAM_APDU [06:51:53]CAPDU: 80 13 01 00 [06:51:53]Write to MH i2c: E2 08 00 E9 33 80 13 01 00 00 00 00 00 99 [06:51:53]Write i2c OK [06:51:53]MH_I2C_Read... [06:51:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [06:51:53]Read from MH i2c: E2 [06:51:53]MH_I2C_Read... [06:51:53]Read from MH i2c: E2 0E 00 [06:51:53]MH_I2C_Read... [06:51:53]Read from MH i2c: E2 0E 00 E9 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 29 [06:51:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [06:51:53]wFMCommunicate OK [06:51:53]SAM_PROTO_GetShiftState done [06:51:53]FM_GetShiftState done [06:51:53]req_shift_opened done [06:51:53]requested_item shift.open_date is exist - process it [06:51:53]req_shift_open_date [06:51:53]req_shift_open_date done [06:51:53]produce_requested_data done [06:51:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139361,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [06:51:53]process_action_free close_receipt [06:51:53]json_value_free [06:51:53]json_value_free done [06:51:53]process_json_proto returns [06:51:53]Send response to host [06:51:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139361,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [06:51:53]free response buf [06:51:53]execute_script done [06:51:53]execute_script returns [06:51:53]free content buf [06:51:53]Sock 8.Close socket [06:51:53]Sock 8.Thread stoped [06:51:57]OFD Sender: No OFD packet to send [06:52:02]OFD Sender: No OFD packet to send [06:52:07]OFD Sender: No OFD packet to send [06:52:12]OFD Sender: No OFD packet to send [06:52:17]OFD Sender: No OFD packet to send [06:52:22]OFD Sender: No OFD packet to send [06:52:27]OFD Sender: No OFD packet to send [06:52:32]OFD Sender: No OFD packet to send [06:52:37]OFD Sender: No OFD packet to send [06:52:42]OFD Sender: No OFD packet to send [06:52:47]OFD Sender: No OFD packet to send [06:52:52]OFD Sender: No OFD packet to send [06:52:57]OFD Sender: No OFD packet to send [06:53:02]OFD Sender: No OFD packet to send [06:53:07]OFD Sender: No OFD packet to send [06:53:12]OFD Sender: No OFD packet to send [06:53:17]OFD Sender: No OFD packet to send [06:53:22]OFD Sender: No OFD packet to send [06:53:27]OFD Sender: No OFD packet to send [06:53:32]OFD Sender: No OFD packet to send [06:53:37]OFD Sender: No OFD packet to send [06:53:42]OFD Sender: No OFD packet to send [06:53:47]OFD Sender: No OFD packet to send [06:53:52]OFD Sender: No OFD packet to send [06:53:57]OFD Sender: No OFD packet to send [06:54:02]OFD Sender: No OFD packet to send [06:54:07]OFD Sender: No OFD packet to send [06:54:12]OFD Sender: No OFD packet to send [06:54:17]OFD Sender: No OFD packet to send [06:54:22]OFD Sender: No OFD packet to send [06:54:27]OFD Sender: No OFD packet to send [06:54:32]OFD Sender: No OFD packet to send [06:54:37]OFD Sender: No OFD packet to send [06:54:42]OFD Sender: No OFD packet to send [06:54:47]OFD Sender: No OFD packet to send [06:54:52]OFD Sender: No OFD packet to send [06:54:57]OFD Sender: No OFD packet to send [06:55:02]OFD Sender: No OFD packet to send [06:55:07]OFD Sender: No OFD packet to send [06:55:12]OFD Sender: No OFD packet to send [06:55:17]OFD Sender: No OFD packet to send [06:55:22]OFD Sender: No OFD packet to send [06:55:27]OFD Sender: No OFD packet to send [06:55:32]OFD Sender: No OFD packet to send [06:55:37]OFD Sender: No OFD packet to send [06:55:42]OFD Sender: No OFD packet to send [06:55:47]OFD Sender: No OFD packet to send [06:55:52]OFD Sender: No OFD packet to send [06:55:57]OFD Sender: No OFD packet to send [06:56:02]OFD Sender: No OFD packet to send [06:56:07]OFD Sender: No OFD packet to send [06:56:12]OFD Sender: No OFD packet to send [06:56:17]OFD Sender: No OFD packet to send [06:56:22]OFD Sender: No OFD packet to send [06:56:27]OFD Sender: No OFD packet to send [06:56:32]OFD Sender: No OFD packet to send [06:56:37]OFD Sender: No OFD packet to send [06:56:42]OFD Sender: No OFD packet to send [06:56:47]OFD Sender: No OFD packet to send [06:56:52]OFD Sender: No OFD packet to send [06:56:57]OFD Sender: No OFD packet to send [06:57:02]OFD Sender: No OFD packet to send [06:57:07]OFD Sender: No OFD packet to send [06:57:12]OFD Sender: No OFD packet to send [06:57:17]OFD Sender: No OFD packet to send [06:57:22]OFD Sender: No OFD packet to send [06:57:27]OFD Sender: No OFD packet to send [06:57:32]OFD Sender: No OFD packet to send [06:57:37]OFD Sender: No OFD packet to send [06:57:42]OFD Sender: No OFD packet to send [06:57:47]OFD Sender: No OFD packet to send [06:57:52]OFD Sender: No OFD packet to send [06:57:57]OFD Sender: No OFD packet to send [06:58:02]OFD Sender: No OFD packet to send [06:58:07]OFD Sender: No OFD packet to send [06:58:12]OFD Sender: No OFD packet to send [06:58:17]OFD Sender: No OFD packet to send [06:58:22]OFD Sender: No OFD packet to send [06:58:27]OFD Sender: No OFD packet to send [06:58:32]OFD Sender: No OFD packet to send [06:58:37]OFD Sender: No OFD packet to send [06:58:42]OFD Sender: No OFD packet to send [06:58:47]OFD Sender: No OFD packet to send [06:58:52]OFD Sender: No OFD packet to send [06:58:57]OFD Sender: No OFD packet to send [06:59:02]OFD Sender: No OFD packet to send [06:59:07]OFD Sender: No OFD packet to send [06:59:12]OFD Sender: No OFD packet to send [06:59:17]OFD Sender: No OFD packet to send [06:59:22]OFD Sender: No OFD packet to send [06:59:27]OFD Sender: No OFD packet to send [06:59:32]OFD Sender: No OFD packet to send [06:59:37]OFD Sender: No OFD packet to send [06:59:42]OFD Sender: No OFD packet to send [06:59:47]OFD Sender: No OFD packet to send [06:59:52]OFD Sender: No OFD packet to send [06:59:57]OFD Sender: No OFD packet to send [07:00:02]OFD Sender: No OFD packet to send [07:00:07]OFD Sender: No OFD packet to send [07:00:12]OFD Sender: No OFD packet to send [07:00:17]OFD Sender: No OFD packet to send [07:00:22]OFD Sender: No OFD packet to send [07:00:27]OFD Sender: No OFD packet to send [07:00:32]OFD Sender: No OFD packet to send [07:00:37]OFD Sender: No OFD packet to send [07:00:42]OFD Sender: No OFD packet to send [07:00:47]OFD Sender: No OFD packet to send [07:00:52]OFD Sender: No OFD packet to send [07:00:53]accept exits with 9 [07:00:53]New connection [07:00:53]New thread 3067141476 created [07:00:53]Thread 3067284836 joined [07:00:53]Waiting for new connection... [07:00:53] Sock 9.Parse request [07:00:53]Sock 9.Check first char [07:00:53]Sock 9.First char is OK [07:00:53]request: POST /json_proto HTTP/1.0 [07:00:53]Method: POST [07:00:53]URL: /json_proto [07:00:53]Method is POST - this is cgi request [07:00:53]url: /json_proto [07:00:53]query_string will be loaded in cgi processing [07:00:53]execute_cgi json_proto POST (null) [07:00:53]execute_cgi path=json_proto method=POST [07:00:53]POST find Content-Length [07:00:53]Host: 172.17.50.196:8080 [07:00:53]Content-Length: 215 [07:00:53]Content-Type: application/json [07:00:53] [07:00:53]POST finish read [07:00:53]Found Content-Length = 215 [07:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:53]execute_script... [07:00:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:00:53]POST & json_proto [07:00:53]process_json_proto [07:00:53]json parsed OK: [07:00:53]protocol is kg_v1.0 [07:00:53]action value=get_value [07:00:53]process_action get_value [07:00:53]cmd_get_value [07:00:53]process_action get_value done [07:00:53]requested_data is exist [07:00:53]produce_requested_data [07:00:53]requested_item kkm.sn is exist - process it [07:00:53]requested_item kkm.ver is exist - process it [07:00:53]requested_item fm.sn is exist - process it [07:00:53]wFMCommunicate request_size=4 [07:00:53]MH_SAM_APDU [07:00:53]CAPDU: 80 11 00 00 [07:00:53]Write to MH i2c: E2 08 00 EA 33 80 11 00 00 00 00 00 00 97 [07:00:53]Write i2c OK [07:00:53]MH_I2C_Read... [07:00:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:00:53]Read from MH i2c: E2 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 17 00 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 17 00 EA 33 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F2 [07:00:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:00:53]wFMCommunicate OK [07:00:53]requested_item fd.num is exist - process it [07:00:53]SAM_PROTO_GetFieldsCounters [07:00:53]wFMCommunicate request_size=4 [07:00:53]MH_SAM_APDU [07:00:53]CAPDU: 80 13 00 00 [07:00:53]Write to MH i2c: E2 08 00 EB 33 80 13 00 00 00 00 00 00 9A [07:00:53]Write i2c OK [07:00:53]MH_I2C_Read... [07:00:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:00:53]Read from MH i2c: E2 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 62 00 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 62 00 EB 33 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 61 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 F6 [07:00:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 61 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2D 00 00 00 5E 04 04 00 2D 00 00 00 57 04 04 00 2E 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:00:53]wFMCommunicate OK [07:00:53]SAM_PROTO_GetFieldsCounters done [07:00:53]requested_item shift.num is exist - process it [07:00:53]requested_item shift.opened is exist - process it [07:00:53]req_shift_opened [07:00:53]FM_GetShiftState [07:00:53]SAM_PROTO_GetShiftState [07:00:53]wFMCommunicate request_size=4 [07:00:53]MH_SAM_APDU [07:00:53]CAPDU: 80 13 01 00 [07:00:53]Write to MH i2c: E2 08 00 EC 33 80 13 01 00 00 00 00 00 9C [07:00:53]Write i2c OK [07:00:53]MH_I2C_Read... [07:00:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:00:53]Read from MH i2c: E2 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 0E 00 [07:00:53]MH_I2C_Read... [07:00:53]Read from MH i2c: E2 0E 00 EC 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 2C [07:00:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:00:53]wFMCommunicate OK [07:00:53]SAM_PROTO_GetShiftState done [07:00:53]FM_GetShiftState done [07:00:53]req_shift_opened done [07:00:53]requested_item shift.open_date is exist - process it [07:00:53]req_shift_open_date [07:00:53]req_shift_open_date done [07:00:53]produce_requested_data done [07:00:53]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139361,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [07:00:53]process_action_free get_value [07:00:53]json_value_free [07:00:53]json_value_free done [07:00:53]process_json_proto returns [07:00:53]Send response to host [07:00:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139361,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [07:00:53]free response buf [07:00:53]execute_script done [07:00:53]execute_script returns [07:00:53]free content buf [07:00:53]Sock 9.Close socket [07:00:53]Sock 9.Thread stoped [07:00:53]accept exits with 8 [07:00:53]New connection [07:00:53]New thread 3067284836 created [07:00:53]Thread 3067141476 joined [07:00:53]Waiting for new connection... [07:00:53] Sock 8.Parse request [07:00:53]Sock 8.Check first char [07:00:53]Sock 8.First char is OK [07:00:53]request: POST /json_proto HTTP/1.0 [07:00:53]Method: POST [07:00:53]URL: /json_proto [07:00:53]Method is POST - this is cgi request [07:00:53]url: /json_proto [07:00:53]query_string will be loaded in cgi processing [07:00:53]execute_cgi json_proto POST (null) [07:00:53]execute_cgi path=json_proto method=POST [07:00:53]POST find Content-Length [07:00:53]Host: 172.17.50.196:8080 [07:00:53]Content-Length: 331 [07:00:53]Content-Type: application/json [07:00:53] [07:00:53]POST finish read [07:00:53]Found Content-Length = 331 [07:00:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:00:53]execute_script... [07:00:54]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [07:00:54]POST & json_proto [07:00:54]process_json_proto [07:00:54]json parsed OK: [07:00:54]protocol is kg_v1.0 [07:00:54]action value=get_value [07:00:54]process_action get_value [07:00:54]cmd_get_value [07:00:54]process_action get_value done [07:00:54]requested_data is exist [07:00:54]produce_requested_data [07:00:54]requested_item fm.sale.total is exist - process it [07:00:54]SAM_PROTO_GetFMData [07:00:54]wFMCommunicate request_size=4 [07:00:54]MH_SAM_APDU [07:00:54]CAPDU: 80 13 03 00 [07:00:54]Write to MH i2c: E2 08 00 ED 33 80 13 03 00 00 00 00 00 9F [07:00:54]Write i2c OK [07:00:54]MH_I2C_Read... [07:00:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [07:00:54]Read from MH i2c: E2 [07:00:54]MH_I2C_Read... [07:00:54]Read from MH i2c: E2 FD 00 [07:00:54]MH_I2C_Read... [07:00:54]Read from MH i2c: E2 FD 00 ED 33 00 C7 04 85 04 C3 04 6E 04 04 00 09 1C 02 00 69 04 A3 00 6F 04 04 00 BE 19 02 00 B1 04 05 00 C8 22 0E 52 01 70 04 05 00 14 A1 EC 02 01 72 04 04 00 B4 81 21 4F 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 05 0A E7 23 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 D7 A8 FD 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 66 [07:00:54]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 09 1C 02 00 69 04 A3 00 6F 04 04 00 BE 19 02 00 B1 04 05 00 C8 22 0E 52 01 70 04 05 00 14 A1 EC 02 01 72 04 04 00 B4 81 21 4F 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 05 0A E7 23 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 D7 A8 FD 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [07:00:54]wFMCommunicate OK [07:00:54]wFMCommunicate request_size=4 [07:00:54]MH_SAM_APDU [07:00:54]CAPDU: 80 17 00 00 [07:00:54]Write to MH i2c: E2 08 00 EE 33 80 17 00 00 00 00 00 00 A1 [07:00:54]Write i2c OK [07:00:54]MH_I2C_Read... [07:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:00:55]Read from MH i2c: E2 [07:00:55]MH_I2C_Read... [07:00:55]Read from MH i2c: E2 FD 00 [07:00:55]MH_I2C_Read... [07:00:55]Read from MH i2c: E2 FD 00 EE 33 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B8 [07:00:55]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:00:55]wFMCommunicate OK [07:00:55]wFMCommunicate request_size=4 [07:00:55]MH_SAM_APDU [07:00:55]CAPDU: 80 17 00 00 [07:00:55]Write to MH i2c: E2 08 00 EF 33 80 17 00 00 00 00 00 00 A2 [07:00:55]Write i2c OK [07:00:55]MH_I2C_Read... [07:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:00:55]Read from MH i2c: E2 [07:00:55]MH_I2C_Read... [07:00:55]Read from MH i2c: E2 FD 00 [07:00:55]MH_I2C_Read... [07:00:55]Read from MH i2c: E2 FD 00 EF 33 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7A [07:00:55]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:00:55]wFMCommunicate OK [07:00:55]wFMCommunicate request_size=4 [07:00:55]MH_SAM_APDU [07:00:55]CAPDU: 80 17 00 00 [07:00:55]Write to MH i2c: E2 08 00 F0 33 80 17 00 00 00 00 00 00 A3 [07:00:55]Write i2c OK [07:00:55]MH_I2C_Read... [07:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:00:55]Read from MH i2c: E2 [07:00:55]MH_I2C_Read... [07:00:55]Read from MH i2c: E2 FD 00 [07:00:55]MH_I2C_Read... [07:00:55]Read from MH i2c: E2 FD 00 F0 33 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 1E [07:00:55]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [07:00:55]wFMCommunicate OK [07:00:55]wFMCommunicate request_size=4 [07:00:55]MH_SAM_APDU [07:00:55]CAPDU: 80 17 00 00 [07:00:55]Write to MH i2c: E2 08 00 F1 33 80 17 00 00 00 00 00 00 A4 [07:00:55]Write i2c OK [07:00:55]MH_I2C_Read... [07:00:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [07:00:55]Read from MH i2c: E2 [07:00:55]MH_I2C_Read... [07:00:55]Read from MH i2c: E2 E4 00 [07:00:55]MH_I2C_Read... [07:00:55]Read from MH i2c: E2 E4 00 F1 33 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 84 [07:00:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:00:55]wFMCommunicate OK [07:00:55]SAM_PROTO_GetFMData done [07:00:55]requested_item fm.sale_refund.total is exist - process it [07:00:55]requested_item fm.buy.total is exist - process it [07:00:55]requested_item shift.sale.total is exist - process it [07:00:55]SAM_PROTO_GetShiftData [07:00:55]wFMCommunicate request_size=4 [07:00:55]MH_SAM_APDU [07:00:55]CAPDU: 80 13 02 00 [07:00:55]Write to MH i2c: E2 08 00 F2 33 80 13 02 00 00 00 00 00 A3 [07:00:55]Write i2c OK [07:00:55]MH_I2C_Read... [07:00:56]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [07:00:56]Read from MH i2c: E2 [07:00:56]MH_I2C_Read... [07:00:56]Read from MH i2c: E2 FD 00 [07:00:56]MH_I2C_Read... [07:00:56]Read from MH i2c: E2 FD 00 F2 33 00 AE 04 AA 04 AA 04 6E 04 04 00 2D 00 00 00 69 04 9B 00 6F 04 04 00 2D 00 00 00 B1 04 03 00 58 4A 0D 70 04 03 00 E8 70 0B 72 04 03 00 70 D9 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 48 69 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 03 [07:00:56]RAPDU: AE 04 AA 04 AA 04 6E 04 04 00 2D 00 00 00 69 04 9B 00 6F 04 04 00 2D 00 00 00 B1 04 03 00 58 4A 0D 70 04 03 00 E8 70 0B 72 04 03 00 70 D9 01 00 04 7A 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0C 00 F2 03 01 00 01 F3 03 03 00 48 69 01 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 19 1E EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 90 00 [07:00:56]wFMCommunicate OK [07:00:56]wFMCommunicate request_size=4 [07:00:56]MH_SAM_APDU [07:00:56]CAPDU: 80 17 00 00 [07:00:56]Write to MH i2c: E2 08 00 F3 33 80 17 00 00 00 00 00 00 A6 [07:00:56]Write i2c OK [07:00:56]MH_I2C_Read... [07:00:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:00:56]Read from MH i2c: E2 [07:00:56]MH_I2C_Read... [07:00:56]Read from MH i2c: E2 FD 00 [07:00:56]MH_I2C_Read... [07:00:56]Read from MH i2c: E2 FD 00 F3 33 00 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 C8 [07:00:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 90 00 [07:00:56]wFMCommunicate OK [07:00:56]wFMCommunicate request_size=4 [07:00:56]MH_SAM_APDU [07:00:56]CAPDU: 80 17 00 00 [07:00:56]Write to MH i2c: E2 08 00 F4 33 80 17 00 00 00 00 00 00 A7 [07:00:56]Write i2c OK [07:00:56]MH_I2C_Read... [07:00:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:00:56]Read from MH i2c: E2 [07:00:56]MH_I2C_Read... [07:00:56]Read from MH i2c: E2 FD 00 [07:00:56]MH_I2C_Read... [07:00:56]Read from MH i2c: E2 FD 00 F4 33 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 5E [07:00:56]RAPDU: F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 90 00 [07:00:56]wFMCommunicate OK [07:00:56]wFMCommunicate request_size=4 [07:00:56]MH_SAM_APDU [07:00:56]CAPDU: 80 17 00 00 [07:00:56]Write to MH i2c: E2 08 00 F5 33 80 17 00 00 00 00 00 00 A8 [07:00:56]Write i2c OK [07:00:56]MH_I2C_Read... [07:00:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [07:00:57]Read from MH i2c: E2 [07:00:57]MH_I2C_Read... [07:00:57]Read from MH i2c: E2 FD 00 [07:00:57]MH_I2C_Read... [07:00:57]Read from MH i2c: E2 FD 00 F5 33 00 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 1A [07:00:57]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 90 00 [07:00:57]wFMCommunicate OK [07:00:57]wFMCommunicate request_size=4 [07:00:57]MH_SAM_APDU [07:00:57]CAPDU: 80 17 00 00 [07:00:57]Write to MH i2c: E2 08 00 F6 33 80 17 00 00 00 00 00 00 A9 [07:00:57]Write i2c OK [07:00:57]MH_I2C_Read... [07:00:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 200! [07:00:57]Read from MH i2c: E2 [07:00:57]MH_I2C_Read... [07:00:57]Read from MH i2c: E2 CB 00 [07:00:57]MH_I2C_Read... [07:00:57]Read from MH i2c: E2 CB 00 F6 33 00 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 92 [07:00:57]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [07:00:57]wFMCommunicate OK [07:00:57]SAM_PROTO_GetShiftData done [07:00:57]requested_item shift.sale.total_cash is exist - process it [07:00:57]requested_item shift.sale_refund.total is exist - process it [07:00:57]requested_item shift.sale_refund.total_cash is exist - process it [07:00:57]requested_item shift.buy.total is exist - process it [07:00:57]requested_item shift.buy.total_cash is exist - process it [07:00:57]produce_requested_data done [07:00:57]produce_requested_data return {"fm.sale.total":56716254.16,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":8710.00,"shift.sale.total_cash":7498.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00} [07:00:57]process_action_free get_value [07:00:57]json_value_free [07:00:57]json_value_free done [07:00:57]process_json_proto returns [07:00:57]Send response to host [07:00:57]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56716254.16,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":8710.00,"shift.sale.total_cash":7498.00,"shift.sale_refund.total":0.00,"shift.sale_refund.total_cash":0.00,"shift.buy.total":0.00,"shift.buy.total_cash":0.00}}} [07:00:57]free response buf [07:00:57]execute_script done [07:00:57]execute_script returns [07:00:57]free content buf [07:00:57]Sock 8.Close socket [07:00:57]Sock 8.Thread stoped [07:00:57]OFD Sender: No OFD packet to send [07:01:02]OFD Sender: No OFD packet to send [07:01:07]OFD Sender: No OFD packet to send [07:01:12]OFD Sender: No OFD packet to send [07:01:17]OFD Sender: No OFD packet to send [07:01:22]OFD Sender: No OFD packet to send [07:01:27]OFD Sender: No OFD packet to send [07:01:32]OFD Sender: No OFD packet to send [07:01:37]OFD Sender: No OFD packet to send [07:01:42]OFD Sender: No OFD packet to send [07:01:47]OFD Sender: No OFD packet to send [07:01:52]OFD Sender: No OFD packet to send [07:01:57]OFD Sender: No OFD packet to send [07:02:02]OFD Sender: No OFD packet to send [07:02:07]OFD Sender: No OFD packet to send [07:02:12]OFD Sender: No OFD packet to send [07:02:17]OFD Sender: No OFD packet to send [07:02:22]OFD Sender: No OFD packet to send [07:02:27]OFD Sender: No OFD packet to send [07:02:32]OFD Sender: No OFD packet to send [07:02:37]OFD Sender: No OFD packet to send [07:02:42]OFD Sender: No OFD packet to send [07:02:47]OFD Sender: No OFD packet to send [07:02:52]OFD Sender: No OFD packet to send [07:02:57]OFD Sender: No OFD packet to send [07:03:02]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:43]OFD Sender: No OFD packet to send [07:03:48]OFD Sender: No OFD packet to send [07:03:53]OFD Sender: No OFD packet to send [07:03:58]OFD Sender: No OFD packet to send [07:04:03]OFD Sender: No OFD packet to send [07:04:08]OFD Sender: No OFD packet to send [07:04:13]OFD Sender: No OFD packet to send [07:04:18]OFD Sender: No OFD packet to send [07:04:23]OFD Sender: No OFD packet to send [07:04:28]OFD Sender: No OFD packet to send [07:04:33]OFD Sender: No OFD packet to send [07:04:38]OFD Sender: No OFD packet to send [07:04:43]OFD Sender: No OFD packet to send [07:04:48]OFD Sender: No OFD packet to send [07:04:53]OFD Sender: No OFD packet to send [07:04:58]OFD Sender: No OFD packet to send [07:05:03]OFD Sender: No OFD packet to send [07:05:08]OFD Sender: No OFD packet to send [07:05:13]OFD Sender: No OFD packet to send [07:05:18]OFD Sender: No OFD packet to send [07:05:23]OFD Sender: No OFD packet to send [07:05:28]OFD Sender: No OFD packet to send [07:05:33]OFD Sender: No OFD packet to send [07:05:38]OFD Sender: No OFD packet to send [07:05:43]OFD Sender: No OFD packet to send [07:05:48]OFD Sender: No OFD packet to send [07:05:53]OFD Sender: No OFD packet to send [07:05:58]OFD Sender: No OFD packet to send [07:06:03]OFD Sender: No OFD packet to send [07:06:08]OFD Sender: No OFD packet to send [07:06:13]OFD Sender: No OFD packet to send [07:06:18]OFD Sender: No OFD packet to send [07:06:23]OFD Sender: No OFD packet to send [07:06:28]OFD Sender: No OFD packet to send [07:06:33]OFD Sender: No OFD packet to send [07:06:38]OFD Sender: No OFD packet to send [07:06:43]OFD Sender: No OFD packet to send [07:06:48]OFD Sender: No OFD packet to send [07:06:53]OFD Sender: No OFD packet to send [07:06:58]OFD Sender: No OFD packet to send [07:07:03]OFD Sender: No OFD packet to send [07:07:08]OFD Sender: No OFD packet to send [07:07:13]OFD Sender: No OFD packet to send [07:07:18]OFD Sender: No OFD packet to send [07:07:23]OFD Sender: No OFD packet to send [07:07:28]OFD Sender: No OFD packet to send [07:07:33]OFD Sender: No OFD packet to send [07:07:38]OFD Sender: No OFD packet to send [07:07:43]OFD Sender: No OFD packet to send [07:07:48]OFD Sender: No OFD packet to send [07:07:53]OFD Sender: No OFD packet to send [07:07:58]OFD Sender: No OFD packet to send [07:08:03]OFD Sender: No OFD packet to send [07:08:08]OFD Sender: No OFD packet to send [07:08:13]OFD Sender: No OFD packet to send [07:08:18]OFD Sender: No OFD packet to send [07:08:23]OFD Sender: No OFD packet to send [07:08:28]OFD Sender: No OFD packet to send [07:08:33]OFD Sender: No OFD packet to send [07:08:38]OFD Sender: No OFD packet to send [07:08:43]OFD Sender: No OFD packet to send [07:08:48]OFD Sender: No OFD packet to send [07:08:53]OFD Sender: No OFD packet to send [07:08:58]OFD Sender: No OFD packet to send [07:09:03]OFD Sender: No OFD packet to send [07:09:08]OFD Sender: No OFD packet to send [07:09:13]OFD Sender: No OFD packet to send [07:09:18]OFD Sender: No OFD packet to send [07:09:23]OFD Sender: No OFD packet to send [07:09:28]OFD Sender: No OFD packet to send [07:09:33]OFD Sender: No OFD packet to send [07:09:38]OFD Sender: No OFD packet to send [07:09:43]OFD Sender: No OFD packet to send [07:09:48]OFD Sender: No OFD packet to send [07:09:53]OFD Sender: No OFD packet to send [07:09:58]OFD Sender: No OFD packet to send [07:10:03]OFD Sender: No OFD packet to send [07:10:08]OFD Sender: No OFD packet to send [07:10:12]accept exits with 9 [07:10:12]New connection [07:10:12]New thread 3067141476 created [07:10:12]Thread 3067284836 joined [07:10:12]Waiting for new connection... [07:10:12] Sock 9.Parse request [07:10:12]Sock 9.Check first char [07:10:12]Sock 9.First char is OK [07:10:12]request: POST /json_proto HTTP/1.0 [07:10:12]Method: POST [07:10:12]URL: /json_proto [07:10:12]Method is POST - this is cgi request [07:10:12]url: /json_proto [07:10:12]query_string will be loaded in cgi processing [07:10:12]execute_cgi json_proto POST (null) [07:10:12]execute_cgi path=json_proto method=POST [07:10:12]POST find Content-Length [07:10:12]Host: 172.17.50.196:8080 [07:10:12]Content-Length: 638 [07:10:12]Content-Type: application/json [07:10:12] [07:10:12]POST finish read [07:10:12]Found Content-Length = 638 [07:10:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335270", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:12]execute_script... [07:10: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 : (3)335270", "tax_sys" : 0, "items" : [ { "code": "4700002082931", "name": "\u0412\u043E\u0434\u043A\u0430 \u0425\u043E\u0440\u043E\u0448\u0430\u044F 0,1\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 70.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:10:12]POST & json_proto [07:10:12]process_json_proto [07:10:12]json parsed OK: [07:10:12]protocol is kg_v1.0 [07:10:12]action value=close_receipt [07:10:12]process_action close_receipt [07:10:12]cmd_close_receipt [07:10:12]MH_GetDate [07:10:12]Write to MH i2c: F0 00 00 F7 33 19 [07:10:12]Write i2c OK [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: F0 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: F0 09 00 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: F0 09 00 F7 33 00 D8 DB 21 67 72 0D 1C 67 5F [07:10:12]GetLastDocTimeStamp 1730271113 [07:10:12]current date 1730272216 [07:10:12]FM_GetShiftState [07:10:12]SAM_PROTO_GetShiftState [07:10:12]wFMCommunicate request_size=4 [07:10:12]MH_SAM_APDU [07:10:12]CAPDU: 80 13 01 00 [07:10:12]Write to MH i2c: E2 08 00 F8 33 80 13 01 00 00 00 00 00 A8 [07:10:12]Write i2c OK [07:10:12]MH_I2C_Read... [07:10:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:12]Read from MH i2c: E2 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 0E 00 [07:10:12]MH_I2C_Read... [07:10:12]Read from MH i2c: E2 0E 00 F8 33 00 09 00 01 86 76 21 67 00 00 00 00 90 00 38 [07:10:12]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:10:12]wFMCommunicate OK [07:10:12]SAM_PROTO_GetShiftState done [07:10:12]FM_GetShiftState done [07:10:12]opened in 1730246278 [07:10:12]opened+sec_in_day 1730332678 [07:10:12]quantity*price = 7000 [07:10:12]sum+1 = 7001 [07:10:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 70.00 НСП 1% : 0.62 НДС 12% : 7.43 Наличными: 70.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 46 30.10.2024 07:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139362 ФПД: 221149613434570 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071016&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139362&fm=221149613434570&tin=02508201610067®Number=0000000000091631&sum=7000 0 [07:10:13]StoreToDocumentArchive [07:10:13]shift 556 fd 139362 [07:10:13]save to /storage/0556/doc_00139362 [07:10:13]save last doc name /storage/0556/doc_00139362 to /storage/kkm_last_doc_name [07:10:13]save OK [07:10:13]Clear old archive folders... [07:10:13]ProcessDocumentItem done err = 0, tmpTLVsize=273 [07:10:13]tlvbuf is B6FA9AA0 [07:10:13]SAM_PROTO_ClearQueue [07:10:13]wFMCommunicate request_size=4 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 09 00 00 [07:10:13]Write to MH i2c: E2 08 00 05 34 80 09 00 00 00 00 00 00 AB [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 05 34 00 90 00 AD [07:10:13]RAPDU: 90 00 [07:10:13]wFMCommunicate OK [07:10:13]SAM_PROTO_ClearQueue done [07:10:13]KKMCreateOFDPacket [07:10:13]OFDProtocolAddRootSTLVToBuf [07:10:13]FM_MakeSignedData [07:10:13]FM_MakeSignedData [07:10:13]SAM_PROTO_SignData [07:10:13]wFMCommunicate request_size=4 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 0D 01 02 [07:10:13]Write to MH i2c: E2 08 00 06 34 80 0D 01 02 00 00 00 00 B3 [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 06 34 00 90 00 AE [07:10:13]RAPDU: 90 00 [07:10:13]wFMCommunicate OK [07:10:13]wFMCommunicate request_size=255 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D8 DB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [07:10:13]Write to MH i2c: E2 02 01 07 34 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D8 DB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 60 [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 07 34 00 90 00 AF [07:10:13]RAPDU: 90 00 [07:10:13]wFMCommunicate OK [07:10:13]wFMCommunicate request_size=32 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 62 20 02 00 35 04 06 00 C9 22 68 26 A6 CA [07:10:13]Write to MH i2c: E2 23 00 08 34 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 62 20 02 00 35 04 06 00 C9 22 68 26 A6 CA 00 00 88 [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:10:13]Read from MH i2c: E2 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 [07:10:13]MH_I2C_Read... [07:10:13]Read from MH i2c: E2 03 00 08 34 00 90 00 B0 [07:10:13]RAPDU: 90 00 [07:10:13]wFMCommunicate OK [07:10:13]wFMCommunicate request_size=4 [07:10:13]MH_SAM_APDU [07:10:13]CAPDU: 80 0D 03 02 [07:10:13]Write to MH i2c: E2 08 00 09 34 80 0D 03 02 00 00 00 00 B8 [07:10:13]Write i2c OK [07:10:13]MH_I2C_Read... [07:10:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:10:14]Read from MH i2c: E2 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: E2 0B 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: E2 0B 00 09 34 00 09 DF 5C 42 49 1A B5 CC 90 00 23 [07:10:14]RAPDU: 09 DF 5C 42 49 1A B5 CC 90 00 [07:10:14]wFMCommunicate OK [07:10:14]SAM_PROTO_SignData done [07:10:14]FM_MakeSignedData done [07:10:14]CreateOFDProtocolMessage [07:10:14]wFMCommunicate request_size=4 [07:10:14]MH_SAM_APDU [07:10:14]CAPDU: 80 11 00 00 [07:10:14]Write to MH i2c: E2 08 00 0A 34 80 11 00 00 00 00 00 00 B8 [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:14]Read from MH i2c: E2 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: E2 17 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: E2 17 00 0A 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 13 [07:10:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:10:14]wFMCommunicate OK [07:10:14]CreateOFDProtocolMessage done [07:10:14]OFDSenderStorePacket 139362 [07:10:14]StoreOFDPacket docnum=139362 [07:10:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 CC E4 1D 01 87 5E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D8 DB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 20 02 00 35 04 06 00 C9 22 68 26 A6 CA 09 DF 5C 42 49 1A B5 CC [07:10:14]CheckFolder [07:10:14]dirname=/storage/ofd_packets [07:10:14]CheckFolder done [07:10:14]ProducePacketName [07:10:14]name=ofd_packets/00139362 [07:10:14]NVStorageSaveData ofd_packets/00139362 [07:10:14]File name is /storage/ofd_packets/00139362 [07:10:14]Write 323 bytes [07:10:14]NVStorageSaveData done [07:10:14]OFDSenderStorePacket done [07:10:14]KKMCreateOFDPacket done [07:10:14]NVStorageSaveData kkm_last_timestamp [07:10:14]File name is /storage/kkm_last_timestamp [07:10:14]Write 4 bytes [07:10:14]NVStorageSaveData done [07:10:14]ExternCall_PrintAddStr [07:10:14]wPrintStart [07:10:14]Write to MH i2c: 01 00 00 0B 34 3F [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 07 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 07 00 0B 34 00 00 00 00 00 FF 0F 54 [07:10:14]RasterBufferAndPrint [07:10:14]line Счет N : (3)335270 [07:10:14]line ИНН: 02508201610067 [07:10:14]line Контрольно-Кассовый Чек [07:10:14]line ПРОДАЖА [07:10:14]line Товар: 4700002082931 [07:10:14]line Водка Хорошая 0,1л [07:10:14]line 1.000 * 70.00 [07:10:14]line = 70.00 [07:10:14]line НДС 12% НСП 1% [07:10:14]line > о реализуемом товаре [07:10:14]line ИТОГО: 70.00 [07:10:14]line НСП 1% : 0.62 [07:10:14]line НДС 12% : 7.43 [07:10:14]line Наличными: 70.00 [07:10:14]line Безнал.: 0.00 [07:10:14]line Место: АЗС № 101 "Партнер Нефть" [07:10:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:10:14]line СНО: Общий режим [07:10:14]line Чек 46 30.10.2024 07:10 [07:10:14]line Смена: 556 ФФД: 1.0 [07:10:14]line ЗНМ: 0300000081 [07:10:14]line РНМ: 0000000000091631 [07:10:14]line Версия ККМ: 001 [07:10:14]line ФМ: 0000000000874669 [07:10:14]line ФД: 139362 [07:10:14]line ФПД: 221149613434570 [07:10:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071016&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139362&fm=221149613434570&tin=02508201610067®Number=0000000000091631&sum=7000 [07:10:14]line 0 [07:10:14]OFD Sender: Processing packet 139362 [packets to send 34, broken 33] [07:10:14]ProducePacketName [07:10:14]name=ofd_packets/00139362 [07:10:14]OFD Sender: To server: pG, [07:10:14]CommunicateWithHost lk.salyk.kg:30040 [07:10:14]ConnectInit lk.salyk.kg [07:10:14]written 0, free lines is 4095 [07:10:14]Connected sock=10 [07:10:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 CC E4 1D 01 87 5E 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 32 30 38 32 39 33 31 06 04 1F 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 A5 D0 BE D1 80 D0 BE D1 88 D0 B0 D1 8F 20 30 2C 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 58 1B 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E7 02 00 00 00 00 07 04 06 00 58 1B 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 D8 DB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 20 02 00 35 04 06 00 C9 22 68 26 A6 CA 09 DF 5C 42 49 1A B5 CC [07:10:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B8 A2 47 00 47 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 62 20 02 00 F4 03 04 00 89 87 21 67 B6 04 01 00 00 5A 75 B3 60 62 B8 9D AE [07:10:14]CommunicateWithHost err = 0 [07:10:14]CheckOFDResponse [07:10:14]1017 (14) - 77093643461234 [07:10:14]1041 (16) - 0000000000874669 [07:10:14]1040 (4) - 139362 [07:10:14]1012 (4) - 30.10.2024 01:10 [07:10:14]1206 (1) - 0 [07:10:14]OFD Sender: Remove packet 139362 [07:10:14]ProducePacketName [07:10:14]name=ofd_packets/00139362 [07:10:14]NVStorageDeleteData [07:10:14]Write to MH i2c: 01 00 00 33 34 67 [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 07 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: 01 07 00 33 34 00 00 00 00 00 14 0D 8F [07:10:14]RasterBufferAndPrint [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]line [07:10:14]written 0, free lines is 3356 [07:10:14]MH_Cut [07:10:14]Write to MH i2c: D1 01 00 3A 34 01 40 [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 01 00 [07:10:14]MH_I2C_Read... [07:10:14]Read from MH i2c: D1 01 00 3A 34 00 3F [07:10:14]Write to MH i2c: 01 00 00 3B 34 6F [07:10:14]Write i2c OK [07:10:14]MH_I2C_Read... [07:10:15]OFD Sender: No OFD packet to send [07:10:15]*** Cut start [07:10:15]*** Partial cut [07:10:15]*** CUTSNS_PIN = 1 [07:10:15]*** CUTSNS_PIN = 0 [07:10:15]*** Brake cut motor [07:10:16]Read from MH i2c: 01 [07:10:16]MH_I2C_Read... [07:10:16]*** Stop cut motor [07:10:16]*** Cut end [07:10:16]Read from MH i2c: 01 07 00 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: 01 07 00 3B 34 00 00 00 00 00 FF 0F 84 [07:10:16]process_action close_receipt done [07:10:16]requested_data is exist [07:10:16]produce_requested_data [07:10:16]requested_item fm.sn is exist - process it [07:10:16]wFMCommunicate request_size=4 [07:10:16]MH_SAM_APDU [07:10:16]CAPDU: 80 11 00 00 [07:10:16]Write to MH i2c: E2 08 00 3C 34 80 11 00 00 00 00 00 00 EA [07:10:16]Write i2c OK [07:10:16]MH_I2C_Read... [07:10:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:10:16]Read from MH i2c: E2 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: E2 17 00 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: E2 17 00 3C 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 45 [07:10:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:10:16]wFMCommunicate OK [07:10:16]requested_item fd.num is exist - process it [07:10:16]SAM_PROTO_GetFieldsCounters [07:10:16]wFMCommunicate request_size=4 [07:10:16]MH_SAM_APDU [07:10:16]CAPDU: 80 13 00 00 [07:10:16]Write to MH i2c: E2 08 00 3D 34 80 13 00 00 00 00 00 00 ED [07:10:16]Write i2c OK [07:10:16]MH_I2C_Read... [07:10:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:10:16]Read from MH i2c: E2 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: E2 62 00 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: E2 62 00 3D 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 62 20 02 00 0E 04 04 00 2C 02 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 4D [07:10:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 62 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2E 00 00 00 5E 04 04 00 2E 00 00 00 57 04 04 00 2F 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:10:16]wFMCommunicate OK [07:10:16]SAM_PROTO_GetFieldsCounters done [07:10:16]requested_item shift.num is exist - process it [07:10:16]requested_item shift.opened is exist - process it [07:10:16]req_shift_opened [07:10:16]FM_GetShiftState [07:10:16]SAM_PROTO_GetShiftState [07:10:16]wFMCommunicate request_size=4 [07:10:16]MH_SAM_APDU [07:10:16]CAPDU: 80 13 01 00 [07:10:16]Write to MH i2c: E2 08 00 3E 34 80 13 01 00 00 00 00 00 EF [07:10:16]Write i2c OK [07:10:16]MH_I2C_Read... [07:10:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:10:16]Read from MH i2c: E2 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: E2 0E 00 [07:10:16]MH_I2C_Read... [07:10:16]Read from MH i2c: E2 0E 00 3E 34 00 09 00 01 86 76 21 67 00 00 00 00 90 00 7F [07:10:16]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:10:16]wFMCommunicate OK [07:10:16]SAM_PROTO_GetShiftState done [07:10:16]FM_GetShiftState done [07:10:16]req_shift_opened done [07:10:16]requested_item shift.open_date is exist - process it [07:10:16]req_shift_open_date [07:10:16]req_shift_open_date done [07:10:16]produce_requested_data done [07:10:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139362,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [07:10:16]process_action_free close_receipt [07:10:16]json_value_free [07:10:16]json_value_free done [07:10:16]process_json_proto returns [07:10:16]Send response to host [07:10:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139362,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [07:10:16]free response buf [07:10:16]execute_script done [07:10:16]execute_script returns [07:10:16]free content buf [07:10:16]Sock 9.Close socket [07:10:16]Sock 9.Thread stoped [07:10:20]OFD Sender: No OFD packet to send [07:10:25]OFD Sender: No OFD packet to send [07:10:30]OFD Sender: No OFD packet to send [07:10:35]OFD Sender: No OFD packet to send [07:10:40]OFD Sender: No OFD packet to send [07:10:45]OFD Sender: No OFD packet to send [07:10:50]OFD Sender: No OFD packet to send [07:10:55]OFD Sender: No OFD packet to send [07:11:00]OFD Sender: No OFD packet to send [07:11:05]OFD Sender: No OFD packet to send [07:11:10]OFD Sender: No OFD packet to send [07:11: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:55]OFD Sender: No OFD packet to send [07:12:00]OFD Sender: No OFD packet to send [07:12:05]OFD Sender: No OFD packet to send [07:12:10]OFD Sender: No OFD packet to send [07:12:15]OFD Sender: No OFD packet to send [07:12:20]OFD Sender: No OFD packet to send [07:12:25]OFD Sender: No OFD packet to send [07:12:30]OFD Sender: No OFD packet to send [07:12:35]OFD Sender: No OFD packet to send [07:12:40]OFD Sender: No OFD packet to send [07:12:45]OFD Sender: No OFD packet to send [07:12:50]OFD Sender: No OFD packet to send [07:12:55]OFD Sender: No OFD packet to send [07:13:00]OFD Sender: No OFD packet to send [07:13:05]OFD Sender: No OFD packet to send [07:13:10]OFD Sender: No OFD packet to send [07:13:15]OFD Sender: No OFD packet to send [07:13:20]OFD Sender: No OFD packet to send [07:13:25]OFD Sender: No OFD packet to send [07:13:30]OFD Sender: No OFD packet to send [07:13:35]OFD Sender: No OFD packet to send [07:13:40]OFD Sender: No OFD packet to send [07:13:45]OFD Sender: No OFD packet to send [07:13:50]OFD Sender: No OFD packet to send [07:13:55]OFD Sender: No OFD packet to send [07:14:00]OFD Sender: No OFD packet to send [07:14:05]OFD Sender: No OFD packet to send [07:14:10]OFD Sender: No OFD packet to send [07:14:15]OFD Sender: No OFD packet to send [07:14:20]OFD Sender: No OFD packet to send [07:14:25]OFD Sender: No OFD packet to send [07:14:30]OFD Sender: No OFD packet to send [07:14:35]OFD Sender: No OFD packet to send [07:14:40]OFD Sender: No OFD packet to send [07:14:45]OFD Sender: No OFD packet to send [07:14:50]OFD Sender: No OFD packet to send [07:14:55]OFD Sender: No OFD packet to send [07:15:00]OFD Sender: No OFD packet to send [07:15:05]OFD Sender: No OFD packet to send [07:15:10]OFD Sender: No OFD packet to send [07:15:15]OFD Sender: No OFD packet to send [07:15:20]OFD Sender: No OFD packet to send [07:15:25]OFD Sender: No OFD packet to send [07:15:30]OFD Sender: No OFD packet to send [07:15:35]OFD Sender: No OFD packet to send [07:15:40]OFD Sender: No OFD packet to send [07:15:45]OFD Sender: No OFD packet to send [07:15:50]OFD Sender: No OFD packet to send [07:15:55]OFD Sender: No OFD packet to send [07:15:56]accept exits with 8 [07:15:56]New connection [07:15:56]New thread 3067284836 created [07:15:56]Thread 3067141476 joined [07:15:56]Waiting for new connection... [07:15:56] Sock 8.Parse request [07:15:56]Sock 8.Check first char [07:15:56]Sock 8.First char is OK [07:15:56]request: POST /json_proto HTTP/1.0 [07:15:56]Method: POST [07:15:56]URL: /json_proto [07:15:56]Method is POST - this is cgi request [07:15:56]url: /json_proto [07:15:56]query_string will be loaded in cgi processing [07:15:56]execute_cgi json_proto POST (null) [07:15:56]execute_cgi path=json_proto method=POST [07:15:56]POST find Content-Length [07:15:56]Host: 172.17.50.196:8080 [07:15:56]Content-Length: 652 [07:15:56]Content-Type: application/json [07:15:56] [07:15:56]POST finish read [07:15:56]Found Content-Length = 652 [07:15:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335273", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 5.000, "sum" : 625.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:56]execute_script... [07:15: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 : (3)335273", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 5.000, "sum" : 625.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:15:56]POST & json_proto [07:15:56]process_json_proto [07:15:56]json parsed OK: [07:15:56]protocol is kg_v1.0 [07:15:56]action value=close_receipt [07:15:56]process_action close_receipt [07:15:56]cmd_close_receipt [07:15:56]MH_GetDate [07:15:56]Write to MH i2c: F0 00 00 3F 34 62 [07:15:56]Write i2c OK [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: F0 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: F0 09 00 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: F0 09 00 3F 34 00 30 DD 21 67 72 0D 1C 67 02 [07:15:56]GetLastDocTimeStamp 1730272216 [07:15:56]current date 1730272560 [07:15:56]FM_GetShiftState [07:15:56]SAM_PROTO_GetShiftState [07:15:56]wFMCommunicate request_size=4 [07:15:56]MH_SAM_APDU [07:15:56]CAPDU: 80 13 01 00 [07:15:56]Write to MH i2c: E2 08 00 40 34 80 13 01 00 00 00 00 00 F1 [07:15:56]Write i2c OK [07:15:56]MH_I2C_Read... [07:15:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:15:56]Read from MH i2c: E2 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: E2 0E 00 [07:15:56]MH_I2C_Read... [07:15:56]Read from MH i2c: E2 0E 00 40 34 00 09 00 01 86 76 21 67 00 00 00 00 90 00 81 [07:15:56]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:15:56]wFMCommunicate OK [07:15:56]SAM_PROTO_GetShiftState done [07:15:56]FM_GetShiftState done [07:15:56]opened in 1730246278 [07:15:56]opened+sec_in_day 1730332678 [07:15:56]quantity*price = 62500 [07:15:56]sum+1 = 62501 [07:15:56]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 625.00 НСП 1% : 5.53 НДС 12% : 66.37 Наличными: 625.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 47 30.10.2024 07:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139363 ФПД: 58446154019590 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071600&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139363&fm=58446154019590&tin=02508201610067®Number=0000000000091631&sum=62500 0 [07:15:57]StoreToDocumentArchive [07:15:57]shift 556 fd 139363 [07:15:57]save to /storage/0556/doc_00139363 [07:15:57]save last doc name /storage/0556/doc_00139363 to /storage/kkm_last_doc_name [07:15:57]save OK [07:15:57]Clear old archive folders... [07:15:57]ProcessDocumentItem done err = 0, tmpTLVsize=284 [07:15:57]tlvbuf is 011A8F60 [07:15:57]SAM_PROTO_ClearQueue [07:15:57]wFMCommunicate request_size=4 [07:15:57]MH_SAM_APDU [07:15:57]CAPDU: 80 09 00 00 [07:15:57]Write to MH i2c: E2 08 00 4D 34 80 09 00 00 00 00 00 00 F3 [07:15:57]Write i2c OK [07:15:57]MH_I2C_Read... [07:15:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:15:57]Read from MH i2c: E2 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 03 00 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 03 00 4D 34 00 90 00 F5 [07:15:57]RAPDU: 90 00 [07:15:57]wFMCommunicate OK [07:15:57]SAM_PROTO_ClearQueue done [07:15:57]KKMCreateOFDPacket [07:15:57]OFDProtocolAddRootSTLVToBuf [07:15:57]FM_MakeSignedData [07:15:57]FM_MakeSignedData [07:15:57]SAM_PROTO_SignData [07:15:57]wFMCommunicate request_size=4 [07:15:57]MH_SAM_APDU [07:15:57]CAPDU: 80 0D 01 02 [07:15:57]Write to MH i2c: E2 08 00 4E 34 80 0D 01 02 00 00 00 00 FB [07:15:57]Write i2c OK [07:15:57]MH_I2C_Read... [07:15:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:15:57]Read from MH i2c: E2 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 03 00 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 03 00 4E 34 00 90 00 F6 [07:15:57]RAPDU: 90 00 [07:15:57]wFMCommunicate OK [07:15:57]wFMCommunicate request_size=255 [07:15:57]MH_SAM_APDU [07:15:57]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 24 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 30 DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [07:15:57]Write to MH i2c: E2 02 01 4F 34 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 24 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 30 DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 04 [07:15:57]Write i2c OK [07:15:57]MH_I2C_Read... [07:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:57]Read from MH i2c: E2 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 03 00 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 03 00 4F 34 00 90 00 F7 [07:15:57]RAPDU: 90 00 [07:15:57]wFMCommunicate OK [07:15:57]wFMCommunicate request_size=43 [07:15:57]MH_SAM_APDU [07:15:57]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 20 02 00 35 04 06 00 35 28 0E 3F B3 06 [07:15:57]Write to MH i2c: E2 2E 00 50 34 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 20 02 00 35 04 06 00 35 28 0E 3F B3 06 00 00 D6 [07:15:57]Write i2c OK [07:15:57]MH_I2C_Read... [07:15:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:15:57]Read from MH i2c: E2 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 03 00 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 03 00 50 34 00 90 00 F8 [07:15:57]RAPDU: 90 00 [07:15:57]wFMCommunicate OK [07:15:57]wFMCommunicate request_size=4 [07:15:57]MH_SAM_APDU [07:15:57]CAPDU: 80 0D 03 02 [07:15:57]Write to MH i2c: E2 08 00 51 34 80 0D 03 02 00 00 00 00 00 [07:15:57]Write i2c OK [07:15:57]MH_I2C_Read... [07:15:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:15:57]Read from MH i2c: E2 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 0B 00 [07:15:57]MH_I2C_Read... [07:15:57]Read from MH i2c: E2 0B 00 51 34 00 05 55 3C 38 AA 3B 11 34 90 00 F9 [07:15:57]RAPDU: 05 55 3C 38 AA 3B 11 34 90 00 [07:15:57]wFMCommunicate OK [07:15:57]SAM_PROTO_SignData done [07:15:57]FM_MakeSignedData done [07:15:57]CreateOFDProtocolMessage [07:15:57]wFMCommunicate request_size=4 [07:15:57]MH_SAM_APDU [07:15:57]CAPDU: 80 11 00 00 [07:15:57]Write to MH i2c: E2 08 00 52 34 80 11 00 00 00 00 00 00 00 [07:15:57]Write i2c OK [07:15:57]MH_I2C_Read... [07:15:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:15:58]Read from MH i2c: E2 [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: E2 17 00 [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: E2 17 00 52 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5B [07:15:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:15:58]wFMCommunicate OK [07:15:58]CreateOFDProtocolMessage done [07:15:58]OFDSenderStorePacket 139363 [07:15:58]StoreOFDPacket docnum=139363 [07:15:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 30 01 00 00 94 66 28 01 B0 A6 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 24 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 30 DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 20 02 00 35 04 06 00 35 28 0E 3F B3 06 05 55 3C 38 AA 3B 11 34 [07:15:58]CheckFolder [07:15:58]dirname=/storage/ofd_packets [07:15:58]CheckFolder done [07:15:58]ProducePacketName [07:15:58]name=ofd_packets/00139363 [07:15:58]NVStorageSaveData ofd_packets/00139363 [07:15:58]File name is /storage/ofd_packets/00139363 [07:15:58]Write 334 bytes [07:15:58]NVStorageSaveData done [07:15:58]OFDSenderStorePacket done [07:15:58]KKMCreateOFDPacket done [07:15:58]NVStorageSaveData kkm_last_timestamp [07:15:58]File name is /storage/kkm_last_timestamp [07:15:58]Write 4 bytes [07:15:58]NVStorageSaveData done [07:15:58]ExternCall_PrintAddStr [07:15:58]wPrintStart [07:15:58]Write to MH i2c: 01 00 00 53 34 87 [07:15:58]Write i2c OK [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: 01 [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: 01 07 00 [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: 01 07 00 53 34 00 00 00 00 00 FF 0F 9C [07:15:58]RasterBufferAndPrint [07:15:58]line Счет N : (3)335273 [07:15:58]line ИНН: 02508201610067 [07:15:58]line Контрольно-Кассовый Чек [07:15:58]line ПРОДАЖА [07:15:58]line Товар: 2000036190018 [07:15:58]line Кофе Американо XL(GABB TRADE) [07:15:58]line 5.000 * 125.00 [07:15:58]line = 625.00 [07:15:58]line НДС 12% НСП 1% [07:15:58]line > о реализуемом товаре [07:15:58]line ИТОГО: 625.00 [07:15:58]line НСП 1% : 5.53 [07:15:58]line НДС 12% : 66.37 [07:15:58]line Наличными: 625.00 [07:15:58]line Безнал.: 0.00 [07:15:58]line Место: АЗС № 101 "Партнер Нефть" [07:15:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:15:58]line СНО: Общий режим [07:15:58]line Чек 47 30.10.2024 07:16 [07:15:58]line Смена: 556 ФФД: 1.0 [07:15:58]line ЗНМ: 0300000081 [07:15:58]line РНМ: 0000000000091631 [07:15:58]line Версия ККМ: 001 [07:15:58]line ФМ: 0000000000874669 [07:15:58]line ФД: 139363 [07:15:58]line ФПД: 58446154019590 [07:15:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071600&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139363&fm=58446154019590&tin=02508201610067®Number=0000000000091631&sum=62500 [07:15:58]line 0 [07:15:58]OFD Sender: Processing packet 139363 [packets to send 34, broken 33] [07:15:58]ProducePacketName [07:15:58]name=ofd_packets/00139363 [07:15:58]OFD Sender: To server: pG, [07:15:58]CommunicateWithHost lk.salyk.kg:30040 [07:15:58]ConnectInit lk.salyk.kg [07:15:58]written 0, free lines is 4095 [07:15:58]Connected sock=10 [07:15:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 30 01 00 00 94 66 28 01 B0 A6 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 24 F4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 2F 00 00 00 F4 03 04 00 30 DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 63 20 02 00 35 04 06 00 35 28 0E 3F B3 06 05 55 3C 38 AA 3B 11 34 [07:15:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E6 2B 47 00 93 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 38 37 34 36 36 39 10 04 04 00 63 20 02 00 F4 03 04 00 E1 88 21 67 B6 04 01 00 00 FF 1A 02 06 2A AC 88 A9 [07:15:58]CommunicateWithHost err = 0 [07:15:58]CheckOFDResponse [07:15:58]1017 (14) - 77093643461234 [07:15:58]1041 (16) - 0000000000874669 [07:15:58]1040 (4) - 139363 [07:15:58]1012 (4) - 30.10.2024 01:16 [07:15:58]1206 (1) - 0 [07:15:58]OFD Sender: Remove packet 139363 [07:15:58]ProducePacketName [07:15:58]name=ofd_packets/00139363 [07:15:58]NVStorageDeleteData [07:15:58]Write to MH i2c: 01 00 00 7C 34 B0 [07:15:58]Write i2c OK [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: 01 [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: 01 07 00 [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: 01 07 00 7C 34 00 00 00 00 00 1E 0D E2 [07:15:58]RasterBufferAndPrint [07:15:58]line [07:15:58]line [07:15:58]line [07:15:58]line [07:15:58]line [07:15:58]written 0, free lines is 3367 [07:15:58]MH_Cut [07:15:58]Write to MH i2c: D1 01 00 83 34 01 89 [07:15:58]Write i2c OK [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: D1 [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: D1 01 00 [07:15:58]MH_I2C_Read... [07:15:58]Read from MH i2c: D1 01 00 83 34 00 88 [07:15:58]Write to MH i2c: 01 00 00 84 34 B8 [07:15:58]Write i2c OK [07:15:58]MH_I2C_Read... [07:15:59]OFD Sender: No OFD packet to send [07:15:59]*** Cut start [07:15:59]*** Partial cut [07:15:59]*** CUTSNS_PIN = 1 [07:15:59]*** CUTSNS_PIN = 0 [07:15:59]*** Brake cut motor [07:16:00]Read from MH i2c: 01 [07:16:00]MH_I2C_Read... [07:16:00]*** Stop cut motor [07:16:00]*** Cut end [07:16:00]Read from MH i2c: 01 07 00 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: 01 07 00 84 34 00 00 00 00 00 FF 0F CD [07:16:00]process_action close_receipt done [07:16:00]requested_data is exist [07:16:00]produce_requested_data [07:16:00]requested_item fm.sn is exist - process it [07:16:00]wFMCommunicate request_size=4 [07:16:00]MH_SAM_APDU [07:16:00]CAPDU: 80 11 00 00 [07:16:00]Write to MH i2c: E2 08 00 85 34 80 11 00 00 00 00 00 00 33 [07:16:00]Write i2c OK [07:16:00]MH_I2C_Read... [07:16:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:00]Read from MH i2c: E2 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 17 00 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 17 00 85 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8E [07:16:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:16:00]wFMCommunicate OK [07:16:00]requested_item fd.num is exist - process it [07:16:00]SAM_PROTO_GetFieldsCounters [07:16:00]wFMCommunicate request_size=4 [07:16:00]MH_SAM_APDU [07:16:00]CAPDU: 80 13 00 00 [07:16:00]Write to MH i2c: E2 08 00 86 34 80 13 00 00 00 00 00 00 36 [07:16:00]Write i2c OK [07:16:00]MH_I2C_Read... [07:16:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:00]Read from MH i2c: E2 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 62 00 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 62 00 86 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 63 20 02 00 0E 04 04 00 2C 02 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 9A [07:16:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 63 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 2F 00 00 00 5E 04 04 00 2F 00 00 00 57 04 04 00 30 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:00]wFMCommunicate OK [07:16:00]SAM_PROTO_GetFieldsCounters done [07:16:00]requested_item shift.num is exist - process it [07:16:00]requested_item shift.opened is exist - process it [07:16:00]req_shift_opened [07:16:00]FM_GetShiftState [07:16:00]SAM_PROTO_GetShiftState [07:16:00]wFMCommunicate request_size=4 [07:16:00]MH_SAM_APDU [07:16:00]CAPDU: 80 13 01 00 [07:16:00]Write to MH i2c: E2 08 00 87 34 80 13 01 00 00 00 00 00 38 [07:16:00]Write i2c OK [07:16:00]MH_I2C_Read... [07:16:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:00]Read from MH i2c: E2 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 0E 00 [07:16:00]MH_I2C_Read... [07:16:00]Read from MH i2c: E2 0E 00 87 34 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C8 [07:16:00]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:16:00]wFMCommunicate OK [07:16:00]SAM_PROTO_GetShiftState done [07:16:00]FM_GetShiftState done [07:16:00]req_shift_opened done [07:16:00]requested_item shift.open_date is exist - process it [07:16:00]req_shift_open_date [07:16:00]req_shift_open_date done [07:16:00]produce_requested_data done [07:16:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139363,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [07:16:00]process_action_free close_receipt [07:16:00]json_value_free [07:16:00]json_value_free done [07:16:00]process_json_proto returns [07:16:00]Send response to host [07:16:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139363,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [07:16:00]free response buf [07:16:00]execute_script done [07:16:00]execute_script returns [07:16:00]free content buf [07:16:00]Sock 8.Close socket [07:16:00]Sock 8.Thread stoped [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:17]accept exits with 9 [07:16:17]New connection [07:16:17]New thread 3067141476 created [07:16:17]Thread 3067284836 joined [07:16:17]Waiting for new connection... [07:16:17] Sock 9.Parse request [07:16:17]Sock 9.Check first char [07:16:17]Sock 9.First char is OK [07:16:17]request: POST /json_proto HTTP/1.0 [07:16:17]Method: POST [07:16:17]URL: /json_proto [07:16:17]Method is POST - this is cgi request [07:16:17]url: /json_proto [07:16:17]query_string will be loaded in cgi processing [07:16:17]execute_cgi json_proto POST (null) [07:16:17]execute_cgi path=json_proto method=POST [07:16:17]POST find Content-Length [07:16:17]Host: 172.17.50.196:8080 [07:16:17]Content-Length: 779 [07:16:17]Content-Type: application/json [07:16:17] [07:16:17]POST finish read [07:16:17]Found Content-Length = 779 [07:16:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335274", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 5.000, "sum" : 625.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" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:17]execute_script... [07:16: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 : (3)335274", "tax_sys" : 0, "items" : [ { "code": "2000036190018", "name": "\u041A\u043E\u0444\u0435 \u0410\u043C\u0435\u0440\u0438\u043A\u0430\u043D\u043E XL(GABB TRADE)", "price" : 125.00, "quantity" : 5.000, "sum" : 625.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" : 625.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:17]POST & json_proto [07:16:17]process_json_proto [07:16:17]json parsed OK: [07:16:17]protocol is kg_v1.0 [07:16:17]action value=close_receipt [07:16:17]process_action close_receipt [07:16:17]cmd_close_receipt [07:16:17]MH_GetDate [07:16:17]Write to MH i2c: F0 00 00 88 34 AB [07:16:17]Write i2c OK [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: F0 [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: F0 09 00 [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: F0 09 00 88 34 00 45 DD 21 67 72 0D 1C 67 60 [07:16:17]GetLastDocTimeStamp 1730272560 [07:16:17]current date 1730272581 [07:16:17]FM_GetShiftState [07:16:17]SAM_PROTO_GetShiftState [07:16:17]wFMCommunicate request_size=4 [07:16:17]MH_SAM_APDU [07:16:17]CAPDU: 80 13 01 00 [07:16:17]Write to MH i2c: E2 08 00 89 34 80 13 01 00 00 00 00 00 3A [07:16:17]Write i2c OK [07:16:17]MH_I2C_Read... [07:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:17]Read from MH i2c: E2 [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: E2 0E 00 [07:16:17]MH_I2C_Read... [07:16:17]Read from MH i2c: E2 0E 00 89 34 00 09 00 01 86 76 21 67 00 00 00 00 90 00 CA [07:16:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:16:17]wFMCommunicate OK [07:16:17]SAM_PROTO_GetShiftState done [07:16:17]FM_GetShiftState done [07:16:17]opened in 1730246278 [07:16:17]opened+sec_in_day 1730332678 [07:16:17]quantity*price = 62500 [07:16:17]sum+1 = 62501 [07:16:17]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 625.00 НСП 1% : 5.53 НДС 12% : 66.37 Наличными: 0.00 Безнал.: 625.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 48 30.10.2024 07:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139364 ФПД: 45006022276658 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071621&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139364&fm=45006022276658&tin=02508201610067®Number=0000000000091631&sum=62500 0 [07:16:18]StoreToDocumentArchive [07:16:18]shift 556 fd 139364 [07:16:18]save to /storage/0556/doc_00139364 [07:16:18]save last doc name /storage/0556/doc_00139364 to /storage/kkm_last_doc_name [07:16:18]save OK [07:16:18]Clear old archive folders... [07:16:18]ProcessDocumentItem done err = 0, tmpTLVsize=284 [07:16:18]tlvbuf is 011247F0 [07:16:18]SAM_PROTO_ClearQueue [07:16:18]wFMCommunicate request_size=4 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 09 00 00 [07:16:18]Write to MH i2c: E2 08 00 96 34 80 09 00 00 00 00 00 00 3C [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:18]Read from MH i2c: E2 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 03 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 03 00 96 34 00 90 00 3E [07:16:18]RAPDU: 90 00 [07:16:18]wFMCommunicate OK [07:16:18]SAM_PROTO_ClearQueue done [07:16:18]KKMCreateOFDPacket [07:16:18]OFDProtocolAddRootSTLVToBuf [07:16:18]FM_MakeSignedData [07:16:18]FM_MakeSignedData [07:16:18]SAM_PROTO_SignData [07:16:18]wFMCommunicate request_size=4 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 0D 01 02 [07:16:18]Write to MH i2c: E2 08 00 97 34 80 0D 01 02 00 00 00 00 44 [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:18]Read from MH i2c: E2 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 03 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 03 00 97 34 00 90 00 3F [07:16:18]RAPDU: 90 00 [07:16:18]wFMCommunicate OK [07:16:18]wFMCommunicate request_size=255 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 45 DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [07:16:18]Write to MH i2c: E2 02 01 98 34 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 45 DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 63 [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:18]Read from MH i2c: E2 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 03 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 03 00 98 34 00 90 00 40 [07:16:18]RAPDU: 90 00 [07:16:18]wFMCommunicate OK [07:16:18]wFMCommunicate request_size=43 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 20 02 00 35 04 06 00 28 EE C7 F8 76 32 [07:16:18]Write to MH i2c: E2 2E 00 99 34 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 20 02 00 35 04 06 00 28 EE C7 F8 76 32 00 00 3A [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:18]Read from MH i2c: E2 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 03 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 03 00 99 34 00 90 00 41 [07:16:18]RAPDU: 90 00 [07:16:18]wFMCommunicate OK [07:16:18]wFMCommunicate request_size=4 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 0D 03 02 [07:16:18]Write to MH i2c: E2 08 00 9A 34 80 0D 03 02 00 00 00 00 49 [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:18]Read from MH i2c: E2 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 0B 00 [07:16:18]MH_I2C_Read... [07:16:18]Read from MH i2c: E2 0B 00 9A 34 00 3E E2 6E 0C E0 C1 8D 42 90 00 54 [07:16:18]RAPDU: 3E E2 6E 0C E0 C1 8D 42 90 00 [07:16:18]wFMCommunicate OK [07:16:18]SAM_PROTO_SignData done [07:16:18]FM_MakeSignedData done [07:16:18]CreateOFDProtocolMessage [07:16:18]wFMCommunicate request_size=4 [07:16:18]MH_SAM_APDU [07:16:18]CAPDU: 80 11 00 00 [07:16:18]Write to MH i2c: E2 08 00 9B 34 80 11 00 00 00 00 00 00 49 [07:16:18]Write i2c OK [07:16:18]MH_I2C_Read... [07:16:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:19]Read from MH i2c: E2 [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: E2 17 00 [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: E2 17 00 9B 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [07:16:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:16:19]wFMCommunicate OK [07:16:19]CreateOFDProtocolMessage done [07:16:19]OFDSenderStorePacket 139364 [07:16:19]StoreOFDPacket docnum=139364 [07:16:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 30 01 00 00 A2 FC 28 01 0C 37 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 45 DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 20 02 00 35 04 06 00 28 EE C7 F8 76 32 3E E2 6E 0C E0 C1 8D 42 [07:16:19]CheckFolder [07:16:19]dirname=/storage/ofd_packets [07:16:19]CheckFolder done [07:16:19]ProducePacketName [07:16:19]name=ofd_packets/00139364 [07:16:19]NVStorageSaveData ofd_packets/00139364 [07:16:19]File name is /storage/ofd_packets/00139364 [07:16:19]Write 334 bytes [07:16:19]NVStorageSaveData done [07:16:19]OFDSenderStorePacket done [07:16:19]KKMCreateOFDPacket done [07:16:19]NVStorageSaveData kkm_last_timestamp [07:16:19]File name is /storage/kkm_last_timestamp [07:16:19]Write 4 bytes [07:16:19]OFD Sender: Processing packet 139364 [packets to send 34, broken 33] [07:16:19]ProducePacketName [07:16:19]name=ofd_packets/00139364 [07:16:19]OFD Sender: To server: pG, [07:16:19]CommunicateWithHost lk.salyk.kg:30040 [07:16:19]ConnectInit lk.salyk.kg [07:16:19]NVStorageSaveData done [07:16:19]ExternCall_PrintAddStr [07:16:19]wPrintStart [07:16:19]Write to MH i2c: 01 00 00 9C 34 D0 [07:16:19]Write i2c OK [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: 01 [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: 01 07 00 [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: 01 07 00 9C 34 00 00 00 00 00 FF 0F E5 [07:16:19]RasterBufferAndPrint [07:16:19]line Счет N : (3)335274 [07:16:19]line ИНН: 02508201610067 [07:16:19]line Контрольно-Кассовый Чек [07:16:19]line ПРОДАЖА [07:16:19]line Товар: 2000036190018 [07:16:19]line Кофе Американо XL(GABB TRADE) [07:16:19]line 5.000 * 125.00 [07:16:19]line = 625.00 [07:16:19]line НДС 12% НСП 1% [07:16:19]line > о реализуемом товаре [07:16:19]line ИТОГО: 625.00 [07:16:19]line НСП 1% : 5.53 [07:16:19]line НДС 12% : 66.37 [07:16:19]line Наличными: 0.00 [07:16:19]line Безнал.: 625.00 [07:16:19]line Место: АЗС № 101 "Партнер Нефть" [07:16:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:16:19]line СНО: Общий режим [07:16:19]line Чек 48 30.10.2024 07:16 [07:16:19]line Смена: 556 ФФД: 1.0 [07:16:19]line ЗНМ: 0300000081 [07:16:19]line РНМ: 0000000000091631 [07:16:19]line Версия ККМ: 001 [07:16:19]line Платежная система: Mbank [07:16:19]line ФМ: 0000000000874669 [07:16:19]line ФД: 139364 [07:16:19]line ФПД: 45006022276658 [07:16:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071621&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139364&fm=45006022276658&tin=02508201610067®Number=0000000000091631&sum=62500 [07:16:19]line 0 [07:16:19]Connected sock=10 [07:16:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 30 01 00 00 A2 FC 28 01 0C 37 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 32 30 30 30 30 33 36 31 39 30 30 31 38 06 04 2A 00 D0 9A D0 BE D1 84 D0 B5 20 D0 90 D0 BC D0 B5 D1 80 D0 B8 D0 BA D0 B0 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 24 F4 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 F4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 ED 19 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 24 F4 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 30 00 00 00 F4 03 04 00 45 DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 64 20 02 00 35 04 06 00 28 EE C7 F8 76 32 3E E2 6E 0C E0 C1 8D 42 [07:16:19]written 0, free lines is 4095 [07:16:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B5 C9 47 00 A8 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 38 37 34 36 36 39 10 04 04 00 64 20 02 00 F4 03 04 00 F6 88 21 67 B6 04 01 00 00 FB B3 50 25 50 5D E9 EF [07:16:19]CommunicateWithHost err = 0 [07:16:19]CheckOFDResponse [07:16:19]1017 (14) - 77093643461234 [07:16:19]1041 (16) - 0000000000874669 [07:16:19]1040 (4) - 139364 [07:16:19]1012 (4) - 30.10.2024 01:16 [07:16:19]1206 (1) - 0 [07:16:19]OFD Sender: Remove packet 139364 [07:16:19]ProducePacketName [07:16:19]name=ofd_packets/00139364 [07:16:19]NVStorageDeleteData [07:16:19]Write to MH i2c: 01 00 00 C6 34 FA [07:16:19]Write i2c OK [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: 01 [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: 01 07 00 [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: 01 07 00 C6 34 00 00 00 00 00 FF 0C 0C [07:16:19]RasterBufferAndPrint [07:16:19]line [07:16:19]line [07:16:19]line [07:16:19]line [07:16:19]line [07:16:19]written 0, free lines is 3335 [07:16:19]MH_Cut [07:16:19]Write to MH i2c: D1 01 00 CD 34 01 D3 [07:16:19]Write i2c OK [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: D1 [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: D1 01 00 [07:16:19]MH_I2C_Read... [07:16:19]Read from MH i2c: D1 01 00 CD 34 00 D2 [07:16:19]Write to MH i2c: 01 00 00 CE 34 02 [07:16:19]Write i2c OK [07:16:19]MH_I2C_Read... [07:16:20]OFD Sender: No OFD packet to send [07:16:20]*** Cut start [07:16:20]*** Partial cut [07:16:20]*** CUTSNS_PIN = 1 [07:16:20]*** CUTSNS_PIN = 0 [07:16:20]*** Brake cut motor [07:16:21]Read from MH i2c: 01 [07:16:21]MH_I2C_Read... [07:16:21]*** Stop cut motor [07:16:21]*** Cut end [07:16:21]Read from MH i2c: 01 07 00 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: 01 07 00 CE 34 00 00 00 00 00 FF 0F 17 [07:16:21]process_action close_receipt done [07:16:21]requested_data is exist [07:16:21]produce_requested_data [07:16:21]requested_item fm.sn is exist - process it [07:16:21]wFMCommunicate request_size=4 [07:16:21]MH_SAM_APDU [07:16:21]CAPDU: 80 11 00 00 [07:16:21]Write to MH i2c: E2 08 00 CF 34 80 11 00 00 00 00 00 00 7D [07:16:21]Write i2c OK [07:16:21]MH_I2C_Read... [07:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:21]Read from MH i2c: E2 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: E2 17 00 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: E2 17 00 CF 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D8 [07:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:16:21]wFMCommunicate OK [07:16:21]requested_item fd.num is exist - process it [07:16:21]SAM_PROTO_GetFieldsCounters [07:16:21]wFMCommunicate request_size=4 [07:16:21]MH_SAM_APDU [07:16:21]CAPDU: 80 13 00 00 [07:16:21]Write to MH i2c: E2 08 00 D0 34 80 13 00 00 00 00 00 00 80 [07:16:21]Write i2c OK [07:16:21]MH_I2C_Read... [07:16:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:21]Read from MH i2c: E2 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: E2 62 00 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: E2 62 00 D0 34 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 64 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [07:16:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 64 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 30 00 00 00 5E 04 04 00 30 00 00 00 57 04 04 00 31 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:21]wFMCommunicate OK [07:16:21]SAM_PROTO_GetFieldsCounters done [07:16:21]requested_item shift.num is exist - process it [07:16:21]requested_item shift.opened is exist - process it [07:16:21]req_shift_opened [07:16:21]FM_GetShiftState [07:16:21]SAM_PROTO_GetShiftState [07:16:21]wFMCommunicate request_size=4 [07:16:21]MH_SAM_APDU [07:16:21]CAPDU: 80 13 01 00 [07:16:21]Write to MH i2c: E2 08 00 D1 34 80 13 01 00 00 00 00 00 82 [07:16:21]Write i2c OK [07:16:21]MH_I2C_Read... [07:16:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:21]Read from MH i2c: E2 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: E2 0E 00 [07:16:21]MH_I2C_Read... [07:16:21]Read from MH i2c: E2 0E 00 D1 34 00 09 00 01 86 76 21 67 00 00 00 00 90 00 12 [07:16:21]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:16:21]wFMCommunicate OK [07:16:21]SAM_PROTO_GetShiftState done [07:16:21]FM_GetShiftState done [07:16:21]req_shift_opened done [07:16:21]requested_item shift.open_date is exist - process it [07:16:21]req_shift_open_date [07:16:21]req_shift_open_date done [07:16:21]produce_requested_data done [07:16:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139364,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [07:16:21]process_action_free close_receipt [07:16:21]json_value_free [07:16:21]json_value_free done [07:16:21]process_json_proto returns [07:16:21]Send response to host [07:16:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139364,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [07:16:21]free response buf [07:16:21]execute_script done [07:16:21]execute_script returns [07:16:21]free content buf [07:16:21]Sock 9.Close socket [07:16:21]Sock 9.Thread stoped [07:16:25]OFD Sender: No OFD packet to send [07:16:30]OFD Sender: No OFD packet to send [07:16:35]OFD Sender: No OFD packet to send [07:16:40]OFD Sender: No OFD packet to send [07:16:41]accept exits with 8 [07:16:41]New connection [07:16:41]New thread 3067284836 created [07:16:41]Thread 3067141476 joined [07:16:41]Waiting for new connection... [07:16:41] Sock 8.Parse request [07:16:41]Sock 8.Check first char [07:16:41]Sock 8.First char is OK [07:16:41]request: POST /json_proto HTTP/1.0 [07:16:41]Method: POST [07:16:41]URL: /json_proto [07:16:41]Method is POST - this is cgi request [07:16:41]url: /json_proto [07:16:41]query_string will be loaded in cgi processing [07:16:41]execute_cgi json_proto POST (null) [07:16:41]execute_cgi path=json_proto method=POST [07:16:41]POST find Content-Length [07:16:41]Host: 172.17.50.196:8080 [07:16:41]Content-Length: 755 [07:16:41]Content-Type: application/json [07:16:41] [07:16:41]POST finish read [07:16:41]Found Content-Length = 755 [07:16:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335275", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 5.000, "sum" : 650.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" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:41]execute_script... [07:16: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 : (3)335275", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 5.000, "sum" : 650.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" : 650.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [07:16:41]POST & json_proto [07:16:41]process_json_proto [07:16:41]json parsed OK: [07:16:41]protocol is kg_v1.0 [07:16:41]action value=close_receipt [07:16:41]process_action close_receipt [07:16:41]cmd_close_receipt [07:16:41]MH_GetDate [07:16:41]Write to MH i2c: F0 00 00 D2 34 F5 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: F0 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: F0 09 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: F0 09 00 D2 34 00 5D DD 21 67 72 0D 1C 67 C2 [07:16:41]GetLastDocTimeStamp 1730272581 [07:16:41]current date 1730272605 [07:16:41]FM_GetShiftState [07:16:41]SAM_PROTO_GetShiftState [07:16:41]wFMCommunicate request_size=4 [07:16:41]MH_SAM_APDU [07:16:41]CAPDU: 80 13 01 00 [07:16:41]Write to MH i2c: E2 08 00 D3 34 80 13 01 00 00 00 00 00 84 [07:16:41]Write i2c OK [07:16:41]MH_I2C_Read... [07:16:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:41]Read from MH i2c: E2 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 0E 00 [07:16:41]MH_I2C_Read... [07:16:41]Read from MH i2c: E2 0E 00 D3 34 00 09 00 01 86 76 21 67 00 00 00 00 90 00 14 [07:16:41]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:16:41]wFMCommunicate OK [07:16:41]SAM_PROTO_GetShiftState done [07:16:41]FM_GetShiftState done [07:16:41]opened in 1730246278 [07:16:41]opened+sec_in_day 1730332678 [07:16:41]quantity*price = 65000 [07:16:41]sum+1 = 65001 [07:16:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 650.00 НСП 1% : 5.75 НДС 12% : 69.03 Наличными: 0.00 Безнал.: 650.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 49 30.10.2024 07:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139365 ФПД: 67002712853654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071645&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139365&fm=67002712853654&tin=02508201610067®Number=0000000000091631&sum=65000 0 [07:16:42]StoreToDocumentArchive [07:16:42]shift 556 fd 139365 [07:16:42]save to /storage/0556/doc_00139365 [07:16:42]save last doc name /storage/0556/doc_00139365 to /storage/kkm_last_doc_name [07:16:42]save OK [07:16:42]Clear old archive folders... [07:16:42]ProcessDocumentItem done err = 0, tmpTLVsize=276 [07:16:42]tlvbuf is 011243D0 [07:16:42]SAM_PROTO_ClearQueue [07:16:42]wFMCommunicate request_size=4 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 09 00 00 [07:16:42]Write to MH i2c: E2 08 00 E0 34 80 09 00 00 00 00 00 00 86 [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 E0 34 00 90 00 88 [07:16:42]RAPDU: 90 00 [07:16:42]wFMCommunicate OK [07:16:42]SAM_PROTO_ClearQueue done [07:16:42]KKMCreateOFDPacket [07:16:42]OFDProtocolAddRootSTLVToBuf [07:16:42]FM_MakeSignedData [07:16:42]FM_MakeSignedData [07:16:42]SAM_PROTO_SignData [07:16:42]wFMCommunicate request_size=4 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 0D 01 02 [07:16:42]Write to MH i2c: E2 08 00 E1 34 80 0D 01 02 00 00 00 00 8E [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 E1 34 00 90 00 89 [07:16:42]RAPDU: 90 00 [07:16:42]wFMCommunicate OK [07:16:42]wFMCommunicate request_size=255 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 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 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 5D DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [07:16:42]Write to MH i2c: E2 02 01 E2 34 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 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 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 5D DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 AC [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 E2 34 00 90 00 8A [07:16:42]RAPDU: 90 00 [07:16:42]wFMCommunicate OK [07:16:42]wFMCommunicate request_size=35 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 20 02 00 35 04 06 00 3C F0 48 E6 0C 96 [07:16:42]Write to MH i2c: E2 26 00 E3 34 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 20 02 00 35 04 06 00 3C F0 48 E6 0C 96 00 00 0F [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 03 00 E3 34 00 90 00 8B [07:16:42]RAPDU: 90 00 [07:16:42]wFMCommunicate OK [07:16:42]wFMCommunicate request_size=4 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 0D 03 02 [07:16:42]Write to MH i2c: E2 08 00 E4 34 80 0D 03 02 00 00 00 00 93 [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 0B 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 0B 00 E4 34 00 89 6C 58 5B 2F E0 5F 3F 90 00 E9 [07:16:42]RAPDU: 89 6C 58 5B 2F E0 5F 3F 90 00 [07:16:42]wFMCommunicate OK [07:16:42]SAM_PROTO_SignData done [07:16:42]FM_MakeSignedData done [07:16:42]CreateOFDProtocolMessage [07:16:42]wFMCommunicate request_size=4 [07:16:42]MH_SAM_APDU [07:16:42]CAPDU: 80 11 00 00 [07:16:42]Write to MH i2c: E2 08 00 E5 34 80 11 00 00 00 00 00 00 93 [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:42]Read from MH i2c: E2 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 17 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: E2 17 00 E5 34 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EE [07:16:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:16:42]wFMCommunicate OK [07:16:42]CreateOFDProtocolMessage done [07:16:42]OFDSenderStorePacket 139365 [07:16:42]StoreOFDPacket docnum=139365 [07:16:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 12 0B 20 01 18 DD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 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 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 5D DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 20 02 00 35 04 06 00 3C F0 48 E6 0C 96 89 6C 58 5B 2F E0 5F 3F [07:16:42]CheckFolder [07:16:42]dirname=/storage/ofd_packets [07:16:42]CheckFolder done [07:16:42]ProducePacketName [07:16:42]name=ofd_packets/00139365 [07:16:42]NVStorageSaveData ofd_packets/00139365 [07:16:42]File name is /storage/ofd_packets/00139365 [07:16:42]Write 326 bytes [07:16:42]NVStorageSaveData done [07:16:42]OFDSenderStorePacket done [07:16:42]KKMCreateOFDPacket done [07:16:42]NVStorageSaveData kkm_last_timestamp [07:16:42]File name is /storage/kkm_last_timestamp [07:16:42]Write 4 bytes [07:16:42]NVStorageSaveData done [07:16:42]ExternCall_PrintAddStr [07:16:42]wPrintStart [07:16:42]Write to MH i2c: 01 00 00 E6 34 1A [07:16:42]Write i2c OK [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: 01 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: 01 07 00 [07:16:42]MH_I2C_Read... [07:16:42]Read from MH i2c: 01 07 00 E6 34 00 00 00 00 00 FF 0F 2F [07:16:42]RasterBufferAndPrint [07:16:42]line Счет N : (3)335275 [07:16:42]line ИНН: 02508201610067 [07:16:42]line Контрольно-Кассовый Чек [07:16:42]line ПРОДАЖА [07:16:42]line Товар: 2000036230011 [07:16:42]line Кофе Латте XL(GABB TRADE) [07:16:42]line 5.000 * 130.00 [07:16:42]line = 650.00 [07:16:42]line НДС 12% НСП 1% [07:16:42]line > о реализуемом товаре [07:16:42]line ИТОГО: 650.00 [07:16:42]line НСП 1% : 5.75 [07:16:42]line НДС 12% : 69.03 [07:16:42]line Наличными: 0.00 [07:16:42]line Безнал.: 650.00 [07:16:42]line Место: АЗС № 101 "Партнер Нефть" [07:16:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [07:16:42]line СНО: Общий режим [07:16:42]line Чек 49 30.10.2024 07:16 [07:16:42]line Смена: 556 ФФД: 1.0 [07:16:42]line ЗНМ: 0300000081 [07:16:42]line РНМ: 0000000000091631 [07:16:42]line Версия ККМ: 001 [07:16:42]line Платежная система: Mbank [07:16:42]line ФМ: 0000000000874669 [07:16:42]line ФД: 139365 [07:16:42]line ФПД: 67002712853654 [07:16:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T071645&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139365&fm=67002712853654&tin=02508201610067®Number=0000000000091631&sum=65000 [07:16:43]OFD Sender: Processing packet 139365 [packets to send 34, broken 33] [07:16:43]ProducePacketName [07:16:43]name=ofd_packets/00139365 [07:16:43]OFD Sender: To server: pG, [07:16:43]CommunicateWithHost lk.salyk.kg:30040 [07:16:43]ConnectInit lk.salyk.kg [07:16:43]line 0 [07:16:43]written 0, free lines is 4095 [07:16:43]Connected sock=10 [07:16:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 12 0B 20 01 18 DD 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 88 13 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 E8 FD 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 F7 1A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 E8 FD 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 31 00 00 00 F4 03 04 00 5D DD 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 65 20 02 00 35 04 06 00 3C F0 48 E6 0C 96 89 6C 58 5B 2F E0 5F 3F [07:16:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 4C EB 47 00 1F 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 38 37 34 36 36 39 10 04 04 00 65 20 02 00 F4 03 04 00 0E 89 21 67 B6 04 01 00 00 2D EA 34 65 8A 38 4E 61 [07:16:43]CommunicateWithHost err = 0 [07:16:43]CheckOFDResponse [07:16:43]1017 (14) - 77093643461234 [07:16:43]1041 (16) - 0000000000874669 [07:16:43]1040 (4) - 139365 [07:16:43]1012 (4) - 30.10.2024 01:17 [07:16:43]1206 (1) - 0 [07:16:43]OFD Sender: Remove packet 139365 [07:16:43]ProducePacketName [07:16:43]name=ofd_packets/00139365 [07:16:43]NVStorageDeleteData [07:16:43]Write to MH i2c: 01 00 00 0F 35 44 [07:16:43]Write i2c OK [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: 01 [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: 01 07 00 [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: 01 07 00 0F 35 00 00 00 00 00 1F 0D 77 [07:16:43]RasterBufferAndPrint [07:16:43]line [07:16:43]line [07:16:43]line [07:16:43]line [07:16:43]line [07:16:43]written 0, free lines is 3365 [07:16:43]MH_Cut [07:16:43]Write to MH i2c: D1 01 00 16 35 01 1D [07:16:43]Write i2c OK [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: D1 [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: D1 01 00 [07:16:43]MH_I2C_Read... [07:16:43]Read from MH i2c: D1 01 00 16 35 00 1C [07:16:43]Write to MH i2c: 01 00 00 17 35 4C [07:16:43]Write i2c OK [07:16:43]MH_I2C_Read... [07:16:44]OFD Sender: No OFD packet to send [07:16:44]*** Cut start [07:16:44]*** Partial cut [07:16:44]*** CUTSNS_PIN = 1 [07:16:44]*** CUTSNS_PIN = 0 [07:16:44]*** Brake cut motor [07:16:45]Read from MH i2c: 01 [07:16:45]MH_I2C_Read... [07:16:45]*** Stop cut motor [07:16:45]*** Cut end [07:16:45]Read from MH i2c: 01 07 00 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: 01 07 00 17 35 00 00 00 00 00 FF 0F 61 [07:16:45]process_action close_receipt done [07:16:45]requested_data is exist [07:16:45]produce_requested_data [07:16:45]requested_item fm.sn is exist - process it [07:16:45]wFMCommunicate request_size=4 [07:16:45]MH_SAM_APDU [07:16:45]CAPDU: 80 11 00 00 [07:16:45]Write to MH i2c: E2 08 00 18 35 80 11 00 00 00 00 00 00 C7 [07:16:45]Write i2c OK [07:16:45]MH_I2C_Read... [07:16:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [07:16:45]Read from MH i2c: E2 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: E2 17 00 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: E2 17 00 18 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 22 [07:16:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [07:16:45]wFMCommunicate OK [07:16:45]requested_item fd.num is exist - process it [07:16:45]SAM_PROTO_GetFieldsCounters [07:16:45]wFMCommunicate request_size=4 [07:16:45]MH_SAM_APDU [07:16:45]CAPDU: 80 13 00 00 [07:16:45]Write to MH i2c: E2 08 00 19 35 80 13 00 00 00 00 00 00 CA [07:16:45]Write i2c OK [07:16:45]MH_I2C_Read... [07:16:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [07:16:45]Read from MH i2c: E2 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: E2 62 00 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: E2 62 00 19 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 65 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 36 [07:16:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 65 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 31 00 00 00 5E 04 04 00 31 00 00 00 57 04 04 00 32 00 00 00 19 04 04 00 00 00 00 00 90 00 [07:16:45]wFMCommunicate OK [07:16:45]SAM_PROTO_GetFieldsCounters done [07:16:45]requested_item shift.num is exist - process it [07:16:45]requested_item shift.opened is exist - process it [07:16:45]req_shift_opened [07:16:45]FM_GetShiftState [07:16:45]SAM_PROTO_GetShiftState [07:16:45]wFMCommunicate request_size=4 [07:16:45]MH_SAM_APDU [07:16:45]CAPDU: 80 13 01 00 [07:16:45]Write to MH i2c: E2 08 00 1A 35 80 13 01 00 00 00 00 00 CC [07:16:45]Write i2c OK [07:16:45]MH_I2C_Read... [07:16:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [07:16:45]Read from MH i2c: E2 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: E2 0E 00 [07:16:45]MH_I2C_Read... [07:16:45]Read from MH i2c: E2 0E 00 1A 35 00 09 00 01 86 76 21 67 00 00 00 00 90 00 5C [07:16:45]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [07:16:45]wFMCommunicate OK [07:16:45]SAM_PROTO_GetShiftState done [07:16:45]FM_GetShiftState done [07:16:45]req_shift_opened done [07:16:45]requested_item shift.open_date is exist - process it [07:16:45]req_shift_open_date [07:16:45]req_shift_open_date done [07:16:45]produce_requested_data done [07:16:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139365,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [07:16:45]process_action_free close_receipt [07:16:45]json_value_free [07:16:45]json_value_free done [07:16:45]process_json_proto returns [07:16:45]Send response to host [07:16:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139365,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [07:16:45]free response buf [07:16:45]execute_script done [07:16:45]execute_script returns [07:16:45]free content buf [07:16:45]Sock 8.Close socket [07:16:45]Sock 8.Thread stoped [07:16:49]OFD Sender: No OFD packet to send [07:16:54]OFD Sender: No OFD packet to send [07:16:59]OFD Sender: No OFD packet to send [07:17:04]OFD Sender: No OFD packet to send [07:17:09]OFD Sender: No OFD packet to send [07:17:14]OFD Sender: No OFD packet to send [07:17:19]OFD Sender: No OFD packet to send [07:17:24]OFD Sender: No OFD packet to send [07:17:29]OFD Sender: No OFD packet to send [07:17:34]OFD Sender: No OFD packet to send [07:17:39]OFD Sender: No OFD packet to send [07:17:44]OFD Sender: No OFD packet to send [07:17:49]OFD Sender: No OFD packet to send [07:17:54]OFD Sender: No OFD packet to send [07:17:59]OFD Sender: No OFD packet to send [07:18:04]OFD Sender: No OFD packet to send [07:18:09]OFD Sender: No OFD packet to send [07:18:14]OFD Sender: No OFD packet to send [07:18:19]OFD Sender: No OFD packet to send [07:18:24]OFD Sender: No OFD packet to send [07:18:29]OFD Sender: No OFD packet to send [07:18:34]OFD Sender: No OFD packet to send [07:18:39]OFD Sender: No OFD packet to send [07:18:44]OFD Sender: No OFD packet to send [07:18:49]OFD Sender: No OFD packet to send [07:18:54]OFD Sender: No OFD packet to send [07:18:59]OFD Sender: No OFD packet to send [07:19:04]OFD Sender: No OFD packet to send [07:19:09]OFD Sender: No OFD packet to send [07:19:14]OFD Sender: No OFD packet to send [07:19:19]OFD Sender: No OFD packet to send [07:19:24]OFD Sender: No OFD packet to send [07:19:29]OFD Sender: No OFD packet to send [07:19:34]OFD Sender: No OFD packet to send [07:19:39]OFD Sender: No OFD packet to send [07:19:44]OFD Sender: No OFD packet to send [07:19:49]OFD Sender: No OFD packet to send [07:19:54]OFD Sender: No OFD packet to send [07:19:59]OFD Sender: No OFD packet to send [07:20:04]OFD Sender: No OFD packet to send [07:20:09]OFD Sender: No OFD packet to send [07:20:14]OFD Sender: No OFD packet to send [07:20:19]OFD Sender: No OFD packet to send [07:20:24]OFD Sender: No OFD packet to send [07:20:29]OFD Sender: No OFD packet to send [07:20:34]OFD Sender: No OFD packet to send [07:20:39]OFD Sender: No OFD packet to send [07:20:44]OFD Sender: No OFD packet to send [07:20:49]OFD Sender: No OFD packet to send [07:20:54]OFD Sender: No OFD packet to send [07:20:59]OFD Sender: No OFD packet to send [07:21:04]OFD Sender: No OFD packet to send [07:21:09]OFD Sender: No OFD packet to send [07:21:14]OFD Sender: No OFD packet to send [07:21:19]OFD Sender: No OFD packet to send [07:21:24]OFD Sender: No OFD packet to send [07:21:29]OFD Sender: No OFD packet to send [07:21:34]OFD Sender: No OFD packet to send [07:21:39]OFD Sender: No OFD packet to send [07:21:44]OFD Sender: No OFD packet to send [07:21:49]OFD Sender: No OFD packet to send [07:21:54]OFD Sender: No OFD packet to send [07:21:59]OFD Sender: No OFD packet to send [07:22:04]OFD Sender: No OFD packet to send [07:22:09]OFD Sender: No OFD packet to send [07:22:14]OFD Sender: No OFD packet to send [07:22:19]OFD Sender: No OFD packet to send [07:22:24]OFD Sender: No OFD packet to send [07:22:29]OFD Sender: No OFD packet to send [07:22:34]OFD Sender: No OFD packet to send [07:22:39]OFD Sender: No OFD packet to send [07:22:44]OFD Sender: No OFD packet to send [07:22:49]OFD Sender: No OFD packet to send [07:22:54]OFD Sender: No OFD packet to send [07:22:59]OFD Sender: No OFD packet to send [07:23:04]OFD Sender: No OFD packet to send [07:23:09]OFD Sender: No OFD packet to send [07:23:14]OFD Sender: No OFD packet to send [07:23:19]OFD Sender: No OFD packet to send [07:23:24]OFD Sender: No OFD packet to send [07:23:29]OFD Sender: No OFD packet to send [07:23:34]OFD Sender: No OFD packet to send [07:23:39]OFD Sender: No OFD packet to send [07:23:44]OFD Sender: No OFD packet to send [07:23:49]OFD Sender: No OFD packet to send [07:23:54]OFD Sender: No OFD packet to send [07:23:59]OFD Sender: No OFD packet to send [07:24:04]OFD Sender: No OFD packet to send [07:24:09]OFD Sender: No OFD packet to send [07:24:14]OFD Sender: No OFD packet to send [07:24:19]OFD Sender: No OFD packet to send [07:24:24]OFD Sender: No OFD packet to send [07:24:29]OFD Sender: No OFD packet to send [07:24:34]OFD Sender: No OFD packet to send [07:24:39]OFD Sender: No OFD packet to send [07:24:44]OFD Sender: No OFD packet to send [07:24:49]OFD Sender: No OFD packet to send [07:24:54]OFD Sender: No OFD packet to send [07:24:59]OFD Sender: No OFD packet to send [07:25:04]OFD Sender: No OFD packet to send [07:25:09]OFD Sender: No OFD packet to send [07:25:14]OFD Sender: No OFD packet to send [07:25:19]OFD Sender: No OFD packet to send [07:25:24]OFD Sender: No OFD packet to send [07:25:29]OFD Sender: No OFD packet to send [07:25:34]OFD Sender: No OFD packet to send [07:25:39]OFD Sender: No OFD packet to send [07:25:44]OFD Sender: No OFD packet to send [07:25:49]OFD Sender: No OFD packet to send [07:25:54]OFD Sender: No OFD packet to send [07:25:59]OFD Sender: No OFD packet to send [07:26:04]OFD Sender: No OFD packet to send [07:26:09]OFD Sender: No OFD packet to send [07:26:14]OFD Sender: No OFD packet to send [07:26:19]OFD Sender: No OFD packet to send [07:26:24]OFD Sender: No OFD packet to send [07:26:29]OFD Sender: No OFD packet to send [07:26:34]OFD Sender: No OFD packet to send [07:26:39]OFD Sender: No OFD packet to send [07:26:44]OFD Sender: No OFD packet to send [07:26:49]OFD Sender: No OFD packet to send [07:26:54]OFD Sender: No OFD packet to send [07:26:59]OFD Sender: No OFD packet to send [07:27:04]OFD Sender: No OFD packet to send [07:27:09]OFD Sender: No OFD packet to send [07:27:14]OFD Sender: No OFD packet to send [07:27:19]OFD Sender: No OFD packet to send [07:27:24]OFD Sender: No OFD packet to send [07:27:29]OFD Sender: No OFD packet to send [07:27:34]OFD Sender: No OFD packet to send [07:27:39]OFD Sender: No OFD packet to send [07:27:44]OFD Sender: No OFD packet to send [07:27:49]OFD Sender: No OFD packet to send [07:27:54]OFD Sender: No OFD packet to send [07:27:59]OFD Sender: No OFD packet to send [07:28:04]OFD Sender: No OFD packet to send [07:28:09]OFD Sender: No OFD packet to send [07:28:14]OFD Sender: No OFD packet to send [07:28:19]OFD Sender: No OFD packet to send [07:28:24]OFD Sender: No OFD packet to send [07:28:29]OFD Sender: No OFD packet to send [07:28:34]OFD Sender: No OFD packet to send [07:28:39]OFD Sender: No OFD packet to send [07:28:44]OFD Sender: No OFD packet to send [07:28:49]OFD Sender: No OFD packet to send [07:28:54]OFD Sender: No OFD packet to send [07:28:59]OFD Sender: No OFD packet to send [07:29:04]OFD Sender: No OFD packet to send [07:29:09]OFD Sender: No OFD packet to send [07:29:14]OFD Sender: No OFD packet to send [07:29:19]OFD Sender: No OFD packet to send [07:29:24]OFD Sender: No OFD packet to send [07:29:29]OFD Sender: No OFD packet to send [07:29:34]OFD Sender: No OFD packet to send [07:29:39]OFD Sender: No OFD packet to send [07:29:44]OFD Sender: No OFD packet to send [07:29:49]OFD Sender: No OFD packet to send [07:29:54]OFD Sender: No OFD packet to send [07:29:59]OFD Sender: No OFD packet to send [07:30:04]OFD Sender: No OFD packet to send [07:30:09]OFD Sender: No OFD packet to send [07:30:14]OFD Sender: No OFD packet to send [07:30:19]OFD Sender: No OFD packet to send [07:30:24]OFD Sender: No OFD packet to send [07:30:29]OFD Sender: No OFD packet to send [07:30:34]OFD Sender: No OFD packet to send [07:30:39]OFD Sender: No OFD packet to send [07:30:44]OFD Sender: No OFD packet to send [07:30:49]OFD Sender: No OFD packet to send [07:30:54]OFD Sender: No OFD packet to send [07:30:59]OFD Sender: No OFD packet to send [07:31:04]OFD Sender: No OFD packet to send [07:31:09]OFD Sender: No OFD packet to send [07:31:14]OFD Sender: No OFD packet to send [07:31:19]OFD Sender: No OFD packet to send [07:31:24]OFD Sender: No OFD packet to send [07:31:29]OFD Sender: No OFD packet to send [07:31:34]OFD Sender: No OFD packet to send [07:31:39]OFD Sender: No OFD packet to send [07:31:44]OFD Sender: No OFD packet to send [07:31:49]OFD Sender: No OFD packet to send [07:31:54]OFD Sender: No OFD packet to send [07:31:59]OFD Sender: No OFD packet to send [07:32:04]OFD Sender: No OFD packet to send [07:32:09]OFD Sender: No OFD packet to send [07:32:14]OFD Sender: No OFD packet to send [07:32:19]OFD Sender: No OFD packet to send [07:32:24]OFD Sender: No OFD packet to send [07:32:29]OFD Sender: No OFD packet to send [07:32:34]OFD Sender: No OFD packet to send [07:32:39]OFD Sender: No OFD packet to send [07:32:44]OFD Sender: No OFD packet to send [07:32:49]OFD Sender: No OFD packet to send [07:32:54]OFD Sender: No OFD packet to send [07:32:59]OFD Sender: No OFD packet to send [07:33:04]OFD Sender: No OFD packet to send [07:33:09]OFD Sender: No OFD packet to send [07:33:14]OFD Sender: No OFD packet to send [07:33:19]OFD Sender: No OFD packet to send [07:33:24]OFD Sender: No OFD packet to send [07:33:29]OFD Sender: No OFD packet to send [07:33:34]OFD Sender: No OFD packet to send [07:33:39]OFD Sender: No OFD packet to send [07:33:44]OFD Sender: No OFD packet to send [07:33:49]OFD Sender: No OFD packet to send [07:33:55]OFD Sender: No OFD packet to send [07:34:00]OFD Sender: No OFD packet to send [07:34:05]OFD Sender: No OFD packet to send [07:34:10]OFD Sender: No OFD packet to send [07:34:15]OFD Sender: No OFD packet to send [07:34:20]OFD Sender: No OFD packet to send [07:34:25]OFD Sender: No OFD packet to send [07:34:30]OFD Sender: No OFD packet to send [07:34:35]OFD Sender: No OFD packet to send [07:34:40]OFD Sender: No OFD packet to send [07:34:45]OFD Sender: No OFD packet to send [07:34:50]OFD Sender: No OFD packet to send [07:34:55]OFD Sender: No OFD packet to send [07:35:00]OFD Sender: No OFD packet to send [07:35:05]OFD Sender: No OFD packet to send [07:35:10]OFD Sender: No OFD packet to send [07:35:15]OFD Sender: No OFD packet to send [07:35:20]OFD Sender: No OFD packet to send [07:35:25]OFD Sender: No OFD packet to send [07:35:30]OFD Sender: No OFD packet to send [07:35:35]OFD Sender: No OFD packet to send [07:35:40]OFD Sender: No OFD packet to send [07:35:45]OFD Sender: No OFD packet to send [07:35:50]OFD Sender: No OFD packet to send [07:35:55]OFD Sender: No OFD packet to send [07:36:00]OFD Sender: No OFD packet to send [07:36:05]OFD Sender: No OFD packet to send [07:36:10]OFD Sender: No OFD packet to send [07:36:15]OFD Sender: No OFD packet to send [07:36:20]OFD Sender: No OFD packet to send [07:36:25]OFD Sender: No OFD packet to send [07:36:30]OFD Sender: No OFD packet to send [07:36:35]OFD Sender: No OFD packet to send [07:36:40]OFD Sender: No OFD packet to send [07:36:45]OFD Sender: No OFD packet to send [07:36:50]OFD Sender: No OFD packet to send [07:36:55]OFD Sender: No OFD packet to send [07:37:00]OFD Sender: No OFD packet to send [07:37:05]OFD Sender: No OFD packet to send [07:37:10]OFD Sender: No OFD packet to send [07:37:15]OFD Sender: No OFD packet to send [07:37:20]OFD Sender: No OFD packet to send [07:37:25]OFD Sender: No OFD packet to send [07:37:30]OFD Sender: No OFD packet to send [07:37:35]OFD Sender: No OFD packet to send [07:37:40]OFD Sender: No OFD packet to send [07:37:45]OFD Sender: No OFD packet to send [07:37:50]OFD Sender: No OFD packet to send [07:37:55]OFD Sender: No OFD packet to send [07:38:00]OFD Sender: No OFD packet to send [07:38:05]OFD Sender: No OFD packet to send [07:38:10]OFD Sender: No OFD packet to send [07:38:15]OFD Sender: No OFD packet to send [07:38:20]OFD Sender: No OFD packet to send [07:38:25]OFD Sender: No OFD packet to send [07:38:30]OFD Sender: No OFD packet to send [07:38:35]OFD Sender: No OFD packet to send [07:38:40]OFD Sender: No OFD packet to send [07:38:45]OFD Sender: No OFD packet to send [07:38:50]OFD Sender: No OFD packet to send [07:38:55]OFD Sender: No OFD packet to send [07:39:00]OFD Sender: No OFD packet to send [07:39:05]OFD Sender: No OFD packet to send [07:39:10]OFD Sender: No OFD packet to send [07:39:15]OFD Sender: No OFD packet to send [07:39:20]OFD Sender: No OFD packet to send [07:39:25]OFD Sender: No OFD packet to send [07:39:30]OFD Sender: No OFD packet to send [07:39:35]OFD Sender: No OFD packet to send [07:39:40]OFD Sender: No OFD packet to send [07:39:45]OFD Sender: No OFD packet to send [07:39:50]OFD Sender: No OFD packet to send [07:39:55]OFD Sender: No OFD packet to send [07:40:00]OFD Sender: No OFD packet to send [07:40:05]OFD Sender: No OFD packet to send [07:40:10]OFD Sender: No OFD packet to send [07:40:15]OFD Sender: No OFD packet to send [07:40:20]OFD Sender: No OFD packet to send [07:40:25]OFD Sender: No OFD packet to send [07:40:30]OFD Sender: No OFD packet to send [07:40:35]OFD Sender: No OFD packet to send [07:40:40]OFD Sender: No OFD packet to send [07:40:45]OFD Sender: No OFD packet to send [07:40:50]OFD Sender: No OFD packet to send [07:40:55]OFD Sender: No OFD packet to send [07:41:00]OFD Sender: No OFD packet to send [07:41:05]OFD Sender: No OFD packet to send [07:41:10]OFD Sender: No OFD packet to send [07:41:15]OFD Sender: No OFD packet to send [07:41:20]OFD Sender: No OFD packet to send [07:41:25]OFD Sender: No OFD packet to send [07:41:30]OFD Sender: No OFD packet to send [07:41:35]OFD Sender: No OFD packet to send [07:41:40]OFD Sender: No OFD packet to send [07:41:45]OFD Sender: No OFD packet to send [07:41:50]OFD Sender: No OFD packet to send [07:41:55]OFD Sender: No OFD packet to send [07:42:00]OFD Sender: No OFD packet to send [07:42:05]OFD Sender: No OFD packet to send [07:42:10]OFD Sender: No OFD packet to send [07:42:15]OFD Sender: No OFD packet to send [07:42:20]OFD Sender: No OFD packet to send [07:42:25]OFD Sender: No OFD packet to send [07:42:30]OFD Sender: No OFD packet to send [07:42:35]OFD Sender: No OFD packet to send [07:42:40]OFD Sender: No OFD packet to send [07:42:45]OFD Sender: No OFD packet to send [07:42:50]OFD Sender: No OFD packet to send [07:42:55]OFD Sender: No OFD packet to send [07:43:00]OFD Sender: No OFD packet to send [07:43:05]OFD Sender: No OFD packet to send [07:43:10]OFD Sender: No OFD packet to send [07:43:15]OFD Sender: No OFD packet to send [07:43:20]OFD Sender: No OFD packet to send [07:43:25]OFD Sender: No OFD packet to send [07:43:30]OFD Sender: No OFD packet to send [07:43:35]OFD Sender: No OFD packet to send [07:43:40]OFD Sender: No OFD packet to send [07:43:45]OFD Sender: No OFD packet to send [07:43:50]OFD Sender: No OFD packet to send [07:43:55]OFD Sender: No OFD packet to send [07:44:00]OFD Sender: No OFD packet to send [07:44:05]OFD Sender: No OFD packet to send [07:44:10]OFD Sender: No OFD packet to send [07:44:15]OFD Sender: No OFD packet to send [07:44:20]OFD Sender: No OFD packet to send [07:44:25]OFD Sender: No OFD packet to send [07:44:30]OFD Sender: No OFD packet to send [07:44:35]OFD Sender: No OFD packet to send [07:44:40]OFD Sender: No OFD packet to send [07:44:45]OFD Sender: No OFD packet to send [07:44:50]OFD Sender: No OFD packet to send [07:44:55]OFD Sender: No OFD packet to send [07:45:00]OFD Sender: No OFD packet to send [07:45:05]OFD Sender: No OFD packet to send [07:45:10]OFD Sender: No OFD packet to send [07:45:15]OFD Sender: No OFD packet to send [07:45:20]OFD Sender: No OFD packet to send [07:45:25]OFD Sender: No OFD packet to send [07:45:30]OFD Sender: No OFD packet to send [07:45:35]OFD Sender: No OFD packet to send [07:45:40]OFD Sender: No OFD packet to send [07:45:45]OFD Sender: No OFD packet to send [07:45:50]OFD Sender: No OFD packet to send [07:45:55]OFD Sender: No OFD packet to send [07:46:00]OFD Sender: No OFD packet to send [07:46:05]OFD Sender: No OFD packet to send [07:46:10]OFD Sender: No OFD packet to send [07:46:15]OFD Sender: No OFD packet to send [07:46:20]OFD Sender: No OFD packet to send [07:46:25]OFD Sender: No OFD packet to send [07:46:30]OFD Sender: No OFD packet to send [07:46:35]OFD Sender: No OFD packet to send [07:46:40]OFD Sender: No OFD packet to send [07:46:45]OFD Sender: No OFD packet to send [07:46:50]OFD Sender: No OFD packet to send [07:46:55]OFD Sender: No OFD packet to send [07:47:00]OFD Sender: No OFD packet to send [07:47:05]OFD Sender: No OFD packet to send [07:47:10]OFD Sender: No OFD packet to send [07:47:15]OFD Sender: No OFD packet to send [07:47:20]OFD Sender: No OFD packet to send [07:47:25]OFD Sender: No OFD packet to send [07:47:30]OFD Sender: No OFD packet to send [07:47:35]OFD Sender: No OFD packet to send [07:47:40]OFD Sender: No OFD packet to send [07:47:45]OFD Sender: No OFD packet to send [07:47:50]OFD Sender: No OFD packet to send [07:47:55]OFD Sender: No OFD packet to send [07:48:00]OFD Sender: No OFD packet to send [07:48:05]OFD Sender: No OFD packet to send [07:48:10]OFD Sender: No OFD packet to send [07:48:15]OFD Sender: No OFD packet to send [07:48:20]OFD Sender: No OFD packet to send [07:48:25]OFD Sender: No OFD packet to send [07:48:30]OFD Sender: No OFD packet to send [07:48:35]OFD Sender: No OFD packet to send [07:48:40]OFD Sender: No OFD packet to send [07:48:45]OFD Sender: No OFD packet to send [07:48:50]OFD Sender: No OFD packet to send [07:48:55]OFD Sender: No OFD packet to send [07:49:00]OFD Sender: No OFD packet to send [07:49:05]OFD Sender: No OFD packet to send [07:49:10]OFD Sender: No OFD packet to send [07:49:15]OFD Sender: No OFD packet to send [07:49:20]OFD Sender: No OFD packet to send [07:49:25]OFD Sender: No OFD packet to send [07:49:30]OFD Sender: No OFD packet to send [07:49:35]OFD Sender: No OFD packet to send [07:49:40]OFD Sender: No OFD packet to send [07:49:45]OFD Sender: No OFD packet to send [07:49:50]OFD Sender: No OFD packet to send [07:49:55]OFD Sender: No OFD packet to send [07:50:00]OFD Sender: No OFD packet to send [07:50:05]OFD Sender: No OFD packet to send [07:50:10]OFD Sender: No OFD packet to send [07:50:15]OFD Sender: No OFD packet to send [07:50:20]OFD Sender: No OFD packet to send [07:50:25]OFD Sender: No OFD packet to send [07:50:30]OFD Sender: No OFD packet to send [07:50:35]OFD Sender: No OFD packet to send [07:50:40]OFD Sender: No OFD packet to send [07:50:45]OFD Sender: No OFD packet to send [07:50:50]OFD Sender: No OFD packet to send [07:50:55]OFD Sender: No OFD packet to send [07:51:00]OFD Sender: No OFD packet to send [07:51:05]OFD Sender: No OFD packet to send [07:51:10]OFD Sender: No OFD packet to send [07:51:15]OFD Sender: No OFD packet to send [07:51:20]OFD Sender: No OFD packet to send [07:51:25]OFD Sender: No OFD packet to send [07:51:30]OFD Sender: No OFD packet to send [07:51:35]OFD Sender: No OFD packet to send [07:51:40]OFD Sender: No OFD packet to send [07:51:45]OFD Sender: No OFD packet to send [07:51:50]OFD Sender: No OFD packet to send [07:51:55]OFD Sender: No OFD packet to send [07:52:00]OFD Sender: No OFD packet to send [07:52:05]OFD Sender: No OFD packet to send [07:52:10]OFD Sender: No OFD packet to send [07:52:15]OFD Sender: No OFD packet to send [07:52:20]OFD Sender: No OFD packet to send [07:52:25]OFD Sender: No OFD packet to send [07:52:30]OFD Sender: No OFD packet to send [07:52:35]OFD Sender: No OFD packet to send [07:52:40]OFD Sender: No OFD packet to send [07:52:45]OFD Sender: No OFD packet to send [07:52:50]OFD Sender: No OFD packet to send [07:52:56]OFD Sender: No OFD packet to send [07:53:01]OFD Sender: No OFD packet to send [07:53:06]OFD Sender: No OFD packet to send [07:53:11]OFD Sender: No OFD packet to send [07:53:16]OFD Sender: No OFD packet to send [07:53:21]OFD Sender: No OFD packet to send [07:53:26]OFD Sender: No OFD packet to send [07:53:31]OFD Sender: No OFD packet to send [07:53:36]OFD Sender: No OFD packet to send [07:53:41]OFD Sender: No OFD packet to send [07:53:46]OFD Sender: No OFD packet to send [07:53:51]OFD Sender: No OFD packet to send [07:53:56]OFD Sender: No OFD packet to send [07:54:01]OFD Sender: No OFD packet to send [07:54:06]OFD Sender: No OFD packet to send [07:54:11]OFD Sender: No OFD packet to send [07:54:16]OFD Sender: No OFD packet to send [07:54:21]OFD Sender: No OFD packet to send [07:54:26]OFD Sender: No OFD packet to send [07:54:31]OFD Sender: No OFD packet to send [07:54:36]OFD Sender: No OFD packet to send [07:54:41]OFD Sender: No OFD packet to send [07:54:46]OFD Sender: No OFD packet to send [07:54:51]OFD Sender: No OFD packet to send [07:54:56]OFD Sender: No OFD packet to send [07:55:01]OFD Sender: No OFD packet to send [07:55:06]OFD Sender: No OFD packet to send [07:55:11]OFD Sender: No OFD packet to send [07:55:16]OFD Sender: No OFD packet to send [07:55:21]OFD Sender: No OFD packet to send [07:55:26]OFD Sender: No OFD packet to send [07:55:31]OFD Sender: No OFD packet to send [07:55:36]OFD Sender: No OFD packet to send [07:55:41]OFD Sender: No OFD packet to send [07:55:46]OFD Sender: No OFD packet to send [07:55:51]OFD Sender: No OFD packet to send [07:55:56]OFD Sender: No OFD packet to send [07:56:01]OFD Sender: No OFD packet to send [07:56:06]OFD Sender: No OFD packet to send [07:56:11]OFD Sender: No OFD packet to send [07:56:16]OFD Sender: No OFD packet to send [07:56:21]OFD Sender: No OFD packet to send [07:56:26]OFD Sender: No OFD packet to send [07:56:31]OFD Sender: No OFD packet to send [07:56:36]OFD Sender: No OFD packet to send [07:56:41]OFD Sender: No OFD packet to send [07:56:46]OFD Sender: No OFD packet to send [07:56:51]OFD Sender: No OFD packet to send [07:56:56]OFD Sender: No OFD packet to send [07:57:01]OFD Sender: No OFD packet to send [07:57:06]OFD Sender: No OFD packet to send [07:57:11]OFD Sender: No OFD packet to send [07:57:16]OFD Sender: No OFD packet to send [07:57:21]OFD Sender: No OFD packet to send [07:57:26]OFD Sender: No OFD packet to send [07:57:31]OFD Sender: No OFD packet to send [07:57:36]OFD Sender: No OFD packet to send [07:57:41]OFD Sender: No OFD packet to send [07:57:46]OFD Sender: No OFD packet to send [07:57:51]OFD Sender: No OFD packet to send [07:57:56]OFD Sender: No OFD packet to send [07:58:01]OFD Sender: No OFD packet to send [07:58:06]OFD Sender: No OFD packet to send [07:58:11]OFD Sender: No OFD packet to send [07:58:16]OFD Sender: No OFD packet to send [07:58:21]OFD Sender: No OFD packet to send [07:58:26]OFD Sender: No OFD packet to send [07:58:31]OFD Sender: No OFD packet to send [07:58:36]OFD Sender: No OFD packet to send [07:58:41]OFD Sender: No OFD packet to send [07:58:46]OFD Sender: No OFD packet to send [07:58:51]OFD Sender: No OFD packet to send [07:58:56]OFD Sender: No OFD packet to send [07:59:01]OFD Sender: No OFD packet to send [07:59:06]OFD Sender: No OFD packet to send [07:59:11]OFD Sender: No OFD packet to send [07:59:16]OFD Sender: No OFD packet to send [08:02:51]OFD Sender: No OFD packet to send [08:02:56]OFD Sender: No OFD packet to send [08:03:01]OFD Sender: No OFD packet to send [08:03:06]OFD Sender: No OFD packet to send [08:03:11]OFD Sender: No OFD packet to send [08:03:16]OFD Sender: No OFD packet to send [08:03:21]OFD Sender: No OFD packet to send [08:03:26]OFD Sender: No OFD packet to send [08:03:31]OFD Sender: No OFD packet to send [08:03:36]OFD Sender: No OFD packet to send [08:03:41]OFD Sender: No OFD packet to send [08:03:46]OFD Sender: No OFD packet to send [08:03:51]OFD Sender: No OFD packet to send [08:03:56]OFD Sender: No OFD packet to send [08:04:01]OFD Sender: No OFD packet to send [08:04:06]OFD Sender: No OFD packet to send [08:04:11]OFD Sender: No OFD packet to send [08:04:16]OFD Sender: No OFD packet to send [08:04:21]OFD Sender: No OFD packet to send [08:04:26]OFD Sender: No OFD packet to send [08:04:31]OFD Sender: No OFD packet to send [08:04:36]OFD Sender: No OFD packet to send [08:04:41]OFD Sender: No OFD packet to send [08:04:46]OFD Sender: No OFD packet to send [08:04:51]OFD Sender: No OFD packet to send [08:04:56]OFD Sender: No OFD packet to send [08:04:59]ConnectInit Can't connect to host [08:05:01]OFD Sender: No OFD packet to send [08:05:06]OFD Sender: No OFD packet to send [08:05:11]OFD Sender: No OFD packet to send [08:05:16]OFD Sender: No OFD packet to send [08:05:21]OFD Sender: No OFD packet to send [08:05:26]OFD Sender: No OFD packet to send [08:05:31]OFD Sender: No OFD packet to send [08:05:36]OFD Sender: No OFD packet to send [08:05:41]OFD Sender: No OFD packet to send [08:05:46]OFD Sender: No OFD packet to send [08:05:51]OFD Sender: No OFD packet to send [08:05:56]OFD Sender: No OFD packet to send [08:06:01]OFD Sender: No OFD packet to send [08:06:06]OFD Sender: No OFD packet to send [08:06:11]OFD Sender: No OFD packet to send [08:06:16]OFD Sender: No OFD packet to send [08:06:21]OFD Sender: No OFD packet to send [08:06:26]OFD Sender: No OFD packet to send [08:06:31]OFD Sender: No OFD packet to send [08:06:36]OFD Sender: No OFD packet to send [08:06:41]OFD Sender: No OFD packet to send [08:06:46]OFD Sender: No OFD packet to send [08:06:51]OFD Sender: No OFD packet to send [08:06:56]OFD Sender: No OFD packet to send [08:07:01]OFD Sender: No OFD packet to send [08:07:06]OFD Sender: No OFD packet to send [08:07:11]OFD Sender: No OFD packet to send [08:07:16]OFD Sender: No OFD packet to send [08:07:21]OFD Sender: No OFD packet to send [08:07:26]OFD Sender: No OFD packet to send [08:07:31]OFD Sender: No OFD packet to send [08:07:33]accept exits with 9 [08:07:33]New connection [08:07:33]New thread 3067141476 created [08:07:33]Thread 3067284836 joined [08:07:33]Waiting for new connection... [08:07:33] Sock 9.Parse request [08:07:33]Sock 9.Check first char [08:07:33]Sock 9.First char is OK [08:07:33]request: POST /json_proto HTTP/1.0 [08:07:33]Method: POST [08:07:33]URL: /json_proto [08:07:33]Method is POST - this is cgi request [08:07:33]url: /json_proto [08:07:33]query_string will be loaded in cgi processing [08:07:33]execute_cgi json_proto POST (null) [08:07:33]execute_cgi path=json_proto method=POST [08:07:33]POST find Content-Length [08:07:33]Host: 172.17.50.196:8080 [08:07:33]Content-Length: 626 [08:07:33]Content-Type: application/json [08:07:33] [08:07:33]POST finish read [08:07:33]Found Content-Length = 626 [08:07:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335276", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:33]execute_script... [08:07: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 : (3)335276", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:07:33]POST & json_proto [08:07:33]process_json_proto [08:07:33]json parsed OK: [08:07:33]protocol is kg_v1.0 [08:07:33]action value=close_receipt [08:07:33]process_action close_receipt [08:07:33]cmd_close_receipt [08:07:33]MH_GetDate [08:07:33]Write to MH i2c: F0 00 00 1B 35 3F [08:07:33]Write i2c OK [08:07:33]MH_I2C_Read... [08:07:33]Read from MH i2c: F0 [08:07:33]MH_I2C_Read... [08:07:33]Read from MH i2c: F0 09 00 [08:07:33]MH_I2C_Read... [08:07:33]Read from MH i2c: F0 09 00 1B 35 00 49 E9 21 67 72 0D 1C 67 04 [08:07:33]GetLastDocTimeStamp 1730272605 [08:07:33]current date 1730275657 [08:07:33]FM_GetShiftState [08:07:33]SAM_PROTO_GetShiftState [08:07:33]wFMCommunicate request_size=4 [08:07:33]MH_SAM_APDU [08:07:33]CAPDU: 80 13 01 00 [08:07:33]Write to MH i2c: E2 08 00 1C 35 80 13 01 00 00 00 00 00 CE [08:07:33]Write i2c OK [08:07:33]MH_I2C_Read... [08:07:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:33]Read from MH i2c: E2 [08:07:33]MH_I2C_Read... [08:07:33]Read from MH i2c: E2 0E 00 [08:07:33]MH_I2C_Read... [08:07:33]Read from MH i2c: E2 0E 00 1C 35 00 09 00 01 86 76 21 67 00 00 00 00 90 00 5E [08:07:33]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:07:33]wFMCommunicate OK [08:07:33]SAM_PROTO_GetShiftState done [08:07:33]FM_GetShiftState done [08:07:33]opened in 1730246278 [08:07:33]opened+sec_in_day 1730332678 [08:07:33]quantity*price = 13900 [08:07:33]sum+1 = 13901 [08:07:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 50 30.10.2024 08:07 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139366 ФПД: 34507026984307 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080737&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139366&fm=34507026984307&tin=02508201610067®Number=0000000000091631&sum=13900 0 [08:07:34]StoreToDocumentArchive [08:07:34]shift 556 fd 139366 [08:07:34]save to /storage/0556/doc_00139366 [08:07:34]save last doc name /storage/0556/doc_00139366 to /storage/kkm_last_doc_name [08:07:34]save OK [08:07:34]Clear old archive folders... [08:07:34]ProcessDocumentItem done err = 0, tmpTLVsize=278 [08:07:34]tlvbuf is B6FA6A40 [08:07:34]SAM_PROTO_ClearQueue [08:07:34]wFMCommunicate request_size=4 [08:07:34]MH_SAM_APDU [08:07:34]CAPDU: 80 09 00 00 [08:07:34]Write to MH i2c: E2 08 00 29 35 80 09 00 00 00 00 00 00 D0 [08:07:34]Write i2c OK [08:07:34]MH_I2C_Read... [08:07:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:07:34]Read from MH i2c: E2 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 03 00 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 03 00 29 35 00 90 00 D2 [08:07:34]RAPDU: 90 00 [08:07:34]wFMCommunicate OK [08:07:34]SAM_PROTO_ClearQueue done [08:07:34]KKMCreateOFDPacket [08:07:34]OFDProtocolAddRootSTLVToBuf [08:07:34]FM_MakeSignedData [08:07:34]FM_MakeSignedData [08:07:34]SAM_PROTO_SignData [08:07:34]wFMCommunicate request_size=4 [08:07:34]MH_SAM_APDU [08:07:34]CAPDU: 80 0D 01 02 [08:07:34]Write to MH i2c: E2 08 00 2A 35 80 0D 01 02 00 00 00 00 D8 [08:07:34]Write i2c OK [08:07:34]MH_I2C_Read... [08:07:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:07:34]Read from MH i2c: E2 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 03 00 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 03 00 2A 35 00 90 00 D3 [08:07:34]RAPDU: 90 00 [08:07:34]wFMCommunicate OK [08:07:34]wFMCommunicate request_size=255 [08:07:34]MH_SAM_APDU [08:07:34]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 32 00 00 00 F4 03 04 00 49 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [08:07:34]Write to MH i2c: E2 02 01 2B 35 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 32 00 00 00 F4 03 04 00 49 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 2D [08:07:34]Write i2c OK [08:07:34]MH_I2C_Read... [08:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:34]Read from MH i2c: E2 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 03 00 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 03 00 2B 35 00 90 00 D4 [08:07:34]RAPDU: 90 00 [08:07:34]wFMCommunicate OK [08:07:34]wFMCommunicate request_size=37 [08:07:34]MH_SAM_APDU [08:07:34]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 20 02 00 35 04 06 00 1F 62 4B 15 ED 73 [08:07:34]Write to MH i2c: E2 28 00 2C 35 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 20 02 00 35 04 06 00 1F 62 4B 15 ED 73 00 00 03 [08:07:34]Write i2c OK [08:07:34]MH_I2C_Read... [08:07:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:07:34]Read from MH i2c: E2 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 03 00 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 03 00 2C 35 00 90 00 D5 [08:07:34]RAPDU: 90 00 [08:07:34]wFMCommunicate OK [08:07:34]wFMCommunicate request_size=4 [08:07:34]MH_SAM_APDU [08:07:34]CAPDU: 80 0D 03 02 [08:07:34]Write to MH i2c: E2 08 00 2D 35 80 0D 03 02 00 00 00 00 DD [08:07:34]Write i2c OK [08:07:34]MH_I2C_Read... [08:07:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:07:34]Read from MH i2c: E2 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 0B 00 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 0B 00 2D 35 00 AF 8C 58 E6 15 49 E0 FB 90 00 90 [08:07:34]RAPDU: AF 8C 58 E6 15 49 E0 FB 90 00 [08:07:34]wFMCommunicate OK [08:07:34]SAM_PROTO_SignData done [08:07:34]FM_MakeSignedData done [08:07:34]CreateOFDProtocolMessage [08:07:34]wFMCommunicate request_size=4 [08:07:34]MH_SAM_APDU [08:07:34]CAPDU: 80 11 00 00 [08:07:34]Write to MH i2c: E2 08 00 2E 35 80 11 00 00 00 00 00 00 DD [08:07:34]Write i2c OK [08:07:34]MH_I2C_Read... [08:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:34]Read from MH i2c: E2 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 17 00 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: E2 17 00 2E 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 38 [08:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:07:34]wFMCommunicate OK [08:07:34]CreateOFDProtocolMessage done [08:07:34]OFDSenderStorePacket 139366 [08:07:34]StoreOFDPacket docnum=139366 [08:07:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 24 33 22 01 3C 96 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 32 00 00 00 F4 03 04 00 49 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 20 02 00 35 04 06 00 1F 62 4B 15 ED 73 AF 8C 58 E6 15 49 E0 FB [08:07:34]CheckFolder [08:07:34]dirname=/storage/ofd_packets [08:07:34]CheckFolder done [08:07:34]ProducePacketName [08:07:34]name=ofd_packets/00139366 [08:07:34]NVStorageSaveData ofd_packets/00139366 [08:07:34]File name is /storage/ofd_packets/00139366 [08:07:34]Write 328 bytes [08:07:34]NVStorageSaveData done [08:07:34]OFDSenderStorePacket done [08:07:34]KKMCreateOFDPacket done [08:07:34]NVStorageSaveData kkm_last_timestamp [08:07:34]File name is /storage/kkm_last_timestamp [08:07:34]Write 4 bytes [08:07:34]NVStorageSaveData done [08:07:34]ExternCall_PrintAddStr [08:07:34]wPrintStart [08:07:34]Write to MH i2c: 01 00 00 2F 35 64 [08:07:34]Write i2c OK [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: 01 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: 01 07 00 [08:07:34]MH_I2C_Read... [08:07:34]Read from MH i2c: 01 07 00 2F 35 00 00 00 00 00 FF 0F 79 [08:07:34]RasterBufferAndPrint [08:07:34]line Счет N : (3)335276 [08:07:34]line ИНН: 02508201610067 [08:07:34]line Контрольно-Кассовый Чек [08:07:34]line ПРОДАЖА [08:07:34]line Товар: 48741224 [08:07:34]line Сигареты Winston Super Slims Blue [08:07:34]line 1.000 * 139.00 [08:07:34]line = 139.00 [08:07:34]line НДС 12% НСП 1% [08:07:34]line > о реализуемом товаре [08:07:34]line ИТОГО: 139.00 [08:07:34]line НСП 1% : 1.23 [08:07:34]line НДС 12% : 14.76 [08:07:34]line Наличными: 139.00 [08:07:34]line Безнал.: 0.00 [08:07:34]line Место: АЗС № 101 "Партнер Нефть" [08:07:34]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:07:34]line СНО: Общий режим [08:07:34]line Чек 50 30.10.2024 08:07 [08:07:34]line Смена: 556 ФФД: 1.0 [08:07:34]line ЗНМ: 0300000081 [08:07:34]line РНМ: 0000000000091631 [08:07:34]line Версия ККМ: 001 [08:07:34]line ФМ: 0000000000874669 [08:07:34]line ФД: 139366 [08:07:34]line ФПД: 34507026984307 [08:07:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T080737&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139366&fm=34507026984307&tin=02508201610067®Number=0000000000091631&sum=13900 [08:07:35]line 0 [08:07:35]OFD Sender: Processing packet 139366 [packets to send 34, broken 33] [08:07:35]ProducePacketName [08:07:35]name=ofd_packets/00139366 [08:07:35]OFD Sender: To server: pG, [08:07:35]CommunicateWithHost lk.salyk.kg:30040 [08:07:35]ConnectInit lk.salyk.kg [08:07:35]written 0, free lines is 4095 [08:07:35]Connected sock=10 [08:07:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 24 33 22 01 3C 96 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 32 00 00 00 F4 03 04 00 49 E9 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 66 20 02 00 35 04 06 00 1F 62 4B 15 ED 73 AF 8C 58 E6 15 49 E0 FB [08:07:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 1A 96 47 00 46 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 38 37 34 36 36 39 10 04 04 00 66 20 02 00 F4 03 04 00 FA 94 21 67 B6 04 01 00 00 FB 05 28 1A D5 F6 F9 5C [08:07:35]CommunicateWithHost err = 0 [08:07:35]CheckOFDResponse [08:07:35]1017 (14) - 77093643461234 [08:07:35]1041 (16) - 0000000000874669 [08:07:35]1040 (4) - 139366 [08:07:35]1012 (4) - 30.10.2024 02:07 [08:07:35]1206 (1) - 0 [08:07:35]OFD Sender: Remove packet 139366 [08:07:35]ProducePacketName [08:07:35]name=ofd_packets/00139366 [08:07:35]NVStorageDeleteData [08:07:35]Write to MH i2c: 01 00 00 58 35 8D [08:07:35]Write i2c OK [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: 01 [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: 01 07 00 [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: 01 07 00 58 35 00 00 00 00 00 FB 0C 9B [08:07:35]RasterBufferAndPrint [08:07:35]line [08:07:35]line [08:07:35]line [08:07:35]line [08:07:35]line [08:07:35]written 0, free lines is 3332 [08:07:35]MH_Cut [08:07:35]Write to MH i2c: D1 01 00 5F 35 01 66 [08:07:35]Write i2c OK [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: D1 [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: D1 01 00 [08:07:35]MH_I2C_Read... [08:07:35]Read from MH i2c: D1 01 00 5F 35 00 65 [08:07:35]Write to MH i2c: 01 00 00 60 35 95 [08:07:35]Write i2c OK [08:07:35]MH_I2C_Read... [08:07:35]OFD Sender: No OFD packet to send [08:07:36]*** Cut start [08:07:36]*** Partial cut [08:07:36]*** CUTSNS_PIN = 1 [08:07:36]*** CUTSNS_PIN = 0 [08:07:36]*** Brake cut motor [08:07:36]Read from MH i2c: 01 [08:07:36]MH_I2C_Read... [08:07:36]*** Stop cut motor [08:07:36]*** Cut end [08:07:36]Read from MH i2c: 01 07 00 [08:07:36]MH_I2C_Read... [08:07:36]Read from MH i2c: 01 07 00 60 35 00 00 00 00 00 FF 0F AA [08:07:36]process_action close_receipt done [08:07:36]requested_data is exist [08:07:36]produce_requested_data [08:07:36]requested_item fm.sn is exist - process it [08:07:36]wFMCommunicate request_size=4 [08:07:36]MH_SAM_APDU [08:07:36]CAPDU: 80 11 00 00 [08:07:36]Write to MH i2c: E2 08 00 61 35 80 11 00 00 00 00 00 00 10 [08:07:36]Write i2c OK [08:07:36]MH_I2C_Read... [08:07:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:07:36]Read from MH i2c: E2 [08:07:36]MH_I2C_Read... [08:07:36]Read from MH i2c: E2 17 00 [08:07:36]MH_I2C_Read... [08:07:36]Read from MH i2c: E2 17 00 61 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6B [08:07:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:07:36]wFMCommunicate OK [08:07:36]requested_item fd.num is exist - process it [08:07:36]SAM_PROTO_GetFieldsCounters [08:07:36]wFMCommunicate request_size=4 [08:07:36]MH_SAM_APDU [08:07:36]CAPDU: 80 13 00 00 [08:07:36]Write to MH i2c: E2 08 00 62 35 80 13 00 00 00 00 00 00 13 [08:07:36]Write i2c OK [08:07:36]MH_I2C_Read... [08:07:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:07:37]Read from MH i2c: E2 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 62 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 62 00 62 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 66 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 83 [08:07:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 66 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 32 00 00 00 5E 04 04 00 32 00 00 00 57 04 04 00 33 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:07:37]wFMCommunicate OK [08:07:37]SAM_PROTO_GetFieldsCounters done [08:07:37]requested_item shift.num is exist - process it [08:07:37]requested_item shift.opened is exist - process it [08:07:37]req_shift_opened [08:07:37]FM_GetShiftState [08:07:37]SAM_PROTO_GetShiftState [08:07:37]wFMCommunicate request_size=4 [08:07:37]MH_SAM_APDU [08:07:37]CAPDU: 80 13 01 00 [08:07:37]Write to MH i2c: E2 08 00 63 35 80 13 01 00 00 00 00 00 15 [08:07:37]Write i2c OK [08:07:37]MH_I2C_Read... [08:07:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:07:37]Read from MH i2c: E2 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 0E 00 [08:07:37]MH_I2C_Read... [08:07:37]Read from MH i2c: E2 0E 00 63 35 00 09 00 01 86 76 21 67 00 00 00 00 90 00 A5 [08:07:37]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:07:37]wFMCommunicate OK [08:07:37]SAM_PROTO_GetShiftState done [08:07:37]FM_GetShiftState done [08:07:37]req_shift_opened done [08:07:37]requested_item shift.open_date is exist - process it [08:07:37]req_shift_open_date [08:07:37]req_shift_open_date done [08:07:37]produce_requested_data done [08:07:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139366,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:07:37]process_action_free close_receipt [08:07:37]json_value_free [08:07:37]json_value_free done [08:07:37]process_json_proto returns [08:07:37]Send response to host [08:07:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139366,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:07:37]free response buf [08:07:37]execute_script done [08:07:37]execute_script returns [08:07:37]free content buf [08:07:37]Sock 9.Close socket [08:07:37]Sock 9.Thread stoped [08:07:40]OFD Sender: No OFD packet to send [08:07:45]OFD Sender: No OFD packet to send [08:07:50]OFD Sender: No OFD packet to send [08:07:55]OFD Sender: No OFD packet to send [08:08:00]OFD Sender: No OFD packet to send [08:08:05]OFD Sender: No OFD packet to send [08:08:10]OFD Sender: No OFD packet to send [08:08:15]OFD Sender: No OFD packet to send [08:08:20]OFD Sender: No OFD packet to send [08:08:25]OFD Sender: No OFD packet to send [08:08:30]OFD Sender: No OFD packet to send [08:08:35]OFD Sender: No OFD packet to send [08:08:40]OFD Sender: No OFD packet to send [08:08:45]OFD Sender: No OFD packet to send [08:08:50]OFD Sender: No OFD packet to send [08:08: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:41]OFD Sender: No OFD packet to send [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:06]OFD Sender: No OFD packet to send [08:10:11]OFD Sender: No OFD packet to send [08:10:16]OFD Sender: No OFD packet to send [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:41]OFD Sender: No OFD packet to send [08:10:46]OFD Sender: No OFD packet to send [08:10:51]OFD Sender: No OFD packet to send [08:10:56]OFD Sender: No OFD packet to send [08:11:01]OFD Sender: No OFD packet to send [08:11:06]OFD Sender: No OFD packet to send [08:11:11]OFD Sender: No OFD packet to send [08:11:16]OFD Sender: No OFD packet to send [08:11:21]OFD Sender: No OFD packet to send [08:11:26]OFD Sender: No OFD packet to send [08:11:31]OFD Sender: No OFD packet to send [08:11:36]OFD Sender: No OFD packet to send [08:11:41]OFD Sender: No OFD packet to send [08:11:46]OFD Sender: No OFD packet to send [08:11:51]OFD Sender: No OFD packet to send [08:11:56]OFD Sender: No OFD packet to send [08:12:01]OFD Sender: No OFD packet to send [08:12:06]OFD Sender: No OFD packet to send [08:12:11]OFD Sender: No OFD packet to send [08:12:16]OFD Sender: No OFD packet to send [08:12:21]OFD Sender: No OFD packet to send [08:12:26]OFD Sender: No OFD packet to send [08:12:31]OFD Sender: No OFD packet to send [08:12:36]OFD Sender: No OFD packet to send [08:12:41]OFD Sender: No OFD packet to send [08:12:46]OFD Sender: No OFD packet to send [08:12:51]OFD Sender: No OFD packet to send [08:12:56]OFD Sender: No OFD packet to send [08:13:01]OFD Sender: No OFD packet to send [08:13:06]OFD Sender: No OFD packet to send [08:13:11]OFD Sender: No OFD packet to send [08:13:16]OFD Sender: No OFD packet to send [08:13:21]OFD Sender: No OFD packet to send [08:13:26]OFD Sender: No OFD packet to send [08:13:31]OFD Sender: No OFD packet to send [08:13:36]OFD Sender: No OFD packet to send [08:13:41]OFD Sender: No OFD packet to send [08:13:46]OFD Sender: No OFD packet to send [08:13:51]OFD Sender: No OFD packet to send [08:13:56]OFD Sender: No OFD packet to send [08:14:01]OFD Sender: No OFD packet to send [08:14:06]OFD Sender: No OFD packet to send [08:14:11]OFD Sender: No OFD packet to send [08:14:16]OFD Sender: No OFD packet to send [08:14:21]OFD Sender: No OFD packet to send [08:14:26]OFD Sender: No OFD packet to send [08:14:31]OFD Sender: No OFD packet to send [08:14:36]OFD Sender: No OFD packet to send [08:14:41]OFD Sender: No OFD packet to send [08:14:46]OFD Sender: No OFD packet to send [08:14:51]OFD Sender: No OFD packet to send [08:14:56]OFD Sender: No OFD packet to send [08:15:01]OFD Sender: No OFD packet to send [08:15:06]OFD Sender: No OFD packet to send [08:15:11]OFD Sender: No OFD packet to send [08:15:16]OFD Sender: No OFD packet to send [08:15:21]OFD Sender: No OFD packet to send [08:15:26]OFD Sender: No OFD packet to send [08:15:31]OFD Sender: No OFD packet to send [08:15:36]OFD Sender: No OFD packet to send [08:15:41]OFD Sender: No OFD packet to send [08:15:46]OFD Sender: No OFD packet to send [08:15:51]OFD Sender: No OFD packet to send [08:15:56]OFD Sender: No OFD packet to send [08:16:01]OFD Sender: No OFD packet to send [08:16:06]OFD Sender: No OFD packet to send [08:16:11]OFD Sender: No OFD packet to send [08:16:16]OFD Sender: No OFD packet to send [08:16:21]OFD Sender: No OFD packet to send [08:16:26]OFD Sender: No OFD packet to send [08:16:31]OFD Sender: No OFD packet to send [08:16:36]OFD Sender: No OFD packet to send [08:16:41]OFD Sender: No OFD packet to send [08:16:46]OFD Sender: No OFD packet to send [08:16:51]OFD Sender: No OFD packet to send [08:16:56]OFD Sender: No OFD packet to send [08:17:01]OFD Sender: No OFD packet to send [08:17:06]OFD Sender: No OFD packet to send [08:17:11]OFD Sender: No OFD packet to send [08:17:16]OFD Sender: No OFD packet to send [08:17:21]OFD Sender: No OFD packet to send [08:17:26]OFD Sender: No OFD packet to send [08:17:31]OFD Sender: No OFD packet to send [08:17:36]OFD Sender: No OFD packet to send [08:17:41]OFD Sender: No OFD packet to send [08:17:46]OFD Sender: No OFD packet to send [08:17:51]OFD Sender: No OFD packet to send [08:17:56]OFD Sender: No OFD packet to send [08:18:01]OFD Sender: No OFD packet to send [08:18:06]OFD Sender: No OFD packet to send [08:18:11]OFD Sender: No OFD packet to send [08:18:16]OFD Sender: No OFD packet to send [08:18:21]OFD Sender: No OFD packet to send [08:18:26]OFD Sender: No OFD packet to send [08:18:31]OFD Sender: No OFD packet to send [08:18:36]OFD Sender: No OFD packet to send [08:18:41]OFD Sender: No OFD packet to send [08:18:46]OFD Sender: No OFD packet to send [08:18:51]OFD Sender: No OFD packet to send [08:18:56]OFD Sender: No OFD packet to send [08:19:01]OFD Sender: No OFD packet to send [08:19:06]OFD Sender: No OFD packet to send [08:19:07]accept exits with 8 [08:19:07]New connection [08:19:07]New thread 3067284836 created [08:19:07]Thread 3067141476 joined [08:19:07]Waiting for new connection... [08:19:07] Sock 8.Parse request [08:19:07]Sock 8.Check first char [08:19:07]Sock 8.First char is OK [08:19:07]request: POST /json_proto HTTP/1.0 [08:19:07]Method: POST [08:19:07]URL: /json_proto [08:19:07]Method is POST - this is cgi request [08:19:07]url: /json_proto [08:19:07]query_string will be loaded in cgi processing [08:19:07]execute_cgi json_proto POST (null) [08:19:07]execute_cgi path=json_proto method=POST [08:19:07]POST find Content-Length [08:19:07]Host: 172.17.50.196:8080 [08:19:07]Content-Length: 932 [08:19:07]Content-Type: application/json [08:19:07] [08:19:07]POST finish read [08:19:07]Found Content-Length = 932 [08:19:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335282", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 378.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:07]execute_script... [08:19: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 : (3)335282", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 2.000, "sum" : 118.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 378.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:19:07]POST & json_proto [08:19:07]process_json_proto [08:19:07]json parsed OK: [08:19:07]protocol is kg_v1.0 [08:19:07]action value=close_receipt [08:19:07]process_action close_receipt [08:19:07]cmd_close_receipt [08:19:07]MH_GetDate [08:19:07]Write to MH i2c: F0 00 00 64 35 88 [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 09 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: F0 09 00 64 35 00 FF EB 21 67 72 0D 1C 67 05 [08:19:07]GetLastDocTimeStamp 1730275657 [08:19:07]current date 1730276351 [08:19:07]FM_GetShiftState [08:19:07]SAM_PROTO_GetShiftState [08:19:07]wFMCommunicate request_size=4 [08:19:07]MH_SAM_APDU [08:19:07]CAPDU: 80 13 01 00 [08:19:07]Write to MH i2c: E2 08 00 65 35 80 13 01 00 00 00 00 00 17 [08:19:07]Write i2c OK [08:19:07]MH_I2C_Read... [08:19:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:07]Read from MH i2c: E2 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 0E 00 [08:19:07]MH_I2C_Read... [08:19:07]Read from MH i2c: E2 0E 00 65 35 00 09 00 01 86 76 21 67 00 00 00 00 90 00 A7 [08:19:07]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:19:07]wFMCommunicate OK [08:19:07]SAM_PROTO_GetShiftState done [08:19:07]FM_GetShiftState done [08:19:07]opened in 1730246278 [08:19:07]opened+sec_in_day 1730332678 [08:19:07]quantity*price = 26000 [08:19:07]sum+1 = 26001 [08:19:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4011100977624 Шок Батончик Баунти 55г 2.000 * 59.00 = 118.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 378.00 НСП 1% : 3.34 НДС 12% : 40.14 Наличными: 378.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 51 30.10.2024 08:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139367 ФПД: 88737303430034 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T081911&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139367&fm=88737303430034&tin=02508201610067®Number=0000000000091631&sum=37800 0 [08:19:08]StoreToDocumentArchive [08:19:08]shift 556 fd 139367 [08:19:08]save to /storage/0556/doc_00139367 [08:19:08]save last doc name /storage/0556/doc_00139367 to /storage/kkm_last_doc_name [08:19:08]save OK [08:19:08]Clear old archive folders... [08:19:08]ProcessDocumentItem done err = 0, tmpTLVsize=395 [08:19:08]tlvbuf is 011937F0 [08:19:08]SAM_PROTO_ClearQueue [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 09 00 00 [08:19:08]Write to MH i2c: E2 08 00 72 35 80 09 00 00 00 00 00 00 19 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 72 35 00 90 00 1B [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]SAM_PROTO_ClearQueue done [08:19:08]KKMCreateOFDPacket [08:19:08]OFDProtocolAddRootSTLVToBuf [08:19:08]FM_MakeSignedData [08:19:08]FM_MakeSignedData [08:19:08]SAM_PROTO_SignData [08:19:08]wFMCommunicate request_size=4 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 01 02 [08:19:08]Write to MH i2c: E2 08 00 73 35 80 0D 01 02 00 00 00 00 21 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 73 35 00 90 00 1C [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=255 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 [08:19:08]Write to MH i2c: E2 02 01 74 35 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 00 00 D1 [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:08]Read from MH i2c: E2 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 [08:19:08]MH_I2C_Read... [08:19:08]Read from MH i2c: E2 03 00 74 35 00 90 00 1D [08:19:08]RAPDU: 90 00 [08:19:08]wFMCommunicate OK [08:19:08]wFMCommunicate request_size=154 [08:19:08]MH_SAM_APDU [08:19:08]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 A8 93 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 FF EB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 20 02 00 35 04 06 00 50 B4 C3 73 03 92 [08:19:08]Write to MH i2c: E2 9D 00 75 35 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 A8 93 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 FF EB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 20 02 00 35 04 06 00 50 B4 C3 73 03 92 00 00 FA [08:19:08]Write i2c OK [08:19:08]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 03 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 03 00 75 35 00 90 00 1E [08:19:09]RAPDU: 90 00 [08:19:09]wFMCommunicate OK [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 0D 03 02 [08:19:09]Write to MH i2c: E2 08 00 76 35 80 0D 03 02 00 00 00 00 26 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 0B 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 0B 00 76 35 00 6D 39 AE A7 7F B1 67 B6 90 00 6F [08:19:09]RAPDU: 6D 39 AE A7 7F B1 67 B6 90 00 [08:19:09]wFMCommunicate OK [08:19:09]SAM_PROTO_SignData done [08:19:09]FM_MakeSignedData done [08:19:09]CreateOFDProtocolMessage [08:19:09]wFMCommunicate request_size=4 [08:19:09]MH_SAM_APDU [08:19:09]CAPDU: 80 11 00 00 [08:19:09]Write to MH i2c: E2 08 00 77 35 80 11 00 00 00 00 00 00 26 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:09]Read from MH i2c: E2 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: E2 17 00 77 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 81 [08:19:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:19:09]wFMCommunicate OK [08:19:09]CreateOFDProtocolMessage done [08:19:09]OFDSenderStorePacket 139367 [08:19:09]StoreOFDPacket docnum=139367 [08:19:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9F 01 00 00 37 5A 97 01 B4 E7 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 A8 93 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 FF EB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 20 02 00 35 04 06 00 50 B4 C3 73 03 92 6D 39 AE A7 7F B1 67 B6 [08:19:09]CheckFolder [08:19:09]dirname=/storage/ofd_packets [08:19:09]CheckFolder done [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00139367 [08:19:09]NVStorageSaveData ofd_packets/00139367 [08:19:09]File name is /storage/ofd_packets/00139367 [08:19:09]Write 445 bytes [08:19:09]NVStorageSaveData done [08:19:09]OFDSenderStorePacket done [08:19:09]KKMCreateOFDPacket done [08:19:09]NVStorageSaveData kkm_last_timestamp [08:19:09]File name is /storage/kkm_last_timestamp [08:19:09]Write 4 bytes [08:19:09]NVStorageSaveData done [08:19:09]ExternCall_PrintAddStr [08:19:09]wPrintStart [08:19:09]Write to MH i2c: 01 00 00 78 35 AD [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 78 35 00 00 00 00 00 FF 0F C2 [08:19:09]RasterBufferAndPrint [08:19:09]line Счет N : (3)335282 [08:19:09]line ИНН: 02508201610067 [08:19:09]line Контрольно-Кассовый Чек [08:19:09]line ПРОДАЖА [08:19:09]line Товар: 2000036220012 [08:19:09]line Кофе Капучино XL(GABB TRADE) [08:19:09]line 2.000 * 130.00 [08:19:09]line = 260.00 [08:19:09]line НДС 12% НСП 1% [08:19:09]line > о реализуемом товаре [08:19:09]line Товар: 4011100977624 [08:19:09]line Шок Батончик Баунти 55г [08:19:09]line 2.000 * 59.00 [08:19:09]line = 118.00 [08:19:09]line НДС 12% НСП 1% [08:19:09]line > о реализуемом товаре [08:19:09]line ИТОГО: 378.00 [08:19:09]line НСП 1% : 3.34 [08:19:09]line НДС 12% : 40.14 [08:19:09]line Наличными: 378.00 [08:19:09]line Безнал.: 0.00 [08:19:09]line Место: АЗС № 101 "Партнер Нефть" [08:19:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:19:09]line СНО: Общий режим [08:19:09]line Чек 51 30.10.2024 08:19 [08:19:09]line Смена: 556 ФФД: 1.0 [08:19:09]line ЗНМ: 0300000081 [08:19:09]line РНМ: 0000000000091631 [08:19:09]line Версия ККМ: 001 [08:19:09]line ФМ: 0000000000874669 [08:19:09]line ФД: 139367 [08:19:09]line ФПД: 88737303430034 [08:19:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T081911&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139367&fm=88737303430034&tin=02508201610067®Number=0000000000091631&sum=37800 [08:19:09]line 0 [08:19:09]OFD Sender: Processing packet 139367 [packets to send 34, broken 33] [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00139367 [08:19:09]OFD Sender: To server: pG, [08:19:09]CommunicateWithHost lk.salyk.kg:30040 [08:19:09]ConnectInit lk.salyk.kg [08:19:09]written 0, free lines is 4095 [08:19:09]Connected sock=10 [08:19:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9F 01 00 00 37 5A 97 01 B4 E7 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 65 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 18 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 93 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AE 0F 00 00 00 00 07 04 06 00 A8 93 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 FF EB 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 20 02 00 35 04 06 00 50 B4 C3 73 03 92 6D 39 AE A7 7F B1 67 B6 [08:19:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 1B 9B 47 00 4E 41 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 67 20 02 00 F4 03 04 00 B0 97 21 67 B6 04 01 00 00 89 88 95 C5 42 66 5E 70 [08:19:09]CommunicateWithHost err = 0 [08:19:09]CheckOFDResponse [08:19:09]1017 (14) - 77093643461234 [08:19:09]1041 (16) - 0000000000874669 [08:19:09]1040 (4) - 139367 [08:19:09]1012 (4) - 30.10.2024 02:19 [08:19:09]1206 (1) - 0 [08:19:09]OFD Sender: Remove packet 139367 [08:19:09]ProducePacketName [08:19:09]name=ofd_packets/00139367 [08:19:09]NVStorageDeleteData [08:19:09]Write to MH i2c: 01 00 00 A7 35 DC [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: 01 07 00 A7 35 00 00 00 00 00 C9 0C B8 [08:19:09]RasterBufferAndPrint [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]line [08:19:09]written 0, free lines is 3283 [08:19:09]MH_Cut [08:19:09]Write to MH i2c: D1 01 00 AE 35 01 B5 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 01 00 [08:19:09]MH_I2C_Read... [08:19:09]Read from MH i2c: D1 01 00 AE 35 00 B4 [08:19:09]Write to MH i2c: 01 00 00 AF 35 E4 [08:19:09]Write i2c OK [08:19:09]MH_I2C_Read... [08:19:10]OFD Sender: No OFD packet to send [08:19:10]*** Cut start [08:19:10]*** Partial cut [08:19:10]*** CUTSNS_PIN = 1 [08:19:10]*** CUTSNS_PIN = 0 [08:19:10]*** Brake cut motor [08:19:11]Read from MH i2c: 01 [08:19:11]MH_I2C_Read... [08:19:11]*** Stop cut motor [08:19:11]*** Cut end [08:19:11]Read from MH i2c: 01 07 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: 01 07 00 AF 35 00 00 00 00 00 FF 0F F9 [08:19:11]process_action close_receipt done [08:19:11]requested_data is exist [08:19:11]produce_requested_data [08:19:11]requested_item fm.sn is exist - process it [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 11 00 00 [08:19:11]Write to MH i2c: E2 08 00 B0 35 80 11 00 00 00 00 00 00 5F [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 17 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 17 00 B0 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [08:19:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:19:11]wFMCommunicate OK [08:19:11]requested_item fd.num is exist - process it [08:19:11]SAM_PROTO_GetFieldsCounters [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 13 00 00 [08:19:11]Write to MH i2c: E2 08 00 B1 35 80 13 00 00 00 00 00 00 62 [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 62 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 62 00 B1 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 67 20 02 00 0E 04 04 00 2C 02 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 D6 [08:19:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 67 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 33 00 00 00 5E 04 04 00 33 00 00 00 57 04 04 00 34 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:19:11]wFMCommunicate OK [08:19:11]SAM_PROTO_GetFieldsCounters done [08:19:11]requested_item shift.num is exist - process it [08:19:11]requested_item shift.opened is exist - process it [08:19:11]req_shift_opened [08:19:11]FM_GetShiftState [08:19:11]SAM_PROTO_GetShiftState [08:19:11]wFMCommunicate request_size=4 [08:19:11]MH_SAM_APDU [08:19:11]CAPDU: 80 13 01 00 [08:19:11]Write to MH i2c: E2 08 00 B2 35 80 13 01 00 00 00 00 00 64 [08:19:11]Write i2c OK [08:19:11]MH_I2C_Read... [08:19:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:19:11]Read from MH i2c: E2 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 0E 00 [08:19:11]MH_I2C_Read... [08:19:11]Read from MH i2c: E2 0E 00 B2 35 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F4 [08:19:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:19:11]wFMCommunicate OK [08:19:11]SAM_PROTO_GetShiftState done [08:19:11]FM_GetShiftState done [08:19:11]req_shift_opened done [08:19:11]requested_item shift.open_date is exist - process it [08:19:11]req_shift_open_date [08:19:11]req_shift_open_date done [08:19:11]produce_requested_data done [08:19:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139367,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:19:11]process_action_free close_receipt [08:19:11]json_value_free [08:19:11]json_value_free done [08:19:11]process_json_proto returns [08:19:11]Send response to host [08:19:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139367,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:19:11]free response buf [08:19:11]execute_script done [08:19:11]execute_script returns [08:19:11]free content buf [08:19:11]Sock 8.Close socket [08:19:11]Sock 8.Thread stoped [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:05]OFD Sender: No OFD packet to send [08:20:10]OFD Sender: No OFD packet to send [08:20:15]OFD Sender: No OFD packet to send [08:20:20]OFD Sender: No OFD packet to send [08:20:25]OFD Sender: No OFD packet to send [08:20:30]OFD Sender: No OFD packet to send [08:20:35]OFD Sender: No OFD packet to send [08:20:40]OFD Sender: No OFD packet to send [08:20:45]OFD Sender: No OFD packet to send [08:20:50]OFD Sender: No OFD packet to send [08:20:55]OFD Sender: No OFD packet to send [08:21:00]OFD Sender: No OFD packet to send [08:21:05]OFD Sender: No OFD packet to send [08:21:10]OFD Sender: No OFD packet to send [08:21:15]OFD Sender: No OFD packet to send [08:21:20]OFD Sender: No OFD packet to send [08:21:25]OFD Sender: No OFD packet to send [08:21:30]OFD Sender: No OFD packet to send [08:21:35]OFD Sender: No OFD packet to send [08:21:40]OFD Sender: No OFD packet to send [08:21:45]OFD Sender: No OFD packet to send [08:21:50]OFD Sender: No OFD packet to send [08:21:55]OFD Sender: No OFD packet to send [08:22:00]OFD Sender: No OFD packet to send [08:22:05]OFD Sender: No OFD packet to send [08:22:10]OFD Sender: No OFD packet to send [08:22:15]OFD Sender: No OFD packet to send [08:22:20]OFD Sender: No OFD packet to send [08:22:25]OFD Sender: No OFD packet to send [08:22:30]OFD Sender: No OFD packet to send [08:22:35]OFD Sender: No OFD packet to send [08:22:40]OFD Sender: No OFD packet to send [08:22:45]OFD Sender: No OFD packet to send [08:22:50]OFD Sender: No OFD packet to send [08:22:55]OFD Sender: No OFD packet to send [08:23:00]OFD Sender: No OFD packet to send [08:23:05]OFD Sender: No OFD packet to send [08:23:10]OFD Sender: No OFD packet to send [08:23:15]OFD Sender: No OFD packet to send [08:23:20]OFD Sender: No OFD packet to send [08:23:25]OFD Sender: No OFD packet to send [08:23:30]OFD Sender: No OFD packet to send [08:23:35]OFD Sender: No OFD packet to send [08:23:40]OFD Sender: No OFD packet to send [08:23:45]OFD Sender: No OFD packet to send [08:23:50]OFD Sender: No OFD packet to send [08:23:55]OFD Sender: No OFD packet to send [08:24:00]OFD Sender: No OFD packet to send [08:24:05]OFD Sender: No OFD packet to send [08:24:10]OFD Sender: No OFD packet to send [08:24:15]OFD Sender: No OFD packet to send [08:24:20]OFD Sender: No OFD packet to send [08:24:25]OFD Sender: No OFD packet to send [08:24:30]OFD Sender: No OFD packet to send [08:24:35]OFD Sender: No OFD packet to send [08:24:40]OFD Sender: No OFD packet to send [08:24:45]OFD Sender: No OFD packet to send [08:24:50]OFD Sender: No OFD packet to send [08:24:55]OFD Sender: No OFD packet to send [08:25:00]OFD Sender: No OFD packet to send [08:25:05]OFD Sender: No OFD packet to send [08:25:10]OFD Sender: No OFD packet to send [08:25:15]OFD Sender: No OFD packet to send [08:25:20]OFD Sender: No OFD packet to send [08:25:25]OFD Sender: No OFD packet to send [08:25:30]OFD Sender: No OFD packet to send [08:25:35]OFD Sender: No OFD packet to send [08:25:40]OFD Sender: No OFD packet to send [08:25:45]OFD Sender: No OFD packet to send [08:25:50]OFD Sender: No OFD packet to send [08:25:55]OFD Sender: No OFD packet to send [08:26:00]OFD Sender: No OFD packet to send [08:26:05]OFD Sender: No OFD packet to send [08:26:10]OFD Sender: No OFD packet to send [08:26:11]accept exits with 9 [08:26:11]New connection [08:26:11]New thread 3067141476 created [08:26:11]Thread 3067284836 joined [08:26:11]Waiting for new connection... [08:26:11] Sock 9.Parse request [08:26:11]Sock 9.Check first char [08:26:11]Sock 9.First char is OK [08:26:11]request: POST /json_proto HTTP/1.0 [08:26:11]Method: POST [08:26:11]URL: /json_proto [08:26:11]Method is POST - this is cgi request [08:26:11]url: /json_proto [08:26:11]query_string will be loaded in cgi processing [08:26:11]execute_cgi json_proto POST (null) [08:26:11]execute_cgi path=json_proto method=POST [08:26:11]POST find Content-Length [08:26:11]Host: 172.17.50.196:8080 [08:26:11]Content-Length: 695 [08:26:11]Content-Type: application/json [08:26:11] [08:26:11]POST finish read [08:26:11]Found Content-Length = 695 [08:26:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335284", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:11]execute_script... [08:26:11]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335284", "tax_sys" : 0, "items" : [ { "code": "5000159381178", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 \u0422\u0440\u0438\u043E 82,5\u0433", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:26:11]POST & json_proto [08:26:11]process_json_proto [08:26:11]json parsed OK: [08:26:11]protocol is kg_v1.0 [08:26:11]action value=close_receipt [08:26:11]process_action close_receipt [08:26:11]cmd_close_receipt [08:26:11]MH_GetDate [08:26:11]Write to MH i2c: F0 00 00 B3 35 D7 [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: F0 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: F0 09 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: F0 09 00 B3 35 00 A7 ED 21 67 72 0D 1C 67 FE [08:26:11]GetLastDocTimeStamp 1730276351 [08:26:11]current date 1730276775 [08:26:11]FM_GetShiftState [08:26:11]SAM_PROTO_GetShiftState [08:26:11]wFMCommunicate request_size=4 [08:26:11]MH_SAM_APDU [08:26:11]CAPDU: 80 13 01 00 [08:26:11]Write to MH i2c: E2 08 00 B4 35 80 13 01 00 00 00 00 00 66 [08:26:11]Write i2c OK [08:26:11]MH_I2C_Read... [08:26:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:11]Read from MH i2c: E2 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 0E 00 [08:26:11]MH_I2C_Read... [08:26:11]Read from MH i2c: E2 0E 00 B4 35 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F6 [08:26:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:26:11]wFMCommunicate OK [08:26:11]SAM_PROTO_GetShiftState done [08:26:11]FM_GetShiftState done [08:26:11]opened in 1730246278 [08:26:11]opened+sec_in_day 1730332678 [08:26:11]quantity*price = 8900 [08:26:11]sum+1 = 8901 [08:26:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 52 30.10.2024 08:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139368 ФПД: 113041790013554 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082615&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139368&fm=113041790013554&tin=02508201610067®Number=0000000000091631&sum=8900 0 [08:26:12]StoreToDocumentArchive [08:26:12]shift 556 fd 139368 [08:26:12]save to /storage/0556/doc_00139368 [08:26:12]save last doc name /storage/0556/doc_00139368 to /storage/kkm_last_doc_name [08:26:12]save OK [08:26:12]Clear old archive folders... [08:26:12]ProcessDocumentItem done err = 0, tmpTLVsize=294 [08:26:12]tlvbuf is 011940F0 [08:26:12]SAM_PROTO_ClearQueue [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 09 00 00 [08:26:12]Write to MH i2c: E2 08 00 C1 35 80 09 00 00 00 00 00 00 68 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 C1 35 00 90 00 6A [08:26:12]RAPDU: 90 00 [08:26:12]wFMCommunicate OK [08:26:12]SAM_PROTO_ClearQueue done [08:26:12]KKMCreateOFDPacket [08:26:12]OFDProtocolAddRootSTLVToBuf [08:26:12]FM_MakeSignedData [08:26:12]FM_MakeSignedData [08:26:12]SAM_PROTO_SignData [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 0D 01 02 [08:26:12]Write to MH i2c: E2 08 00 C2 35 80 0D 01 02 00 00 00 00 70 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 C2 35 00 90 00 6B [08:26:12]RAPDU: 90 00 [08:26:12]wFMCommunicate OK [08:26:12]wFMCommunicate request_size=255 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A7 ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [08:26:12]Write to MH i2c: E2 02 01 C3 35 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A7 ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 2A [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 C3 35 00 90 00 6C [08:26:12]RAPDU: 90 00 [08:26:12]wFMCommunicate OK [08:26:12]wFMCommunicate request_size=53 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 68 20 02 00 35 04 06 00 66 CF 97 BD 10 72 [08:26:12]Write to MH i2c: E2 38 00 C4 35 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 68 20 02 00 35 04 06 00 66 CF 97 BD 10 72 00 00 00 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 03 00 C4 35 00 90 00 6D [08:26:12]RAPDU: 90 00 [08:26:12]wFMCommunicate OK [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 0D 03 02 [08:26:12]Write to MH i2c: E2 08 00 C5 35 80 0D 03 02 00 00 00 00 75 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 0B 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 0B 00 C5 35 00 CB 06 D2 97 A0 07 EF 23 90 00 69 [08:26:12]RAPDU: CB 06 D2 97 A0 07 EF 23 90 00 [08:26:12]wFMCommunicate OK [08:26:12]SAM_PROTO_SignData done [08:26:12]FM_MakeSignedData done [08:26:12]CreateOFDProtocolMessage [08:26:12]wFMCommunicate request_size=4 [08:26:12]MH_SAM_APDU [08:26:12]CAPDU: 80 11 00 00 [08:26:12]Write to MH i2c: E2 08 00 C6 35 80 11 00 00 00 00 00 00 75 [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:12]Read from MH i2c: E2 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 17 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: E2 17 00 C6 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [08:26:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:26:12]wFMCommunicate OK [08:26:12]CreateOFDProtocolMessage done [08:26:12]OFDSenderStorePacket 139368 [08:26:12]StoreOFDPacket docnum=139368 [08:26:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 E9 66 32 01 A6 C0 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A7 ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 68 20 02 00 35 04 06 00 66 CF 97 BD 10 72 CB 06 D2 97 A0 07 EF 23 [08:26:12]CheckFolder [08:26:12]dirname=/storage/ofd_packets [08:26:12]CheckFolder done [08:26:12]ProducePacketName [08:26:12]name=ofd_packets/00139368 [08:26:12]NVStorageSaveData ofd_packets/00139368 [08:26:12]File name is /storage/ofd_packets/00139368 [08:26:12]Write 344 bytes [08:26:12]NVStorageSaveData done [08:26:12]OFDSenderStorePacket done [08:26:12]KKMCreateOFDPacket done [08:26:12]NVStorageSaveData kkm_last_timestamp [08:26:12]File name is /storage/kkm_last_timestamp [08:26:12]Write 4 bytes [08:26:12]NVStorageSaveData done [08:26:12]ExternCall_PrintAddStr [08:26:12]wPrintStart [08:26:12]Write to MH i2c: 01 00 00 C7 35 FC [08:26:12]OFD Sender: Processing packet 139368 [packets to send 34, broken 33] [08:26:12]ProducePacketName [08:26:12]name=ofd_packets/00139368 [08:26:12]OFD Sender: To server: pG, [08:26:12]CommunicateWithHost lk.salyk.kg:30040 [08:26:12]ConnectInit lk.salyk.kg [08:26:12]Write i2c OK [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 07 00 [08:26:12]MH_I2C_Read... [08:26:12]Read from MH i2c: 01 07 00 C7 35 00 00 00 00 00 FF 0F 11 [08:26:12]RasterBufferAndPrint [08:26:12]line Счет N : (3)335284 [08:26:12]line ИНН: 02508201610067 [08:26:12]line Контрольно-Кассовый Чек [08:26:12]line ПРОДАЖА [08:26:12]line Товар: 5000159381178 [08:26:12]line Шок Батончик Баунти Трио 82,5г [08:26:12]line 1.000 * 89.00 [08:26:12]line = 89.00 [08:26:12]line НДС 12% НСП 1% [08:26:12]line > о реализуемом товаре [08:26:12]line ИТОГО: 89.00 [08:26:12]line НСП 1% : 0.79 [08:26:12]line НДС 12% : 9.45 [08:26:12]line Наличными: 89.00 [08:26:12]line Безнал.: 0.00 [08:26:12]line Место: АЗС № 101 "Партнер Нефть" [08:26:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:26:12]line СНО: Общий режим [08:26:12]line Чек 52 30.10.2024 08:26 [08:26:12]line Смена: 556 ФФД: 1.0 [08:26:12]line ЗНМ: 0300000081 [08:26:12]line РНМ: 0000000000091631 [08:26:12]line Версия ККМ: 001 [08:26:12]line ФМ: 0000000000874669 [08:26:12]line ФД: 139368 [08:26:12]line ФПД: 113041790013554 [08:26:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082615&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139368&fm=113041790013554&tin=02508201610067®Number=0000000000091631&sum=8900 [08:26:13]Connected sock=10 [08:26:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 E9 66 32 01 A6 C0 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 35 30 30 30 31 35 39 33 38 31 31 37 38 06 04 34 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 D0 A2 D1 80 D0 B8 D0 BE 20 38 32 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 34 00 00 00 F4 03 04 00 A7 ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 68 20 02 00 35 04 06 00 66 CF 97 BD 10 72 CB 06 D2 97 A0 07 EF 23 [08:26:13]line 0 [08:26:13]written 0, free lines is 4095 [08:26:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FC AB 47 00 DB 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 38 37 34 36 36 39 10 04 04 00 68 20 02 00 F4 03 04 00 58 99 21 67 B6 04 01 00 00 13 E4 59 78 8C C5 AA D8 [08:26:13]CommunicateWithHost err = 0 [08:26:13]CheckOFDResponse [08:26:13]1017 (14) - 77093643461234 [08:26:13]1041 (16) - 0000000000874669 [08:26:13]1040 (4) - 139368 [08:26:13]1012 (4) - 30.10.2024 02:26 [08:26:13]1206 (1) - 0 [08:26:13]OFD Sender: Remove packet 139368 [08:26:13]ProducePacketName [08:26:13]name=ofd_packets/00139368 [08:26:13]NVStorageDeleteData [08:26:13]Write to MH i2c: 01 00 00 F0 35 25 [08:26:13]Write i2c OK [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: 01 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: 01 07 00 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: 01 07 00 F0 35 00 00 00 00 00 0A 0D 43 [08:26:13]RasterBufferAndPrint [08:26:13]line [08:26:13]line [08:26:13]line [08:26:13]line [08:26:13]line [08:26:13]written 0, free lines is 3347 [08:26:13]MH_Cut [08:26:13]Write to MH i2c: D1 01 00 F7 35 01 FE [08:26:13]Write i2c OK [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: D1 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: D1 01 00 [08:26:13]MH_I2C_Read... [08:26:13]Read from MH i2c: D1 01 00 F7 35 00 FD [08:26:13]Write to MH i2c: 01 00 00 F8 35 2D [08:26:13]Write i2c OK [08:26:13]MH_I2C_Read... [08:26:13]OFD Sender: No OFD packet to send [08:26:14]*** Cut start [08:26:14]*** Partial cut [08:26:14]*** CUTSNS_PIN = 1 [08:26:14]*** CUTSNS_PIN = 0 [08:26:14]*** Brake cut motor [08:26:14]Read from MH i2c: 01 [08:26:14]MH_I2C_Read... [08:26:14]*** Stop cut motor [08:26:14]*** Cut end [08:26:14]Read from MH i2c: 01 07 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: 01 07 00 F8 35 00 00 00 00 00 FF 0F 42 [08:26:14]process_action close_receipt done [08:26:14]requested_data is exist [08:26:14]produce_requested_data [08:26:14]requested_item fm.sn is exist - process it [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 11 00 00 [08:26:14]Write to MH i2c: E2 08 00 F9 35 80 11 00 00 00 00 00 00 A8 [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:26:14]Read from MH i2c: E2 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 17 00 [08:26:14]MH_I2C_Read... [08:26:14]Read from MH i2c: E2 17 00 F9 35 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 03 [08:26:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:26:14]wFMCommunicate OK [08:26:14]requested_item fd.num is exist - process it [08:26:14]SAM_PROTO_GetFieldsCounters [08:26:14]wFMCommunicate request_size=4 [08:26:14]MH_SAM_APDU [08:26:14]CAPDU: 80 13 00 00 [08:26:14]Write to MH i2c: E2 08 00 FA 35 80 13 00 00 00 00 00 00 AB [08:26:14]Write i2c OK [08:26:14]MH_I2C_Read... [08:26:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:26:15]Read from MH i2c: E2 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 62 00 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 62 00 FA 35 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 68 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 23 [08:26:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 68 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 34 00 00 00 5E 04 04 00 34 00 00 00 57 04 04 00 35 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:26:15]wFMCommunicate OK [08:26:15]SAM_PROTO_GetFieldsCounters done [08:26:15]requested_item shift.num is exist - process it [08:26:15]requested_item shift.opened is exist - process it [08:26:15]req_shift_opened [08:26:15]FM_GetShiftState [08:26:15]SAM_PROTO_GetShiftState [08:26:15]wFMCommunicate request_size=4 [08:26:15]MH_SAM_APDU [08:26:15]CAPDU: 80 13 01 00 [08:26:15]Write to MH i2c: E2 08 00 FB 35 80 13 01 00 00 00 00 00 AD [08:26:15]Write i2c OK [08:26:15]MH_I2C_Read... [08:26:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:26:15]Read from MH i2c: E2 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 0E 00 [08:26:15]MH_I2C_Read... [08:26:15]Read from MH i2c: E2 0E 00 FB 35 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3D [08:26:15]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:26:15]wFMCommunicate OK [08:26:15]SAM_PROTO_GetShiftState done [08:26:15]FM_GetShiftState done [08:26:15]req_shift_opened done [08:26:15]requested_item shift.open_date is exist - process it [08:26:15]req_shift_open_date [08:26:15]req_shift_open_date done [08:26:15]produce_requested_data done [08:26:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139368,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:26:15]process_action_free close_receipt [08:26:15]json_value_free [08:26:15]json_value_free done [08:26:15]process_json_proto returns [08:26:15]Send response to host [08:26:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139368,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:26:15]free response buf [08:26:15]execute_script done [08:26:15]execute_script returns [08:26:15]free content buf [08:26:15]Sock 9.Close socket [08:26:15]Sock 9.Thread stoped [08:26:18]OFD Sender: No OFD packet to send [08:26:23]OFD Sender: No OFD packet to send [08:26:28]OFD Sender: No OFD packet to send [08:26:33]OFD Sender: No OFD packet to send [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:07]accept exits with 8 [08:27:07]New connection [08:27:07]New thread 3067284836 created [08:27:07]Thread 3067141476 joined [08:27:07]Waiting for new connection... [08:27:07] Sock 8.Parse request [08:27:07]Sock 8.Check first char [08:27:07]Sock 8.First char is OK [08:27:07]request: POST /json_proto HTTP/1.0 [08:27:07]Method: POST [08:27:07]URL: /json_proto [08:27:07]Method is POST - this is cgi request [08:27:07]url: /json_proto [08:27:07]query_string will be loaded in cgi processing [08:27:07]execute_cgi json_proto POST (null) [08:27:07]execute_cgi path=json_proto method=POST [08:27:07]POST find Content-Length [08:27:07]Host: 172.17.50.196:8080 [08:27:07]Content-Length: 934 [08:27:07]Content-Type: application/json [08:27:07] [08:27:07]POST finish read [08:27:07]Found Content-Length = 934 [08:27:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335285", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 574.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:07]execute_script... [08:27: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 : (3)335285", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 2.000, "sum" : 14.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 574.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:27:07]POST & json_proto [08:27:07]process_json_proto [08:27:07]json parsed OK: [08:27:07]protocol is kg_v1.0 [08:27:07]action value=close_receipt [08:27:07]process_action close_receipt [08:27:07]cmd_close_receipt [08:27:07]MH_GetDate [08:27:07]Write to MH i2c: F0 00 00 FC 35 20 [08:27:07]Write i2c OK [08:27:07]MH_I2C_Read... [08:27:07]Read from MH i2c: F0 [08:27:07]MH_I2C_Read... [08:27:07]Read from MH i2c: F0 09 00 [08:27:07]MH_I2C_Read... [08:27:07]Read from MH i2c: F0 09 00 FC 35 00 DF ED 21 67 72 0D 1C 67 7F [08:27:07]GetLastDocTimeStamp 1730276775 [08:27:07]current date 1730276831 [08:27:07]FM_GetShiftState [08:27:07]SAM_PROTO_GetShiftState [08:27:07]wFMCommunicate request_size=4 [08:27:07]MH_SAM_APDU [08:27:07]CAPDU: 80 13 01 00 [08:27:07]Write to MH i2c: E2 08 00 FD 35 80 13 01 00 00 00 00 00 AF [08:27:07]Write i2c OK [08:27:07]MH_I2C_Read... [08:27:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:07]Read from MH i2c: E2 [08:27:07]MH_I2C_Read... [08:27:07]Read from MH i2c: E2 0E 00 [08:27:07]MH_I2C_Read... [08:27:07]Read from MH i2c: E2 0E 00 FD 35 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3F [08:27:07]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:27:07]wFMCommunicate OK [08:27:07]SAM_PROTO_GetShiftState done [08:27:07]FM_GetShiftState done [08:27:07]opened in 1730246278 [08:27:07]opened+sec_in_day 1730332678 [08:27:07]quantity*price = 56000 [08:27:07]sum+1 = 56001 [08:27:07]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 2.000 * 7.00 = 14.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 574.00 НСП 1% : 5.08 НДС 12% : 60.96 Наличными: 574.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 53 30.10.2024 08:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139369 ФПД: 28513818205754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082711&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139369&fm=28513818205754&tin=02508201610067®Number=0000000000091631&sum=57400 0 [08:27:08]StoreToDocumentArchive [08:27:08]shift 556 fd 139369 [08:27:08]save to /storage/0556/doc_00139369 [08:27:08]save last doc name /storage/0556/doc_00139369 to /storage/kkm_last_doc_name [08:27:08]save OK [08:27:08]Clear old archive folders... [08:27:08]ProcessDocumentItem done err = 0, tmpTLVsize=399 [08:27:08]tlvbuf is 011A8D50 [08:27:08]SAM_PROTO_ClearQueue [08:27:08]wFMCommunicate request_size=4 [08:27:08]MH_SAM_APDU [08:27:08]CAPDU: 80 09 00 00 [08:27:08]Write to MH i2c: E2 08 00 0A 36 80 09 00 00 00 00 00 00 B2 [08:27:08]Write i2c OK [08:27:08]MH_I2C_Read... [08:27:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:27:08]Read from MH i2c: E2 [08:27:08]MH_I2C_Read... [08:27:08]Read from MH i2c: E2 03 00 [08:27:08]MH_I2C_Read... [08:27:08]Read from MH i2c: E2 03 00 0A 36 00 90 00 B4 [08:27:08]RAPDU: 90 00 [08:27:08]wFMCommunicate OK [08:27:08]SAM_PROTO_ClearQueue done [08:27:08]KKMCreateOFDPacket [08:27:08]OFDProtocolAddRootSTLVToBuf [08:27:08]FM_MakeSignedData [08:27:08]FM_MakeSignedData [08:27:08]SAM_PROTO_SignData [08:27:08]wFMCommunicate request_size=4 [08:27:08]MH_SAM_APDU [08:27:08]CAPDU: 80 0D 01 02 [08:27:08]Write to MH i2c: E2 08 00 0B 36 80 0D 01 02 00 00 00 00 BA [08:27:08]Write i2c OK [08:27:08]MH_I2C_Read... [08:27:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:27:08]Read from MH i2c: E2 [08:27:08]MH_I2C_Read... [08:27:08]Read from MH i2c: E2 03 00 [08:27:08]MH_I2C_Read... [08:27:08]Read from MH i2c: E2 03 00 0B 36 00 90 00 B5 [08:27:08]RAPDU: 90 00 [08:27:08]wFMCommunicate OK [08:27:08]wFMCommunicate request_size=255 [08:27:08]MH_SAM_APDU [08:27:08]CAPDU: 80 0D 02 02 FA 03 00 8F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 [08:27:08]Write to MH i2c: E2 02 01 0C 36 80 0D 02 02 FA 00 03 00 8F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 00 00 76 [08:27:08]Write i2c OK [08:27:08]MH_I2C_Read... [08:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:08]Read from MH i2c: E2 [08:27:08]MH_I2C_Read... [08:27:08]Read from MH i2c: E2 03 00 [08:27:08]MH_I2C_Read... [08:27:08]Read from MH i2c: E2 03 00 0C 36 00 90 00 B6 [08:27:08]RAPDU: 90 00 [08:27:08]wFMCommunicate OK [08:27:08]wFMCommunicate request_size=158 [08:27:08]MH_SAM_APDU [08:27:08]CAPDU: 80 0D 02 02 99 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 17 00 00 00 00 07 04 06 00 38 E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DF ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 20 02 00 35 04 06 00 19 EE E4 01 5E 3A [08:27:08]Write to MH i2c: E2 A1 00 0D 36 80 0D 02 02 99 00 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 17 00 00 00 00 07 04 06 00 38 E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DF ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 20 02 00 35 04 06 00 19 EE E4 01 5E 3A 00 00 03 [08:27:08]Write i2c OK [08:27:08]MH_I2C_Read... [08:27:08]OFD Sender: No OFD packet to send [08:27:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:27:08]Read from MH i2c: E2 [08:27:08]MH_I2C_Read... [08:27:08]Read from MH i2c: E2 03 00 [08:27:08]MH_I2C_Read... [08:27:08]Read from MH i2c: E2 03 00 0D 36 00 90 00 B7 [08:27:08]RAPDU: 90 00 [08:27:08]wFMCommunicate OK [08:27:08]wFMCommunicate request_size=4 [08:27:08]MH_SAM_APDU [08:27:08]CAPDU: 80 0D 03 02 [08:27:08]Write to MH i2c: E2 08 00 0E 36 80 0D 03 02 00 00 00 00 BF [08:27:08]Write i2c OK [08:27:08]MH_I2C_Read... [08:27:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:27:09]Read from MH i2c: E2 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: E2 0B 00 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: E2 0B 00 0E 36 00 58 31 68 FD 73 D0 20 A7 90 00 B8 [08:27:09]RAPDU: 58 31 68 FD 73 D0 20 A7 90 00 [08:27:09]wFMCommunicate OK [08:27:09]SAM_PROTO_SignData done [08:27:09]FM_MakeSignedData done [08:27:09]CreateOFDProtocolMessage [08:27:09]wFMCommunicate request_size=4 [08:27:09]MH_SAM_APDU [08:27:09]CAPDU: 80 11 00 00 [08:27:09]Write to MH i2c: E2 08 00 0F 36 80 11 00 00 00 00 00 00 BF [08:27:09]Write i2c OK [08:27:09]MH_I2C_Read... [08:27:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:09]Read from MH i2c: E2 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: E2 17 00 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: E2 17 00 0F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1A [08:27:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:27:09]wFMCommunicate OK [08:27:09]CreateOFDProtocolMessage done [08:27:09]OFDSenderStorePacket 139369 [08:27:09]StoreOFDPacket docnum=139369 [08:27:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A3 01 00 00 13 74 9B 01 01 5A 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 17 00 00 00 00 07 04 06 00 38 E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DF ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 20 02 00 35 04 06 00 19 EE E4 01 5E 3A 58 31 68 FD 73 D0 20 A7 [08:27:09]CheckFolder [08:27:09]dirname=/storage/ofd_packets [08:27:09]CheckFolder done [08:27:09]ProducePacketName [08:27:09]name=ofd_packets/00139369 [08:27:09]NVStorageSaveData ofd_packets/00139369 [08:27:09]File name is /storage/ofd_packets/00139369 [08:27:09]Write 449 bytes [08:27:09]NVStorageSaveData done [08:27:09]OFDSenderStorePacket done [08:27:09]KKMCreateOFDPacket done [08:27:09]NVStorageSaveData kkm_last_timestamp [08:27:09]File name is /storage/kkm_last_timestamp [08:27:09]Write 4 bytes [08:27:09]NVStorageSaveData done [08:27:09]ExternCall_PrintAddStr [08:27:09]wPrintStart [08:27:09]Write to MH i2c: 01 00 00 10 36 46 [08:27:09]Write i2c OK [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: 01 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: 01 07 00 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: 01 07 00 10 36 00 00 00 00 00 FF 0F 5B [08:27:09]RasterBufferAndPrint [08:27:09]line Счет N : (3)335285 [08:27:09]line ИНН: 02508201610067 [08:27:09]line Контрольно-Кассовый Чек [08:27:09]line ПРОДАЖА [08:27:09]line Товар: 4700003150936 [08:27:09]line Новая Водка Organic 40% 0,48л [08:27:09]line 1.000 * 560.00 [08:27:09]line = 560.00 [08:27:09]line НДС 12% НСП 1% [08:27:09]line > о реализуемом товаре [08:27:09]line Товар: 2000053020015 [08:27:09]line Бумажные стаканы 250мл 1шт [08:27:09]line 2.000 * 7.00 [08:27:09]line = 14.00 [08:27:09]line НДС 12% НСП 1% [08:27:09]line > о реализуемом товаре [08:27:09]line ИТОГО: 574.00 [08:27:09]line НСП 1% : 5.08 [08:27:09]line НДС 12% : 60.96 [08:27:09]line Наличными: 574.00 [08:27:09]line Безнал.: 0.00 [08:27:09]line Место: АЗС № 101 "Партнер Нефть" [08:27:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:27:09]line СНО: Общий режим [08:27:09]line Чек 53 30.10.2024 08:27 [08:27:09]line Смена: 556 ФФД: 1.0 [08:27:09]line ЗНМ: 0300000081 [08:27:09]line РНМ: 0000000000091631 [08:27:09]line Версия ККМ: 001 [08:27:09]line ФМ: 0000000000874669 [08:27:09]line ФД: 139369 [08:27:09]line ФПД: 28513818205754 [08:27:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T082711&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139369&fm=28513818205754&tin=02508201610067®Number=0000000000091631&sum=57400 [08:27:09]line 0 [08:27:09]OFD Sender: Processing packet 139369 [packets to send 34, broken 33] [08:27:09]ProducePacketName [08:27:09]name=ofd_packets/00139369 [08:27:09]OFD Sender: To server: pG, [08:27:09]CommunicateWithHost lk.salyk.kg:30040 [08:27:09]ConnectInit lk.salyk.kg [08:27:09]written 0, free lines is 4095 [08:27:09]Connected sock=10 [08:27:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A3 01 00 00 13 74 9B 01 01 5A 5A 03 01 00 03 00 8F 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 78 05 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 E0 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D0 17 00 00 00 00 07 04 06 00 38 E0 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 35 00 00 00 F4 03 04 00 DF ED 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 69 20 02 00 35 04 06 00 19 EE E4 01 5E 3A 58 31 68 FD 73 D0 20 A7 [08:27:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 93 FB 47 00 A1 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 38 37 34 36 36 39 10 04 04 00 69 20 02 00 F4 03 04 00 90 99 21 67 B6 04 01 00 00 36 55 63 00 38 8C E3 2B [08:27:09]CommunicateWithHost err = 0 [08:27:09]CheckOFDResponse [08:27:09]1017 (14) - 77093643461234 [08:27:09]1041 (16) - 0000000000874669 [08:27:09]1040 (4) - 139369 [08:27:09]1012 (4) - 30.10.2024 02:27 [08:27:09]1206 (1) - 0 [08:27:09]OFD Sender: Remove packet 139369 [08:27:09]ProducePacketName [08:27:09]name=ofd_packets/00139369 [08:27:09]NVStorageDeleteData [08:27:09]Write to MH i2c: 01 00 00 40 36 76 [08:27:09]Write i2c OK [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: 01 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: 01 07 00 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: 01 07 00 40 36 00 00 00 00 00 A1 0C 2A [08:27:09]RasterBufferAndPrint [08:27:09]line [08:27:09]line [08:27:09]line [08:27:09]line [08:27:09]line [08:27:09]written 0, free lines is 3242 [08:27:09]MH_Cut [08:27:09]Write to MH i2c: D1 01 00 47 36 01 4F [08:27:09]Write i2c OK [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: D1 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: D1 01 00 [08:27:09]MH_I2C_Read... [08:27:09]Read from MH i2c: D1 01 00 47 36 00 4E [08:27:09]Write to MH i2c: 01 00 00 48 36 7E [08:27:09]Write i2c OK [08:27:09]MH_I2C_Read... [08:27:09]OFD Sender: No OFD packet to send [08:27:10]*** Cut start [08:27:10]*** Partial cut [08:27:10]*** CUTSNS_PIN = 1 [08:27:10]*** CUTSNS_PIN = 0 [08:27:10]*** Brake cut motor [08:27:10]Read from MH i2c: 01 [08:27:10]MH_I2C_Read... [08:27:10]*** Stop cut motor [08:27:10]*** Cut end [08:27:10]Read from MH i2c: 01 07 00 [08:27:10]MH_I2C_Read... [08:27:10]Read from MH i2c: 01 07 00 48 36 00 00 00 00 00 FF 0F 93 [08:27:10]process_action close_receipt done [08:27:10]requested_data is exist [08:27:10]produce_requested_data [08:27:10]requested_item fm.sn is exist - process it [08:27:10]wFMCommunicate request_size=4 [08:27:10]MH_SAM_APDU [08:27:10]CAPDU: 80 11 00 00 [08:27:10]Write to MH i2c: E2 08 00 49 36 80 11 00 00 00 00 00 00 F9 [08:27:10]Write i2c OK [08:27:10]MH_I2C_Read... [08:27:10]Read from MH i2c: E2 [08:27:11]MH_I2C_Read... [08:27:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:27:11]Read from MH i2c: E2 17 00 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 17 00 49 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 54 [08:27:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:27:11]wFMCommunicate OK [08:27:11]requested_item fd.num is exist - process it [08:27:11]SAM_PROTO_GetFieldsCounters [08:27:11]wFMCommunicate request_size=4 [08:27:11]MH_SAM_APDU [08:27:11]CAPDU: 80 13 00 00 [08:27:11]Write to MH i2c: E2 08 00 4A 36 80 13 00 00 00 00 00 00 FC [08:27:11]Write i2c OK [08:27:11]MH_I2C_Read... [08:27:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:27:11]Read from MH i2c: E2 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 62 00 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 62 00 4A 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 69 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 78 [08:27:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 69 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 35 00 00 00 5E 04 04 00 35 00 00 00 57 04 04 00 36 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:27:11]wFMCommunicate OK [08:27:11]SAM_PROTO_GetFieldsCounters done [08:27:11]requested_item shift.num is exist - process it [08:27:11]requested_item shift.opened is exist - process it [08:27:11]req_shift_opened [08:27:11]FM_GetShiftState [08:27:11]SAM_PROTO_GetShiftState [08:27:11]wFMCommunicate request_size=4 [08:27:11]MH_SAM_APDU [08:27:11]CAPDU: 80 13 01 00 [08:27:11]Write to MH i2c: E2 08 00 4B 36 80 13 01 00 00 00 00 00 FE [08:27:11]Write i2c OK [08:27:11]MH_I2C_Read... [08:27:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:27:11]Read from MH i2c: E2 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 0E 00 [08:27:11]MH_I2C_Read... [08:27:11]Read from MH i2c: E2 0E 00 4B 36 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8E [08:27:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:27:11]wFMCommunicate OK [08:27:11]SAM_PROTO_GetShiftState done [08:27:11]FM_GetShiftState done [08:27:11]req_shift_opened done [08:27:11]requested_item shift.open_date is exist - process it [08:27:11]req_shift_open_date [08:27:11]req_shift_open_date done [08:27:11]produce_requested_data done [08:27:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139369,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:27:11]process_action_free close_receipt [08:27:11]json_value_free [08:27:11]json_value_free done [08:27:11]process_json_proto returns [08:27:11]Send response to host [08:27:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139369,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:27:11]free response buf [08:27:11]execute_script done [08:27:11]execute_script returns [08:27:11]free content buf [08:27:11]Sock 8.Close socket [08:27:11]Sock 8.Thread stoped [08:27:14]OFD Sender: No OFD packet to send [08:27:19]OFD Sender: No OFD packet to send [08:27:24]OFD Sender: No OFD packet to send [08:27:29]OFD Sender: No OFD packet to send [08:27:34]OFD Sender: No OFD packet to send [08:27:39]OFD Sender: No OFD packet to send [08:27:44]OFD Sender: No OFD packet to send [08:27:49]OFD Sender: No OFD packet to send [08:27:54]OFD Sender: No OFD packet to send [08:27:59]OFD Sender: No OFD packet to send [08:28:04]OFD Sender: No OFD packet to send [08:28:09]OFD Sender: No OFD packet to send [08:28:14]OFD Sender: No OFD packet to send [08:28:19]OFD Sender: No OFD packet to send [08:28:24]OFD Sender: No OFD packet to send [08:28:29]OFD Sender: No OFD packet to send [08:28:34]OFD Sender: No OFD packet to send [08:28:39]OFD Sender: No OFD packet to send [08:28:44]OFD Sender: No OFD packet to send [08:28:49]OFD Sender: No OFD packet to send [08:28:54]OFD Sender: No OFD packet to send [08:28:59]OFD Sender: No OFD packet to send [08:29:05]OFD Sender: No OFD packet to send [08:29:10]OFD Sender: No OFD packet to send [08:29:15]OFD Sender: No OFD packet to send [08:29:20]OFD Sender: No OFD packet to send [08:29:25]OFD Sender: No OFD packet to send [08:29:30]OFD Sender: No OFD packet to send [08:29:35]OFD Sender: No OFD packet to send [08:29:40]OFD Sender: No OFD packet to send [08:29:45]OFD Sender: No OFD packet to send [08:29:50]OFD Sender: No OFD packet to send [08:29:55]OFD Sender: No OFD packet to send [08:30:00]OFD Sender: No OFD packet to send [08:30:05]OFD Sender: No OFD packet to send [08:30:10]OFD Sender: No OFD packet to send [08:30:15]OFD Sender: No OFD packet to send [08:30:20]OFD Sender: No OFD packet to send [08:30:25]OFD Sender: No OFD packet to send [08:30:28]accept exits with 9 [08:30:28]New connection [08:30:28]New thread 3067141476 created [08:30:28]Thread 3067284836 joined [08:30:28]Waiting for new connection... [08:30:28] Sock 9.Parse request [08:30:28]Sock 9.Check first char [08:30:28]Sock 9.First char is OK [08:30:28]request: POST /json_proto HTTP/1.0 [08:30:28]Method: POST [08:30:28]URL: /json_proto [08:30:28]Method is POST - this is cgi request [08:30:28]url: /json_proto [08:30:28]query_string will be loaded in cgi processing [08:30:28]execute_cgi json_proto POST (null) [08:30:28]execute_cgi path=json_proto method=POST [08:30:28]POST find Content-Length [08:30:28]Host: 172.17.50.196:8080 [08:30:28]Content-Length: 740 [08:30:28]Content-Type: application/json [08:30:28] [08:30:28]POST finish read [08:30:28]Found Content-Length = 740 [08:30:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335286", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:28]execute_script... [08: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 : (3)335286", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:30:28]POST & json_proto [08:30:28]process_json_proto [08:30:28]json parsed OK: [08:30:28]protocol is kg_v1.0 [08:30:28]action value=close_receipt [08:30:28]process_action close_receipt [08:30:28]cmd_close_receipt [08:30:28]MH_GetDate [08:30:28]Write to MH i2c: F0 00 00 4C 36 71 [08:30:28]Write i2c OK [08:30:28]MH_I2C_Read... [08:30:28]Read from MH i2c: F0 [08:30:28]MH_I2C_Read... [08:30:28]Read from MH i2c: F0 09 00 [08:30:28]MH_I2C_Read... [08:30:28]Read from MH i2c: F0 09 00 4C 36 00 A8 EE 21 67 72 0D 1C 67 9A [08:30:28]GetLastDocTimeStamp 1730276831 [08:30:28]current date 1730277032 [08:30:28]FM_GetShiftState [08:30:28]SAM_PROTO_GetShiftState [08:30:28]wFMCommunicate request_size=4 [08:30:28]MH_SAM_APDU [08:30:28]CAPDU: 80 13 01 00 [08:30:28]Write to MH i2c: E2 08 00 4D 36 80 13 01 00 00 00 00 00 00 [08:30:28]Write i2c OK [08:30:28]MH_I2C_Read... [08:30:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:28]Read from MH i2c: E2 [08:30:28]MH_I2C_Read... [08:30:28]Read from MH i2c: E2 0E 00 [08:30:28]MH_I2C_Read... [08:30:28]Read from MH i2c: E2 0E 00 4D 36 00 09 00 01 86 76 21 67 00 00 00 00 90 00 90 [08:30:28]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:30:28]wFMCommunicate OK [08:30:28]SAM_PROTO_GetShiftState done [08:30:28]FM_GetShiftState done [08:30:28]opened in 1730246278 [08:30:28]opened+sec_in_day 1730332678 [08:30:28]quantity*price = 15900 [08:30:28]sum+1 = 15901 [08:30:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 54 30.10.2024 08:30 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139370 ФПД: 174736761380686 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T083032&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139370&fm=174736761380686&tin=02508201610067®Number=0000000000091631&sum=15900 0 [08:30:29]StoreToDocumentArchive [08:30:29]shift 556 fd 139370 [08:30:29]save to /storage/0556/doc_00139370 [08:30:29]save last doc name /storage/0556/doc_00139370 to /storage/kkm_last_doc_name [08:30:29]save OK [08:30:29]Clear old archive folders... [08:30:29]ProcessDocumentItem done err = 0, tmpTLVsize=265 [08:30:29]tlvbuf is 011A98D0 [08:30:29]SAM_PROTO_ClearQueue [08:30:29]wFMCommunicate request_size=4 [08:30:29]MH_SAM_APDU [08:30:29]CAPDU: 80 09 00 00 [08:30:29]Write to MH i2c: E2 08 00 5A 36 80 09 00 00 00 00 00 00 02 [08:30:29]Write i2c OK [08:30:29]MH_I2C_Read... [08:30:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:30:29]Read from MH i2c: E2 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 03 00 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 03 00 5A 36 00 90 00 04 [08:30:29]RAPDU: 90 00 [08:30:29]wFMCommunicate OK [08:30:29]SAM_PROTO_ClearQueue done [08:30:29]KKMCreateOFDPacket [08:30:29]OFDProtocolAddRootSTLVToBuf [08:30:29]FM_MakeSignedData [08:30:29]FM_MakeSignedData [08:30:29]SAM_PROTO_SignData [08:30:29]wFMCommunicate request_size=4 [08:30:29]MH_SAM_APDU [08:30:29]CAPDU: 80 0D 01 02 [08:30:29]Write to MH i2c: E2 08 00 5B 36 80 0D 01 02 00 00 00 00 0A [08:30:29]Write i2c OK [08:30:29]MH_I2C_Read... [08:30:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:30:29]Read from MH i2c: E2 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 03 00 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 03 00 5B 36 00 90 00 05 [08:30:29]RAPDU: 90 00 [08:30:29]wFMCommunicate OK [08:30:29]wFMCommunicate request_size=255 [08:30:29]MH_SAM_APDU [08:30:29]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A8 EE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 [08:30:29]Write to MH i2c: E2 02 01 5C 36 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A8 EE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 00 00 B8 [08:30:29]Write i2c OK [08:30:29]MH_I2C_Read... [08:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:29]Read from MH i2c: E2 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 03 00 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 03 00 5C 36 00 90 00 06 [08:30:29]RAPDU: 90 00 [08:30:29]wFMCommunicate OK [08:30:29]wFMCommunicate request_size=24 [08:30:29]MH_SAM_APDU [08:30:29]CAPDU: 80 0D 02 02 13 39 10 04 04 00 6A 20 02 00 35 04 06 00 9E EC 12 97 5F 4E [08:30:29]Write to MH i2c: E2 1B 00 5D 36 80 0D 02 02 13 00 39 10 04 04 00 6A 20 02 00 35 04 06 00 9E EC 12 97 5F 4E 00 00 2F [08:30:29]Write i2c OK [08:30:29]MH_I2C_Read... [08:30:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:30:29]Read from MH i2c: E2 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 03 00 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 03 00 5D 36 00 90 00 07 [08:30:29]RAPDU: 90 00 [08:30:29]wFMCommunicate OK [08:30:29]wFMCommunicate request_size=4 [08:30:29]MH_SAM_APDU [08:30:29]CAPDU: 80 0D 03 02 [08:30:29]Write to MH i2c: E2 08 00 5E 36 80 0D 03 02 00 00 00 00 0F [08:30:29]Write i2c OK [08:30:29]MH_I2C_Read... [08:30:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:30:29]Read from MH i2c: E2 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 0B 00 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 0B 00 5E 36 00 10 8B 6A C8 A7 31 1A 78 90 00 47 [08:30:29]RAPDU: 10 8B 6A C8 A7 31 1A 78 90 00 [08:30:29]wFMCommunicate OK [08:30:29]SAM_PROTO_SignData done [08:30:29]FM_MakeSignedData done [08:30:29]CreateOFDProtocolMessage [08:30:29]wFMCommunicate request_size=4 [08:30:29]MH_SAM_APDU [08:30:29]CAPDU: 80 11 00 00 [08:30:29]Write to MH i2c: E2 08 00 5F 36 80 11 00 00 00 00 00 00 0F [08:30:29]Write i2c OK [08:30:29]MH_I2C_Read... [08:30:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:29]Read from MH i2c: E2 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 17 00 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: E2 17 00 5F 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6A [08:30:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:30:29]wFMCommunicate OK [08:30:29]CreateOFDProtocolMessage done [08:30:29]OFDSenderStorePacket 139370 [08:30:29]StoreOFDPacket docnum=139370 [08:30:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 25 C3 15 01 1D 5F 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A8 EE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6A 20 02 00 35 04 06 00 9E EC 12 97 5F 4E 10 8B 6A C8 A7 31 1A 78 [08:30:29]CheckFolder [08:30:29]dirname=/storage/ofd_packets [08:30:29]CheckFolder done [08:30:29]ProducePacketName [08:30:29]name=ofd_packets/00139370 [08:30:29]NVStorageSaveData ofd_packets/00139370 [08:30:29]File name is /storage/ofd_packets/00139370 [08:30:29]Write 315 bytes [08:30:29]NVStorageSaveData done [08:30:29]OFDSenderStorePacket done [08:30:29]KKMCreateOFDPacket done [08:30:29]NVStorageSaveData kkm_last_timestamp [08:30:29]File name is /storage/kkm_last_timestamp [08:30:29]Write 4 bytes [08:30:29]NVStorageSaveData done [08:30:29]ExternCall_PrintAddStr [08:30:29]wPrintStart [08:30:29]Write to MH i2c: 01 00 00 60 36 96 [08:30:29]Write i2c OK [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: 01 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: 01 07 00 [08:30:29]MH_I2C_Read... [08:30:29]Read from MH i2c: 01 07 00 60 36 00 00 00 00 00 FF 0F AB [08:30:29]RasterBufferAndPrint [08:30:29]line Счет N : (3)335286 [08:30:29]line ИНН: 02508201610067 [08:30:29]line Контрольно-Кассовый Чек [08:30:29]line ПРОДАЖА [08:30:29]line Товар: 47803152 [08:30:29]line Сигареты Mevius Revo [08:30:29]line 1.000 * 159.00 [08:30:29]line = 159.00 [08:30:29]line НДС 12% НСП 1% [08:30:29]line > о реализуемом товаре [08:30:29]line ИТОГО: 159.00 [08:30:29]line НСП 1% : 1.41 [08:30:29]line НДС 12% : 16.88 [08:30:29]line Наличными: 0.00 [08:30:29]line Безнал.: 159.00 [08:30:29]line Место: АЗС № 101 "Партнер Нефть" [08:30:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:30:29]line СНО: Общий режим [08:30:29]line Чек 54 30.10.2024 08:30 [08:30:29]line Смена: 556 ФФД: 1.0 [08:30:29]line ЗНМ: 0300000081 [08:30:29]line РНМ: 0000000000091631 [08:30:29]line Версия ККМ: 001 [08:30:29]line Платежная система: Mbank [08:30:29]line ФМ: 0000000000874669 [08:30:29]line ФД: 139370 [08:30:29]line ФПД: 174736761380686 [08:30:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T083032&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139370&fm=174736761380686&tin=02508201610067®Number=0000000000091631&sum=15900 [08:30:30]line 0 [08:30:30]OFD Sender: Processing packet 139370 [packets to send 34, broken 33] [08:30:30]ProducePacketName [08:30:30]name=ofd_packets/00139370 [08:30:30]OFD Sender: To server: pG, [08:30:30]CommunicateWithHost lk.salyk.kg:30040 [08:30:30]ConnectInit lk.salyk.kg [08:30:30]written 0, free lines is 4095 [08:30:30]Connected sock=6 [08:30:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 25 C3 15 01 1D 5F 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 36 00 00 00 F4 03 04 00 A8 EE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6A 20 02 00 35 04 06 00 9E EC 12 97 5F 4E 10 8B 6A C8 A7 31 1A 78 [08:30:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 76 2B 47 00 28 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 38 37 34 36 36 39 10 04 04 00 6A 20 02 00 F4 03 04 00 59 9A 21 67 B6 04 01 00 00 FD 15 63 B3 A6 81 63 B6 [08:30:30]CommunicateWithHost err = 0 [08:30:30]CheckOFDResponse [08:30:30]1017 (14) - 77093643461234 [08:30:30]1041 (16) - 0000000000874669 [08:30:30]1040 (4) - 139370 [08:30:30]1012 (4) - 30.10.2024 02:30 [08:30:30]1206 (1) - 0 [08:30:30]OFD Sender: Remove packet 139370 [08:30:30]ProducePacketName [08:30:30]name=ofd_packets/00139370 [08:30:30]NVStorageDeleteData [08:30:30]Write to MH i2c: 01 00 00 89 36 BF [08:30:30]Write i2c OK [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: 01 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: 01 07 00 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: 01 07 00 89 36 00 00 00 00 00 18 0D EB [08:30:30]RasterBufferAndPrint [08:30:30]line [08:30:30]line [08:30:30]line [08:30:30]line [08:30:30]line [08:30:30]written 0, free lines is 3362 [08:30:30]MH_Cut [08:30:30]Write to MH i2c: D1 01 00 90 36 01 98 [08:30:30]Write i2c OK [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: D1 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: D1 01 00 [08:30:30]MH_I2C_Read... [08:30:30]Read from MH i2c: D1 01 00 90 36 00 97 [08:30:30]Write to MH i2c: 01 00 00 91 36 C7 [08:30:30]Write i2c OK [08:30:30]MH_I2C_Read... [08:30:30]OFD Sender: No OFD packet to send [08:30:31]*** Cut start [08:30:31]*** Partial cut [08:30:31]*** CUTSNS_PIN = 1 [08:30:31]*** CUTSNS_PIN = 0 [08:30:31]*** Brake cut motor [08:30:31]Read from MH i2c: 01 [08:30:31]MH_I2C_Read... [08:30:31]*** Stop cut motor [08:30:31]*** Cut end [08:30:31]Read from MH i2c: 01 07 00 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: 01 07 00 91 36 00 00 00 00 00 FF 0F DC [08:30:31]process_action close_receipt done [08:30:31]requested_data is exist [08:30:31]produce_requested_data [08:30:31]requested_item fm.sn is exist - process it [08:30:31]wFMCommunicate request_size=4 [08:30:31]MH_SAM_APDU [08:30:31]CAPDU: 80 11 00 00 [08:30:31]Write to MH i2c: E2 08 00 92 36 80 11 00 00 00 00 00 00 42 [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:30:31]Read from MH i2c: E2 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: E2 17 00 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: E2 17 00 92 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9D [08:30:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:30:31]wFMCommunicate OK [08:30:31]requested_item fd.num is exist - process it [08:30:31]SAM_PROTO_GetFieldsCounters [08:30:31]wFMCommunicate request_size=4 [08:30:31]MH_SAM_APDU [08:30:31]CAPDU: 80 13 00 00 [08:30:31]Write to MH i2c: E2 08 00 93 36 80 13 00 00 00 00 00 00 45 [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:30:31]Read from MH i2c: E2 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: E2 62 00 [08:30:31]MH_I2C_Read... [08:30:31]Read from MH i2c: E2 62 00 93 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6A 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 C5 [08:30:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6A 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 36 00 00 00 5E 04 04 00 36 00 00 00 57 04 04 00 37 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:30:31]wFMCommunicate OK [08:30:31]SAM_PROTO_GetFieldsCounters done [08:30:31]requested_item shift.num is exist - process it [08:30:31]requested_item shift.opened is exist - process it [08:30:31]req_shift_opened [08:30:31]FM_GetShiftState [08:30:31]SAM_PROTO_GetShiftState [08:30:31]wFMCommunicate request_size=4 [08:30:31]MH_SAM_APDU [08:30:31]CAPDU: 80 13 01 00 [08:30:31]Write to MH i2c: E2 08 00 94 36 80 13 01 00 00 00 00 00 47 [08:30:31]Write i2c OK [08:30:31]MH_I2C_Read... [08:30:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:30:32]Read from MH i2c: E2 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 0E 00 [08:30:32]MH_I2C_Read... [08:30:32]Read from MH i2c: E2 0E 00 94 36 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D7 [08:30:32]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:30:32]wFMCommunicate OK [08:30:32]SAM_PROTO_GetShiftState done [08:30:32]FM_GetShiftState done [08:30:32]req_shift_opened done [08:30:32]requested_item shift.open_date is exist - process it [08:30:32]req_shift_open_date [08:30:32]req_shift_open_date done [08:30:32]produce_requested_data done [08:30:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139370,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:30:32]process_action_free close_receipt [08:30:32]json_value_free [08:30:32]json_value_free done [08:30:32]process_json_proto returns [08:30:32]Send response to host [08:30:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139370,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:30:32]free response buf [08:30:32]execute_script done [08:30:32]execute_script returns [08:30:32]free content buf [08:30:32]Sock 9.Close socket [08:30:32]Sock 9.Thread stoped [08:30:35]OFD Sender: No OFD packet to send [08:30:40]OFD Sender: No OFD packet to send [08:30:45]OFD Sender: No OFD packet to send [08:30:50]OFD Sender: No OFD packet to send [08:30:55]OFD Sender: No OFD packet to send [08:31:00]OFD Sender: No OFD packet to send [08:31:05]OFD Sender: No OFD packet to send [08:31:10]OFD Sender: No OFD packet to send [08:31:15]OFD Sender: No OFD packet to send [08:31:20]OFD Sender: No OFD packet to send [08:31:25]OFD Sender: No OFD packet to send [08:31:30]OFD Sender: No OFD packet to send [08:31:32]accept exits with 8 [08:31:32]New connection [08:31:32]New thread 3067284836 created [08:31:32]Thread 3067141476 joined [08:31:32]Waiting for new connection... [08:31:32] Sock 8.Parse request [08:31:32]Sock 8.Check first char [08:31:32]Sock 8.First char is OK [08:31:32]request: POST /json_proto HTTP/1.0 [08:31:32]Method: POST [08:31:32]URL: /json_proto [08:31:32]Method is POST - this is cgi request [08:31:32]url: /json_proto [08:31:32]query_string will be loaded in cgi processing [08:31:32]execute_cgi json_proto POST (null) [08:31:32]execute_cgi path=json_proto method=POST [08:31:32]POST find Content-Length [08:31:32]Host: 172.17.50.196:8080 [08:31:32]Content-Length: 679 [08:31:32]Content-Type: application/json [08:31:32] [08:31:32]POST finish read [08:31:32]Found Content-Length = 679 [08:31:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:32]execute_script... [08:31: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)1094314", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 700.00, "total" : 700.00, "payments": [ { "type": 0, "sum" : 700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:31:32]POST & json_proto [08:31:32]process_json_proto [08:31:32]json parsed OK: [08:31:32]protocol is kg_v1.0 [08:31:32]action value=close_receipt [08:31:32]process_action close_receipt [08:31:32]cmd_close_receipt [08:31:32]MH_GetDate [08:31:32]Write to MH i2c: F0 00 00 95 36 BA [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 09 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: F0 09 00 95 36 00 E8 EE 21 67 72 0D 1C 67 23 [08:31:32]GetLastDocTimeStamp 1730277032 [08:31:32]current date 1730277096 [08:31:32]FM_GetShiftState [08:31:32]SAM_PROTO_GetShiftState [08:31:32]wFMCommunicate request_size=4 [08:31:32]MH_SAM_APDU [08:31:32]CAPDU: 80 13 01 00 [08:31:32]Write to MH i2c: E2 08 00 96 36 80 13 01 00 00 00 00 00 49 [08:31:32]Write i2c OK [08:31:32]MH_I2C_Read... [08:31:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:32]Read from MH i2c: E2 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0E 00 [08:31:32]MH_I2C_Read... [08:31:32]Read from MH i2c: E2 0E 00 96 36 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D9 [08:31:32]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:31:32]wFMCommunicate OK [08:31:32]SAM_PROTO_GetShiftState done [08:31:32]FM_GetShiftState done [08:31:32]opened in 1730246278 [08:31:32]opened+sec_in_day 1730332678 [08:31:32]quantity*price = 70044 [08:31:32]sum+1 = 70045 [08:31:32]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.44 ИТОГО: 700.00 Внесено: 700.00 СДАЧА: 0.00 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 700.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 55 30.10.2024 08:31 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139371 ФПД: 119701330597118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T083136&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139371&fm=119701330597118&tin=02508201610067®Number=0000000000091631&sum=70000 [08:31:33]StoreToDocumentArchive [08:31:33]shift 556 fd 139371 [08:31:33]save to /storage/0556/doc_00139371 [08:31:33]save last doc name /storage/0556/doc_00139371 to /storage/kkm_last_doc_name [08:31:33]save OK [08:31:33]Clear old archive folders... [08:31:33]ProcessDocumentItem done err = 0, tmpTLVsize=251 [08:31:33]tlvbuf is 011676B0 [08:31:33]SAM_PROTO_ClearQueue [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 09 00 00 [08:31:33]Write to MH i2c: E2 08 00 A3 36 80 09 00 00 00 00 00 00 4B [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 A3 36 00 90 00 4D [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_ClearQueue done [08:31:33]KKMCreateOFDPacket [08:31:33]OFDProtocolAddRootSTLVToBuf [08:31:33]FM_MakeSignedData [08:31:33]FM_MakeSignedData [08:31:33]SAM_PROTO_SignData [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 01 02 [08:31:33]Write to MH i2c: E2 08 00 A4 36 80 0D 01 02 00 00 00 00 53 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 A4 36 00 90 00 4E [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=255 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 E8 EE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 20 02 00 35 04 06 00 6C [08:31:33]Write to MH i2c: E2 02 01 A5 36 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 37 00 00 00 F4 03 04 00 E8 EE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 20 02 00 35 04 06 00 6C 00 00 AE [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 A5 36 00 90 00 4F [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=10 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 02 02 05 DE 23 4A 14 FE [08:31:33]Write to MH i2c: E2 0D 00 A6 36 80 0D 02 02 05 00 DE 23 4A 14 FE 00 00 BD [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 03 00 A6 36 00 90 00 50 [08:31:33]RAPDU: 90 00 [08:31:33]wFMCommunicate OK [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 0D 03 02 [08:31:33]Write to MH i2c: E2 08 00 A7 36 80 0D 03 02 00 00 00 00 58 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 0B 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 0B 00 A7 36 00 85 BB FC D1 11 EA BF 4B 90 00 6B [08:31:33]RAPDU: 85 BB FC D1 11 EA BF 4B 90 00 [08:31:33]wFMCommunicate OK [08:31:33]SAM_PROTO_SignData done [08:31:33]FM_MakeSignedData done [08:31:33]CreateOFDProtocolMessage [08:31:33]wFMCommunicate request_size=4 [08:31:33]MH_SAM_APDU [08:31:33]CAPDU: 80 11 00 00 [08:31:33]Write to MH i2c: E2 08 00 A8 36 80 11 00 00 00 00 00 00 58 [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:33]Read from MH i2c: E2 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 17 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: E2 17 00 A8 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B3 [08:31:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:31:33]wFMCommunicate OK [08:31:33]CreateOFDProtocolMessage done [08:31:33]OFDSenderStorePacket 139371 [08:31:33]StoreOFDPacket docnum=139371 [08:31:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 E6 33 07 01 47 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E8 EE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 20 02 00 35 04 06 00 6C DE 23 4A 14 FE 85 BB FC D1 11 EA BF 4B [08:31:33]CheckFolder [08:31:33]dirname=/storage/ofd_packets [08:31:33]CheckFolder done [08:31:33]ProducePacketName [08:31:33]name=ofd_packets/00139371 [08:31:33]NVStorageSaveData ofd_packets/00139371 [08:31:33]File name is /storage/ofd_packets/00139371 [08:31:33]Write 301 bytes [08:31:33]NVStorageSaveData done [08:31:33]OFDSenderStorePacket done [08:31:33]KKMCreateOFDPacket done [08:31:33]NVStorageSaveData kkm_last_timestamp [08:31:33]File name is /storage/kkm_last_timestamp [08:31:33]Write 4 bytes [08:31:33]NVStorageSaveData done [08:31:33]OFD Sender: Processing packet 139371 [packets to send 34, broken 33] [08:31:33]ProducePacketName [08:31:33]name=ofd_packets/00139371 [08:31:33]OFD Sender: To server: pG, [08:31:33]CommunicateWithHost lk.salyk.kg:30040 [08:31:33]ConnectInit lk.salyk.kg [08:31:33]ExternCall_PrintAddStr [08:31:33]wPrintStart [08:31:33]Write to MH i2c: 01 00 00 A9 36 DF [08:31:33]Write i2c OK [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 07 00 [08:31:33]MH_I2C_Read... [08:31:33]Read from MH i2c: 01 07 00 A9 36 00 00 00 00 00 FF 0F F4 [08:31:33]RasterBufferAndPrint [08:31:33]line Счет N : (1)1094314 [08:31:33]line ИНН: 02508201610067 [08:31:33]line Контрольно-Кассовый Чек [08:31:33]line ПРОДАЖА [08:31:33]line ТРК (МРК, ГНК) : 53 [08:31:33]line Товар: 2710124130 [08:31:33]line Аи-92-К-2 [08:31:33]line 10.470 * 66.90 [08:31:33]line = 700.44 [08:31:33]line НДС 12% НСП 1% [08:31:33]line > о реализуемом товаре [08:31:33]line ОКРУГЛЕНИЕ: -0.44 [08:31:33]line ИТОГО: 700.00 [08:31:33]line Внесено: 700.00 [08:31:33]line СДАЧА: 0.00 [08:31:33]line НСП 1% : 6.20 [08:31:33]line НДС 12% : 74.38 [08:31:33]line Наличными: 700.00 [08:31:33]line Безнал.: 0.00 [08:31:33]line Место: АЗС № 101 "Партнер Нефть" [08:31:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:31:33]line СНО: Общий режим [08:31:33]line Чек 55 30.10.2024 08:31 [08:31:33]line Смена: 556 ФФД: 1.0 [08:31:33]line ЗНМ: 0300000081 [08:31:33]line РНМ: 0000000000091631 [08:31:33]line Версия ККМ: 001 [08:31:33]line ФМ: 0000000000874669 [08:31:33]line ФД: 139371 [08:31:33]line ФПД: 119701330597118 [08:31:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T083136&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139371&fm=119701330597118&tin=02508201610067®Number=0000000000091631&sum=70000 [08:31:34]Connected sock=11 [08:31:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 E6 33 07 01 47 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 11 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6C 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0E 1D 00 00 00 00 07 04 06 00 70 11 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 37 00 00 00 F4 03 04 00 E8 EE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 20 02 00 35 04 06 00 6C DE 23 4A 14 FE 85 BB FC D1 11 EA BF 4B [08:31:34]written 0, free lines is 4095 [08:31:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 AE 8D 47 00 3A D7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6B 20 02 00 F4 03 04 00 99 9A 21 67 B6 04 01 00 00 3D 7F E8 2B 6A 3B 1E 7D [08:31:34]CommunicateWithHost err = 0 [08:31:34]CheckOFDResponse [08:31:34]1017 (14) - 77093643461234 [08:31:34]1041 (16) - 0000000000874669 [08:31:34]1040 (4) - 139371 [08:31:34]1012 (4) - 30.10.2024 02:31 [08:31:34]1206 (1) - 0 [08:31:34]OFD Sender: Remove packet 139371 [08:31:34]ProducePacketName [08:31:34]name=ofd_packets/00139371 [08:31:34]NVStorageDeleteData [08:31:34]Write to MH i2c: 01 00 00 D4 36 0A [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: 01 07 00 D4 36 00 00 00 00 00 E8 0C 05 [08:31:34]RasterBufferAndPrint [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]line [08:31:34]written 0, free lines is 3310 [08:31:34]MH_Cut [08:31:34]Write to MH i2c: D1 01 00 DB 36 01 E3 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 01 00 [08:31:34]MH_I2C_Read... [08:31:34]Read from MH i2c: D1 01 00 DB 36 00 E2 [08:31:34]Write to MH i2c: 01 00 00 DC 36 12 [08:31:34]Write i2c OK [08:31:34]MH_I2C_Read... [08:31:34]OFD Sender: No OFD packet to send [08:31:35]*** Cut start [08:31:35]*** Partial cut [08:31:35]*** CUTSNS_PIN = 1 [08:31:35]*** CUTSNS_PIN = 0 [08:31:35]*** Brake cut motor [08:31:35]Read from MH i2c: 01 [08:31:35]MH_I2C_Read... [08:31:35]*** Stop cut motor [08:31:35]*** Cut end [08:31:35]Read from MH i2c: 01 07 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: 01 07 00 DC 36 00 00 00 00 00 FF 0F 27 [08:31:35]process_action close_receipt done [08:31:35]requested_data is exist [08:31:35]produce_requested_data [08:31:35]requested_item fm.sn is exist - process it [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 11 00 00 [08:31:35]Write to MH i2c: E2 08 00 DD 36 80 11 00 00 00 00 00 00 8D [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:31:35]Read from MH i2c: E2 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 17 00 [08:31:35]MH_I2C_Read... [08:31:35]Read from MH i2c: E2 17 00 DD 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E8 [08:31:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:31:35]wFMCommunicate OK [08:31:35]requested_item fd.num is exist - process it [08:31:35]SAM_PROTO_GetFieldsCounters [08:31:35]wFMCommunicate request_size=4 [08:31:35]MH_SAM_APDU [08:31:35]CAPDU: 80 13 00 00 [08:31:35]Write to MH i2c: E2 08 00 DE 36 80 13 00 00 00 00 00 00 90 [08:31:35]Write i2c OK [08:31:35]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 62 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 62 00 DE 36 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6B 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 14 [08:31:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6B 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 37 00 00 00 5E 04 04 00 37 00 00 00 57 04 04 00 38 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:31:36]wFMCommunicate OK [08:31:36]SAM_PROTO_GetFieldsCounters done [08:31:36]requested_item shift.num is exist - process it [08:31:36]requested_item shift.opened is exist - process it [08:31:36]req_shift_opened [08:31:36]FM_GetShiftState [08:31:36]SAM_PROTO_GetShiftState [08:31:36]wFMCommunicate request_size=4 [08:31:36]MH_SAM_APDU [08:31:36]CAPDU: 80 13 01 00 [08:31:36]Write to MH i2c: E2 08 00 DF 36 80 13 01 00 00 00 00 00 92 [08:31:36]Write i2c OK [08:31:36]MH_I2C_Read... [08:31:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:31:36]Read from MH i2c: E2 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 0E 00 [08:31:36]MH_I2C_Read... [08:31:36]Read from MH i2c: E2 0E 00 DF 36 00 09 00 01 86 76 21 67 00 00 00 00 90 00 22 [08:31:36]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:31:36]wFMCommunicate OK [08:31:36]SAM_PROTO_GetShiftState done [08:31:36]FM_GetShiftState done [08:31:36]req_shift_opened done [08:31:36]requested_item shift.open_date is exist - process it [08:31:36]req_shift_open_date [08:31:36]req_shift_open_date done [08:31:36]produce_requested_data done [08:31:36]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139371,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:31:36]process_action_free close_receipt [08:31:36]json_value_free [08:31:36]json_value_free done [08:31:36]process_json_proto returns [08:31:36]Send response to host [08:31:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139371,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:31:36]free response buf [08:31:36]execute_script done [08:31:36]execute_script returns [08:31:36]free content buf [08:31:36]Sock 8.Close socket [08:31:36]Sock 8.Thread stoped [08:31:39]OFD Sender: No OFD packet to send [08:31:44]OFD Sender: No OFD packet to send [08:31:49]OFD Sender: No OFD packet to send [08:31:54]OFD Sender: No OFD packet to send [08:31:59]OFD Sender: No OFD packet to send [08:32:04]OFD Sender: No OFD packet to send [08:32:09]OFD Sender: No OFD packet to send [08:32:14]OFD Sender: No OFD packet to send [08:32:19]OFD Sender: No OFD packet to send [08:32:24]OFD Sender: No OFD packet to send [08:32:29]OFD Sender: No OFD packet to send [08:32:34]OFD Sender: No OFD packet to send [08:32:39]OFD Sender: No OFD packet to send [08:32:44]OFD Sender: No OFD packet to send [08:32:49]OFD Sender: No OFD packet to send [08:32:54]OFD Sender: No OFD packet to send [08:32:59]OFD Sender: No OFD packet to send [08:33:02]accept exits with 9 [08:33:02]New connection [08:33:02]New thread 3067141476 created [08:33:02]Thread 3067284836 joined [08:33:02]Waiting for new connection... [08:33:02] Sock 9.Parse request [08:33:02]Sock 9.Check first char [08:33:02]Sock 9.First char is OK [08:33:02]request: POST /json_proto HTTP/1.0 [08:33:02]Method: POST [08:33:02]URL: /json_proto [08:33:02]Method is POST - this is cgi request [08:33:02]url: /json_proto [08:33:02]query_string will be loaded in cgi processing [08:33:02]execute_cgi json_proto POST (null) [08:33:02]execute_cgi path=json_proto method=POST [08:33:02]POST find Content-Length [08:33:02]Host: 172.17.50.196:8080 [08:33:02]Content-Length: 749 [08:33:02]Content-Type: application/json [08:33:02] [08:33:02]POST finish read [08:33:02]Found Content-Length = 749 [08:33:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335287", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 139.00, "quantity" : 2.000, "sum" : 278.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" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:02]execute_script... [08:33: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 : (3)335287", "tax_sys" : 0, "items" : [ { "code": "48744997", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Compact Blue", "price" : 139.00, "quantity" : 2.000, "sum" : 278.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" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:33:02]POST & json_proto [08:33:02]process_json_proto [08:33:02]json parsed OK: [08:33:02]protocol is kg_v1.0 [08:33:02]action value=close_receipt [08:33:02]process_action close_receipt [08:33:02]cmd_close_receipt [08:33:02]MH_GetDate [08:33:02]Write to MH i2c: F0 00 00 E0 36 05 [08:33:02]Write i2c OK [08:33:02]MH_I2C_Read... [08:33:02]Read from MH i2c: F0 [08:33:02]MH_I2C_Read... [08:33:02]Read from MH i2c: F0 09 00 [08:33:02]MH_I2C_Read... [08:33:02]Read from MH i2c: F0 09 00 E0 36 00 43 EF 21 67 72 0D 1C 67 CA [08:33:02]GetLastDocTimeStamp 1730277096 [08:33:02]current date 1730277187 [08:33:02]FM_GetShiftState [08:33:02]SAM_PROTO_GetShiftState [08:33:02]wFMCommunicate request_size=4 [08:33:02]MH_SAM_APDU [08:33:02]CAPDU: 80 13 01 00 [08:33:02]Write to MH i2c: E2 08 00 E1 36 80 13 01 00 00 00 00 00 94 [08:33:03]Write i2c OK [08:33:03]MH_I2C_Read... [08:33:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:03]Read from MH i2c: E2 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 0E 00 [08:33:03]MH_I2C_Read... [08:33:03]Read from MH i2c: E2 0E 00 E1 36 00 09 00 01 86 76 21 67 00 00 00 00 90 00 24 [08:33:03]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:33:03]wFMCommunicate OK [08:33:03]SAM_PROTO_GetShiftState done [08:33:03]FM_GetShiftState done [08:33:03]opened in 1730246278 [08:33:03]opened+sec_in_day 1730332678 [08:33:03]quantity*price = 27800 [08:33:03]sum+1 = 27801 [08:33:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 0.00 Безнал.: 278.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 56 30.10.2024 08:33 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139372 ФПД: 162665261101557 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T083307&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139372&fm=162665261101557&tin=02508201610067®Number=0000000000091631&sum=27800 0 [08:33:04]StoreToDocumentArchive [08:33:04]shift 556 fd 139372 [08:33:04]save to /storage/0556/doc_00139372 [08:33:04]save last doc name /storage/0556/doc_00139372 to /storage/kkm_last_doc_name [08:33:04]save OK [08:33:04]Clear old archive folders... [08:33:04]ProcessDocumentItem done err = 0, tmpTLVsize=274 [08:33:04]tlvbuf is 0112D5E0 [08:33:04]SAM_PROTO_ClearQueue [08:33:04]wFMCommunicate request_size=4 [08:33:04]MH_SAM_APDU [08:33:04]CAPDU: 80 09 00 00 [08:33:04]Write to MH i2c: E2 08 00 EE 36 80 09 00 00 00 00 00 00 96 [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:33:04]Read from MH i2c: E2 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 EE 36 00 90 00 98 [08:33:04]RAPDU: 90 00 [08:33:04]wFMCommunicate OK [08:33:04]SAM_PROTO_ClearQueue done [08:33:04]KKMCreateOFDPacket [08:33:04]OFDProtocolAddRootSTLVToBuf [08:33:04]FM_MakeSignedData [08:33:04]FM_MakeSignedData [08:33:04]SAM_PROTO_SignData [08:33:04]wFMCommunicate request_size=4 [08:33:04]MH_SAM_APDU [08:33:04]CAPDU: 80 0D 01 02 [08:33:04]Write to MH i2c: E2 08 00 EF 36 80 0D 01 02 00 00 00 00 9E [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:33:04]Read from MH i2c: E2 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 EF 36 00 90 00 99 [08:33:04]RAPDU: 90 00 [08:33:04]wFMCommunicate OK [08:33:04]wFMCommunicate request_size=255 [08:33:04]MH_SAM_APDU [08:33:04]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 EF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [08:33:04]Write to MH i2c: E2 02 01 F0 36 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 EF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 00 00 08 [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:04]Read from MH i2c: E2 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 F0 36 00 90 00 9A [08:33:04]RAPDU: 90 00 [08:33:04]wFMCommunicate OK [08:33:04]wFMCommunicate request_size=33 [08:33:04]MH_SAM_APDU [08:33:04]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 20 02 00 35 04 06 00 93 F1 75 1A F1 F5 [08:33:04]Write to MH i2c: E2 24 00 F1 36 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 20 02 00 35 04 06 00 93 F1 75 1A F1 F5 00 00 BF [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:33:04]Read from MH i2c: E2 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 03 00 F1 36 00 90 00 9B [08:33:04]RAPDU: 90 00 [08:33:04]wFMCommunicate OK [08:33:04]wFMCommunicate request_size=4 [08:33:04]MH_SAM_APDU [08:33:04]CAPDU: 80 0D 03 02 [08:33:04]Write to MH i2c: E2 08 00 F2 36 80 0D 03 02 00 00 00 00 A3 [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:33:04]Read from MH i2c: E2 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 0B 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 0B 00 F2 36 00 AB DB AF 88 A8 0A 15 9D 90 00 C5 [08:33:04]RAPDU: AB DB AF 88 A8 0A 15 9D 90 00 [08:33:04]wFMCommunicate OK [08:33:04]SAM_PROTO_SignData done [08:33:04]FM_MakeSignedData done [08:33:04]CreateOFDProtocolMessage [08:33:04]wFMCommunicate request_size=4 [08:33:04]MH_SAM_APDU [08:33:04]CAPDU: 80 11 00 00 [08:33:04]Write to MH i2c: E2 08 00 F3 36 80 11 00 00 00 00 00 00 A3 [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:04]Read from MH i2c: E2 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 17 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: E2 17 00 F3 36 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FE [08:33:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:33:04]wFMCommunicate OK [08:33:04]CreateOFDProtocolMessage done [08:33:04]OFDSenderStorePacket 139372 [08:33:04]StoreOFDPacket docnum=139372 [08:33:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 3C 12 1E 01 45 CA 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 EF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 20 02 00 35 04 06 00 93 F1 75 1A F1 F5 AB DB AF 88 A8 0A 15 9D [08:33:04]CheckFolder [08:33:04]dirname=/storage/ofd_packets [08:33:04]CheckFolder done [08:33:04]ProducePacketName [08:33:04]name=ofd_packets/00139372 [08:33:04]NVStorageSaveData ofd_packets/00139372 [08:33:04]File name is /storage/ofd_packets/00139372 [08:33:04]Write 324 bytes [08:33:04]NVStorageSaveData done [08:33:04]OFDSenderStorePacket done [08:33:04]KKMCreateOFDPacket done [08:33:04]NVStorageSaveData kkm_last_timestamp [08:33:04]File name is /storage/kkm_last_timestamp [08:33:04]Write 4 bytes [08:33:04]NVStorageSaveData done [08:33:04]ExternCall_PrintAddStr [08:33:04]wPrintStart [08:33:04]Write to MH i2c: 01 00 00 F4 36 2A [08:33:04]Write i2c OK [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: 01 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: 01 07 00 [08:33:04]MH_I2C_Read... [08:33:04]Read from MH i2c: 01 07 00 F4 36 00 00 00 00 00 FF 0F 3F [08:33:04]RasterBufferAndPrint [08:33:04]line Счет N : (3)335287 [08:33:04]line ИНН: 02508201610067 [08:33:04]line Контрольно-Кассовый Чек [08:33:04]line ПРОДАЖА [08:33:04]line Товар: 48744997 [08:33:04]line Сигареты Winston Compact Blue [08:33:04]line 2.000 * 139.00 [08:33:04]line = 278.00 [08:33:04]line НДС 12% НСП 1% [08:33:04]line > о реализуемом товаре [08:33:04]line ИТОГО: 278.00 [08:33:04]line НСП 1% : 2.46 [08:33:04]line НДС 12% : 29.52 [08:33:04]line Наличными: 0.00 [08:33:04]line Безнал.: 278.00 [08:33:04]line Место: АЗС № 101 "Партнер Нефть" [08:33:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:33:04]line СНО: Общий режим [08:33:04]line Чек 56 30.10.2024 08:33 [08:33:04]line Смена: 556 ФФД: 1.0 [08:33:04]line ЗНМ: 0300000081 [08:33:04]line РНМ: 0000000000091631 [08:33:04]line Версия ККМ: 001 [08:33:04]line Платежная система: Mbank [08:33:04]line ФМ: 0000000000874669 [08:33:04]line ФД: 139372 [08:33:04]line ФПД: 162665261101557 [08:33:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T083307&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139372&fm=162665261101557&tin=02508201610067®Number=0000000000091631&sum=27800 [08:33:04]line 0 [08:33:04]written 0, free lines is 4095 [08:33:04]OFD Sender: Processing packet 139372 [packets to send 34, broken 33] [08:33:04]ProducePacketName [08:33:04]name=ofd_packets/00139372 [08:33:04]OFD Sender: To server: pG, [08:33:04]CommunicateWithHost lk.salyk.kg:30040 [08:33:05]ConnectInit lk.salyk.kg [08:33:05]Connected sock=10 [08:33:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 3C 12 1E 01 45 CA 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 34 39 39 37 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 43 6F 6D 70 61 63 74 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 98 6C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 38 00 00 00 F4 03 04 00 43 EF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 20 02 00 35 04 06 00 93 F1 75 1A F1 F5 AB DB AF 88 A8 0A 15 9D [08:33:05]Write to MH i2c: 01 00 00 1E 37 55 [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: 01 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: 01 07 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: 01 07 00 1E 37 00 00 00 00 00 EF 0C 57 [08:33:05]RasterBufferAndPrint [08:33:05]line [08:33:05]line [08:33:05]line [08:33:05]line [08:33:05]line [08:33:05]written 0, free lines is 3317 [08:33:05]MH_Cut [08:33:05]Write to MH i2c: D1 01 00 25 37 01 2E [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: D1 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: D1 01 00 [08:33:05]MH_I2C_Read... [08:33:05]Read from MH i2c: D1 01 00 25 37 00 2D [08:33:05]Write to MH i2c: 01 00 00 26 37 5D [08:33:05]Write i2c OK [08:33:05]MH_I2C_Read... [08:33:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9D D8 47 00 68 50 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6C 20 02 00 F4 03 04 00 F4 9A 21 67 B6 04 01 00 00 D3 EF 48 9E 85 F3 1F 98 [08:33:05]CommunicateWithHost err = 0 [08:33:05]CheckOFDResponse [08:33:05]1017 (14) - 77093643461234 [08:33:05]1041 (16) - 0000000000874669 [08:33:05]1040 (4) - 139372 [08:33:05]1012 (4) - 30.10.2024 02:33 [08:33:05]1206 (1) - 0 [08:33:05]OFD Sender: Remove packet 139372 [08:33:05]ProducePacketName [08:33:05]name=ofd_packets/00139372 [08:33:05]NVStorageDeleteData [08:33:05]OFD Sender: No OFD packet to send [08:33:05]*** Cut start [08:33:05]*** Partial cut [08:33:05]*** CUTSNS_PIN = 1 [08:33:05]*** CUTSNS_PIN = 0 [08:33:06]*** Brake cut motor [08:33:06]Read from MH i2c: 01 [08:33:06]MH_I2C_Read... [08:33:06]*** Stop cut motor [08:33:06]*** Cut end [08:33:06]Read from MH i2c: 01 07 00 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: 01 07 00 26 37 00 00 00 00 00 FF 0F 72 [08:33:06]process_action close_receipt done [08:33:06]requested_data is exist [08:33:06]produce_requested_data [08:33:06]requested_item fm.sn is exist - process it [08:33:06]wFMCommunicate request_size=4 [08:33:06]MH_SAM_APDU [08:33:06]CAPDU: 80 11 00 00 [08:33:06]Write to MH i2c: E2 08 00 27 37 80 11 00 00 00 00 00 00 D8 [08:33:06]Write i2c OK [08:33:06]MH_I2C_Read... [08:33:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:33:06]Read from MH i2c: E2 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: E2 17 00 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: E2 17 00 27 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 33 [08:33:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:33:06]wFMCommunicate OK [08:33:06]requested_item fd.num is exist - process it [08:33:06]SAM_PROTO_GetFieldsCounters [08:33:06]wFMCommunicate request_size=4 [08:33:06]MH_SAM_APDU [08:33:06]CAPDU: 80 13 00 00 [08:33:06]Write to MH i2c: E2 08 00 28 37 80 13 00 00 00 00 00 00 DB [08:33:06]Write i2c OK [08:33:06]MH_I2C_Read... [08:33:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:33:06]Read from MH i2c: E2 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: E2 62 00 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: E2 62 00 28 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6C 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [08:33:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6C 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 38 00 00 00 5E 04 04 00 38 00 00 00 57 04 04 00 39 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:33:06]wFMCommunicate OK [08:33:06]SAM_PROTO_GetFieldsCounters done [08:33:06]requested_item shift.num is exist - process it [08:33:06]requested_item shift.opened is exist - process it [08:33:06]req_shift_opened [08:33:06]FM_GetShiftState [08:33:06]SAM_PROTO_GetShiftState [08:33:06]wFMCommunicate request_size=4 [08:33:06]MH_SAM_APDU [08:33:06]CAPDU: 80 13 01 00 [08:33:06]Write to MH i2c: E2 08 00 29 37 80 13 01 00 00 00 00 00 DD [08:33:06]Write i2c OK [08:33:06]MH_I2C_Read... [08:33:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:33:06]Read from MH i2c: E2 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: E2 0E 00 [08:33:06]MH_I2C_Read... [08:33:06]Read from MH i2c: E2 0E 00 29 37 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6D [08:33:06]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:33:06]wFMCommunicate OK [08:33:06]SAM_PROTO_GetShiftState done [08:33:06]FM_GetShiftState done [08:33:06]req_shift_opened done [08:33:06]requested_item shift.open_date is exist - process it [08:33:06]req_shift_open_date [08:33:06]req_shift_open_date done [08:33:06]produce_requested_data done [08:33:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139372,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:33:06]process_action_free close_receipt [08:33:06]json_value_free [08:33:06]json_value_free done [08:33:06]process_json_proto returns [08:33:06]Send response to host [08:33:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139372,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:33:06]free response buf [08:33:06]execute_script done [08:33:06]execute_script returns [08:33:06]free content buf [08:33:06]Sock 9.Close socket [08:33:06]Sock 9.Thread stoped [08:33:10]OFD Sender: No OFD packet to send [08:33:15]OFD Sender: No OFD packet to send [08:33:20]OFD Sender: No OFD packet to send [08:33:25]OFD Sender: No OFD packet to send [08:33:30]OFD Sender: No OFD packet to send [08:33:35]OFD Sender: No OFD packet to send [08:33:40]OFD Sender: No OFD packet to send [08:33:45]OFD Sender: No OFD packet to send [08:33:50]OFD Sender: No OFD packet to send [08:33:55]OFD Sender: No OFD packet to send [08:34:00]OFD Sender: No OFD packet to send [08:34:05]OFD Sender: No OFD packet to send [08:34:10]OFD Sender: No OFD packet to send [08:34:15]OFD Sender: No OFD packet to send [08:34:20]OFD Sender: No OFD packet to send [08:34:25]OFD Sender: No OFD packet to send [08:34:30]OFD Sender: No OFD packet to send [08:34:35]OFD Sender: No OFD packet to send [08:34:40]OFD Sender: No OFD packet to send [08:34:45]OFD Sender: No OFD packet to send [08:34:50]OFD Sender: No OFD packet to send [08:34:55]OFD Sender: No OFD packet to send [08:35:00]OFD Sender: No OFD packet to send [08:35:05]OFD Sender: No OFD packet to send [08:35:10]OFD Sender: No OFD packet to send [08:35:15]OFD Sender: No OFD packet to send [08:35:20]OFD Sender: No OFD packet to send [08:35:25]OFD Sender: No OFD packet to send [08:35:30]OFD Sender: No OFD packet to send [08:35:35]OFD Sender: No OFD packet to send [08:35:40]OFD Sender: No OFD packet to send [08:35:45]OFD Sender: No OFD packet to send [08:35:50]OFD Sender: No OFD packet to send [08:35:55]OFD Sender: No OFD packet to send [08:36:00]OFD Sender: No OFD packet to send [08:36:05]OFD Sender: No OFD packet to send [08:36:11]OFD Sender: No OFD packet to send [08:36:16]OFD Sender: No OFD packet to send [08:36:21]OFD Sender: No OFD packet to send [08:36:26]OFD Sender: No OFD packet to send [08:36:31]OFD Sender: No OFD packet to send [08:36:36]OFD Sender: No OFD packet to send [08:36:41]OFD Sender: No OFD packet to send [08:36:46]OFD Sender: No OFD packet to send [08:36:51]OFD Sender: No OFD packet to send [08:36:56]OFD Sender: No OFD packet to send [08:37:01]OFD Sender: No OFD packet to send [08:37:06]OFD Sender: No OFD packet to send [08:37:11]OFD Sender: No OFD packet to send [08:37:16]OFD Sender: No OFD packet to send [08:37:21]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [08:40:31]OFD Sender: No OFD packet to send [08:40:36]OFD Sender: No OFD packet to send [08:40:41]OFD Sender: No OFD packet to send [08:40:46]OFD Sender: No OFD packet to send [08:40:51]OFD Sender: No OFD packet to send [08:40:56]OFD Sender: No OFD packet to send [08:41:01]OFD Sender: No OFD packet to send [08:41:06]OFD Sender: No OFD packet to send [08:41:11]OFD Sender: No OFD packet to send [08:41:16]OFD Sender: No OFD packet to send [08:41:21]OFD Sender: No OFD packet to send [08:41:26]OFD Sender: No OFD packet to send [08:41:31]OFD Sender: No OFD packet to send [08:41:36]OFD Sender: No OFD packet to send [08:41:41]OFD Sender: No OFD packet to send [08:41:46]OFD Sender: No OFD packet to send [08:41:51]OFD Sender: No OFD packet to send [08:41:56]OFD Sender: No OFD packet to send [08:42:01]OFD Sender: No OFD packet to send [08:42:06]OFD Sender: No OFD packet to send [08:42:11]OFD Sender: No OFD packet to send [08:42:16]OFD Sender: No OFD packet to send [08:42:21]OFD Sender: No OFD packet to send [08:42:26]OFD Sender: No OFD packet to send [08:42:31]OFD Sender: No OFD packet to send [08:42:36]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:51]OFD Sender: No OFD packet to send [08:44:56]OFD Sender: No OFD packet to send [08:45:01]OFD Sender: No OFD packet to send [08:45:06]OFD Sender: No OFD packet to send [08:45:11]OFD Sender: No OFD packet to send [08:45:16]OFD Sender: No OFD packet to send [08:45:21]OFD Sender: No OFD packet to send [08:45:26]OFD Sender: No OFD packet to send [08:45:31]OFD Sender: No OFD packet to send [08:45:36]OFD Sender: No OFD packet to send [08:45:41]OFD Sender: No OFD packet to send [08:45:46]OFD Sender: No OFD packet to send [08:45:51]OFD Sender: No OFD packet to send [08:45:56]OFD Sender: No OFD packet to send [08:46:01]OFD Sender: No OFD packet to send [08:46:06]OFD Sender: No OFD packet to send [08:46:11]OFD Sender: No OFD packet to send [08:46:16]OFD Sender: No OFD packet to send [08:46:21]OFD Sender: No OFD packet to send [08:46:26]OFD Sender: No OFD packet to send [08:46:31]OFD Sender: No OFD packet to send [08:46:36]OFD Sender: No OFD packet to send [08:46:41]OFD Sender: No OFD packet to send [08:46:46]OFD Sender: No OFD packet to send [08:46:51]OFD Sender: No OFD packet to send [08:46:56]OFD Sender: No OFD packet to send [08:47:01]OFD Sender: No OFD packet to send [08:47:06]OFD Sender: No OFD packet to send [08:47:11]OFD Sender: No OFD packet to send [08:47:16]OFD Sender: No OFD packet to send [08:47:21]OFD Sender: No OFD packet to send [08:47:26]OFD Sender: No OFD packet to send [08:47:31]OFD Sender: No OFD packet to send [08:47:36]OFD Sender: No OFD packet to send [08:47:41]OFD Sender: No OFD packet to send [08:47:46]OFD Sender: No OFD packet to send [08:47:51]OFD Sender: No OFD packet to send [08:47:56]OFD Sender: No OFD packet to send [08:48:01]OFD Sender: No OFD packet to send [08:48:06]OFD Sender: No OFD packet to send [08:48:11]OFD Sender: No OFD packet to send [08:48:16]OFD Sender: No OFD packet to send [08:48:21]OFD Sender: No OFD packet to send [08:48:26]OFD Sender: No OFD packet to send [08:48:31]OFD Sender: No OFD packet to send [08:48:36]OFD Sender: No OFD packet to send [08:48:41]OFD Sender: No OFD packet to send [08:48:46]OFD Sender: No OFD packet to send [08:48:51]OFD Sender: No OFD packet to send [08:48:56]OFD Sender: No OFD packet to send [08:49:01]OFD Sender: No OFD packet to send [08:49:06]OFD Sender: No OFD packet to send [08:49:11]OFD Sender: No OFD packet to send [08:49:16]OFD Sender: No OFD packet to send [08:49:21]OFD Sender: No OFD packet to send [08:49:26]OFD Sender: No OFD packet to send [08:49:31]OFD Sender: No OFD packet to send [08:49:36]OFD Sender: No OFD packet to send [08:49:41]OFD Sender: No OFD packet to send [08:49:46]OFD Sender: No OFD packet to send [08:49:51]OFD Sender: No OFD packet to send [08:49:56]OFD Sender: No OFD packet to send [08:50:01]OFD Sender: No OFD packet to send [08:50:06]OFD Sender: No OFD packet to send [08:50:11]OFD Sender: No OFD packet to send [08:50:16]OFD Sender: No OFD packet to send [08:50:21]OFD Sender: No OFD packet to send [08:50:26]OFD Sender: No OFD packet to send [08:50:31]OFD Sender: No OFD packet to send [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]accept exits with 8 [08:52:56]New connection [08:52:56]New thread 3067284836 created [08:52:56]Thread 3067141476 joined [08:52:56]Waiting for new connection... [08:52:56] Sock 8.Parse request [08:52:56]Sock 8.Check first char [08:52:56]Sock 8.First char is OK [08:52:56]request: POST /json_proto HTTP/1.0 [08:52:56]Method: POST [08:52:56]URL: /json_proto [08:52:56]Method is POST - this is cgi request [08:52:56]url: /json_proto [08:52:56]query_string will be loaded in cgi processing [08:52:56]execute_cgi json_proto POST (null) [08:52:56]execute_cgi path=json_proto method=POST [08:52:56]POST find Content-Length [08:52:56]Host: 172.17.50.196:8080 [08:52:56]Content-Length: 997 [08:52:56]Content-Type: application/json [08:52:56] [08:52:56]POST finish read [08:52:56]Found Content-Length = 997 [08:52:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335288", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:56]execute_script... [08:52: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 : (3)335288", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 154.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:52:56]POST & json_proto [08:52:56]process_json_proto [08:52:56]json parsed OK: [08:52:56]protocol is kg_v1.0 [08:52:56]action value=close_receipt [08:52:56]process_action close_receipt [08:52:56]cmd_close_receipt [08:52:56]MH_GetDate [08:52:56]Write to MH i2c: F0 00 00 2A 37 50 [08:52:56]Write i2c OK [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: F0 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: F0 09 00 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: F0 09 00 2A 37 00 EC F3 21 67 72 0D 1C 67 C2 [08:52:56]GetLastDocTimeStamp 1730277187 [08:52:56]current date 1730278380 [08:52:56]FM_GetShiftState [08:52:56]SAM_PROTO_GetShiftState [08:52:56]wFMCommunicate request_size=4 [08:52:56]MH_SAM_APDU [08:52:56]CAPDU: 80 13 01 00 [08:52:56]Write to MH i2c: E2 08 00 2B 37 80 13 01 00 00 00 00 00 DF [08:52:56]Write i2c OK [08:52:56]MH_I2C_Read... [08:52:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:52:56]Read from MH i2c: E2 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: E2 0E 00 [08:52:56]MH_I2C_Read... [08:52:56]Read from MH i2c: E2 0E 00 2B 37 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6F [08:52:56]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:52:56]wFMCommunicate OK [08:52:56]SAM_PROTO_GetShiftState done [08:52:56]FM_GetShiftState done [08:52:56]opened in 1730246278 [08:52:56]opened+sec_in_day 1730332678 [08:52:56]quantity*price = 8400 [08:52:56]sum+1 = 8401 [08:52:56]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400655 Семечки ДЖИНН 70г синий 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 154.00 НСП 1% : 1.36 НДС 12% : 16.35 Наличными: 154.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 57 30.10.2024 08:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139373 ФПД: 28720695064393 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085300&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139373&fm=28720695064393&tin=02508201610067®Number=0000000000091631&sum=15400 0 [08:52:57]StoreToDocumentArchive [08:52:57]shift 556 fd 139373 [08:52:57]save to /storage/0556/doc_00139373 [08:52:57]save last doc name /storage/0556/doc_00139373 to /storage/kkm_last_doc_name [08:52:57]save OK [08:52:57]Clear old archive folders... [08:52:57]ProcessDocumentItem done err = 0, tmpTLVsize=415 [08:52:57]tlvbuf is 01124250 [08:52:57]SAM_PROTO_ClearQueue [08:52:57]wFMCommunicate request_size=4 [08:52:57]MH_SAM_APDU [08:52:57]CAPDU: 80 09 00 00 [08:52:57]Write to MH i2c: E2 08 00 38 37 80 09 00 00 00 00 00 00 E1 [08:52:57]Write i2c OK [08:52:57]MH_I2C_Read... [08:52:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:52:57]Read from MH i2c: E2 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: E2 03 00 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: E2 03 00 38 37 00 90 00 E3 [08:52:57]RAPDU: 90 00 [08:52:57]wFMCommunicate OK [08:52:57]SAM_PROTO_ClearQueue done [08:52:57]KKMCreateOFDPacket [08:52:57]OFDProtocolAddRootSTLVToBuf [08:52:57]FM_MakeSignedData [08:52:57]FM_MakeSignedData [08:52:57]SAM_PROTO_SignData [08:52:57]wFMCommunicate request_size=4 [08:52:57]MH_SAM_APDU [08:52:57]CAPDU: 80 0D 01 02 [08:52:57]Write to MH i2c: E2 08 00 39 37 80 0D 01 02 00 00 00 00 E9 [08:52:57]Write i2c OK [08:52:57]MH_I2C_Read... [08:52:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:52:57]Read from MH i2c: E2 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: E2 03 00 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: E2 03 00 39 37 00 90 00 E4 [08:52:57]RAPDU: 90 00 [08:52:57]wFMCommunicate OK [08:52:57]wFMCommunicate request_size=255 [08:52:57]MH_SAM_APDU [08:52:57]CAPDU: 80 0D 02 02 FA 03 00 9F 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC [08:52:57]Write to MH i2c: E2 02 01 3A 37 80 0D 02 02 FA 00 03 00 9F 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 00 00 F5 [08:52:57]Write i2c OK [08:52:57]MH_I2C_Read... [08:52:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:57]Read from MH i2c: E2 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: E2 03 00 [08:52:57]MH_I2C_Read... [08:52:57]Read from MH i2c: E2 03 00 3A 37 00 90 00 E5 [08:52:57]RAPDU: 90 00 [08:52:57]wFMCommunicate OK [08:52:57]wFMCommunicate request_size=174 [08:52:57]MH_SAM_APDU [08:52:57]CAPDU: 80 0D 02 02 A9 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 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 EC F3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6D 20 02 00 35 04 06 00 1A 1F 0E D3 B7 49 [08:52:57]Write to MH i2c: E2 B1 00 3B 37 80 0D 02 02 A9 00 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 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 EC F3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6D 20 02 00 35 04 06 00 1A 1F 0E D3 B7 49 00 00 B9 [08:52:57]Write i2c OK [08:52:57]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 03 00 3B 37 00 90 00 E6 [08:52:58]RAPDU: 90 00 [08:52:58]wFMCommunicate OK [08:52:58]wFMCommunicate request_size=4 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 0D 03 02 [08:52:58]Write to MH i2c: E2 08 00 3C 37 80 0D 03 02 00 00 00 00 EE [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 0B 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 0B 00 3C 37 00 86 F8 BD 71 75 89 E3 04 90 00 80 [08:52:58]RAPDU: 86 F8 BD 71 75 89 E3 04 90 00 [08:52:58]wFMCommunicate OK [08:52:58]SAM_PROTO_SignData done [08:52:58]FM_MakeSignedData done [08:52:58]CreateOFDProtocolMessage [08:52:58]wFMCommunicate request_size=4 [08:52:58]MH_SAM_APDU [08:52:58]CAPDU: 80 11 00 00 [08:52:58]Write to MH i2c: E2 08 00 3D 37 80 11 00 00 00 00 00 00 EE [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:52:58]Read from MH i2c: E2 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 17 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: E2 17 00 3D 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 49 [08:52:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:52:58]wFMCommunicate OK [08:52:58]CreateOFDProtocolMessage done [08:52:58]OFDSenderStorePacket 139373 [08:52:58]StoreOFDPacket docnum=139373 [08:52:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B3 01 00 00 78 56 AB 01 64 2A 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 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 EC F3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6D 20 02 00 35 04 06 00 1A 1F 0E D3 B7 49 86 F8 BD 71 75 89 E3 04 [08:52:58]CheckFolder [08:52:58]dirname=/storage/ofd_packets [08:52:58]CheckFolder done [08:52:58]ProducePacketName [08:52:58]name=ofd_packets/00139373 [08:52:58]NVStorageSaveData ofd_packets/00139373 [08:52:58]File name is /storage/ofd_packets/00139373 [08:52:58]Write 465 bytes [08:52:58]NVStorageSaveData done [08:52:58]OFDSenderStorePacket done [08:52:58]KKMCreateOFDPacket done [08:52:58]NVStorageSaveData kkm_last_timestamp [08:52:58]File name is /storage/kkm_last_timestamp [08:52:58]Write 4 bytes [08:52:58]NVStorageSaveData done [08:52:58]ExternCall_PrintAddStr [08:52:58]wPrintStart [08:52:58]Write to MH i2c: 01 00 00 3E 37 75 [08:52:58]OFD Sender: Processing packet 139373 [packets to send 34, broken 33] [08:52:58]ProducePacketName [08:52:58]name=ofd_packets/00139373 [08:52:58]OFD Sender: To server: pG, [08:52:58]CommunicateWithHost lk.salyk.kg:30040 [08:52:58]ConnectInit lk.salyk.kg [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: 01 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: 01 07 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: 01 07 00 3E 37 00 00 00 00 00 FF 0F 8A [08:52:58]RasterBufferAndPrint [08:52:58]line Счет N : (3)335288 [08:52:58]line ИНН: 02508201610067 [08:52:58]line Контрольно-Кассовый Чек [08:52:58]line ПРОДАЖА [08:52:58]line Товар: 4870001571030 [08:52:58]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [08:52:58]line 1.000 * 84.00 [08:52:58]line = 84.00 [08:52:58]line НДС 12% НСП 1% [08:52:58]line > о реализуемом товаре [08:52:58]line Товар: 4630007400655 [08:52:58]line Семечки ДЖИНН 70г синий [08:52:58]line 1.000 * 70.00 [08:52:58]line = 70.00 [08:52:58]line НДС 12% НСП 1% [08:52:58]line > о реализуемом товаре [08:52:58]line ИТОГО: 154.00 [08:52:58]line НСП 1% : 1.36 [08:52:58]line НДС 12% : 16.35 [08:52:58]line Наличными: 154.00 [08:52:58]line Безнал.: 0.00 [08:52:58]line Место: АЗС № 101 "Партнер Нефть" [08:52:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:52:58]line СНО: Общий режим [08:52:58]line Чек 57 30.10.2024 08:53 [08:52:58]line Смена: 556 ФФД: 1.0 [08:52:58]line ЗНМ: 0300000081 [08:52:58]line РНМ: 0000000000091631 [08:52:58]line Версия ККМ: 001 [08:52:58]line ФМ: 0000000000874669 [08:52:58]line ФД: 139373 [08:52:58]line ФПД: 28720695064393 [08:52:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085300&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139373&fm=28720695064393&tin=02508201610067®Number=0000000000091631&sum=15400 [08:52:58]line 0 [08:52:58]written 0, free lines is 4095 [08:52:58]Connected sock=10 [08:52:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B3 01 00 00 78 56 AB 01 64 2A 5A 03 01 00 03 00 9F 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 63 06 00 00 00 00 07 04 06 00 28 3C 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 EC F3 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6D 20 02 00 35 04 06 00 1A 1F 0E D3 B7 49 86 F8 BD 71 75 89 E3 04 [08:52:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C9 0D 47 00 CA 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 38 37 34 36 36 39 10 04 04 00 6D 20 02 00 F4 03 04 00 9D 9F 21 67 B6 04 01 00 00 50 78 40 32 4D 1D 66 84 [08:52:58]CommunicateWithHost err = 0 [08:52:58]CheckOFDResponse [08:52:58]1017 (14) - 77093643461234 [08:52:58]1041 (16) - 0000000000874669 [08:52:58]1040 (4) - 139373 [08:52:58]1012 (4) - 30.10.2024 02:53 [08:52:58]1206 (1) - 0 [08:52:58]OFD Sender: Remove packet 139373 [08:52:58]ProducePacketName [08:52:58]name=ofd_packets/00139373 [08:52:58]NVStorageDeleteData [08:52:58]Write to MH i2c: 01 00 00 6D 37 A4 [08:52:58]Write i2c OK [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: 01 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: 01 07 00 [08:52:58]MH_I2C_Read... [08:52:58]Read from MH i2c: 01 07 00 6D 37 00 00 00 00 00 C7 0C 7E [08:52:58]RasterBufferAndPrint [08:52:58]line [08:52:58]line [08:52:58]line [08:52:58]line [08:52:58]line [08:52:58]written 0, free lines is 3280 [08:52:59]MH_Cut [08:52:59]Write to MH i2c: D1 01 00 74 37 01 7D [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: D1 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: D1 01 00 [08:52:59]MH_I2C_Read... [08:52:59]Read from MH i2c: D1 01 00 74 37 00 7C [08:52:59]Write to MH i2c: 01 00 00 75 37 AC [08:52:59]Write i2c OK [08:52:59]MH_I2C_Read... [08:52:59]OFD Sender: No OFD packet to send [08:52:59]*** Cut start [08:52:59]*** Partial cut [08:52:59]*** CUTSNS_PIN = 1 [08:52:59]*** CUTSNS_PIN = 0 [08:52:59]*** Brake cut motor [08:53:00]Read from MH i2c: 01 [08:53:00]MH_I2C_Read... [08:53:00]*** Stop cut motor [08:53:00]*** Cut end [08:53:00]Read from MH i2c: 01 07 00 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: 01 07 00 75 37 00 00 00 00 00 FF 0F C1 [08:53:00]process_action close_receipt done [08:53:00]requested_data is exist [08:53:00]produce_requested_data [08:53:00]requested_item fm.sn is exist - process it [08:53:00]wFMCommunicate request_size=4 [08:53:00]MH_SAM_APDU [08:53:00]CAPDU: 80 11 00 00 [08:53:00]Write to MH i2c: E2 08 00 76 37 80 11 00 00 00 00 00 00 27 [08:53:00]Write i2c OK [08:53:00]MH_I2C_Read... [08:53:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:00]Read from MH i2c: E2 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: E2 17 00 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: E2 17 00 76 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 82 [08:53:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:53:00]wFMCommunicate OK [08:53:00]requested_item fd.num is exist - process it [08:53:00]SAM_PROTO_GetFieldsCounters [08:53:00]wFMCommunicate request_size=4 [08:53:00]MH_SAM_APDU [08:53:00]CAPDU: 80 13 00 00 [08:53:00]Write to MH i2c: E2 08 00 77 37 80 13 00 00 00 00 00 00 2A [08:53:00]Write i2c OK [08:53:00]MH_I2C_Read... [08:53:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:00]Read from MH i2c: E2 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: E2 62 00 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: E2 62 00 77 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6D 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 B6 [08:53:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6D 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 39 00 00 00 5E 04 04 00 39 00 00 00 57 04 04 00 3A 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:00]wFMCommunicate OK [08:53:00]SAM_PROTO_GetFieldsCounters done [08:53:00]requested_item shift.num is exist - process it [08:53:00]requested_item shift.opened is exist - process it [08:53:00]req_shift_opened [08:53:00]FM_GetShiftState [08:53:00]SAM_PROTO_GetShiftState [08:53:00]wFMCommunicate request_size=4 [08:53:00]MH_SAM_APDU [08:53:00]CAPDU: 80 13 01 00 [08:53:00]Write to MH i2c: E2 08 00 78 37 80 13 01 00 00 00 00 00 2C [08:53:00]Write i2c OK [08:53:00]MH_I2C_Read... [08:53:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:00]Read from MH i2c: E2 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: E2 0E 00 [08:53:00]MH_I2C_Read... [08:53:00]Read from MH i2c: E2 0E 00 78 37 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BC [08:53:00]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:53:00]wFMCommunicate OK [08:53:00]SAM_PROTO_GetShiftState done [08:53:00]FM_GetShiftState done [08:53:00]req_shift_opened done [08:53:00]requested_item shift.open_date is exist - process it [08:53:00]req_shift_open_date [08:53:00]req_shift_open_date done [08:53:00]produce_requested_data done [08:53:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139373,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:53:00]process_action_free close_receipt [08:53:00]json_value_free [08:53:00]json_value_free done [08:53:00]process_json_proto returns [08:53:00]Send response to host [08:53:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139373,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:53:00]free response buf [08:53:00]execute_script done [08:53:00]execute_script returns [08:53:00]free content buf [08:53:00]Sock 8.Close socket [08:53:00]Sock 8.Thread stoped [08:53:04]OFD Sender: No OFD packet to send [08:53:09]OFD Sender: No OFD packet to send [08:53:14]OFD Sender: No OFD packet to send [08:53:19]OFD Sender: No OFD packet to send [08:53:24]OFD Sender: No OFD packet to send [08:53:29]OFD Sender: No OFD packet to send [08:53:34]OFD Sender: No OFD packet to send [08:53:39]OFD Sender: No OFD packet to send [08:53:44]OFD Sender: No OFD packet to send [08:53:47]accept exits with 9 [08:53:47]New connection [08:53:47]New thread 3067141476 created [08:53:47]Thread 3067284836 joined [08:53:47]Waiting for new connection... [08:53:47] Sock 9.Parse request [08:53:47]Sock 9.Check first char [08:53:47]Sock 9.First char is OK [08:53:47]request: POST /json_proto HTTP/1.0 [08:53:47]Method: POST [08:53:47]URL: /json_proto [08:53:47]Method is POST - this is cgi request [08:53:47]url: /json_proto [08:53:47]query_string will be loaded in cgi processing [08:53:47]execute_cgi json_proto POST (null) [08:53:47]execute_cgi path=json_proto method=POST [08:53:47]POST find Content-Length [08:53:47]Host: 172.17.50.196:8080 [08:53:47]Content-Length: 613 [08:53:47]Content-Type: application/json [08:53:47] [08:53:47]POST finish read [08:53:47]Found Content-Length = 613 [08:53:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335289", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:47]execute_script... [08:53: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 : (3)335289", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:53:47]POST & json_proto [08:53:47]process_json_proto [08:53:47]json parsed OK: [08:53:47]protocol is kg_v1.0 [08:53:47]action value=close_receipt [08:53:47]process_action close_receipt [08:53:47]cmd_close_receipt [08:53:47]MH_GetDate [08:53:47]Write to MH i2c: F0 00 00 79 37 9F [08:53:47]Write i2c OK [08:53:47]MH_I2C_Read... [08:53:47]Read from MH i2c: F0 [08:53:47]MH_I2C_Read... [08:53:47]Read from MH i2c: F0 09 00 [08:53:47]MH_I2C_Read... [08:53:47]Read from MH i2c: F0 09 00 79 37 00 1F F4 21 67 72 0D 1C 67 45 [08:53:47]GetLastDocTimeStamp 1730278380 [08:53:47]current date 1730278431 [08:53:47]FM_GetShiftState [08:53:47]SAM_PROTO_GetShiftState [08:53:47]wFMCommunicate request_size=4 [08:53:47]MH_SAM_APDU [08:53:47]CAPDU: 80 13 01 00 [08:53:47]Write to MH i2c: E2 08 00 7A 37 80 13 01 00 00 00 00 00 2E [08:53:47]Write i2c OK [08:53:47]MH_I2C_Read... [08:53:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:47]Read from MH i2c: E2 [08:53:47]MH_I2C_Read... [08:53:47]Read from MH i2c: E2 0E 00 [08:53:47]MH_I2C_Read... [08:53:47]Read from MH i2c: E2 0E 00 7A 37 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BE [08:53:47]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:53:47]wFMCommunicate OK [08:53:47]SAM_PROTO_GetShiftState done [08:53:47]FM_GetShiftState done [08:53:47]opened in 1730246278 [08:53:47]opened+sec_in_day 1730332678 [08:53:47]quantity*price = 15900 [08:53:47]sum+1 = 15901 [08:53:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 58 30.10.2024 08:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139374 ФПД: 48602970087380 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085351&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139374&fm=48602970087380&tin=02508201610067®Number=0000000000091631&sum=15900 0 [08:53:48]StoreToDocumentArchive [08:53:48]shift 556 fd 139374 [08:53:48]save to /storage/0556/doc_00139374 [08:53:48]save last doc name /storage/0556/doc_00139374 to /storage/kkm_last_doc_name [08:53:48]save OK [08:53:48]Clear old archive folders... [08:53:48]ProcessDocumentItem done err = 0, tmpTLVsize=265 [08:53:48]tlvbuf is B6FA68D0 [08:53:48]SAM_PROTO_ClearQueue [08:53:48]wFMCommunicate request_size=4 [08:53:48]MH_SAM_APDU [08:53:48]CAPDU: 80 09 00 00 [08:53:48]Write to MH i2c: E2 08 00 87 37 80 09 00 00 00 00 00 00 30 [08:53:48]Write i2c OK [08:53:48]MH_I2C_Read... [08:53:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:53:48]Read from MH i2c: E2 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 03 00 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 03 00 87 37 00 90 00 32 [08:53:48]RAPDU: 90 00 [08:53:48]wFMCommunicate OK [08:53:48]SAM_PROTO_ClearQueue done [08:53:48]KKMCreateOFDPacket [08:53:48]OFDProtocolAddRootSTLVToBuf [08:53:48]FM_MakeSignedData [08:53:48]FM_MakeSignedData [08:53:48]SAM_PROTO_SignData [08:53:48]wFMCommunicate request_size=4 [08:53:48]MH_SAM_APDU [08:53:48]CAPDU: 80 0D 01 02 [08:53:48]Write to MH i2c: E2 08 00 88 37 80 0D 01 02 00 00 00 00 38 [08:53:48]Write i2c OK [08:53:48]MH_I2C_Read... [08:53:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:53:48]Read from MH i2c: E2 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 03 00 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 03 00 88 37 00 90 00 33 [08:53:48]RAPDU: 90 00 [08:53:48]wFMCommunicate OK [08:53:48]wFMCommunicate request_size=255 [08:53:48]MH_SAM_APDU [08:53:48]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1F F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 [08:53:48]Write to MH i2c: E2 02 01 89 37 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1F F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 00 00 67 [08:53:48]Write i2c OK [08:53:48]MH_I2C_Read... [08:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:48]Read from MH i2c: E2 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 03 00 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 03 00 89 37 00 90 00 34 [08:53:48]RAPDU: 90 00 [08:53:48]wFMCommunicate OK [08:53:48]wFMCommunicate request_size=24 [08:53:48]MH_SAM_APDU [08:53:48]CAPDU: 80 0D 02 02 13 39 10 04 04 00 6E 20 02 00 35 04 06 00 2C 34 42 C4 5F D4 [08:53:48]Write to MH i2c: E2 1B 00 8A 37 80 0D 02 02 13 00 39 10 04 04 00 6E 20 02 00 35 04 06 00 2C 34 42 C4 5F D4 00 00 1A [08:53:48]Write i2c OK [08:53:48]MH_I2C_Read... [08:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:53:48]Read from MH i2c: E2 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 03 00 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 03 00 8A 37 00 90 00 35 [08:53:48]RAPDU: 90 00 [08:53:48]wFMCommunicate OK [08:53:48]wFMCommunicate request_size=4 [08:53:48]MH_SAM_APDU [08:53:48]CAPDU: 80 0D 03 02 [08:53:48]Write to MH i2c: E2 08 00 8B 37 80 0D 03 02 00 00 00 00 3D [08:53:48]Write i2c OK [08:53:48]MH_I2C_Read... [08:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:53:48]Read from MH i2c: E2 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 0B 00 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 0B 00 8B 37 00 7E F6 D3 8F 89 8D E9 48 90 00 5B [08:53:48]RAPDU: 7E F6 D3 8F 89 8D E9 48 90 00 [08:53:48]wFMCommunicate OK [08:53:48]SAM_PROTO_SignData done [08:53:48]FM_MakeSignedData done [08:53:48]CreateOFDProtocolMessage [08:53:48]wFMCommunicate request_size=4 [08:53:48]MH_SAM_APDU [08:53:48]CAPDU: 80 11 00 00 [08:53:48]Write to MH i2c: E2 08 00 8C 37 80 11 00 00 00 00 00 00 3D [08:53:48]Write i2c OK [08:53:48]MH_I2C_Read... [08:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:48]Read from MH i2c: E2 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 17 00 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: E2 17 00 8C 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 98 [08:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:53:48]wFMCommunicate OK [08:53:48]CreateOFDProtocolMessage done [08:53:48]OFDSenderStorePacket 139374 [08:53:48]StoreOFDPacket docnum=139374 [08:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 97 36 15 01 70 03 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1F F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6E 20 02 00 35 04 06 00 2C 34 42 C4 5F D4 7E F6 D3 8F 89 8D E9 48 [08:53:48]CheckFolder [08:53:48]dirname=/storage/ofd_packets [08:53:48]CheckFolder done [08:53:48]ProducePacketName [08:53:48]name=ofd_packets/00139374 [08:53:48]NVStorageSaveData ofd_packets/00139374 [08:53:48]File name is /storage/ofd_packets/00139374 [08:53:48]Write 315 bytes [08:53:48]NVStorageSaveData done [08:53:48]OFDSenderStorePacket done [08:53:48]KKMCreateOFDPacket done [08:53:48]NVStorageSaveData kkm_last_timestamp [08:53:48]File name is /storage/kkm_last_timestamp [08:53:48]Write 4 bytes [08:53:48]NVStorageSaveData done [08:53:48]ExternCall_PrintAddStr [08:53:48]wPrintStart [08:53:48]Write to MH i2c: 01 00 00 8D 37 C4 [08:53:48]Write i2c OK [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: 01 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: 01 07 00 [08:53:48]MH_I2C_Read... [08:53:48]Read from MH i2c: 01 07 00 8D 37 00 00 00 00 00 FF 0F D9 [08:53:48]RasterBufferAndPrint [08:53:48]line Счет N : (3)335289 [08:53:48]line ИНН: 02508201610067 [08:53:48]line Контрольно-Кассовый Чек [08:53:48]line ПРОДАЖА [08:53:48]line Товар: 47803152 [08:53:48]line Сигареты Mevius Revo [08:53:48]line 1.000 * 159.00 [08:53:48]line = 159.00 [08:53:48]line НДС 12% НСП 1% [08:53:48]line > о реализуемом товаре [08:53:48]line ИТОГО: 159.00 [08:53:48]line НСП 1% : 1.41 [08:53:48]line НДС 12% : 16.88 [08:53:48]line Наличными: 159.00 [08:53:48]line Безнал.: 0.00 [08:53:48]line Место: АЗС № 101 "Партнер Нефть" [08:53:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:53:48]line СНО: Общий режим [08:53:48]line Чек 58 30.10.2024 08:53 [08:53:48]line Смена: 556 ФФД: 1.0 [08:53:48]line ЗНМ: 0300000081 [08:53:48]line РНМ: 0000000000091631 [08:53:48]line Версия ККМ: 001 [08:53:48]line ФМ: 0000000000874669 [08:53:48]line ФД: 139374 [08:53:48]line ФПД: 48602970087380 [08:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085351&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139374&fm=48602970087380&tin=02508201610067®Number=0000000000091631&sum=15900 [08:53:49]OFD Sender: Processing packet 139374 [packets to send 34, broken 33] [08:53:49]ProducePacketName [08:53:49]name=ofd_packets/00139374 [08:53:49]OFD Sender: To server: pG, [08:53:49]CommunicateWithHost lk.salyk.kg:30040 [08:53:49]ConnectInit lk.salyk.kg [08:53:49]line 0 [08:53:49]written 0, free lines is 4095 [08:53:49]Connected sock=10 [08:53:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 97 36 15 01 70 03 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3A 00 00 00 F4 03 04 00 1F F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6E 20 02 00 35 04 06 00 2C 34 42 C4 5F D4 7E F6 D3 8F 89 8D E9 48 [08:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 02 DD 47 00 BC 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 38 37 34 36 36 39 10 04 04 00 6E 20 02 00 F4 03 04 00 D0 9F 21 67 B6 04 01 00 00 90 F8 7B 58 12 2D 16 AF [08:53:49]CommunicateWithHost err = 0 [08:53:49]CheckOFDResponse [08:53:49]1017 (14) - 77093643461234 [08:53:49]1041 (16) - 0000000000874669 [08:53:49]1040 (4) - 139374 [08:53:49]1012 (4) - 30.10.2024 02:54 [08:53:49]1206 (1) - 0 [08:53:49]OFD Sender: Remove packet 139374 [08:53:49]ProducePacketName [08:53:49]name=ofd_packets/00139374 [08:53:49]NVStorageDeleteData [08:53:49]Write to MH i2c: 01 00 00 B5 37 EC [08:53:49]Write i2c OK [08:53:49]MH_I2C_Read... [08:53:49]Read from MH i2c: 01 [08:53:49]MH_I2C_Read... [08:53:49]Read from MH i2c: 01 07 00 [08:53:49]MH_I2C_Read... [08:53:49]Read from MH i2c: 01 07 00 B5 37 00 00 00 00 00 23 0D 23 [08:53:49]RasterBufferAndPrint [08:53:49]line [08:53:49]line [08:53:49]line [08:53:49]line [08:53:49]line [08:53:49]written 0, free lines is 3372 [08:53:49]MH_Cut [08:53:49]Write to MH i2c: D1 01 00 BC 37 01 C5 [08:53:49]Write i2c OK [08:53:49]MH_I2C_Read... [08:53:49]Read from MH i2c: D1 [08:53:49]MH_I2C_Read... [08:53:49]Read from MH i2c: D1 01 00 [08:53:49]MH_I2C_Read... [08:53:49]Read from MH i2c: D1 01 00 BC 37 00 C4 [08:53:49]Write to MH i2c: 01 00 00 BD 37 F4 [08:53:49]Write i2c OK [08:53:49]MH_I2C_Read... [08:53:49]OFD Sender: No OFD packet to send [08:53:50]*** Cut start [08:53:50]*** Partial cut [08:53:50]*** CUTSNS_PIN = 1 [08:53:50]*** CUTSNS_PIN = 0 [08:53:50]*** Brake cut motor [08:53:50]Read from MH i2c: 01 [08:53:50]MH_I2C_Read... [08:53:50]*** Stop cut motor [08:53:50]*** Cut end [08:53:50]Read from MH i2c: 01 07 00 [08:53:50]MH_I2C_Read... [08:53:50]Read from MH i2c: 01 07 00 BD 37 00 00 00 00 00 FF 0F 09 [08:53:50]process_action close_receipt done [08:53:50]requested_data is exist [08:53:50]produce_requested_data [08:53:50]requested_item fm.sn is exist - process it [08:53:50]wFMCommunicate request_size=4 [08:53:50]MH_SAM_APDU [08:53:50]CAPDU: 80 11 00 00 [08:53:50]Write to MH i2c: E2 08 00 BE 37 80 11 00 00 00 00 00 00 6F [08:53:50]Write i2c OK [08:53:50]MH_I2C_Read... [08:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:53:50]Read from MH i2c: E2 [08:53:50]MH_I2C_Read... [08:53:50]Read from MH i2c: E2 17 00 [08:53:50]MH_I2C_Read... [08:53:50]Read from MH i2c: E2 17 00 BE 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CA [08:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:53:50]wFMCommunicate OK [08:53:50]requested_item fd.num is exist - process it [08:53:50]SAM_PROTO_GetFieldsCounters [08:53:50]wFMCommunicate request_size=4 [08:53:50]MH_SAM_APDU [08:53:50]CAPDU: 80 13 00 00 [08:53:50]Write to MH i2c: E2 08 00 BF 37 80 13 00 00 00 00 00 00 72 [08:53:50]Write i2c OK [08:53:50]MH_I2C_Read... [08:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:53:50]Read from MH i2c: E2 [08:53:50]MH_I2C_Read... [08:53:50]Read from MH i2c: E2 62 00 [08:53:50]MH_I2C_Read... [08:53:50]Read from MH i2c: E2 62 00 BF 37 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6E 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 02 [08:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6E 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3A 00 00 00 5E 04 04 00 3A 00 00 00 57 04 04 00 3B 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:53:50]wFMCommunicate OK [08:53:50]SAM_PROTO_GetFieldsCounters done [08:53:50]requested_item shift.num is exist - process it [08:53:50]requested_item shift.opened is exist - process it [08:53:50]req_shift_opened [08:53:50]FM_GetShiftState [08:53:50]SAM_PROTO_GetShiftState [08:53:50]wFMCommunicate request_size=4 [08:53:50]MH_SAM_APDU [08:53:50]CAPDU: 80 13 01 00 [08:53:50]Write to MH i2c: E2 08 00 C0 37 80 13 01 00 00 00 00 00 74 [08:53:50]Write i2c OK [08:53:50]MH_I2C_Read... [08:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:53:50]Read from MH i2c: E2 [08:53:50]MH_I2C_Read... [08:53:50]Read from MH i2c: E2 0E 00 [08:53:50]MH_I2C_Read... [08:53:50]Read from MH i2c: E2 0E 00 C0 37 00 09 00 01 86 76 21 67 00 00 00 00 90 00 04 [08:53:50]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:53:50]wFMCommunicate OK [08:53:50]SAM_PROTO_GetShiftState done [08:53:50]FM_GetShiftState done [08:53:50]req_shift_opened done [08:53:50]requested_item shift.open_date is exist - process it [08:53:50]req_shift_open_date [08:53:50]req_shift_open_date done [08:53:50]produce_requested_data done [08:53:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139374,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:53:50]process_action_free close_receipt [08:53:50]json_value_free [08:53:50]json_value_free done [08:53:50]process_json_proto returns [08:53:50]Send response to host [08:53:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139374,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:53:50]free response buf [08:53:50]execute_script done [08:53:50]execute_script returns [08:53:50]free content buf [08:53:50]Sock 9.Close socket [08:53:50]Sock 9.Thread stoped [08:53:54]OFD Sender: No OFD packet to send [08:53:59]OFD Sender: No OFD packet to send [08:54:04]OFD Sender: No OFD packet to send [08:54:09]OFD Sender: No OFD packet to send [08:54:13]accept exits with 8 [08:54:13]New connection [08:54:13]New thread 3067284836 created [08:54:13]Thread 3067141476 joined [08:54:13]Waiting for new connection... [08:54:13] Sock 8.Parse request [08:54:13]Sock 8.Check first char [08:54:13]Sock 8.First char is OK [08:54:13]request: POST /json_proto HTTP/1.0 [08:54:13]Method: POST [08:54:13]URL: /json_proto [08:54:13]Method is POST - this is cgi request [08:54:13]url: /json_proto [08:54:13]query_string will be loaded in cgi processing [08:54:13]execute_cgi json_proto POST (null) [08:54:13]execute_cgi path=json_proto method=POST [08:54:13]POST find Content-Length [08:54:13]Host: 172.17.50.196:8080 [08:54:13]Content-Length: 644 [08:54:13]Content-Type: application/json [08:54:13] [08:54:13]POST finish read [08:54:13]Found Content-Length = 644 [08:54:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335291", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:13]execute_script... [08: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 : (3)335291", "tax_sys" : 0, "items" : [ { "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 2.000, "sum" : 230.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 230.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:54:13]POST & json_proto [08:54:13]process_json_proto [08:54:13]json parsed OK: [08:54:13]protocol is kg_v1.0 [08:54:13]action value=close_receipt [08:54:13]process_action close_receipt [08:54:13]cmd_close_receipt [08:54:13]MH_GetDate [08:54:13]Write to MH i2c: F0 00 00 C1 37 E7 [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: F0 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: F0 09 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: F0 09 00 C1 37 00 3A F4 21 67 72 0D 1C 67 A8 [08:54:13]GetLastDocTimeStamp 1730278431 [08:54:13]current date 1730278458 [08:54:13]FM_GetShiftState [08:54:13]SAM_PROTO_GetShiftState [08:54:13]wFMCommunicate request_size=4 [08:54:13]MH_SAM_APDU [08:54:13]CAPDU: 80 13 01 00 [08:54:13]Write to MH i2c: E2 08 00 C2 37 80 13 01 00 00 00 00 00 76 [08:54:13]Write i2c OK [08:54:13]MH_I2C_Read... [08:54:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:13]Read from MH i2c: E2 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 0E 00 [08:54:13]MH_I2C_Read... [08:54:13]Read from MH i2c: E2 0E 00 C2 37 00 09 00 01 86 76 21 67 00 00 00 00 90 00 06 [08:54:13]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:54:13]wFMCommunicate OK [08:54:13]SAM_PROTO_GetShiftState done [08:54:13]FM_GetShiftState done [08:54:13]opened in 1730246278 [08:54:13]opened+sec_in_day 1730332678 [08:54:13]quantity*price = 23000 [08:54:13]sum+1 = 23001 [08:54:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 230.00 НСП 1% : 2.03 НДС 12% : 24.42 Наличными: 230.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 59 30.10.2024 08:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139375 ФПД: 190349044604303 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085418&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139375&fm=190349044604303&tin=02508201610067®Number=0000000000091631&sum=23000 0 [08:54:15]StoreToDocumentArchive [08:54:15]shift 556 fd 139375 [08:54:15]save to /storage/0556/doc_00139375 [08:54:15]save last doc name /storage/0556/doc_00139375 to /storage/kkm_last_doc_name [08:54:15]save OK [08:54:15]Clear old archive folders... [08:54:15]ProcessDocumentItem done err = 0, tmpTLVsize=280 [08:54:15]tlvbuf is 0120E810 [08:54:15]SAM_PROTO_ClearQueue [08:54:15]wFMCommunicate request_size=4 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 09 00 00 [08:54:15]Write to MH i2c: E2 08 00 CF 37 80 09 00 00 00 00 00 00 78 [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 03 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 03 00 CF 37 00 90 00 7A [08:54:15]RAPDU: 90 00 [08:54:15]wFMCommunicate OK [08:54:15]SAM_PROTO_ClearQueue done [08:54:15]KKMCreateOFDPacket [08:54:15]OFDProtocolAddRootSTLVToBuf [08:54:15]FM_MakeSignedData [08:54:15]FM_MakeSignedData [08:54:15]SAM_PROTO_SignData [08:54:15]wFMCommunicate request_size=4 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 0D 01 02 [08:54:15]Write to MH i2c: E2 08 00 D0 37 80 0D 01 02 00 00 00 00 80 [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 03 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 03 00 D0 37 00 90 00 7B [08:54:15]RAPDU: 90 00 [08:54:15]wFMCommunicate OK [08:54:15]wFMCommunicate request_size=255 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3A F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [08:54:15]Write to MH i2c: E2 02 01 D1 37 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3A F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 00 40 [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 03 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 03 00 D1 37 00 90 00 7C [08:54:15]RAPDU: 90 00 [08:54:15]wFMCommunicate OK [08:54:15]wFMCommunicate request_size=39 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 20 02 00 35 04 06 00 AD 1F 17 2F DD 8F [08:54:15]Write to MH i2c: E2 2A 00 D2 37 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 20 02 00 35 04 06 00 AD 1F 17 2F DD 8F 00 00 55 [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 03 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 03 00 D2 37 00 90 00 7D [08:54:15]RAPDU: 90 00 [08:54:15]wFMCommunicate OK [08:54:15]wFMCommunicate request_size=4 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 0D 03 02 [08:54:15]Write to MH i2c: E2 08 00 D3 37 80 0D 03 02 00 00 00 00 85 [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 0B 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 0B 00 D3 37 00 A3 AD 21 83 AF D9 13 2A 90 00 3F [08:54:15]RAPDU: A3 AD 21 83 AF D9 13 2A 90 00 [08:54:15]wFMCommunicate OK [08:54:15]SAM_PROTO_SignData done [08:54:15]FM_MakeSignedData done [08:54:15]CreateOFDProtocolMessage [08:54:15]wFMCommunicate request_size=4 [08:54:15]MH_SAM_APDU [08:54:15]CAPDU: 80 11 00 00 [08:54:15]Write to MH i2c: E2 08 00 D4 37 80 11 00 00 00 00 00 00 85 [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:15]Read from MH i2c: E2 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 17 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: E2 17 00 D4 37 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E0 [08:54:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:54:15]wFMCommunicate OK [08:54:15]CreateOFDProtocolMessage done [08:54:15]OFDSenderStorePacket 139375 [08:54:15]StoreOFDPacket docnum=139375 [08:54:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 BA 10 24 01 15 6C 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3A F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 20 02 00 35 04 06 00 AD 1F 17 2F DD 8F A3 AD 21 83 AF D9 13 2A [08:54:15]CheckFolder [08:54:15]dirname=/storage/ofd_packets [08:54:15]CheckFolder done [08:54:15]ProducePacketName [08:54:15]name=ofd_packets/00139375 [08:54:15]NVStorageSaveData ofd_packets/00139375 [08:54:15]File name is /storage/ofd_packets/00139375 [08:54:15]Write 330 bytes [08:54:15]NVStorageSaveData done [08:54:15]OFDSenderStorePacket done [08:54:15]KKMCreateOFDPacket done [08:54:15]NVStorageSaveData kkm_last_timestamp [08:54:15]File name is /storage/kkm_last_timestamp [08:54:15]Write 4 bytes [08:54:15]NVStorageSaveData done [08:54:15]ExternCall_PrintAddStr [08:54:15]wPrintStart [08:54:15]Write to MH i2c: 01 00 00 D5 37 0C [08:54:15]Write i2c OK [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: 01 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: 01 07 00 [08:54:15]MH_I2C_Read... [08:54:15]Read from MH i2c: 01 07 00 D5 37 00 00 00 00 00 FF 0F 21 [08:54:15]RasterBufferAndPrint [08:54:15]line Счет N : (3)335291 [08:54:15]line ИНН: 02508201610067 [08:54:15]line Контрольно-Кассовый Чек [08:54:15]line ПРОДАЖА [08:54:15]line Товар: 2000036210013 [08:54:15]line Кофе Капучино (GABB TRADE) [08:54:15]line 2.000 * 115.00 [08:54:15]line = 230.00 [08:54:15]line НДС 12% НСП 1% [08:54:15]line > о реализуемом товаре [08:54:15]line ИТОГО: 230.00 [08:54:15]line НСП 1% : 2.03 [08:54:15]line НДС 12% : 24.42 [08:54:15]line Наличными: 230.00 [08:54:15]line Безнал.: 0.00 [08:54:15]line Место: АЗС № 101 "Партнер Нефть" [08:54:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [08:54:15]line СНО: Общий режим [08:54:15]line Чек 59 30.10.2024 08:54 [08:54:15]line Смена: 556 ФФД: 1.0 [08:54:15]line ЗНМ: 0300000081 [08:54:15]line РНМ: 0000000000091631 [08:54:15]line Версия ККМ: 001 [08:54:15]line ФМ: 0000000000874669 [08:54:15]line ФД: 139375 [08:54:15]line ФПД: 190349044604303 [08:54:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085418&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139375&fm=190349044604303&tin=02508201610067®Number=0000000000091631&sum=23000 [08:54:15]line 0 [08:54:15]OFD Sender: Processing packet 139375 [packets to send 34, broken 33] [08:54:15]ProducePacketName [08:54:15]name=ofd_packets/00139375 [08:54:15]OFD Sender: To server: pG, [08:54:15]CommunicateWithHost lk.salyk.kg:30040 [08:54:15]ConnectInit lk.salyk.kg [08:54:15]written 0, free lines is 4095 [08:54:16]Connected sock=10 [08:54:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 BA 10 24 01 15 6C 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 D8 59 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D8 59 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CB 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 8A 09 00 00 00 00 07 04 06 00 D8 59 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3B 00 00 00 F4 03 04 00 3A F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 20 02 00 35 04 06 00 AD 1F 17 2F DD 8F A3 AD 21 83 AF D9 13 2A [08:54:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 84 6B 47 00 3F A0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 6F 20 02 00 F4 03 04 00 EB 9F 21 67 B6 04 01 00 00 2C D7 DB 77 54 87 55 55 [08:54:16]CommunicateWithHost err = 0 [08:54:16]CheckOFDResponse [08:54:16]1017 (14) - 77093643461234 [08:54:16]1041 (16) - 0000000000874669 [08:54:16]1040 (4) - 139375 [08:54:16]1012 (4) - 30.10.2024 02:54 [08:54:16]1206 (1) - 0 [08:54:16]OFD Sender: Remove packet 139375 [08:54:16]ProducePacketName [08:54:16]name=ofd_packets/00139375 [08:54:16]NVStorageDeleteData [08:54:16]Write to MH i2c: 01 00 00 FD 37 34 [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 07 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: 01 07 00 FD 37 00 00 00 00 00 39 0D 81 [08:54:16]RasterBufferAndPrint [08:54:16]line [08:54:16]line [08:54:16]line [08:54:16]line [08:54:16]line [08:54:16]written 0, free lines is 3394 [08:54:16]MH_Cut [08:54:16]Write to MH i2c: D1 01 00 04 38 01 0E [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: D1 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: D1 01 00 [08:54:16]MH_I2C_Read... [08:54:16]Read from MH i2c: D1 01 00 04 38 00 0D [08:54:16]Write to MH i2c: 01 00 00 05 38 3D [08:54:16]Write i2c OK [08:54:16]MH_I2C_Read... [08:54:16]OFD Sender: No OFD packet to send [08:54:17]*** Cut start [08:54:17]*** Partial cut [08:54:17]*** CUTSNS_PIN = 1 [08:54:17]*** CUTSNS_PIN = 0 [08:54:17]*** Brake cut motor [08:54:17]Read from MH i2c: 01 [08:54:17]MH_I2C_Read... [08:54:17]*** Stop cut motor [08:54:17]*** Cut end [08:54:17]Read from MH i2c: 01 07 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: 01 07 00 05 38 00 00 00 00 00 FF 0F 52 [08:54:17]process_action close_receipt done [08:54:17]requested_data is exist [08:54:17]produce_requested_data [08:54:17]requested_item fm.sn is exist - process it [08:54:17]wFMCommunicate request_size=4 [08:54:17]MH_SAM_APDU [08:54:17]CAPDU: 80 11 00 00 [08:54:17]Write to MH i2c: E2 08 00 06 38 80 11 00 00 00 00 00 00 B8 [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:54:17]Read from MH i2c: E2 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 17 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 17 00 06 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 13 [08:54:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:54:17]wFMCommunicate OK [08:54:17]requested_item fd.num is exist - process it [08:54:17]SAM_PROTO_GetFieldsCounters [08:54:17]wFMCommunicate request_size=4 [08:54:17]MH_SAM_APDU [08:54:17]CAPDU: 80 13 00 00 [08:54:17]Write to MH i2c: E2 08 00 07 38 80 13 00 00 00 00 00 00 BB [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [08:54:17]Read from MH i2c: E2 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 62 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 62 00 07 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6F 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 4F [08:54:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 6F 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3B 00 00 00 5E 04 04 00 3B 00 00 00 57 04 04 00 3C 00 00 00 19 04 04 00 00 00 00 00 90 00 [08:54:17]wFMCommunicate OK [08:54:17]SAM_PROTO_GetFieldsCounters done [08:54:17]requested_item shift.num is exist - process it [08:54:17]requested_item shift.opened is exist - process it [08:54:17]req_shift_opened [08:54:17]FM_GetShiftState [08:54:17]SAM_PROTO_GetShiftState [08:54:17]wFMCommunicate request_size=4 [08:54:17]MH_SAM_APDU [08:54:17]CAPDU: 80 13 01 00 [08:54:17]Write to MH i2c: E2 08 00 08 38 80 13 01 00 00 00 00 00 BD [08:54:17]Write i2c OK [08:54:17]MH_I2C_Read... [08:54:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:54:17]Read from MH i2c: E2 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 0E 00 [08:54:17]MH_I2C_Read... [08:54:17]Read from MH i2c: E2 0E 00 08 38 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4D [08:54:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:54:17]wFMCommunicate OK [08:54:17]SAM_PROTO_GetShiftState done [08:54:17]FM_GetShiftState done [08:54:17]req_shift_opened done [08:54:17]requested_item shift.open_date is exist - process it [08:54:17]req_shift_open_date [08:54:17]req_shift_open_date done [08:54:17]produce_requested_data done [08:54:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139375,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [08:54:17]process_action_free close_receipt [08:54:17]json_value_free [08:54:17]json_value_free done [08:54:17]process_json_proto returns [08:54:17]Send response to host [08:54:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139375,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:54:17]free response buf [08:54:17]execute_script done [08:54:17]execute_script returns [08:54:17]free content buf [08:54:17]Sock 8.Close socket [08:54:17]Sock 8.Thread stoped [08:54:21]OFD Sender: No OFD packet to send [08:54:26]OFD Sender: No OFD packet to send [08:54:31]OFD Sender: No OFD packet to send [08:54:36]OFD Sender: No OFD packet to send [08:54:41]OFD Sender: No OFD packet to send [08:54:46]OFD Sender: No OFD packet to send [08:54:51]OFD Sender: No OFD packet to send [08:54:56]OFD Sender: No OFD packet to send [08:55:01]OFD Sender: No OFD packet to send [08:55:06]OFD Sender: No OFD packet to send [08:55:11]OFD Sender: No OFD packet to send [08:55:16]OFD Sender: No OFD packet to send [08:55:21]OFD Sender: No OFD packet to send [08:55:26]OFD Sender: No OFD packet to send [08:55:31]OFD Sender: No OFD packet to send [08:55:36]OFD Sender: No OFD packet to send [08:55:41]OFD Sender: No OFD packet to send [08:55:46]OFD Sender: No OFD packet to send [08:55:51]OFD Sender: No OFD packet to send [08:55:56]OFD Sender: No OFD packet to send [08:56:01]OFD Sender: No OFD packet to send [08:56:06]OFD Sender: No OFD packet to send [08:56:11]OFD Sender: No OFD packet to send [08:56:16]OFD Sender: No OFD packet to send [08:56:21]OFD Sender: No OFD packet to send [08:56:26]OFD Sender: No OFD packet to send [08:56:27]accept exits with 9 [08:56:27]New connection [08:56:27]New thread 3067141476 created [08:56:27]Thread 3067284836 joined [08:56:27]Waiting for new connection... [08:56:27] Sock 9.Parse request [08:56:27]Sock 9.Check first char [08:56:27]Sock 9.First char is OK [08:56:27]request: POST /json_proto HTTP/1.0 [08:56:27]Method: POST [08:56:27]URL: /json_proto [08:56:27]Method is POST - this is cgi request [08:56:27]url: /json_proto [08:56:27]query_string will be loaded in cgi processing [08:56:27]execute_cgi json_proto POST (null) [08:56:27]execute_cgi path=json_proto method=POST [08:56:27]POST find Content-Length [08:56:27]Host: 172.17.50.196:8080 [08:56:27]Content-Length: 621 [08:56:27]Content-Type: application/json [08:56:27] [08:56:27]POST finish read [08:56:27]Found Content-Length = 621 [08:56:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335292", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:27]execute_script... [08:56: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 : (3)335292", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [08:56:27]POST & json_proto [08:56:27]process_json_proto [08:56:27]json parsed OK: [08:56:27]protocol is kg_v1.0 [08:56:27]action value=close_receipt [08:56:27]process_action close_receipt [08:56:27]cmd_close_receipt [08:56:27]MH_GetDate [08:56:27]Write to MH i2c: F0 00 00 09 38 30 [08:56:27]Write i2c OK [08:56:27]MH_I2C_Read... [08:56:27]Read from MH i2c: F0 [08:56:27]MH_I2C_Read... [08:56:27]Read from MH i2c: F0 09 00 [08:56:27]MH_I2C_Read... [08:56:27]Read from MH i2c: F0 09 00 09 38 00 C0 F4 21 67 72 0D 1C 67 77 [08:56:27]GetLastDocTimeStamp 1730278458 [08:56:27]current date 1730278592 [08:56:27]FM_GetShiftState [08:56:27]SAM_PROTO_GetShiftState [08:56:27]wFMCommunicate request_size=4 [08:56:27]MH_SAM_APDU [08:56:27]CAPDU: 80 13 01 00 [08:56:27]Write to MH i2c: E2 08 00 0A 38 80 13 01 00 00 00 00 00 BF [08:56:27]Write i2c OK [08:56:27]MH_I2C_Read... [08:56:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [08:56:27]Read from MH i2c: E2 [08:56:27]MH_I2C_Read... [08:56:27]Read from MH i2c: E2 0E 00 [08:56:27]MH_I2C_Read... [08:56:27]Read from MH i2c: E2 0E 00 0A 38 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4F [08:56:27]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [08:56:27]wFMCommunicate OK [08:56:27]SAM_PROTO_GetShiftState done [08:56:27]FM_GetShiftState done [08:56:27]opened in 1730246278 [08:56:27]opened+sec_in_day 1730332678 [08:56:27]quantity*price = 14900 [08:56:27]sum+1 = 14901 [08:56:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 60 30.10.2024 08:56 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139376 ФПД: 195536308881628 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T085632&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139376&fm=195536308881628&tin=02508201610067®Number=0000000000091631&sum=14900 0 [08:56:29]StoreToDocumentArchive [08:56:29]shift 556 fd 139376 [08:56:29]save to /storage/0556/doc_00139376 [08:56:29]save last doc name /storage/0556/doc_00139376 to /storage/kkm_last_doc_name [08:56:29]save OK [08:56:29]Clear old archive folders... [08:56:29]ProcessDocumentItem done err = 0, tmpTLVsize=273 [08:56:29]tlvbuf is 01115110 [08:56:29]SAM_PROTO_ClearQueue [08:56:29]wFMCommunicate request_size=4 [08:56:29]MH_SAM_APDU [08:56:29]CAPDU: 80 09 00 00 [08:56:29]Write to MH i2c: E2 08 00 17 38 80 09 00 00 00 00 00 00 C1 [08:56:29]Write i2c OK [08:56:29]MH_I2C_Read... [08:56:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [08:56:29]Read from MH i2c: E2 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 03 00 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 03 00 17 38 00 90 00 C3 [08:56:29]RAPDU: 90 00 [08:56:29]wFMCommunicate OK [08:56:29]SAM_PROTO_ClearQueue done [08:56:29]KKMCreateOFDPacket [08:56:29]OFDProtocolAddRootSTLVToBuf [08:56:29]FM_MakeSignedData [08:56:29]FM_MakeSignedData [08:56:29]SAM_PROTO_SignData [08:56:29]wFMCommunicate request_size=4 [08:56:29]MH_SAM_APDU [08:56:29]CAPDU: 80 0D 01 02 [08:56:29]Write to MH i2c: E2 08 00 18 38 80 0D 01 02 00 00 00 00 C9 [08:56:29]Write i2c OK [08:56:29]MH_I2C_Read... [08:56:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [08:56:29]Read from MH i2c: E2 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 03 00 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 03 00 18 38 00 90 00 C4 [08:56:29]RAPDU: 90 00 [08:56:29]wFMCommunicate OK [08:56:29]wFMCommunicate request_size=255 [08:56:29]MH_SAM_APDU [08:56:29]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 3C 00 00 00 F4 03 04 00 C0 F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [08:56:29]Write to MH i2c: E2 02 01 19 38 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 3C 00 00 00 F4 03 04 00 C0 F4 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 05 [08:56:29]Write i2c OK [08:56:29]MH_I2C_Read... [08:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:29]Read from MH i2c: E2 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 03 00 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 03 00 19 38 00 90 00 C5 [08:56:29]RAPDU: 90 00 [08:56:29]wFMCommunicate OK [08:56:29]wFMCommunicate request_size=32 [08:56:29]MH_SAM_APDU [08:56:29]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 70 20 02 00 35 04 06 00 B1 D6 D8 3B 48 DC [08:56:29]Write to MH i2c: E2 23 00 1A 38 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 70 20 02 00 35 04 06 00 B1 D6 D8 3B 48 DC 00 00 81 [08:56:29]Write i2c OK [08:56:29]MH_I2C_Read... [08:56:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [08:56:29]Read from MH i2c: E2 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 03 00 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 03 00 1A 38 00 90 00 C6 [08:56:29]RAPDU: 90 00 [08:56:29]wFMCommunicate OK [08:56:29]wFMCommunicate request_size=4 [08:56:29]MH_SAM_APDU [08:56:29]CAPDU: 80 0D 03 02 [08:56:29]Write to MH i2c: E2 08 00 1B 38 80 0D 03 02 00 00 00 00 CE [08:56:29]Write i2c OK [08:56:29]MH_I2C_Read... [08:56:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [08:56:29]Read from MH i2c: E2 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 0B 00 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 0B 00 1B 38 00 89 3B 5F 7A E3 47 15 D5 90 00 80 [08:56:29]RAPDU: 89 3B 5F 7A E3 47 15 D5 90 00 [08:56:29]wFMCommunicate OK [08:56:29]SAM_PROTO_SignData done [08:56:29]FM_MakeSignedData done [08:56:29]CreateOFDProtocolMessage [08:56:29]wFMCommunicate request_size=4 [08:56:29]MH_SAM_APDU [08:56:29]CAPDU: 80 11 00 00 [08:56:29]Write to MH i2c: E2 08 00 1C 38 80 11 00 00 00 00 00 00 CE [08:56:29]Write i2c OK [08:56:29]MH_I2C_Read... [08:56:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [08:56:29]Read from MH i2c: E2 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 17 00 [08:56:29]MH_I2C_Read... [08:56:29]Read from MH i2c: E2 17 00 1C 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 29 [08:56:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [08:56:29]wFMCommunicate OK [08:56:29]CreateOFDProtocolMessage done [08:56:29]OFDSenderStorePacket 139376 [08:56:29]StoreOFDPacket docnum=139376 [08:56:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139376,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [08:56:31]free response buf [08:56:31]execute_script done [08:56:31]execute_script returns [08:56:31]free content buf [08:56:31]Sock 9.Close socket [08:56:31]Sock 9.Thread stoped [08:56:35]OFD Sender: No OFD packet to send [08:56:40]OFD Sender: No OFD packet to send [08:56:45]OFD Sender: No OFD packet to send [08:56:50]OFD Sender: No OFD packet to send [08:56:55]OFD Sender: No OFD packet to send [08:57:00]OFD Sender: No OFD packet to send [08:57:05]OFD Sender: No OFD packet to send [08:57:10]OFD Sender: No OFD packet to send [08:57:15]OFD Sender: No OFD packet to send [08:57:20]OFD Sender: No OFD packet to send [08:57:25]OFD Sender: No OFD packet to send [08:57:30]OFD Sender: No OFD packet to send [08:57:35]OFD Sender: No OFD packet to send [08:57:40]OFD Sender: No OFD packet to send [08:57:45]OFD Sender: No OFD packet to send [08:57:50]OFD Sender: No OFD packet to send [08:57:55]OFD Sender: No OFD packet to send [08:58:00]OFD Sender: No OFD packet to send [08:58:05]OFD Sender: No OFD packet to send [08:58:10]OFD Sender: No OFD packet to send [08:58:15]OFD Sender: No OFD packet to send [08:58:20]OFD Sender: No OFD packet to send [08:58:25]OFD Sender: No OFD packet to send [08:58:30]OFD Sender: No OFD packet to send [08:58:35]OFD Sender: No OFD packet to send [08:58:40]OFD Sender: No OFD packet to send [08:58:45]OFD Sender: No OFD packet to send [08:58:50]OFD Sender: No OFD packet to send [08:58:55]OFD Sender: No OFD packet to send [08:59:00]OFD Sender: No OFD packet to send [08:59:05]OFD Sender: No OFD packet to send [08:59:10]OFD Sender: No OFD packet to send [08:59:15]OFD Sender: No OFD packet to send [08:59:20]OFD Sender: No OFD packet to send [08:59:25]OFD Sender: No OFD packet to send [08:59:30]OFD Sender: No OFD packet to send [08:59:35]OFD Sender: No OFD packet to send [08:59:40]OFD Sender: No OFD packet to send [08:59:45]OFD Sender: No OFD packet to send [08:59:50]OFD Sender: No OFD packet to send [08:59:55]OFD Sender: No OFD packet to send [09:00:00]OFD Sender: No OFD packet to send [09:00:02]ConnectInit Can't connect to host [09:00:05]OFD Sender: No OFD packet to send [09:00:15]OFD Sender: No OFD packet to send [09:00:20]OFD Sender: No OFD packet to send [09:00:25]OFD Sender: No OFD packet to send [09:00:30]OFD Sender: No OFD packet to send [09:00:35]OFD Sender: No OFD packet to send [09:00:40]OFD Sender: No OFD packet to send [09:00:45]OFD Sender: No OFD packet to send [09:00:50]OFD Sender: No OFD packet to send [09:00:55]OFD Sender: No OFD packet to send [09:01:00]OFD Sender: No OFD packet to send [09:01:05]OFD Sender: No OFD packet to send [09:01:10]OFD Sender: No OFD packet to send [09:01:15]OFD Sender: No OFD packet to send [09:01:20]OFD Sender: No OFD packet to send [09:01:25]OFD Sender: No OFD packet to send [09:01:30]OFD Sender: No OFD packet to send [09:01:35]OFD Sender: No OFD packet to send [09:01:40]OFD Sender: No OFD packet to send [09:01:45]OFD Sender: No OFD packet to send [09:01:50]OFD Sender: No OFD packet to send [09:01:55]OFD Sender: No OFD packet to send [09:02:00]OFD Sender: No OFD packet to send [09:02:05]OFD Sender: No OFD packet to send [09:02:10]OFD Sender: No OFD packet to send [09:02:16]OFD Sender: No OFD packet to send [09:02:21]OFD Sender: No OFD packet to send [09:02:25]ConnectInit Can't connect to host [09:02:26]OFD Sender: No OFD packet to send [09:02:56]OFD Sender: No OFD packet to send [09:03:01]OFD Sender: No OFD packet to send [09:03:06]OFD Sender: No OFD packet to send [09:03:11]OFD Sender: No OFD packet to send [09:03:16]OFD Sender: No OFD packet to send [09:03:21]OFD Sender: No OFD packet to send [09:03:26]OFD Sender: No OFD packet to send [09:03:31]OFD Sender: No OFD packet to send [09:03:36]OFD Sender: No OFD packet to send [09:03:41]OFD Sender: No OFD packet to send [09:03:46]OFD Sender: No OFD packet to send [09:03:51]OFD Sender: No OFD packet to send [09:03:56]OFD Sender: No OFD packet to send [09:04:01]OFD Sender: No OFD packet to send [09:04:06]OFD Sender: No OFD packet to send [09:04:11]OFD Sender: No OFD packet to send [09:04:16]OFD Sender: No OFD packet to send [09:04:21]OFD Sender: No OFD packet to send [09:04:26]OFD Sender: No OFD packet to send [09:04:31]OFD Sender: No OFD packet to send [09:04:36]OFD Sender: No OFD packet to send [09:04:41]OFD Sender: No OFD packet to send [09:04:46]OFD Sender: No OFD packet to send [09:04:51]OFD Sender: No OFD packet to send [09:04:56]OFD Sender: No OFD packet to send [09:05:01]OFD Sender: No OFD packet to send [09:05:04]ConnectInit Can't connect to host [09:05:06]OFD Sender: No OFD packet to send [09:05:11]OFD Sender: No OFD packet to send [09:05:16]OFD Sender: No OFD packet to send [09:05:21]OFD Sender: No OFD packet to send [09:05:31]OFD Sender: No OFD packet to send [09:05:36]OFD Sender: No OFD packet to send [09:05:41]OFD Sender: No OFD packet to send [09:05:46]OFD Sender: No OFD packet to send [09:05:51]OFD Sender: No OFD packet to send [09:05:56]OFD Sender: No OFD packet to send [09:06:01]OFD Sender: No OFD packet to send [09:06:06]OFD Sender: No OFD packet to send [09:06:11]OFD Sender: No OFD packet to send [09:06:16]OFD Sender: No OFD packet to send [09:06:21]OFD Sender: No OFD packet to send [09:06:26]OFD Sender: No OFD packet to send [09:06:31]OFD Sender: No OFD packet to send [09:06:36]OFD Sender: No OFD packet to send [09:06:41]OFD Sender: No OFD packet to send [09:06:46]OFD Sender: No OFD packet to send [09:06:51]OFD Sender: No OFD packet to send [09:06:56]OFD Sender: No OFD packet to send [09:07:01]OFD Sender: No OFD packet to send [09:07:06]OFD Sender: No OFD packet to send [09:07:11]OFD Sender: No OFD packet to send [09:07:16]OFD Sender: No OFD packet to send [09:07:21]OFD Sender: No OFD packet to send [09:07:26]OFD Sender: No OFD packet to send [09:07:31]OFD Sender: No OFD packet to send [09:07:36]OFD Sender: No OFD packet to send [09:07:41]OFD Sender: No OFD packet to send [09:07:42]ConnectInit Can't connect to host [09:07:46]OFD Sender: No OFD packet to send [09:07:51]OFD Sender: No OFD packet to send [09:07:56]OFD Sender: No OFD packet to send [09:08:01]OFD Sender: No OFD packet to send [09:08:06]OFD Sender: No OFD packet to send [09:08:11]OFD Sender: No OFD packet to send [09:08:16]OFD Sender: No OFD packet to send [09:08:21]OFD Sender: No OFD packet to send [09:08:26]OFD Sender: No OFD packet to send [09:08:31]OFD Sender: No OFD packet to send [09:08:36]OFD Sender: No OFD packet to send [09:08:41]OFD Sender: No OFD packet to send [09:08:46]OFD Sender: No OFD packet to send [09:08:51]OFD Sender: No OFD packet to send [09:08:56]OFD Sender: No OFD packet to send [09:09:01]OFD Sender: No OFD packet to send [09:09:06]OFD Sender: No OFD packet to send [09:09:11]OFD Sender: No OFD packet to send [09:09:16]OFD Sender: No OFD packet to send [09:09:21]OFD Sender: No OFD packet to send [09:09:26]OFD Sender: No OFD packet to send [09:09:31]OFD Sender: No OFD packet to send [09:09:36]OFD Sender: No OFD packet to send [09:09:41]OFD Sender: No OFD packet to send [09:09:46]OFD Sender: No OFD packet to send [09:09:51]OFD Sender: No OFD packet to send [09:09:56]OFD Sender: No OFD packet to send [09:10:01]OFD Sender: No OFD packet to send [09:10:06]OFD Sender: No OFD packet to send [09:10:11]OFD Sender: No OFD packet to send [09:10:16]OFD Sender: No OFD packet to send [09:10:21]OFD Sender: No OFD packet to send [09:10:26]OFD Sender: No OFD packet to send [09:10:31]OFD Sender: No OFD packet to send [09:10:36]OFD Sender: No OFD packet to send [09:10:41]OFD Sender: No OFD packet to send [09:10:46]OFD Sender: No OFD packet to send [09:10:51]OFD Sender: No OFD packet to send [09:10:56]OFD Sender: No OFD packet to send [09:11:01]OFD Sender: No OFD packet to send [09:11:06]OFD Sender: No OFD packet to send [09:11:11]OFD Sender: No OFD packet to send [09:11:16]OFD Sender: No OFD packet to send [09:11:21]OFD Sender: No OFD packet to send [09:11:26]OFD Sender: No OFD packet to send [09:11:31]OFD Sender: No OFD packet to send [09:11:36]OFD Sender: No OFD packet to send [09:11:41]OFD Sender: No OFD packet to send [09:11:46]OFD Sender: No OFD packet to send [09:11:51]OFD Sender: No OFD packet to send [09:11:56]OFD Sender: No OFD packet to send [09:12:01]OFD Sender: No OFD packet to send [09:12:06]OFD Sender: No OFD packet to send [09:12:11]OFD Sender: No OFD packet to send [09:12:16]OFD Sender: No OFD packet to send [09:12:21]OFD Sender: No OFD packet to send [09:12:26]OFD Sender: No OFD packet to send [09:12:31]OFD Sender: No OFD packet to send [09:12:36]OFD Sender: No OFD packet to send [09:12:41]OFD Sender: No OFD packet to send [09:12:46]OFD Sender: No OFD packet to send [09:12:51]OFD Sender: No OFD packet to send [09:12:56]OFD Sender: No OFD packet to send [09:13:01]OFD Sender: No OFD packet to send [09:13:06]OFD Sender: No OFD packet to send [09:13:11]OFD Sender: No OFD packet to send [09:13:16]OFD Sender: No OFD packet to send [09:13:21]OFD Sender: No OFD packet to send [09:13:26]OFD Sender: No OFD packet to send [09:13:31]OFD Sender: No OFD packet to send [09:13:36]OFD Sender: No OFD packet to send [09:13:41]OFD Sender: No OFD packet to send [09:13:46]OFD Sender: No OFD packet to send [09:13:51]OFD Sender: No OFD packet to send [09:13:56]OFD Sender: No OFD packet to send [09:14:01]OFD Sender: No OFD packet to send [09:14:06]OFD Sender: No OFD packet to send [09:14:11]OFD Sender: No OFD packet to send [09:14:16]OFD Sender: No OFD packet to send [09:14:21]OFD Sender: No OFD packet to send [09:14:26]OFD Sender: No OFD packet to send [09:14:31]OFD Sender: No OFD packet to send [09:14:36]OFD Sender: No OFD packet to send [09:14:41]OFD Sender: No OFD packet to send [09:14:46]OFD Sender: No OFD packet to send [09:14:51]OFD Sender: No OFD packet to send [09:14:56]OFD Sender: No OFD packet to send [09:15:01]OFD Sender: No OFD packet to send [09:15:06]OFD Sender: No OFD packet to send [09:15:11]OFD Sender: No OFD packet to send [09:15:16]OFD Sender: No OFD packet to send [09:15:21]OFD Sender: No OFD packet to send [09:15:26]OFD Sender: No OFD packet to send [09:15:31]OFD Sender: No OFD packet to send [09:15:36]OFD Sender: No OFD packet to send [09:15:41]OFD Sender: No OFD packet to send [09:15:46]OFD Sender: No OFD packet to send [09:15:51]OFD Sender: No OFD packet to send [09:15:56]OFD Sender: No OFD packet to send [09:16:01]OFD Sender: No OFD packet to send [09:16:06]OFD Sender: No OFD packet to send [09:16:11]OFD Sender: No OFD packet to send [09:16:16]OFD Sender: No OFD packet to send [09:16:21]OFD Sender: No OFD packet to send [09:16:26]OFD Sender: No OFD packet to send [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:01]OFD Sender: No OFD packet to send [09:17:06]OFD Sender: No OFD packet to send [09:17:11]OFD Sender: No OFD packet to send [09:17:16]OFD Sender: No OFD packet to send [09:17:21]OFD Sender: No OFD packet to send [09:17:26]OFD Sender: No OFD packet to send [09:17:31]OFD Sender: No OFD packet to send [09:17:36]OFD Sender: No OFD packet to send [09:17:41]OFD Sender: No OFD packet to send [09:17:46]OFD Sender: No OFD packet to send [09:17:51]OFD Sender: No OFD packet to send [09:17:56]OFD Sender: No OFD packet to send [09:18:01]OFD Sender: No OFD packet to send [09:18:06]OFD Sender: No OFD packet to send [09:18:11]OFD Sender: No OFD packet to send [09:18:16]OFD Sender: No OFD packet to send [09:18:21]OFD Sender: No OFD packet to send [09:18:26]OFD Sender: No OFD packet to send [09:18:31]OFD Sender: No OFD packet to send [09:18:36]OFD Sender: No OFD packet to send [09:18:41]OFD Sender: No OFD packet to send [09:18:46]OFD Sender: No OFD packet to send [09:18:51]OFD Sender: No OFD packet to send [09:18:56]OFD Sender: No OFD packet to send [09:19:01]OFD Sender: No OFD packet to send [09:19:06]OFD Sender: No OFD packet to send [09:19:11]OFD Sender: No OFD packet to send [09:19:16]OFD Sender: No OFD packet to send [09:19:21]OFD Sender: No OFD packet to send [09:19:21]accept exits with 10 [09:19:21]New connection [09:19:21]New thread 3067284836 created [09:19:21]Thread 3067141476 joined [09:19:21]Waiting for new connection... [09:19:21] Sock 10.Parse request [09:19:21]Sock 10.Check first char [09:19:21]Sock 10.First char is OK [09:19:21]request: POST /json_proto HTTP/1.0 [09:19:21]Method: POST [09:19:21]URL: /json_proto [09:19:21]Method is POST - this is cgi request [09:19:21]url: /json_proto [09:19:21]query_string will be loaded in cgi processing [09:19:21]execute_cgi json_proto POST (null) [09:19:21]execute_cgi path=json_proto method=POST [09:19:21]POST find Content-Length [09:19:21]Host: 172.17.50.196:8080 [09:19:21]Content-Length: 666 [09:19:21]Content-Type: application/json [09:19:21] [09:19:21]POST finish read [09:19:21]Found Content-Length = 666 [09:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335293", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:21]execute_script... [09:19: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 : (3)335293", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:19:21]POST & json_proto [09:19:21]process_json_proto [09:19:21]json parsed OK: [09:19:21]protocol is kg_v1.0 [09:19:21]action value=close_receipt [09:19:21]process_action close_receipt [09:19:21]cmd_close_receipt [09:19:21]MH_GetDate [09:19:21]Write to MH i2c: F0 00 00 51 38 78 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: F0 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: F0 09 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: F0 09 00 51 38 00 1E FA 21 67 72 0D 1C 67 23 [09:19:21]GetLastDocTimeStamp 1730278592 [09:19:21]current date 1730279966 [09:19:21]FM_GetShiftState [09:19:21]SAM_PROTO_GetShiftState [09:19:21]wFMCommunicate request_size=4 [09:19:21]MH_SAM_APDU [09:19:21]CAPDU: 80 13 01 00 [09:19:21]Write to MH i2c: E2 08 00 52 38 80 13 01 00 00 00 00 00 07 [09:19:21]Write i2c OK [09:19:21]MH_I2C_Read... [09:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:21]Read from MH i2c: E2 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0E 00 [09:19:21]MH_I2C_Read... [09:19:21]Read from MH i2c: E2 0E 00 52 38 00 09 00 01 86 76 21 67 00 00 00 00 90 00 97 [09:19:21]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [09:19:21]wFMCommunicate OK [09:19:21]SAM_PROTO_GetShiftState done [09:19:21]FM_GetShiftState done [09:19:21]opened in 1730246278 [09:19:21]opened+sec_in_day 1730332678 [09:19:21]quantity*price = 9900 [09:19:21]sum+1 = 9901 [09:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 61 30.10.2024 09:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139377 ФПД: 181068768650498 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091926&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139377&fm=181068768650498&tin=02508201610067®Number=0000000000091631&sum=9900 0 [09:19:23]StoreToDocumentArchive [09:19:23]shift 556 fd 139377 [09:19:23]save to /storage/0556/doc_00139377 [09:19:23]save last doc name /storage/0556/doc_00139377 to /storage/kkm_last_doc_name [09:19:23]save OK [09:19:23]Clear old archive folders... [09:19:23]ProcessDocumentItem done err = 0, tmpTLVsize=293 [09:19:23]tlvbuf is 011A97A0 [09:19:23]SAM_PROTO_ClearQueue [09:19:23]wFMCommunicate request_size=4 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 09 00 00 [09:19:23]Write to MH i2c: E2 08 00 5F 38 80 09 00 00 00 00 00 00 09 [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 03 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 03 00 5F 38 00 90 00 0B [09:19:23]RAPDU: 90 00 [09:19:23]wFMCommunicate OK [09:19:23]SAM_PROTO_ClearQueue done [09:19:23]KKMCreateOFDPacket [09:19:23]OFDProtocolAddRootSTLVToBuf [09:19:23]FM_MakeSignedData [09:19:23]FM_MakeSignedData [09:19:23]SAM_PROTO_SignData [09:19:23]wFMCommunicate request_size=4 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 0D 01 02 [09:19:23]Write to MH i2c: E2 08 00 60 38 80 0D 01 02 00 00 00 00 11 [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 03 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 03 00 60 38 00 90 00 0C [09:19:23]RAPDU: 90 00 [09:19:23]wFMCommunicate OK [09:19:23]wFMCommunicate request_size=255 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1E FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [09:19:23]Write to MH i2c: E2 02 01 61 38 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1E FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 78 [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 03 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 03 00 61 38 00 90 00 0D [09:19:23]RAPDU: 90 00 [09:19:23]wFMCommunicate OK [09:19:23]wFMCommunicate request_size=52 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 71 20 02 00 35 04 06 00 A4 AE 5B A2 A5 02 [09:19:23]Write to MH i2c: E2 37 00 62 38 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 71 20 02 00 35 04 06 00 A4 AE 5B A2 A5 02 00 00 63 [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 03 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 03 00 62 38 00 90 00 0E [09:19:23]RAPDU: 90 00 [09:19:23]wFMCommunicate OK [09:19:23]wFMCommunicate request_size=4 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 0D 03 02 [09:19:23]Write to MH i2c: E2 08 00 63 38 80 0D 03 02 00 00 00 00 16 [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 0B 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 0B 00 63 38 00 48 85 64 AF 27 71 97 BD 90 00 E3 [09:19:23]RAPDU: 48 85 64 AF 27 71 97 BD 90 00 [09:19:23]wFMCommunicate OK [09:19:23]SAM_PROTO_SignData done [09:19:23]FM_MakeSignedData done [09:19:23]CreateOFDProtocolMessage [09:19:23]wFMCommunicate request_size=4 [09:19:23]MH_SAM_APDU [09:19:23]CAPDU: 80 11 00 00 [09:19:23]Write to MH i2c: E2 08 00 64 38 80 11 00 00 00 00 00 00 16 [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:23]Read from MH i2c: E2 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 17 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: E2 17 00 64 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 71 [09:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:19:23]wFMCommunicate OK [09:19:23]CreateOFDProtocolMessage done [09:19:23]OFDSenderStorePacket 139377 [09:19:23]StoreOFDPacket docnum=139377 [09:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 EF E4 31 01 98 9E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1E FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 71 20 02 00 35 04 06 00 A4 AE 5B A2 A5 02 48 85 64 AF 27 71 97 BD [09:19:23]CheckFolder [09:19:23]dirname=/storage/ofd_packets [09:19:23]CheckFolder done [09:19:23]ProducePacketName [09:19:23]name=ofd_packets/00139377 [09:19:23]NVStorageSaveData ofd_packets/00139377 [09:19:23]File name is /storage/ofd_packets/00139377 [09:19:23]Write 343 bytes [09:19:23]NVStorageSaveData done [09:19:23]OFDSenderStorePacket done [09:19:23]KKMCreateOFDPacket done [09:19:23]NVStorageSaveData kkm_last_timestamp [09:19:23]File name is /storage/kkm_last_timestamp [09:19:23]Write 4 bytes [09:19:23]NVStorageSaveData done [09:19:23]ExternCall_PrintAddStr [09:19:23]wPrintStart [09:19:23]Write to MH i2c: 01 00 00 65 38 9D [09:19:23]Write i2c OK [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 07 00 [09:19:23]MH_I2C_Read... [09:19:23]Read from MH i2c: 01 07 00 65 38 00 00 00 00 00 FF 0F B2 [09:19:23]RasterBufferAndPrint [09:19:23]line Счет N : (3)335293 [09:19:23]line ИНН: 02508201610067 [09:19:23]line Контрольно-Кассовый Чек [09:19:23]line ПРОДАЖА [09:19:23]line Товар: 4870022003305 [09:19:23]line Напиток Gorilla эн нат ж/б 0,5/0,45л [09:19:23]line 1.000 * 99.00 [09:19:23]line = 99.00 [09:19:23]line НДС 12% НСП 1% [09:19:23]line > о реализуемом товаре [09:19:23]line ИТОГО: 99.00 [09:19:23]line НСП 1% : 0.88 [09:19:23]line НДС 12% : 10.51 [09:19:23]line Наличными: 99.00 [09:19:23]line Безнал.: 0.00 [09:19:23]line Место: АЗС № 101 "Партнер Нефть" [09:19:23]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:19:23]line СНО: Общий режим [09:19:23]line Чек 61 30.10.2024 09:19 [09:19:23]line Смена: 556 ФФД: 1.0 [09:19:23]line ЗНМ: 0300000081 [09:19:23]line РНМ: 0000000000091631 [09:19:23]line Версия ККМ: 001 [09:19:23]line ФМ: 0000000000874669 [09:19:23]line ФД: 139377 [09:19:23]line ФПД: 181068768650498 [09:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T091926&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139377&fm=181068768650498&tin=02508201610067®Number=0000000000091631&sum=9900 [09:19:23]line 0 [09:19:23]OFD Sender: Processing packet 139377 [packets to send 34, broken 33] [09:19:23]ProducePacketName [09:19:23]name=ofd_packets/00139377 [09:19:23]OFD Sender: To server: pG, [09:19:23]CommunicateWithHost lk.salyk.kg:30040 [09:19:23]ConnectInit lk.salyk.kg [09:19:23]written 0, free lines is 4095 [09:19:24]Connected sock=9 [09:19:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 EF E4 31 01 98 9E 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 3D 00 00 00 F4 03 04 00 1E FA 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 71 20 02 00 35 04 06 00 A4 AE 5B A2 A5 02 48 85 64 AF 27 71 97 BD [09:19:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F6 C7 47 00 A4 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 38 37 34 36 36 39 10 04 04 00 71 20 02 00 F4 03 04 00 CF A5 21 67 B6 04 01 00 00 F8 4B 41 2F 1D E4 6A 4B [09:19:24]CommunicateWithHost err = 0 [09:19:24]CheckOFDResponse [09:19:24]1017 (14) - 77093643461234 [09:19:24]1041 (16) - 0000000000874669 [09:19:24]1040 (4) - 139377 [09:19:24]1012 (4) - 30.10.2024 03:19 [09:19:24]1206 (1) - 0 [09:19:24]OFD Sender: Remove packet 139377 [09:19:24]ProducePacketName [09:19:24]name=ofd_packets/00139377 [09:19:24]NVStorageDeleteData [09:19:24]Write to MH i2c: 01 00 00 8E 38 C6 [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: 01 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: 01 07 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: 01 07 00 8E 38 00 00 00 00 00 04 0D DE [09:19:24]RasterBufferAndPrint [09:19:24]line [09:19:24]line [09:19:24]line [09:19:24]line [09:19:24]line [09:19:24]written 0, free lines is 3341 [09:19:24]MH_Cut [09:19:24]Write to MH i2c: D1 01 00 95 38 01 9F [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: D1 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: D1 01 00 [09:19:24]MH_I2C_Read... [09:19:24]Read from MH i2c: D1 01 00 95 38 00 9E [09:19:24]Write to MH i2c: 01 00 00 96 38 CE [09:19:24]Write i2c OK [09:19:24]MH_I2C_Read... [09:19:24]OFD Sender: No OFD packet to send [09:19:25]*** Cut start [09:19:25]*** Partial cut [09:19:25]*** CUTSNS_PIN = 1 [09:19:25]*** CUTSNS_PIN = 0 [09:19:25]*** Brake cut motor [09:19:25]Read from MH i2c: 01 [09:19:25]MH_I2C_Read... [09:19:25]*** Stop cut motor [09:19:25]*** Cut end [09:19:25]Read from MH i2c: 01 07 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: 01 07 00 96 38 00 00 00 00 00 FF 0F E3 [09:19:25]process_action close_receipt done [09:19:25]requested_data is exist [09:19:25]produce_requested_data [09:19:25]requested_item fm.sn is exist - process it [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 11 00 00 [09:19:25]Write to MH i2c: E2 08 00 97 38 80 11 00 00 00 00 00 00 49 [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 17 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 17 00 97 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [09:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:19:25]wFMCommunicate OK [09:19:25]requested_item fd.num is exist - process it [09:19:25]SAM_PROTO_GetFieldsCounters [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 13 00 00 [09:19:25]Write to MH i2c: E2 08 00 98 38 80 13 00 00 00 00 00 00 4C [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 62 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 62 00 98 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 71 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 E8 [09:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 71 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3D 00 00 00 5E 04 04 00 3D 00 00 00 57 04 04 00 3E 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:19:25]wFMCommunicate OK [09:19:25]SAM_PROTO_GetFieldsCounters done [09:19:25]requested_item shift.num is exist - process it [09:19:25]requested_item shift.opened is exist - process it [09:19:25]req_shift_opened [09:19:25]FM_GetShiftState [09:19:25]SAM_PROTO_GetShiftState [09:19:25]wFMCommunicate request_size=4 [09:19:25]MH_SAM_APDU [09:19:25]CAPDU: 80 13 01 00 [09:19:25]Write to MH i2c: E2 08 00 99 38 80 13 01 00 00 00 00 00 4E [09:19:25]Write i2c OK [09:19:25]MH_I2C_Read... [09:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:19:25]Read from MH i2c: E2 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0E 00 [09:19:25]MH_I2C_Read... [09:19:25]Read from MH i2c: E2 0E 00 99 38 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DE [09:19:25]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [09:19:25]wFMCommunicate OK [09:19:25]SAM_PROTO_GetShiftState done [09:19:25]FM_GetShiftState done [09:19:25]req_shift_opened done [09:19:25]requested_item shift.open_date is exist - process it [09:19:25]req_shift_open_date [09:19:25]req_shift_open_date done [09:19:25]produce_requested_data done [09:19:25]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139377,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [09:19:25]process_action_free close_receipt [09:19:25]json_value_free [09:19:25]json_value_free done [09:19:25]process_json_proto returns [09:19:25]Send response to host [09:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139377,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [09:19:25]free response buf [09:19:25]execute_script done [09:19:25]execute_script returns [09:19:25]free content buf [09:19:25]Sock 10.Close socket [09:19:25]Sock 10.Thread stoped [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:09]OFD Sender: No OFD packet to send [09:21:14]OFD Sender: No OFD packet to send [09:21:19]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:40]OFD Sender: No OFD packet to send [09:23:45]OFD Sender: No OFD packet to send [09:23:50]OFD Sender: No OFD packet to send [09:23:55]OFD Sender: No OFD packet to send [09:24:00]OFD Sender: No OFD packet to send [09:24:05]OFD Sender: No OFD packet to send [09:24:10]OFD Sender: No OFD packet to send [09:24:15]OFD Sender: No OFD packet to send [09:24:20]OFD Sender: No OFD packet to send [09:24:25]OFD Sender: No OFD packet to send [09:24:30]OFD Sender: No OFD packet to send [09:24:35]OFD Sender: No OFD packet to send [09:24:40]OFD Sender: No OFD packet to send [09:24:45]OFD Sender: No OFD packet to send [09:24:50]OFD Sender: No OFD packet to send [09:24:55]OFD Sender: No OFD packet to send [09:25:00]OFD Sender: No OFD packet to send [09:25:05]OFD Sender: No OFD packet to send [09:25:10]OFD Sender: No OFD packet to send [09:25:15]OFD Sender: No OFD packet to send [09:25:20]OFD Sender: No OFD packet to send [09:25:25]OFD Sender: No OFD packet to send [09:25:30]OFD Sender: No OFD packet to send [09:25:35]OFD Sender: No OFD packet to send [09:25:40]OFD Sender: No OFD packet to send [09:25:45]OFD Sender: No OFD packet to send [09:25:50]OFD Sender: No OFD packet to send [09:25:55]OFD Sender: No OFD packet to send [09:26:00]OFD Sender: No OFD packet to send [09:26:05]OFD Sender: No OFD packet to send [09:26:10]OFD Sender: No OFD packet to send [09:26:15]OFD Sender: No OFD packet to send [09:26:20]OFD Sender: No OFD packet to send [09:26:25]OFD Sender: No OFD packet to send [09:26:30]OFD Sender: No OFD packet to send [09:26:35]OFD Sender: No OFD packet to send [09:26:40]OFD Sender: No OFD packet to send [09:26:45]OFD Sender: No OFD packet to send [09:26:50]OFD Sender: No OFD packet to send [09:26:55]OFD Sender: No OFD packet to send [09:27:00]OFD Sender: No OFD packet to send [09:27:05]OFD Sender: No OFD packet to send [09:27:10]OFD Sender: No OFD packet to send [09:27:15]OFD Sender: No OFD packet to send [09:27:20]OFD Sender: No OFD packet to send [09:27:25]OFD Sender: No OFD packet to send [09:27:30]OFD Sender: No OFD packet to send [09:27:35]OFD Sender: No OFD packet to send [09:27:40]OFD Sender: No OFD packet to send [09:27:45]OFD Sender: No OFD packet to send [09:27:50]OFD Sender: No OFD packet to send [09:27:55]OFD Sender: No OFD packet to send [09:28:00]OFD Sender: No OFD packet to send [09:28:05]OFD Sender: No OFD packet to send [09:28:10]OFD Sender: No OFD packet to send [09:28:15]OFD Sender: No OFD packet to send [09:28:20]OFD Sender: No OFD packet to send [09:28:25]OFD Sender: No OFD packet to send [09:28:30]OFD Sender: No OFD packet to send [09:28:35]OFD Sender: No OFD packet to send [09:28:40]OFD Sender: No OFD packet to send [09:28:45]OFD Sender: No OFD packet to send [09:28:50]OFD Sender: No OFD packet to send [09:28:55]OFD Sender: No OFD packet to send [09:29:00]OFD Sender: No OFD packet to send [09:29:05]OFD Sender: No OFD packet to send [09:29:10]OFD Sender: No OFD packet to send [09:29:15]OFD Sender: No OFD packet to send [09:29:20]OFD Sender: No OFD packet to send [09:29:25]OFD Sender: No OFD packet to send [09:29:30]OFD Sender: No OFD packet to send [09:29:35]OFD Sender: No OFD packet to send [09:29:40]OFD Sender: No OFD packet to send [09:29:45]OFD Sender: No OFD packet to send [09:29:50]OFD Sender: No OFD packet to send [09:29:55]OFD Sender: No OFD packet to send [09:30:00]OFD Sender: No OFD packet to send [09:30:05]OFD Sender: No OFD packet to send [09:30:10]OFD Sender: No OFD packet to send [09:30:15]OFD Sender: No OFD packet to send [09:30:20]OFD Sender: No OFD packet to send [09:30:25]OFD Sender: No OFD packet to send [09:30:30]OFD Sender: No OFD packet to send [09:30:35]OFD Sender: No OFD packet to send [09:30:40]OFD Sender: No OFD packet to send [09:30:45]OFD Sender: No OFD packet to send [09:30:50]OFD Sender: No OFD packet to send [09:30:55]OFD Sender: No OFD packet to send [09:31:00]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [09:32:10]OFD Sender: No OFD packet to send [09:32:15]OFD Sender: No OFD packet to send [09:32:20]OFD Sender: No OFD packet to send [09:32:25]OFD Sender: No OFD packet to send [09:32:30]OFD Sender: No OFD packet to send [09:32:35]OFD Sender: No OFD packet to send [09:32:40]OFD Sender: No OFD packet to send [09:32:45]OFD Sender: No OFD packet to send [09:32:50]OFD Sender: No OFD packet to send [09:32:55]OFD Sender: No OFD packet to send [09:33:00]OFD Sender: No OFD packet to send [09:33:05]OFD Sender: No OFD packet to send [09:33:10]OFD Sender: No OFD packet to send [09:33:15]OFD Sender: No OFD packet to send [09:33:20]OFD Sender: No OFD packet to send [09:33:25]OFD Sender: No OFD packet to send [09:33:30]OFD Sender: No OFD packet to send [09:33:35]OFD Sender: No OFD packet to send [09:33:40]OFD Sender: No OFD packet to send [09:33:45]OFD Sender: No OFD packet to send [09:33:50]OFD Sender: No OFD packet to send [09:33:55]OFD Sender: No OFD packet to send [09:34:00]OFD Sender: No OFD packet to send [09:34:05]OFD Sender: No OFD packet to send [09:34:10]OFD Sender: No OFD packet to send [09:34:15]OFD Sender: No OFD packet to send [09:34:20]OFD Sender: No OFD packet to send [09:34:25]OFD Sender: No OFD packet to send [09:34:30]OFD Sender: No OFD packet to send [09:34:35]OFD Sender: No OFD packet to send [09:34:40]OFD Sender: No OFD packet to send [09:34:45]OFD Sender: No OFD packet to send [09:34:50]OFD Sender: No OFD packet to send [09:34:55]OFD Sender: No OFD packet to send [09:35:00]OFD Sender: No OFD packet to send [09:35:05]OFD Sender: No OFD packet to send [09:35:10]OFD Sender: No OFD packet to send [09:35:15]OFD Sender: No OFD packet to send [09:35:20]OFD Sender: No OFD packet to send [09:35:25]OFD Sender: No OFD packet to send [09:35:30]OFD Sender: No OFD packet to send [09:35:35]OFD Sender: No OFD packet to send [09:35:40]OFD Sender: No OFD packet to send [09:35:45]OFD Sender: No OFD packet to send [09:35:50]OFD Sender: No OFD packet to send [09:35:55]OFD Sender: No OFD packet to send [09:36:00]OFD Sender: No OFD packet to send [09:36:05]OFD Sender: No OFD packet to send [09:36:10]OFD Sender: No OFD packet to send [09:36:15]OFD Sender: No OFD packet to send [09:36:20]OFD Sender: No OFD packet to send [09:36:25]OFD Sender: No OFD packet to send [09:36:30]OFD Sender: No OFD packet to send [09:36:34]accept exits with 8 [09:36:34]New connection [09:36:34]New thread 3067141476 created [09:36:34]Thread 3067284836 joined [09:36:34]Waiting for new connection... [09:36:34] Sock 8.Parse request [09:36:34]Sock 8.Check first char [09:36:34]Sock 8.First char is OK [09:36:34]request: POST /json_proto HTTP/1.0 [09:36:34]Method: POST [09:36:34]URL: /json_proto [09:36:34]Method is POST - this is cgi request [09:36:34]url: /json_proto [09:36:34]query_string will be loaded in cgi processing [09:36:34]execute_cgi json_proto POST (null) [09:36:34]execute_cgi path=json_proto method=POST [09:36:34]POST find Content-Length [09:36:34]Host: 172.17.50.196:8080 [09:36:34]Content-Length: 678 [09:36:34]Content-Type: application/json [09:36:34] [09:36:34]POST finish read [09:36:34]Found Content-Length = 678 [09:36:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "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" ] } } [09:36:34]execute_script... [09:36: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)1094346", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "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" ] } } [09:36:34]POST & json_proto [09:36:34]process_json_proto [09:36:34]json parsed OK: [09:36:34]protocol is kg_v1.0 [09:36:34]action value=close_receipt [09:36:34]process_action close_receipt [09:36:34]cmd_close_receipt [09:36:34]MH_GetDate [09:36:34]Write to MH i2c: F0 00 00 9A 38 C1 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: F0 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: F0 09 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: F0 09 00 9A 38 00 27 FE 21 67 72 0D 1C 67 79 [09:36:34]GetLastDocTimeStamp 1730279966 [09:36:34]current date 1730280999 [09:36:34]FM_GetShiftState [09:36:34]SAM_PROTO_GetShiftState [09:36:34]wFMCommunicate request_size=4 [09:36:34]MH_SAM_APDU [09:36:34]CAPDU: 80 13 01 00 [09:36:34]Write to MH i2c: E2 08 00 9B 38 80 13 01 00 00 00 00 00 50 [09:36:34]Write i2c OK [09:36:34]MH_I2C_Read... [09:36:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:34]Read from MH i2c: E2 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 0E 00 [09:36:34]MH_I2C_Read... [09:36:34]Read from MH i2c: E2 0E 00 9B 38 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E0 [09:36:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [09:36:34]wFMCommunicate OK [09:36:34]SAM_PROTO_GetShiftState done [09:36:34]FM_GetShiftState done [09:36:34]opened in 1730246278 [09:36:34]opened+sec_in_day 1730332678 [09:36:34]quantity*price = 50010 [09:36:34]sum+1 = 50012 [09:36:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.11 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.11 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 62 30.10.2024 09:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139378 ФПД: 272772696646541 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093639&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139378&fm=272772696646541&tin=02508201610067®Number=0000000000091631&sum=50000 [09:36:35]StoreToDocumentArchive [09:36:35]shift 556 fd 139378 [09:36:35]save to /storage/0556/doc_00139378 [09:36:35]save last doc name /storage/0556/doc_00139378 to /storage/kkm_last_doc_name [09:36:35]save OK [09:36:35]Clear old archive folders... [09:36:35]ProcessDocumentItem done err = 0, tmpTLVsize=251 [09:36:35]tlvbuf is 0120E3B0 [09:36:35]SAM_PROTO_ClearQueue [09:36:35]wFMCommunicate request_size=4 [09:36:35]MH_SAM_APDU [09:36:35]CAPDU: 80 09 00 00 [09:36:35]Write to MH i2c: E2 08 00 A8 38 80 09 00 00 00 00 00 00 52 [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:36:35]Read from MH i2c: E2 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 03 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 03 00 A8 38 00 90 00 54 [09:36:35]RAPDU: 90 00 [09:36:35]wFMCommunicate OK [09:36:35]SAM_PROTO_ClearQueue done [09:36:35]KKMCreateOFDPacket [09:36:35]OFDProtocolAddRootSTLVToBuf [09:36:35]FM_MakeSignedData [09:36:35]FM_MakeSignedData [09:36:35]SAM_PROTO_SignData [09:36:35]wFMCommunicate request_size=4 [09:36:35]MH_SAM_APDU [09:36:35]CAPDU: 80 0D 01 02 [09:36:35]Write to MH i2c: E2 08 00 A9 38 80 0D 01 02 00 00 00 00 5A [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:36:35]Read from MH i2c: E2 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 03 00 [09:36:35]MH_I2C_Read... [09:36:35]Read from MH i2c: E2 03 00 A9 38 00 90 00 55 [09:36:35]RAPDU: 90 00 [09:36:35]wFMCommunicate OK [09:36:35]wFMCommunicate request_size=255 [09:36:35]MH_SAM_APDU [09:36: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 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 3E 00 00 00 F4 03 04 00 27 FE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 20 02 00 35 04 06 00 F8 [09:36:35]Write to MH i2c: E2 02 01 AA 38 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 3E 00 00 00 F4 03 04 00 27 FE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 20 02 00 35 04 06 00 F8 00 00 67 [09:36:35]Write i2c OK [09:36:35]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 03 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 03 00 AA 38 00 90 00 56 [09:36:36]RAPDU: 90 00 [09:36:36]wFMCommunicate OK [09:36:36]wFMCommunicate request_size=10 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 0D 02 02 05 15 D7 B0 23 8D [09:36:36]Write to MH i2c: E2 0D 00 AB 38 80 0D 02 02 05 00 15 D7 B0 23 8D 00 00 B3 [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 03 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 03 00 AB 38 00 90 00 57 [09:36:36]RAPDU: 90 00 [09:36:36]wFMCommunicate OK [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 0D 03 02 [09:36:36]Write to MH i2c: E2 08 00 AC 38 80 0D 03 02 00 00 00 00 5F [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0B 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 0B 00 AC 38 00 66 2E E0 B0 86 F2 65 71 90 00 D2 [09:36:36]RAPDU: 66 2E E0 B0 86 F2 65 71 90 00 [09:36:36]wFMCommunicate OK [09:36:36]SAM_PROTO_SignData done [09:36:36]FM_MakeSignedData done [09:36:36]CreateOFDProtocolMessage [09:36:36]wFMCommunicate request_size=4 [09:36:36]MH_SAM_APDU [09:36:36]CAPDU: 80 11 00 00 [09:36:36]Write to MH i2c: E2 08 00 AD 38 80 11 00 00 00 00 00 00 5F [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:36]Read from MH i2c: E2 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 17 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: E2 17 00 AD 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [09:36:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:36:36]wFMCommunicate OK [09:36:36]CreateOFDProtocolMessage done [09:36:36]OFDSenderStorePacket 139378 [09:36:36]StoreOFDPacket docnum=139378 [09:36:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 90 FE 07 01 C2 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 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 3E 00 00 00 F4 03 04 00 27 FE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 20 02 00 35 04 06 00 F8 15 D7 B0 23 8D 66 2E E0 B0 86 F2 65 71 [09:36:36]CheckFolder [09:36:36]dirname=/storage/ofd_packets [09:36:36]CheckFolder done [09:36:36]ProducePacketName [09:36:36]name=ofd_packets/00139378 [09:36:36]NVStorageSaveData ofd_packets/00139378 [09:36:36]File name is /storage/ofd_packets/00139378 [09:36:36]Write 301 bytes [09:36:36]NVStorageSaveData done [09:36:36]OFDSenderStorePacket done [09:36:36]KKMCreateOFDPacket done [09:36:36]NVStorageSaveData kkm_last_timestamp [09:36:36]File name is /storage/kkm_last_timestamp [09:36:36]Write 4 bytes [09:36:36]NVStorageSaveData done [09:36:36]ExternCall_PrintAddStr [09:36:36]wPrintStart [09:36:36]Write to MH i2c: 01 00 00 AE 38 E6 [09:36:36]Write i2c OK [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: 01 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: 01 07 00 [09:36:36]MH_I2C_Read... [09:36:36]Read from MH i2c: 01 07 00 AE 38 00 00 00 00 00 FF 0F FB [09:36:36]RasterBufferAndPrint [09:36:36]line Счет N : (1)1094346 [09:36:36]line ИНН: 02508201610067 [09:36:36]line Контрольно-Кассовый Чек [09:36:36]line ПРОДАЖА [09:36:36]line ТРК (МРК, ГНК) : 64 [09:36:36]line Товар: 2710124500 [09:36:36]line Аи-95-К-3 [09:36:36]line 6.740 * 74.20 [09:36:36]line = 500.11 [09:36:36]line НДС 12% НСП 1% [09:36:36]line > о реализуемом товаре [09:36:36]line ОКРУГЛЕНИЕ: -0.11 [09:36:36]line ИТОГО: 500.00 [09:36:36]line Внесено: 500.00 [09:36:36]line СДАЧА: 0.00 [09:36:36]line НСП 1% : 4.43 [09:36:36]line НДС 12% : 53.11 [09:36:36]line Наличными: 500.00 [09:36:36]line Безнал.: 0.00 [09:36:36]line Место: АЗС № 101 "Партнер Нефть" [09:36:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:36:36]line СНО: Общий режим [09:36:36]line Чек 62 30.10.2024 09:36 [09:36:36]line Смена: 556 ФФД: 1.0 [09:36:36]line ЗНМ: 0300000081 [09:36:36]line РНМ: 0000000000091631 [09:36:36]line Версия ККМ: 001 [09:36:36]line ФМ: 0000000000874669 [09:36:36]line ФД: 139378 [09:36:36]line ФПД: 272772696646541 [09:36:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T093639&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139378&fm=272772696646541&tin=02508201610067®Number=0000000000091631&sum=50000 [09:36:36]OFD Sender: Processing packet 139378 [packets to send 34, broken 33] [09:36:36]ProducePacketName [09:36:36]name=ofd_packets/00139378 [09:36:36]OFD Sender: To server: pG, [09:36:36]CommunicateWithHost lk.salyk.kg:30040 [09:36:36]ConnectInit lk.salyk.kg [09:36:36]written 0, free lines is 4095 [09:36:36]Connected sock=10 [09:36:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 90 FE 07 01 C2 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 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 3E 00 00 00 F4 03 04 00 27 FE 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 20 02 00 35 04 06 00 F8 15 D7 B0 23 8D 66 2E E0 B0 86 F2 65 71 [09:36:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 29 2D 47 00 50 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 72 20 02 00 F4 03 04 00 D7 A9 21 67 B6 04 01 00 00 B2 D7 7A 37 30 BD 24 A3 [09:36:36]CommunicateWithHost err = 0 [09:36:36]CheckOFDResponse [09:36:36]1017 (14) - 77093643461234 [09:36:36]1041 (16) - 0000000000874669 [09:36:36]1040 (4) - 139378 [09:36:36]1012 (4) - 30.10.2024 03:36 [09:36:36]1206 (1) - 0 [09:36:36]OFD Sender: Remove packet 139378 [09:36:36]ProducePacketName [09:36:36]name=ofd_packets/00139378 [09:36:36]NVStorageDeleteData [09:36:37]Write to MH i2c: 01 00 00 D9 38 11 [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: 01 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: 01 07 00 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: 01 07 00 D9 38 00 00 00 00 00 DF 0C 03 [09:36:37]RasterBufferAndPrint [09:36:37]line [09:36:37]line [09:36:37]line [09:36:37]line [09:36:37]line [09:36:37]written 0, free lines is 3301 [09:36:37]MH_Cut [09:36:37]Write to MH i2c: D1 01 00 E0 38 01 EA [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: D1 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: D1 01 00 [09:36:37]MH_I2C_Read... [09:36:37]Read from MH i2c: D1 01 00 E0 38 00 E9 [09:36:37]Write to MH i2c: 01 00 00 E1 38 19 [09:36:37]Write i2c OK [09:36:37]MH_I2C_Read... [09:36:37]OFD Sender: No OFD packet to send [09:36:37]*** Cut start [09:36:37]*** Partial cut [09:36:37]*** CUTSNS_PIN = 1 [09:36:37]*** CUTSNS_PIN = 0 [09:36:37]*** Brake cut motor [09:36:38]Read from MH i2c: 01 [09:36:38]MH_I2C_Read... [09:36:38]*** Stop cut motor [09:36:38]*** Cut end [09:36:38]Read from MH i2c: 01 07 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: 01 07 00 E1 38 00 00 00 00 00 FF 0F 2E [09:36:38]process_action close_receipt done [09:36:38]requested_data is exist [09:36:38]produce_requested_data [09:36:38]requested_item fm.sn is exist - process it [09:36:38]wFMCommunicate request_size=4 [09:36:38]MH_SAM_APDU [09:36:38]CAPDU: 80 11 00 00 [09:36:38]Write to MH i2c: E2 08 00 E2 38 80 11 00 00 00 00 00 00 94 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 17 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 17 00 E2 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [09:36:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:36:38]wFMCommunicate OK [09:36:38]requested_item fd.num is exist - process it [09:36:38]SAM_PROTO_GetFieldsCounters [09:36:38]wFMCommunicate request_size=4 [09:36:38]MH_SAM_APDU [09:36:38]CAPDU: 80 13 00 00 [09:36:38]Write to MH i2c: E2 08 00 E3 38 80 13 00 00 00 00 00 00 97 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 62 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 62 00 E3 38 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 72 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 37 [09:36:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 72 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3E 00 00 00 5E 04 04 00 3E 00 00 00 57 04 04 00 3F 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:36:38]wFMCommunicate OK [09:36:38]SAM_PROTO_GetFieldsCounters done [09:36:38]requested_item shift.num is exist - process it [09:36:38]requested_item shift.opened is exist - process it [09:36:38]req_shift_opened [09:36:38]FM_GetShiftState [09:36:38]SAM_PROTO_GetShiftState [09:36:38]wFMCommunicate request_size=4 [09:36:38]MH_SAM_APDU [09:36:38]CAPDU: 80 13 01 00 [09:36:38]Write to MH i2c: E2 08 00 E4 38 80 13 01 00 00 00 00 00 99 [09:36:38]Write i2c OK [09:36:38]MH_I2C_Read... [09:36:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:36:38]Read from MH i2c: E2 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 0E 00 [09:36:38]MH_I2C_Read... [09:36:38]Read from MH i2c: E2 0E 00 E4 38 00 09 00 01 86 76 21 67 00 00 00 00 90 00 29 [09:36:38]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [09:36:38]wFMCommunicate OK [09:36:38]SAM_PROTO_GetShiftState done [09:36:38]FM_GetShiftState done [09:36:38]req_shift_opened done [09:36:38]requested_item shift.open_date is exist - process it [09:36:38]req_shift_open_date [09:36:38]req_shift_open_date done [09:36:38]produce_requested_data done [09:36:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139378,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [09:36:38]process_action_free close_receipt [09:36:38]json_value_free [09:36:38]json_value_free done [09:36:38]process_json_proto returns [09:36:38]Send response to host [09:36:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139378,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [09:36:38]free response buf [09:36:38]execute_script done [09:36:38]execute_script returns [09:36:38]free content buf [09:36:38]Sock 8.Close socket [09:36:38]Sock 8.Thread stoped [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:07]OFD Sender: No OFD packet to send [09:37:12]OFD Sender: No OFD packet to send [09:37:17]OFD Sender: No OFD packet to send [09:37:22]OFD Sender: No OFD packet to send [09:37:27]OFD Sender: No OFD packet to send [09:37:32]OFD Sender: No OFD packet to send [09:37:37]OFD Sender: No OFD packet to send [09:37:42]OFD Sender: No OFD packet to send [09:37:47]OFD Sender: No OFD packet to send [09:37:52]OFD Sender: No OFD packet to send [09:37:57]OFD Sender: No OFD packet to send [09:38:02]OFD Sender: No OFD packet to send [09:38:07]OFD Sender: No OFD packet to send [09:38:12]OFD Sender: No OFD packet to send [09:38:17]OFD Sender: No OFD packet to send [09:38:22]OFD Sender: No OFD packet to send [09:38:27]OFD Sender: No OFD packet to send [09:38:32]OFD Sender: No OFD packet to send [09:38:37]OFD Sender: No OFD packet to send [09:38:42]OFD Sender: No OFD packet to send [09:38:47]OFD Sender: No OFD packet to send [09:38:52]OFD Sender: No OFD packet to send [09:38:57]OFD Sender: No OFD packet to send [09:39:02]OFD Sender: No OFD packet to send [09:39:07]OFD Sender: No OFD packet to send [09:39:12]OFD Sender: No OFD packet to send [09:39:17]OFD Sender: No OFD packet to send [09:39:22]OFD Sender: No OFD packet to send [09:39:27]OFD Sender: No OFD packet to send [09:39:32]OFD Sender: No OFD packet to send [09:39:37]OFD Sender: No OFD packet to send [09:39:42]OFD Sender: No OFD packet to send [09:39:47]OFD Sender: No OFD packet to send [09:39:52]OFD Sender: No OFD packet to send [09:39:57]OFD Sender: No OFD packet to send [09:40:02]OFD Sender: No OFD packet to send [09:40:07]OFD Sender: No OFD packet to send [09:40:12]OFD Sender: No OFD packet to send [09:40:17]OFD Sender: No OFD packet to send [09:40:22]OFD Sender: No OFD packet to send [09:40:27]OFD Sender: No OFD packet to send [09:40:32]OFD Sender: No OFD packet to send [09:40:37]OFD Sender: No OFD packet to send [09:40:42]OFD Sender: No OFD packet to send [09:40:47]OFD Sender: No OFD packet to send [09:40:52]OFD Sender: No OFD packet to send [09:40:57]OFD Sender: No OFD packet to send [09:41:02]OFD Sender: No OFD packet to send [09:41:07]OFD Sender: No OFD packet to send [09:41:12]OFD Sender: No OFD packet to send [09:41:17]OFD Sender: No OFD packet to send [09:41:22]OFD Sender: No OFD packet to send [09:41:27]OFD Sender: No OFD packet to send [09:41:32]OFD Sender: No OFD packet to send [09:41:37]OFD Sender: No OFD packet to send [09:41:42]OFD Sender: No OFD packet to send [09:41:46]accept exits with 9 [09:41:46]New connection [09:41:46]New thread 3067284836 created [09:41:46]Thread 3067141476 joined [09:41:46]Waiting for new connection... [09:41:46] Sock 9.Parse request [09:41:46]Sock 9.Check first char [09:41:46]Sock 9.First char is OK [09:41:46]request: POST /json_proto HTTP/1.0 [09:41:46]Method: POST [09:41:46]URL: /json_proto [09:41:46]Method is POST - this is cgi request [09:41:46]url: /json_proto [09:41:46]query_string will be loaded in cgi processing [09:41:46]execute_cgi json_proto POST (null) [09:41:46]execute_cgi path=json_proto method=POST [09:41:46]POST find Content-Length [09:41:46]Host: 172.17.50.196:8080 [09:41:46]Content-Length: 655 [09:41:46]Content-Type: application/json [09:41:46] [09:41:46]POST finish read [09:41:46]Found Content-Length = 655 [09:41:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335294", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:46]execute_script... [09:41: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 : (3)335294", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 69.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:41:46]POST & json_proto [09:41:46]process_json_proto [09:41:46]json parsed OK: [09:41:46]protocol is kg_v1.0 [09:41:46]action value=close_receipt [09:41:46]process_action close_receipt [09:41:46]cmd_close_receipt [09:41:46]MH_GetDate [09:41:46]Write to MH i2c: F0 00 00 E5 38 0C [09:41:46]Write i2c OK [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: F0 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: F0 09 00 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: F0 09 00 E5 38 00 5F FF 21 67 72 0D 1C 67 FD [09:41:46]GetLastDocTimeStamp 1730280999 [09:41:46]current date 1730281311 [09:41:46]FM_GetShiftState [09:41:46]SAM_PROTO_GetShiftState [09:41:46]wFMCommunicate request_size=4 [09:41:46]MH_SAM_APDU [09:41:46]CAPDU: 80 13 01 00 [09:41:46]Write to MH i2c: E2 08 00 E6 38 80 13 01 00 00 00 00 00 9B [09:41:46]Write i2c OK [09:41:46]MH_I2C_Read... [09:41:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:46]Read from MH i2c: E2 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 0E 00 [09:41:46]MH_I2C_Read... [09:41:46]Read from MH i2c: E2 0E 00 E6 38 00 09 00 01 86 76 21 67 00 00 00 00 90 00 2B [09:41:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [09:41:46]wFMCommunicate OK [09:41:46]SAM_PROTO_GetShiftState done [09:41:46]FM_GetShiftState done [09:41:46]opened in 1730246278 [09:41:46]opened+sec_in_day 1730332678 [09:41:46]quantity*price = 6900 [09:41:46]sum+1 = 6901 [09:41:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 69.00 НСП 1% : 0.61 НДС 12% : 7.33 Наличными: 69.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 63 30.10.2024 09:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139379 ФПД: 37462600012048 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094151&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139379&fm=37462600012048&tin=02508201610067®Number=0000000000091631&sum=6900 0 [09:41:47]StoreToDocumentArchive [09:41:47]shift 556 fd 139379 [09:41:47]save to /storage/0556/doc_00139379 [09:41:47]save last doc name /storage/0556/doc_00139379 to /storage/kkm_last_doc_name [09:41:48]save OK [09:41:48]Clear old archive folders... [09:41:48]ProcessDocumentItem done err = 0, tmpTLVsize=294 [09:41:48]tlvbuf is 01115010 [09:41:48]SAM_PROTO_ClearQueue [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 09 00 00 [09:41:48]Write to MH i2c: E2 08 00 F3 38 80 09 00 00 00 00 00 00 9D [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 F3 38 00 90 00 9F [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]SAM_PROTO_ClearQueue done [09:41:48]KKMCreateOFDPacket [09:41:48]OFDProtocolAddRootSTLVToBuf [09:41:48]FM_MakeSignedData [09:41:48]FM_MakeSignedData [09:41:48]SAM_PROTO_SignData [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 01 02 [09:41:48]Write to MH i2c: E2 08 00 F4 38 80 0D 01 02 00 00 00 00 A5 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 F4 38 00 90 00 A0 [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]wFMCommunicate request_size=255 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 02 02 FA 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 5F FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 [09:41:48]Write to MH i2c: E2 02 01 F5 38 80 0D 02 02 FA 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 5F FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 00 00 07 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 F5 38 00 90 00 A1 [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]wFMCommunicate request_size=53 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 02 02 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 20 02 00 35 04 06 00 22 12 70 F7 51 10 [09:41:48]Write to MH i2c: E2 38 00 F6 38 80 0D 02 02 30 00 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 20 02 00 35 04 06 00 22 12 70 F7 51 10 00 00 31 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 03 00 F6 38 00 90 00 A2 [09:41:48]RAPDU: 90 00 [09:41:48]wFMCommunicate OK [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 0D 03 02 [09:41:48]Write to MH i2c: E2 08 00 F7 38 80 0D 03 02 00 00 00 00 AA [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 0B 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 0B 00 F7 38 00 CE D7 96 27 46 8B 7A EB 90 00 43 [09:41:48]RAPDU: CE D7 96 27 46 8B 7A EB 90 00 [09:41:48]wFMCommunicate OK [09:41:48]SAM_PROTO_SignData done [09:41:48]FM_MakeSignedData done [09:41:48]CreateOFDProtocolMessage [09:41:48]wFMCommunicate request_size=4 [09:41:48]MH_SAM_APDU [09:41:48]CAPDU: 80 11 00 00 [09:41:48]Write to MH i2c: E2 08 00 F8 38 80 11 00 00 00 00 00 00 AA [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:48]Read from MH i2c: E2 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 17 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: E2 17 00 F8 38 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 05 [09:41:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:41:48]wFMCommunicate OK [09:41:48]CreateOFDProtocolMessage done [09:41:48]OFDSenderStorePacket 139379 [09:41:48]StoreOFDPacket docnum=139379 [09:41:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 3E C3 32 01 02 D7 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 5F FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 20 02 00 35 04 06 00 22 12 70 F7 51 10 CE D7 96 27 46 8B 7A EB [09:41:48]CheckFolder [09:41:48]dirname=/storage/ofd_packets [09:41:48]CheckFolder done [09:41:48]ProducePacketName [09:41:48]name=ofd_packets/00139379 [09:41:48]NVStorageSaveData ofd_packets/00139379 [09:41:48]File name is /storage/ofd_packets/00139379 [09:41:48]Write 344 bytes [09:41:48]NVStorageSaveData done [09:41:48]OFDSenderStorePacket done [09:41:48]KKMCreateOFDPacket done [09:41:48]NVStorageSaveData kkm_last_timestamp [09:41:48]File name is /storage/kkm_last_timestamp [09:41:48]Write 4 bytes [09:41:48]NVStorageSaveData done [09:41:48]ExternCall_PrintAddStr [09:41:48]wPrintStart [09:41:48]Write to MH i2c: 01 00 00 F9 38 31 [09:41:48]Write i2c OK [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 [09:41:48]MH_I2C_Read... [09:41:48]Read from MH i2c: 01 07 00 F9 38 00 00 00 00 00 FF 0F 46 [09:41:48]RasterBufferAndPrint [09:41:48]line Счет N : (3)335294 [09:41:48]line ИНН: 02508201610067 [09:41:48]line Контрольно-Кассовый Чек [09:41:48]line ПРОДАЖА [09:41:48]line Товар: 4600682557456 [09:41:48]line Напиток FLash up energy эн ж/б 0,5/0,45л [09:41:48]line 1.000 * 69.00 [09:41:48]line = 69.00 [09:41:48]line НДС 12% НСП 1% [09:41:48]line > о реализуемом товаре [09:41:48]line ИТОГО: 69.00 [09:41:48]line НСП 1% : 0.61 [09:41:48]line НДС 12% : 7.33 [09:41:48]line Наличными: 69.00 [09:41:48]line Безнал.: 0.00 [09:41:48]line Место: АЗС № 101 "Партнер Нефть" [09:41:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:41:48]line СНО: Общий режим [09:41:48]line Чек 63 30.10.2024 09:41 [09:41:48]line Смена: 556 ФФД: 1.0 [09:41:48]line ЗНМ: 0300000081 [09:41:48]line РНМ: 0000000000091631 [09:41:48]line Версия ККМ: 001 [09:41:48]line ФМ: 0000000000874669 [09:41:48]line ФД: 139379 [09:41:48]line ФПД: 37462600012048 [09:41:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094151&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139379&fm=37462600012048&tin=02508201610067®Number=0000000000091631&sum=6900 [09:41:48]OFD Sender: Processing packet 139379 [packets to send 34, broken 33] [09:41:48]ProducePacketName [09:41:48]name=ofd_packets/00139379 [09:41:48]OFD Sender: To server: pG, [09:41:48]CommunicateWithHost lk.salyk.kg:30040 [09:41:48]ConnectInit lk.salyk.kg [09:41:48]line 0 [09:41:48]written 0, free lines is 4095 [09:41:49]Connected sock=8 [09:41:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3A 01 00 00 3E C3 32 01 02 D7 5A 03 01 00 03 00 26 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F4 1A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 3D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DD 02 00 00 00 00 07 04 06 00 F4 1A 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 5F FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 20 02 00 35 04 06 00 22 12 70 F7 51 10 CE D7 96 27 46 8B 7A EB [09:41:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 19 DE 47 00 60 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 73 20 02 00 F4 03 04 00 10 AB 21 67 B6 04 01 00 00 F3 19 9E 5C 2E A5 F4 B1 [09:41:49]CommunicateWithHost err = 0 [09:41:49]CheckOFDResponse [09:41:49]1017 (14) - 77093643461234 [09:41:49]1041 (16) - 0000000000874669 [09:41:49]1040 (4) - 139379 [09:41:49]1012 (4) - 30.10.2024 03:42 [09:41:49]1206 (1) - 0 [09:41:49]OFD Sender: Remove packet 139379 [09:41:49]ProducePacketName [09:41:49]name=ofd_packets/00139379 [09:41:49]NVStorageDeleteData [09:41:49]Write to MH i2c: 01 00 00 22 39 5B [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 07 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: 01 07 00 22 39 00 00 00 00 00 FD 0C 6B [09:41:49]RasterBufferAndPrint [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]line [09:41:49]written 0, free lines is 3333 [09:41:49]MH_Cut [09:41:49]Write to MH i2c: D1 01 00 29 39 01 34 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 01 00 [09:41:49]MH_I2C_Read... [09:41:49]Read from MH i2c: D1 01 00 29 39 00 33 [09:41:49]Write to MH i2c: 01 00 00 2A 39 63 [09:41:49]Write i2c OK [09:41:49]MH_I2C_Read... [09:41:49]OFD Sender: No OFD packet to send [09:41:50]*** Cut start [09:41:50]*** Partial cut [09:41:50]*** CUTSNS_PIN = 1 [09:41:50]*** CUTSNS_PIN = 0 [09:41:50]*** Brake cut motor [09:41:50]Read from MH i2c: 01 [09:41:50]MH_I2C_Read... [09:41:50]*** Stop cut motor [09:41:50]*** Cut end [09:41:50]Read from MH i2c: 01 07 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: 01 07 00 2A 39 00 00 00 00 00 FF 0F 78 [09:41:50]process_action close_receipt done [09:41:50]requested_data is exist [09:41:50]produce_requested_data [09:41:50]requested_item fm.sn is exist - process it [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 11 00 00 [09:41:50]Write to MH i2c: E2 08 00 2B 39 80 11 00 00 00 00 00 00 DE [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 17 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 17 00 2B 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 39 [09:41:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:41:50]wFMCommunicate OK [09:41:50]requested_item fd.num is exist - process it [09:41:50]SAM_PROTO_GetFieldsCounters [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 13 00 00 [09:41:50]Write to MH i2c: E2 08 00 2C 39 80 13 00 00 00 00 00 00 E1 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 62 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 62 00 2C 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 73 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 85 [09:41:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 73 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 3F 00 00 00 5E 04 04 00 3F 00 00 00 57 04 04 00 40 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:41:50]wFMCommunicate OK [09:41:50]SAM_PROTO_GetFieldsCounters done [09:41:50]requested_item shift.num is exist - process it [09:41:50]requested_item shift.opened is exist - process it [09:41:50]req_shift_opened [09:41:50]FM_GetShiftState [09:41:50]SAM_PROTO_GetShiftState [09:41:50]wFMCommunicate request_size=4 [09:41:50]MH_SAM_APDU [09:41:50]CAPDU: 80 13 01 00 [09:41:50]Write to MH i2c: E2 08 00 2D 39 80 13 01 00 00 00 00 00 E3 [09:41:50]Write i2c OK [09:41:50]MH_I2C_Read... [09:41:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:41:50]Read from MH i2c: E2 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 0E 00 [09:41:50]MH_I2C_Read... [09:41:50]Read from MH i2c: E2 0E 00 2D 39 00 09 00 01 86 76 21 67 00 00 00 00 90 00 73 [09:41:50]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [09:41:50]wFMCommunicate OK [09:41:50]SAM_PROTO_GetShiftState done [09:41:50]FM_GetShiftState done [09:41:50]req_shift_opened done [09:41:50]requested_item shift.open_date is exist - process it [09:41:50]req_shift_open_date [09:41:50]req_shift_open_date done [09:41:50]produce_requested_data done [09:41:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139379,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [09:41:50]process_action_free close_receipt [09:41:50]json_value_free [09:41:50]json_value_free done [09:41:50]process_json_proto returns [09:41:50]Send response to host [09:41:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139379,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [09:41:50]free response buf [09:41:50]execute_script done [09:41:50]execute_script returns [09:41:50]free content buf [09:41:50]Sock 9.Close socket [09:41:50]Sock 9.Thread stoped [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:13]accept exits with 10 [09:42:13]New connection [09:42:13]New thread 3067141476 created [09:42:13]Thread 3067284836 joined [09:42:13]Waiting for new connection... [09:42:13] Sock 10.Parse request [09:42:13]Sock 10.Check first char [09:42:13]Sock 10.First char is OK [09:42:13]request: POST /json_proto HTTP/1.0 [09:42:13]Method: POST [09:42:13]URL: /json_proto [09:42:13]Method is POST - this is cgi request [09:42:13]url: /json_proto [09:42:13]query_string will be loaded in cgi processing [09:42:13]execute_cgi json_proto POST (null) [09:42:13]execute_cgi path=json_proto method=POST [09:42:13]POST find Content-Length [09:42:13]Host: 172.17.50.196:8080 [09:42:13]Content-Length: 621 [09:42:13]Content-Type: application/json [09:42:13] [09:42:13]POST finish read [09:42:13]Found Content-Length = 621 [09:42:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335295", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:13]execute_script... [09:42: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 : (3)335295", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [09:42:13]POST & json_proto [09:42:13]process_json_proto [09:42:13]json parsed OK: [09:42:13]protocol is kg_v1.0 [09:42:13]action value=close_receipt [09:42:13]process_action close_receipt [09:42:13]cmd_close_receipt [09:42:13]MH_GetDate [09:42:13]Write to MH i2c: F0 00 00 2E 39 56 [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: F0 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: F0 09 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: F0 09 00 2E 39 00 7A FF 21 67 72 0D 1C 67 62 [09:42:13]GetLastDocTimeStamp 1730281311 [09:42:13]current date 1730281338 [09:42:13]FM_GetShiftState [09:42:13]SAM_PROTO_GetShiftState [09:42:13]wFMCommunicate request_size=4 [09:42:13]MH_SAM_APDU [09:42:13]CAPDU: 80 13 01 00 [09:42:13]Write to MH i2c: E2 08 00 2F 39 80 13 01 00 00 00 00 00 E5 [09:42:13]Write i2c OK [09:42:13]MH_I2C_Read... [09:42:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:13]Read from MH i2c: E2 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 [09:42:13]MH_I2C_Read... [09:42:13]Read from MH i2c: E2 0E 00 2F 39 00 09 00 01 86 76 21 67 00 00 00 00 90 00 75 [09:42:13]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [09:42:13]wFMCommunicate OK [09:42:13]SAM_PROTO_GetShiftState done [09:42:13]FM_GetShiftState done [09:42:13]opened in 1730246278 [09:42:13]opened+sec_in_day 1730332678 [09:42:13]quantity*price = 14400 [09:42:13]sum+1 = 14401 [09:42:13]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 64 30.10.2024 09:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139380 ФПД: 164955403852336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094218&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139380&fm=164955403852336&tin=02508201610067®Number=0000000000091631&sum=14400 0 [09:42:14]StoreToDocumentArchive [09:42:14]shift 556 fd 139380 [09:42:14]save to /storage/0556/doc_00139380 [09:42:14]save last doc name /storage/0556/doc_00139380 to /storage/kkm_last_doc_name [09:42:14]save OK [09:42:14]Clear old archive folders... [09:42:14]ProcessDocumentItem done err = 0, tmpTLVsize=273 [09:42:14]tlvbuf is 0116BD90 [09:42:14]SAM_PROTO_ClearQueue [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 09 00 00 [09:42:14]Write to MH i2c: E2 08 00 3C 39 80 09 00 00 00 00 00 00 E7 [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [09:42:14]Read from MH i2c: E2 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 [09:42:14]MH_I2C_Read... [09:42:14]Read from MH i2c: E2 03 00 3C 39 00 90 00 E9 [09:42:14]RAPDU: 90 00 [09:42:14]wFMCommunicate OK [09:42:14]SAM_PROTO_ClearQueue done [09:42:14]KKMCreateOFDPacket [09:42:14]OFDProtocolAddRootSTLVToBuf [09:42:14]FM_MakeSignedData [09:42:14]FM_MakeSignedData [09:42:14]SAM_PROTO_SignData [09:42:14]wFMCommunicate request_size=4 [09:42:14]MH_SAM_APDU [09:42:14]CAPDU: 80 0D 01 02 [09:42:14]Write to MH i2c: E2 08 00 3D 39 80 0D 01 02 00 00 00 00 EF [09:42:14]Write i2c OK [09:42:14]MH_I2C_Read... [09:42:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 3D 39 00 90 00 EA [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]wFMCommunicate request_size=255 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 7A FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [09:42:15]Write to MH i2c: E2 02 01 3E 39 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 7A FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 AF [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 3E 39 00 90 00 EB [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]wFMCommunicate request_size=32 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 74 20 02 00 35 04 06 00 96 06 AC 40 1A 30 [09:42:15]Write to MH i2c: E2 23 00 3F 39 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 74 20 02 00 35 04 06 00 96 06 AC 40 1A 30 00 00 BF [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 03 00 3F 39 00 90 00 EC [09:42:15]RAPDU: 90 00 [09:42:15]wFMCommunicate OK [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 0D 03 02 [09:42:15]Write to MH i2c: E2 08 00 40 39 80 0D 03 02 00 00 00 00 F4 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 0B 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 0B 00 40 39 00 3F 7A CB 24 06 F7 72 39 90 00 45 [09:42:15]RAPDU: 3F 7A CB 24 06 F7 72 39 90 00 [09:42:15]wFMCommunicate OK [09:42:15]SAM_PROTO_SignData done [09:42:15]FM_MakeSignedData done [09:42:15]CreateOFDProtocolMessage [09:42:15]wFMCommunicate request_size=4 [09:42:15]MH_SAM_APDU [09:42:15]CAPDU: 80 11 00 00 [09:42:15]Write to MH i2c: E2 08 00 41 39 80 11 00 00 00 00 00 00 F4 [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:15]Read from MH i2c: E2 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 17 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: E2 17 00 41 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4F [09:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:42:15]wFMCommunicate OK [09:42:15]CreateOFDProtocolMessage done [09:42:15]OFDSenderStorePacket 139380 [09:42:15]StoreOFDPacket docnum=139380 [09:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 FE 61 1D 01 80 54 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 7A FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 74 20 02 00 35 04 06 00 96 06 AC 40 1A 30 3F 7A CB 24 06 F7 72 39 [09:42:15]CheckFolder [09:42:15]dirname=/storage/ofd_packets [09:42:15]CheckFolder done [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00139380 [09:42:15]NVStorageSaveData ofd_packets/00139380 [09:42:15]File name is /storage/ofd_packets/00139380 [09:42:15]Write 323 bytes [09:42:15]NVStorageSaveData done [09:42:15]OFDSenderStorePacket done [09:42:15]KKMCreateOFDPacket done [09:42:15]NVStorageSaveData kkm_last_timestamp [09:42:15]File name is /storage/kkm_last_timestamp [09:42:15]Write 4 bytes [09:42:15]NVStorageSaveData done [09:42:15]OFD Sender: Processing packet 139380 [packets to send 34, broken 33] [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00139380 [09:42:15]OFD Sender: To server: pG, [09:42:15]CommunicateWithHost lk.salyk.kg:30040 [09:42:15]ConnectInit lk.salyk.kg [09:42:15]ExternCall_PrintAddStr [09:42:15]wPrintStart [09:42:15]Write to MH i2c: 01 00 00 42 39 7B [09:42:15]Write i2c OK [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 07 00 [09:42:15]MH_I2C_Read... [09:42:15]Read from MH i2c: 01 07 00 42 39 00 00 00 00 00 FF 0F 90 [09:42:15]RasterBufferAndPrint [09:42:15]line Счет N : (3)335295 [09:42:15]line ИНН: 02508201610067 [09:42:15]line Контрольно-Кассовый Чек [09:42:15]line ПРОДАЖА [09:42:15]line Товар: 48747059 [09:42:15]line Сигареты Winston Legend Blue [09:42:15]line 1.000 * 144.00 [09:42:15]line = 144.00 [09:42:15]line НДС 12% НСП 1% [09:42:15]line > о реализуемом товаре [09:42:15]line ИТОГО: 144.00 [09:42:15]line НСП 1% : 1.27 [09:42:15]line НДС 12% : 15.29 [09:42:15]line Наличными: 144.00 [09:42:15]line Безнал.: 0.00 [09:42:15]line Место: АЗС № 101 "Партнер Нефть" [09:42:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [09:42:15]line СНО: Общий режим [09:42:15]line Чек 64 30.10.2024 09:42 [09:42:15]line Смена: 556 ФФД: 1.0 [09:42:15]line ЗНМ: 0300000081 [09:42:15]line РНМ: 0000000000091631 [09:42:15]line Версия ККМ: 001 [09:42:15]line ФМ: 0000000000874669 [09:42:15]line ФД: 139380 [09:42:15]line ФПД: 164955403852336 [09:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T094218&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139380&fm=164955403852336&tin=02508201610067®Number=0000000000091631&sum=14400 [09:42:15]line 0 [09:42:15]Connected sock=11 [09:42:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 FE 61 1D 01 80 54 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 7A FF 21 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 74 20 02 00 35 04 06 00 96 06 AC 40 1A 30 3F 7A CB 24 06 F7 72 39 [09:42:15]written 0, free lines is 4095 [09:42:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8F 21 47 00 C5 6A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 74 20 02 00 F4 03 04 00 2B AB 21 67 B6 04 01 00 00 E4 86 D1 63 91 B9 1F DC [09:42:15]CommunicateWithHost err = 0 [09:42:15]CheckOFDResponse [09:42:15]1017 (14) - 77093643461234 [09:42:15]1041 (16) - 0000000000874669 [09:42:15]1040 (4) - 139380 [09:42:15]1012 (4) - 30.10.2024 03:42 [09:42:15]1206 (1) - 0 [09:42:15]OFD Sender: Remove packet 139380 [09:42:15]ProducePacketName [09:42:15]name=ofd_packets/00139380 [09:42:15]NVStorageDeleteData [09:42:16]Write to MH i2c: 01 00 00 6B 39 A4 [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: 01 07 00 6B 39 00 00 00 00 00 EA 0C A1 [09:42:16]RasterBufferAndPrint [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]line [09:42:16]written 0, free lines is 3315 [09:42:16]MH_Cut [09:42:16]Write to MH i2c: D1 01 00 72 39 01 7D [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: D1 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: D1 01 00 [09:42:16]MH_I2C_Read... [09:42:16]Read from MH i2c: D1 01 00 72 39 00 7C [09:42:16]Write to MH i2c: 01 00 00 73 39 AC [09:42:16]Write i2c OK [09:42:16]MH_I2C_Read... [09:42:16]OFD Sender: No OFD packet to send [09:42:16]*** Cut start [09:42:16]*** Partial cut [09:42:16]*** CUTSNS_PIN = 1 [09:42:16]*** CUTSNS_PIN = 0 [09:42:17]*** Brake cut motor [09:42:17]Read from MH i2c: 01 [09:42:17]MH_I2C_Read... [09:42:17]*** Stop cut motor [09:42:17]*** Cut end [09:42:17]Read from MH i2c: 01 07 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: 01 07 00 73 39 00 00 00 00 00 FF 0F C1 [09:42:17]process_action close_receipt done [09:42:17]requested_data is exist [09:42:17]produce_requested_data [09:42:17]requested_item fm.sn is exist - process it [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 11 00 00 [09:42:17]Write to MH i2c: E2 08 00 74 39 80 11 00 00 00 00 00 00 27 [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 17 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 17 00 74 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 82 [09:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [09:42:17]wFMCommunicate OK [09:42:17]requested_item fd.num is exist - process it [09:42:17]SAM_PROTO_GetFieldsCounters [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 13 00 00 [09:42:17]Write to MH i2c: E2 08 00 75 39 80 13 00 00 00 00 00 00 2A [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 62 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 62 00 75 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 74 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [09:42:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 74 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 40 00 00 00 5E 04 04 00 40 00 00 00 57 04 04 00 41 00 00 00 19 04 04 00 00 00 00 00 90 00 [09:42:17]wFMCommunicate OK [09:42:17]SAM_PROTO_GetFieldsCounters done [09:42:17]requested_item shift.num is exist - process it [09:42:17]requested_item shift.opened is exist - process it [09:42:17]req_shift_opened [09:42:17]FM_GetShiftState [09:42:17]SAM_PROTO_GetShiftState [09:42:17]wFMCommunicate request_size=4 [09:42:17]MH_SAM_APDU [09:42:17]CAPDU: 80 13 01 00 [09:42:17]Write to MH i2c: E2 08 00 76 39 80 13 01 00 00 00 00 00 2C [09:42:17]Write i2c OK [09:42:17]MH_I2C_Read... [09:42:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [09:42:17]Read from MH i2c: E2 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 0E 00 [09:42:17]MH_I2C_Read... [09:42:17]Read from MH i2c: E2 0E 00 76 39 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BC [09:42:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [09:42:17]wFMCommunicate OK [09:42:17]SAM_PROTO_GetShiftState done [09:42:17]FM_GetShiftState done [09:42:17]req_shift_opened done [09:42:17]requested_item shift.open_date is exist - process it [09:42:17]req_shift_open_date [09:42:17]req_shift_open_date done [09:42:17]produce_requested_data done [09:42:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139380,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [09:42:17]process_action_free close_receipt [09:42:17]json_value_free [09:42:17]json_value_free done [09:42:17]process_json_proto returns [09:42:17]Send response to host [09:42:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139380,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [09:42:17]free response buf [09:42:17]execute_script done [09:42:17]execute_script returns [09:42:17]free content buf [09:42:17]Sock 10.Close socket [09:42:17]Sock 10.Thread stoped [09:42:21]OFD Sender: No OFD packet to send [09:42:26]OFD Sender: No OFD packet to send [09:42:31]OFD Sender: No OFD packet to send [09:42:36]OFD Sender: No OFD packet to send [09:42:41]OFD Sender: No OFD packet to send [09:42:46]OFD Sender: No OFD packet to send [09:42:51]OFD Sender: No OFD packet to send [09:42:56]OFD Sender: No OFD packet to send [09:43:01]OFD Sender: No OFD packet to send [09:43:06]OFD Sender: No OFD packet to send [09:43:11]OFD Sender: No OFD packet to send [09:43:16]OFD Sender: No OFD packet to send [09:43:21]OFD Sender: No OFD packet to send [09:43:26]OFD Sender: No OFD packet to send [09:43:31]OFD Sender: No OFD packet to send [09:43:36]OFD Sender: No OFD packet to send [09:43:41]OFD Sender: No OFD packet to send [09:43:46]OFD Sender: No OFD packet to send [09:43:51]OFD Sender: No OFD packet to send [09:43:56]OFD Sender: No OFD packet to send [09:44:01]OFD Sender: No OFD packet to send [09:44:06]OFD Sender: No OFD packet to send [09:44:11]OFD Sender: No OFD packet to send [09:44:16]OFD Sender: No OFD packet to send [09:44:21]OFD Sender: No OFD packet to send [09:44:26]OFD Sender: No OFD packet to send [09:44:31]OFD Sender: No OFD packet to send [09:44:36]OFD Sender: No OFD packet to send [09:44:41]OFD Sender: No OFD packet to send [09:44:46]OFD Sender: No OFD packet to send [09:44:51]OFD Sender: No OFD packet to send [09:44:56]OFD Sender: No OFD packet to send [09:45:01]OFD Sender: No OFD packet to send [09:45:06]OFD Sender: No OFD packet to send [09:45:11]OFD Sender: No OFD packet to send [09:45:16]OFD Sender: No OFD packet to send [09:45:21]OFD Sender: No OFD packet to send [09:45:26]OFD Sender: No OFD packet to send [09:45:31]OFD Sender: No OFD packet to send [09:45:36]OFD Sender: No OFD packet to send [09:45:41]OFD Sender: No OFD packet to send [09:45:46]OFD Sender: No OFD packet to send [09:45:51]OFD Sender: No OFD packet to send [09:45:56]OFD Sender: No OFD packet to send [09:46:01]OFD Sender: No OFD packet to send [09:46:06]OFD Sender: No OFD packet to send [09:46:11]OFD Sender: No OFD packet to send [09:46:16]OFD Sender: No OFD packet to send [09:46:21]OFD Sender: No OFD packet to send [09:46:26]OFD Sender: No OFD packet to send [09:46:31]OFD Sender: No OFD packet to send [09:46:36]OFD Sender: No OFD packet to send [09:46:41]OFD Sender: No OFD packet to send [09:46:46]OFD Sender: No OFD packet to send [09:46:51]OFD Sender: No OFD packet to send [09:46:56]OFD Sender: No OFD packet to send [09:47:01]OFD Sender: No OFD packet to send [09:47:06]OFD Sender: No OFD packet to send [09:47:11]OFD Sender: No OFD packet to send [09:47:16]OFD Sender: No OFD packet to send [09:47:21]OFD Sender: No OFD packet to send [09:47:26]OFD Sender: No OFD packet to send [09:47:31]OFD Sender: No OFD packet to send [09:47:36]OFD Sender: No OFD packet to send [09:47:41]OFD Sender: No OFD packet to send [09:47:46]OFD Sender: No OFD packet to send [09:47:51]OFD Sender: No OFD packet to send [09:47:56]OFD Sender: No OFD packet to send [09:48:01]OFD Sender: No OFD packet to send [09:48:06]OFD Sender: No OFD packet to send [09:48:11]OFD Sender: No OFD packet to send [09:48:16]OFD Sender: No OFD packet to send [09:48:21]OFD Sender: No OFD packet to send [09:48:26]OFD Sender: No OFD packet to send [09:48:31]OFD Sender: No OFD packet to send [09:48:36]OFD Sender: No OFD packet to send [09:48:41]OFD Sender: No OFD packet to send [09:48:46]OFD Sender: No OFD packet to send [09:48:51]OFD Sender: No OFD packet to send [09:48:56]OFD Sender: No OFD packet to send [09:49:01]OFD Sender: No OFD packet to send [09:49:06]OFD Sender: No OFD packet to send [09:49:11]OFD Sender: No OFD packet to send [09:49:16]OFD Sender: No OFD packet to send [09:49:21]OFD Sender: No OFD packet to send [09:49:26]OFD Sender: No OFD packet to send [09:49:31]OFD Sender: No OFD packet to send [09:49:36]OFD Sender: No OFD packet to send [09:49:41]OFD Sender: No OFD packet to send [09:49:46]OFD Sender: No OFD packet to send [09:49:51]OFD Sender: No OFD packet to send [09:49:56]OFD Sender: No OFD packet to send [09:50:01]OFD Sender: No OFD packet to send [09:50:06]OFD Sender: No OFD packet to send [09:50:11]OFD Sender: No OFD packet to send [09:50:16]OFD Sender: No OFD packet to send [09:50:21]OFD Sender: No OFD packet to send [09:50:26]OFD Sender: No OFD packet to send [09:50:31]OFD Sender: No OFD packet to send [09:50:36]OFD Sender: No OFD packet to send [09:50:41]OFD Sender: No OFD packet to send [09:50:46]OFD Sender: No OFD packet to send [09:50:51]OFD Sender: No OFD packet to send [09:50:56]OFD Sender: No OFD packet to send [09:51:01]OFD Sender: No OFD packet to send [09:51:06]OFD Sender: No OFD packet to send [09:51:11]OFD Sender: No OFD packet to send [09:51:16]OFD Sender: No OFD packet to send [09:51:21]OFD Sender: No OFD packet to send [09:51:26]OFD Sender: No OFD packet to send [09:51:31]OFD Sender: No OFD packet to send [09:51:36]OFD Sender: No OFD packet to send [09:51:41]OFD Sender: No OFD packet to send [09:51:46]OFD Sender: No OFD packet to send [09:51:51]OFD Sender: No OFD packet to send [09:51:57]OFD Sender: No OFD packet to send [09:52:02]OFD Sender: No OFD packet to send [09:52:07]OFD Sender: No OFD packet to send [09:52:12]OFD Sender: No OFD packet to send [09:52:17]OFD Sender: No OFD packet to send [09:52:22]OFD Sender: No OFD packet to send [09:52:27]OFD Sender: No OFD packet to send [09:52:32]OFD Sender: No OFD packet to send [09:52:37]OFD Sender: No OFD packet to send [09:52:42]OFD Sender: No OFD packet to send [09:52:47]OFD Sender: No OFD packet to send [09:52:52]OFD Sender: No OFD packet to send [09:52:57]OFD Sender: No OFD packet to send [09:53:02]OFD Sender: No OFD packet to send [09:53:07]OFD Sender: No OFD packet to send [09:53:12]OFD Sender: No OFD packet to send [09:53:17]OFD Sender: No OFD packet to send [09:53:22]OFD Sender: No OFD packet to send [09:53:27]OFD Sender: No OFD packet to send [09:53:32]OFD Sender: No OFD packet to send [09:53:37]OFD Sender: No OFD packet to send [09:53:42]OFD Sender: No OFD packet to send [09:53:47]OFD Sender: No OFD packet to send [09:53:52]OFD Sender: No OFD packet to send [09:53:57]OFD Sender: No OFD packet to send [09:54:02]OFD Sender: No OFD packet to send [09:54:07]OFD Sender: No OFD packet to send [09:54:12]OFD Sender: No OFD packet to send [09:54:17]OFD Sender: No OFD packet to send [09:54:22]OFD Sender: No OFD packet to send [09:54:27]OFD Sender: No OFD packet to send [09:54:32]OFD Sender: No OFD packet to send [09:54:37]OFD Sender: No OFD packet to send [09:54:42]OFD Sender: No OFD packet to send [09:54:47]OFD Sender: No OFD packet to send [09:54:52]OFD Sender: No OFD packet to send [09:54:57]OFD Sender: No OFD packet to send [09:55:02]OFD Sender: No OFD packet to send [09:55:07]OFD Sender: No OFD packet to send [09:55:12]OFD Sender: No OFD packet to send [09:55:17]OFD Sender: No OFD packet to send [09:55:22]OFD Sender: No OFD packet to send [09:55:27]OFD Sender: No OFD packet to send [09:55:32]OFD Sender: No OFD packet to send [09:55:37]OFD Sender: No OFD packet to send [09:55:42]OFD Sender: No OFD packet to send [09:55:47]OFD Sender: No OFD packet to send [09:55:52]OFD Sender: No OFD packet to send [09:55:57]OFD Sender: No OFD packet to send [09:56:02]OFD Sender: No OFD packet to send [09:56:07]OFD Sender: No OFD packet to send [09:56:12]OFD Sender: No OFD packet to send [09:56:17]OFD Sender: No OFD packet to send [09:56:22]OFD Sender: No OFD packet to send [09:56:27]OFD Sender: No OFD packet to send [09:56:32]OFD Sender: No OFD packet to send [09:56:37]OFD Sender: No OFD packet to send [09:56:42]OFD Sender: No OFD packet to send [09:56:47]OFD Sender: No OFD packet to send [09:56:52]OFD Sender: No OFD packet to send [09:56:57]OFD Sender: No OFD packet to send [09:57:02]OFD Sender: No OFD packet to send [09:57:07]OFD Sender: No OFD packet to send [09:57:12]OFD Sender: No OFD packet to send [09:57:17]OFD Sender: No OFD packet to send [09:57:22]OFD Sender: No OFD packet to send [09:57:27]OFD Sender: No OFD packet to send [09:57:32]OFD Sender: No OFD packet to send [09:57:37]OFD Sender: No OFD packet to send [09:57:42]OFD Sender: No OFD packet to send [09:57:47]OFD Sender: No OFD packet to send [09:57:52]OFD Sender: No OFD packet to send [09:57:57]OFD Sender: No OFD packet to send [09:58:02]OFD Sender: No OFD packet to send [09:58:07]OFD Sender: No OFD packet to send [09:58:12]OFD Sender: No OFD packet to send [09:58:17]OFD Sender: No OFD packet to send [09:58:22]OFD Sender: No OFD packet to send [09:58:27]OFD Sender: No OFD packet to send [09:58:32]OFD Sender: No OFD packet to send [09:58:37]OFD Sender: No OFD packet to send [09:58:42]OFD Sender: No OFD packet to send [09:58:47]OFD Sender: No OFD packet to send [09:58:52]OFD Sender: No OFD packet to send [09:58:57]OFD Sender: No OFD packet to send [09:59:02]OFD Sender: No OFD packet to send [09:59:07]OFD Sender: No OFD packet to send [09:59:12]OFD Sender: No OFD packet to send [09:59:17]OFD Sender: No OFD packet to send [09:59:22]OFD Sender: No OFD packet to send [09:59:27]OFD Sender: No OFD packet to send [09:59:32]OFD Sender: No OFD packet to send [09:59:37]OFD Sender: No OFD packet to send [09:59:42]OFD Sender: No OFD packet to send [09:59:47]OFD Sender: No OFD packet to send [09:59:52]OFD Sender: No OFD packet to send [09:59:57]OFD Sender: No OFD packet to send [10:00:02]OFD Sender: No OFD packet to send [10:00:07]OFD Sender: No OFD packet to send [10:00:12]OFD Sender: No OFD packet to send [10:00:17]OFD Sender: No OFD packet to send [10:00:22]OFD Sender: No OFD packet to send [10:00:27]OFD Sender: No OFD packet to send [10:00:32]OFD Sender: No OFD packet to send [10:00:37]OFD Sender: No OFD packet to send [10:00:42]OFD Sender: No OFD packet to send [10:00:47]OFD Sender: No OFD packet to send [10:00:52]OFD Sender: No OFD packet to send [10:00:57]OFD Sender: No OFD packet to send [10:01:02]OFD Sender: No OFD packet to send [10:01:07]OFD Sender: No OFD packet to send [10:01:12]OFD Sender: No OFD packet to send [10:01:17]OFD Sender: No OFD packet to send [10:01:22]OFD Sender: No OFD packet to send [10:01:27]OFD Sender: No OFD packet to send [10:01:32]OFD Sender: No OFD packet to send [10:01:37]OFD Sender: No OFD packet to send [10:01:42]OFD Sender: No OFD packet to send [10:01:47]OFD Sender: No OFD packet to send [10:01:52]OFD Sender: No OFD packet to send [10:01:57]OFD Sender: No OFD packet to send [10:02:02]OFD Sender: No OFD packet to send [10:02:07]OFD Sender: No OFD packet to send [10:02:12]OFD Sender: No OFD packet to send [10:02:17]OFD Sender: No OFD packet to send [10:02:22]OFD Sender: No OFD packet to send [10:02:27]OFD Sender: No OFD packet to send [10:02:32]OFD Sender: No OFD packet to send [10:02:37]OFD Sender: No OFD packet to send [10:02:42]OFD Sender: No OFD packet to send [10:02:47]OFD Sender: No OFD packet to send [10:02:52]OFD Sender: No OFD packet to send [10:02:57]OFD Sender: No OFD packet to send [10:03:02]OFD Sender: No OFD packet to send [10:03:07]OFD Sender: No OFD packet to send [10:03:12]OFD Sender: No OFD packet to send [10:03:17]OFD Sender: No OFD packet to send [10:03:22]OFD Sender: No OFD packet to send [10:03:27]OFD Sender: No OFD packet to send [10:03:32]OFD Sender: No OFD packet to send [10:03:37]OFD Sender: No OFD packet to send [10:03:42]OFD Sender: No OFD packet to send [10:03:47]OFD Sender: No OFD packet to send [10:03:52]OFD Sender: No OFD packet to send [10:03:57]OFD Sender: No OFD packet to send [10:04:02]OFD Sender: No OFD packet to send [10:04:07]OFD Sender: No OFD packet to send [10:04:12]OFD Sender: No OFD packet to send [10:04:17]OFD Sender: No OFD packet to send [10:04:22]OFD Sender: No OFD packet to send [10:04:27]OFD Sender: No OFD packet to send [10:04:32]OFD Sender: No OFD packet to send [10:04:37]OFD Sender: No OFD packet to send [10:04:42]OFD Sender: No OFD packet to send [10:04:47]OFD Sender: No OFD packet to send [10:04:52]OFD Sender: No OFD packet to send [10:04:57]OFD Sender: No OFD packet to send [10:05:02]OFD Sender: No OFD packet to send [10:05:07]OFD Sender: No OFD packet to send [10:05:12]OFD Sender: No OFD packet to send [10:05:17]OFD Sender: No OFD packet to send [10:05:22]OFD Sender: No OFD packet to send [10:05:27]OFD Sender: No OFD packet to send [10:05:32]OFD Sender: No OFD packet to send [10:05:37]OFD Sender: No OFD packet to send [10:05:42]OFD Sender: No OFD packet to send [10:05:47]OFD Sender: No OFD packet to send [10:05:52]OFD Sender: No OFD packet to send [10:05:57]OFD Sender: No OFD packet to send [10:06:02]OFD Sender: No OFD packet to send [10:06:07]OFD Sender: No OFD packet to send [10:06:12]OFD Sender: No OFD packet to send [10:06:17]OFD Sender: No OFD packet to send [10:06:22]OFD Sender: No OFD packet to send [10:06:27]OFD Sender: No OFD packet to send [10:06:32]OFD Sender: No OFD packet to send [10:06:37]OFD Sender: No OFD packet to send [10:06:42]OFD Sender: No OFD packet to send [10:06:47]OFD Sender: No OFD packet to send [10:06:52]OFD Sender: No OFD packet to send [10:06:57]OFD Sender: No OFD packet to send [10:07:02]OFD Sender: No OFD packet to send [10:07:07]OFD Sender: No OFD packet to send [10:07:12]OFD Sender: No OFD packet to send [10:07:17]OFD Sender: No OFD packet to send [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:12]OFD Sender: No OFD packet to send [10:09:17]OFD Sender: No OFD packet to send [10:09:22]OFD Sender: No OFD packet to send [10:09:27]OFD Sender: No OFD packet to send [10:09:32]OFD Sender: No OFD packet to send [10:09:37]OFD Sender: No OFD packet to send [10:09:42]OFD Sender: No OFD packet to send [10:09:47]OFD Sender: No OFD packet to send [10:09:52]OFD Sender: No OFD packet to send [10:09:57]OFD Sender: No OFD packet to send [10:10:02]OFD Sender: No OFD packet to send [10:10:07]OFD Sender: No OFD packet to send [10:10:12]OFD Sender: No OFD packet to send [10:10:17]OFD Sender: No OFD packet to send [10:10:22]OFD Sender: No OFD packet to send [10:10:27]OFD Sender: No OFD packet to send [10:10:32]OFD Sender: No OFD packet to send [10:10:37]OFD Sender: No OFD packet to send [10:10:42]OFD Sender: No OFD packet to send [10:10:47]OFD Sender: No OFD packet to send [10:10:52]OFD Sender: No OFD packet to send [10:10:57]OFD Sender: No OFD packet to send [10:11:02]OFD Sender: No OFD packet to send [10:11:07]OFD Sender: No OFD packet to send [10:11:12]OFD Sender: No OFD packet to send [10:11:17]OFD Sender: No OFD packet to send [10:11:23]OFD Sender: No OFD packet to send [10:11:28]OFD Sender: No OFD packet to send [10:11:33]OFD Sender: No OFD packet to send [10:11:38]OFD Sender: No OFD packet to send [10:11:43]OFD Sender: No OFD packet to send [10:11:48]OFD Sender: No OFD packet to send [10:11:53]OFD Sender: No OFD packet to send [10:11:58]OFD Sender: No OFD packet to send [10:12:03]OFD Sender: No OFD packet to send [10:12:08]OFD Sender: No OFD packet to send [10:12:13]OFD Sender: No OFD packet to send [10:12:18]OFD Sender: No OFD packet to send [10:12:23]OFD Sender: No OFD packet to send [10:12:28]OFD Sender: No OFD packet to send [10:12:33]OFD Sender: No OFD packet to send [10:12:38]OFD Sender: No OFD packet to send [10:12:43]OFD Sender: No OFD packet to send [10:12:48]OFD Sender: No OFD packet to send [10:12:53]OFD Sender: No OFD packet to send [10:12:58]OFD Sender: No OFD packet to send [10:13:03]OFD Sender: No OFD packet to send [10:13:08]OFD Sender: No OFD packet to send [10:13:13]OFD Sender: No OFD packet to send [10:13:18]OFD Sender: No OFD packet to send [10:13:23]OFD Sender: No OFD packet to send [10:13:28]OFD Sender: No OFD packet to send [10:13:33]OFD Sender: No OFD packet to send [10:13:38]OFD Sender: No OFD packet to send [10:13:43]OFD Sender: No OFD packet to send [10:13:48]OFD Sender: No OFD packet to send [10:13:53]OFD Sender: No OFD packet to send [10:13:58]OFD Sender: No OFD packet to send [10:14:03]OFD Sender: No OFD packet to send [10:14:08]OFD Sender: No OFD packet to send [10:14:13]OFD Sender: No OFD packet to send [10:14:18]OFD Sender: No OFD packet to send [10:14:23]OFD Sender: No OFD packet to send [10:14:28]OFD Sender: No OFD packet to send [10:14:33]OFD Sender: No OFD packet to send [10:14:38]OFD Sender: No OFD packet to send [10:14:43]OFD Sender: No OFD packet to send [10:14:48]OFD Sender: No OFD packet to send [10:14:53]OFD Sender: No OFD packet to send [10:14:58]OFD Sender: No OFD packet to send [10:15:03]OFD Sender: No OFD packet to send [10:15:08]OFD Sender: No OFD packet to send [10:15:13]OFD Sender: No OFD packet to send [10:15:18]OFD Sender: No OFD packet to send [10:15:23]OFD Sender: No OFD packet to send [10:15:28]OFD Sender: No OFD packet to send [10:15:33]OFD Sender: No OFD packet to send [10:15:38]OFD Sender: No OFD packet to send [10:15:43]OFD Sender: No OFD packet to send [10:15:48]OFD Sender: No OFD packet to send [10:15:53]OFD Sender: No OFD packet to send [10:15:58]OFD Sender: No OFD packet to send [10:16:03]OFD Sender: No OFD packet to send [10:16:08]OFD Sender: No OFD packet to send [10:16:13]OFD Sender: No OFD packet to send [10:16:18]OFD Sender: No OFD packet to send [10:16:23]OFD Sender: No OFD packet to send [10:16:28]OFD Sender: No OFD packet to send [10:16:33]OFD Sender: No OFD packet to send [10:16:38]OFD Sender: No OFD packet to send [10:16:43]OFD Sender: No OFD packet to send [10:16:48]OFD Sender: No OFD packet to send [10:16:53]OFD Sender: No OFD packet to send [10:16:58]OFD Sender: No OFD packet to send [10:17:03]OFD Sender: No OFD packet to send [10:17:08]OFD Sender: No OFD packet to send [10:17:13]OFD Sender: No OFD packet to send [10:17:18]OFD Sender: No OFD packet to send [10:17:23]OFD Sender: No OFD packet to send [10:17:28]OFD Sender: No OFD packet to send [10:17:33]OFD Sender: No OFD packet to send [10:17:38]OFD Sender: No OFD packet to send [10:17:43]OFD Sender: No OFD packet to send [10:17:48]OFD Sender: No OFD packet to send [10:17:53]OFD Sender: No OFD packet to send [10:17:58]OFD Sender: No OFD packet to send [10:18:03]OFD Sender: No OFD packet to send [10:18:08]OFD Sender: No OFD packet to send [10:18:13]OFD Sender: No OFD packet to send [10:18:18]OFD Sender: No OFD packet to send [10:18:23]OFD Sender: No OFD packet to send [10:18:28]OFD Sender: No OFD packet to send [10:18:33]OFD Sender: No OFD packet to send [10:18:38]OFD Sender: No OFD packet to send [10:18:43]OFD Sender: No OFD packet to send [10:18:48]OFD Sender: No OFD packet to send [10:18:53]OFD Sender: No OFD packet to send [10:18:58]OFD Sender: No OFD packet to send [10:19:03]OFD Sender: No OFD packet to send [10:19:08]OFD Sender: No OFD packet to send [10:19:13]OFD Sender: No OFD packet to send [10:19:18]OFD Sender: No OFD packet to send [10:19:23]OFD Sender: No OFD packet to send [10:19:28]OFD Sender: No OFD packet to send [10:19:33]OFD Sender: No OFD packet to send [10:19:38]OFD Sender: No OFD packet to send [10:19:43]OFD Sender: No OFD packet to send [10:19:43]accept exits with 8 [10:19:43]New connection [10:19:43]New thread 3067284836 created [10:19:43]Thread 3067141476 joined [10:19:43]Waiting for new connection... [10:19:43] Sock 8.Parse request [10:19:43]Sock 8.Check first char [10:19:43]Sock 8.First char is OK [10:19:43]request: POST /json_proto HTTP/1.0 [10:19:43]Method: POST [10:19:43]URL: /json_proto [10:19:43]Method is POST - this is cgi request [10:19:43]url: /json_proto [10:19:43]query_string will be loaded in cgi processing [10:19:43]execute_cgi json_proto POST (null) [10:19:43]execute_cgi path=json_proto method=POST [10:19:43]POST find Content-Length [10:19:43]Host: 172.17.50.196:8080 [10:19:43]Content-Length: 683 [10:19:43]Content-Type: application/json [10:19:43] [10:19:43]POST finish read [10:19:43]Found Content-Length = 683 [10:19:43]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "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:43]execute_script... [10:19: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)1094378", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 3.290, "sum" : 250.70, "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:43]POST & json_proto [10:19:43]process_json_proto [10:19:43]json parsed OK: [10:19:43]protocol is kg_v1.0 [10:19:43]action value=close_receipt [10:19:43]process_action close_receipt [10:19:43]cmd_close_receipt [10:19:43]MH_GetDate [10:19:43]Write to MH i2c: F0 00 00 77 39 9F [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: F0 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: F0 09 00 [10:19:43]MH_I2C_Read... [10:19:43]Read from MH i2c: F0 09 00 77 39 00 44 08 22 67 72 0D 1C 67 7F [10:19:43]GetLastDocTimeStamp 1730281338 [10:19:43]current date 1730283588 [10:19:43]FM_GetShiftState [10:19:43]SAM_PROTO_GetShiftState [10:19:43]wFMCommunicate request_size=4 [10:19:43]MH_SAM_APDU [10:19:43]CAPDU: 80 13 01 00 [10:19:43]Write to MH i2c: E2 08 00 78 39 80 13 01 00 00 00 00 00 2E [10:19:43]Write i2c OK [10:19:43]MH_I2C_Read... [10:19:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:44]Read from MH i2c: E2 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 0E 00 [10:19:44]MH_I2C_Read... [10:19:44]Read from MH i2c: E2 0E 00 78 39 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BE [10:19:44]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:19:44]wFMCommunicate OK [10:19:44]SAM_PROTO_GetShiftState done [10:19:44]FM_GetShiftState done [10:19:44]opened in 1730246278 [10:19:44]opened+sec_in_day 1730332678 [10:19:44]quantity*price = 25069 [10:19:44]sum+1 = 25071 [10:19:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.70 ИТОГО: 250.00 Внесено: 250.00 СДАЧА: 0.00 НСП 1% : 2.22 НДС 12% : 26.62 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 65 30.10.2024 10:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139381 ФПД: 279377210148603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101948&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139381&fm=279377210148603&tin=02508201610067®Number=0000000000091631&sum=25000 [10:19:45]StoreToDocumentArchive [10:19:45]shift 556 fd 139381 [10:19:45]save to /storage/0556/doc_00139381 [10:19:45]save last doc name /storage/0556/doc_00139381 to /storage/kkm_last_doc_name [10:19:45]save OK [10:19:45]Clear old archive folders... [10:19:45]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:19:45]tlvbuf is 0112F7D0 [10:19:45]SAM_PROTO_ClearQueue [10:19:45]wFMCommunicate request_size=4 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 09 00 00 [10:19:45]Write to MH i2c: E2 08 00 85 39 80 09 00 00 00 00 00 00 30 [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 85 39 00 90 00 32 [10:19:45]RAPDU: 90 00 [10:19:45]wFMCommunicate OK [10:19:45]SAM_PROTO_ClearQueue done [10:19:45]KKMCreateOFDPacket [10:19:45]OFDProtocolAddRootSTLVToBuf [10:19:45]FM_MakeSignedData [10:19:45]FM_MakeSignedData [10:19:45]SAM_PROTO_SignData [10:19:45]wFMCommunicate request_size=4 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 0D 01 02 [10:19:45]Write to MH i2c: E2 08 00 86 39 80 0D 01 02 00 00 00 00 38 [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 86 39 00 90 00 33 [10:19:45]RAPDU: 90 00 [10:19:45]wFMCommunicate OK [10:19:45]wFMCommunicate request_size=255 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 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 41 00 00 00 F4 03 04 00 44 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 20 02 00 35 04 06 00 [10:19:45]Write to MH i2c: E2 02 01 87 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 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 41 00 00 00 F4 03 04 00 44 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 20 02 00 35 04 06 00 00 00 CE [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 87 39 00 90 00 34 [10:19:45]RAPDU: 90 00 [10:19:45]wFMCommunicate OK [10:19:45]wFMCommunicate request_size=11 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 0D 02 02 06 FE 17 93 5E 86 FB [10:19:45]Write to MH i2c: E2 0E 00 88 39 80 0D 02 02 06 00 FE 17 93 5E 86 FB 00 00 CE [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 03 00 88 39 00 90 00 35 [10:19:45]RAPDU: 90 00 [10:19:45]wFMCommunicate OK [10:19:45]wFMCommunicate request_size=4 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 0D 03 02 [10:19:45]Write to MH i2c: E2 08 00 89 39 80 0D 03 02 00 00 00 00 3D [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 0B 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 0B 00 89 39 00 8B 19 E1 C6 AB 8E 3F B0 90 00 B1 [10:19:45]RAPDU: 8B 19 E1 C6 AB 8E 3F B0 90 00 [10:19:45]wFMCommunicate OK [10:19:45]SAM_PROTO_SignData done [10:19:45]FM_MakeSignedData done [10:19:45]CreateOFDProtocolMessage [10:19:45]wFMCommunicate request_size=4 [10:19:45]MH_SAM_APDU [10:19:45]CAPDU: 80 11 00 00 [10:19:45]Write to MH i2c: E2 08 00 8A 39 80 11 00 00 00 00 00 00 3D [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:45]Read from MH i2c: E2 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 17 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: E2 17 00 8A 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 98 [10:19:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:19:45]wFMCommunicate OK [10:19:45]CreateOFDProtocolMessage done [10:19:45]OFDSenderStorePacket 139381 [10:19:45]StoreOFDPacket docnum=139381 [10:19:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 5C 6C 08 01 0C E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 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 41 00 00 00 F4 03 04 00 44 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 20 02 00 35 04 06 00 FE 17 93 5E 86 FB 8B 19 E1 C6 AB 8E 3F B0 [10:19:45]CheckFolder [10:19:45]dirname=/storage/ofd_packets [10:19:45]CheckFolder done [10:19:45]ProducePacketName [10:19:45]name=ofd_packets/00139381 [10:19:45]NVStorageSaveData ofd_packets/00139381 [10:19:45]File name is /storage/ofd_packets/00139381 [10:19:45]Write 302 bytes [10:19:45]NVStorageSaveData done [10:19:45]OFDSenderStorePacket done [10:19:45]KKMCreateOFDPacket done [10:19:45]NVStorageSaveData kkm_last_timestamp [10:19:45]File name is /storage/kkm_last_timestamp [10:19:45]Write 4 bytes [10:19:45]NVStorageSaveData done [10:19:45]ExternCall_PrintAddStr [10:19:45]wPrintStart [10:19:45]Write to MH i2c: 01 00 00 8B 39 C4 [10:19:45]Write i2c OK [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: 01 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: 01 07 00 [10:19:45]MH_I2C_Read... [10:19:45]Read from MH i2c: 01 07 00 8B 39 00 00 00 00 00 FF 0F D9 [10:19:45]RasterBufferAndPrint [10:19:45]line Счет N : (1)1094378 [10:19:45]line ИНН: 02508201610067 [10:19:45]line Контрольно-Кассовый Чек [10:19:45]line ПРОДАЖА [10:19:45]line ТРК (МРК, ГНК) : 61 [10:19:45]line Товар: 2710194210 [10:19:45]line ДТ(л)-К-2 [10:19:45]line 3.290 * 76.20 [10:19:45]line = 250.70 [10:19:45]line НДС 12% НСП 1% [10:19:45]line > о реализуемом товаре [10:19:45]line ОКРУГЛЕНИЕ: -0.70 [10:19:45]line ИТОГО: 250.00 [10:19:45]line Внесено: 250.00 [10:19:45]line СДАЧА: 0.00 [10:19:45]line НСП 1% : 2.22 [10:19:45]line НДС 12% : 26.62 [10:19:45]line Наличными: 250.00 [10:19:45]line Безнал.: 0.00 [10:19:45]line Место: АЗС № 101 "Партнер Нефть" [10:19:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:19:45]line СНО: Общий режим [10:19:45]line Чек 65 30.10.2024 10:19 [10:19:45]line Смена: 556 ФФД: 1.0 [10:19:45]line ЗНМ: 0300000081 [10:19:45]line РНМ: 0000000000091631 [10:19:45]line Версия ККМ: 001 [10:19:45]line ФМ: 0000000000874669 [10:19:45]line ФД: 139381 [10:19:45]line ФПД: 279377210148603 [10:19:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T101948&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139381&fm=279377210148603&tin=02508201610067®Number=0000000000091631&sum=25000 [10:19:46]OFD Sender: Processing packet 139381 [packets to send 34, broken 33] [10:19:46]ProducePacketName [10:19:46]name=ofd_packets/00139381 [10:19:46]OFD Sender: To server: pG, [10:19:46]CommunicateWithHost lk.salyk.kg:30040 [10:19:46]ConnectInit lk.salyk.kg [10:19:46]written 0, free lines is 4095 [10:19:46]Connected sock=10 [10:19:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 5C 6C 08 01 0C E8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 DA 0C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 EE 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 DE 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 66 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 41 00 00 00 F4 03 04 00 44 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 20 02 00 35 04 06 00 FE 17 93 5E 86 FB 8B 19 E1 C6 AB 8E 3F B0 [10:19:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6E 53 47 00 4A E2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 75 20 02 00 F4 03 04 00 F5 B3 21 67 B6 04 01 00 00 C2 59 B8 83 D9 C5 95 CF [10:19:46]CommunicateWithHost err = 0 [10:19:46]CheckOFDResponse [10:19:46]1017 (14) - 77093643461234 [10:19:46]1041 (16) - 0000000000874669 [10:19:46]1040 (4) - 139381 [10:19:46]1012 (4) - 30.10.2024 04:20 [10:19:46]1206 (1) - 0 [10:19:46]OFD Sender: Remove packet 139381 [10:19:46]ProducePacketName [10:19:46]name=ofd_packets/00139381 [10:19:46]NVStorageDeleteData [10:19:46]Write to MH i2c: 01 00 00 B6 39 EF [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: 01 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: 01 07 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: 01 07 00 B6 39 00 00 00 00 00 ED 0C EF [10:19:46]RasterBufferAndPrint [10:19:46]line [10:19:46]line [10:19:46]line [10:19:46]line [10:19:46]line [10:19:46]written 0, free lines is 3315 [10:19:46]MH_Cut [10:19:46]Write to MH i2c: D1 01 00 BD 39 01 C8 [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: D1 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: D1 01 00 [10:19:46]MH_I2C_Read... [10:19:46]Read from MH i2c: D1 01 00 BD 39 00 C7 [10:19:46]Write to MH i2c: 01 00 00 BE 39 F7 [10:19:46]Write i2c OK [10:19:46]MH_I2C_Read... [10:19:46]OFD Sender: No OFD packet to send [10:19:47]*** Cut start [10:19:47]*** Partial cut [10:19:47]*** CUTSNS_PIN = 1 [10:19:47]*** CUTSNS_PIN = 0 [10:19:47]*** Brake cut motor [10:19:47]Read from MH i2c: 01 [10:19:47]MH_I2C_Read... [10:19:47]*** Stop cut motor [10:19:47]*** Cut end [10:19:47]Read from MH i2c: 01 07 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: 01 07 00 BE 39 00 00 00 00 00 FF 0F 0C [10:19:47]process_action close_receipt done [10:19:47]requested_data is exist [10:19:47]produce_requested_data [10:19:47]requested_item fm.sn is exist - process it [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 11 00 00 [10:19:47]Write to MH i2c: E2 08 00 BF 39 80 11 00 00 00 00 00 00 72 [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 17 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 17 00 BF 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CD [10:19:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:19:47]wFMCommunicate OK [10:19:47]requested_item fd.num is exist - process it [10:19:47]SAM_PROTO_GetFieldsCounters [10:19:47]wFMCommunicate request_size=4 [10:19:47]MH_SAM_APDU [10:19:47]CAPDU: 80 13 00 00 [10:19:47]Write to MH i2c: E2 08 00 C0 39 80 13 00 00 00 00 00 00 75 [10:19:47]Write i2c OK [10:19:47]MH_I2C_Read... [10:19:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:19:47]Read from MH i2c: E2 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 62 00 [10:19:47]MH_I2C_Read... [10:19:47]Read from MH i2c: E2 62 00 C0 39 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 75 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 21 [10:19:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 75 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 41 00 00 00 5E 04 04 00 41 00 00 00 57 04 04 00 42 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:19:48]wFMCommunicate OK [10:19:48]SAM_PROTO_GetFieldsCounters done [10:19:48]requested_item shift.num is exist - process it [10:19:48]requested_item shift.opened is exist - process it [10:19:48]req_shift_opened [10:19:48]FM_GetShiftState [10:19:48]SAM_PROTO_GetShiftState [10:19:48]wFMCommunicate request_size=4 [10:19:48]MH_SAM_APDU [10:19:48]CAPDU: 80 13 01 00 [10:19:48]Write to MH i2c: E2 08 00 C1 39 80 13 01 00 00 00 00 00 77 [10:19:48]Write i2c OK [10:19:48]MH_I2C_Read... [10:19:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:19:48]Read from MH i2c: E2 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 0E 00 [10:19:48]MH_I2C_Read... [10:19:48]Read from MH i2c: E2 0E 00 C1 39 00 09 00 01 86 76 21 67 00 00 00 00 90 00 07 [10:19:48]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:19:48]wFMCommunicate OK [10:19:48]SAM_PROTO_GetShiftState done [10:19:48]FM_GetShiftState done [10:19:48]req_shift_opened done [10:19:48]requested_item shift.open_date is exist - process it [10:19:48]req_shift_open_date [10:19:48]req_shift_open_date done [10:19:48]produce_requested_data done [10:19:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139381,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:19:48]process_action_free close_receipt [10:19:48]json_value_free [10:19:48]json_value_free done [10:19:48]process_json_proto returns [10:19:48]Send response to host [10:19:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139381,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:19:48]free response buf [10:19:48]execute_script done [10:19:48]execute_script returns [10:19:48]free content buf [10:19:48]Sock 8.Close socket [10:19:48]Sock 8.Thread stoped [10:19:51]OFD Sender: No OFD packet to send [10:19:56]OFD Sender: No OFD packet to send [10:20:01]OFD Sender: No OFD packet to send [10:20:06]OFD Sender: No OFD packet to send [10:20:11]OFD Sender: No OFD packet to send [10:20:16]OFD Sender: No OFD packet to send [10:20:21]OFD Sender: No OFD packet to send [10:20:26]OFD Sender: No OFD packet to send [10:20:31]OFD Sender: No OFD packet to send [10:20:36]OFD Sender: No OFD packet to send [10:20:41]OFD Sender: No OFD packet to send [10:20:46]OFD Sender: No OFD packet to send [10:20:51]OFD Sender: No OFD packet to send [10:20:56]OFD Sender: No OFD packet to send [10:20:57]accept exits with 9 [10:20:57]New connection [10:20:57]New thread 3067141476 created [10:20:57]Thread 3067284836 joined [10:20:57]Waiting for new connection... [10:20:57] Sock 9.Parse request [10:20:57]Sock 9.Check first char [10:20:57]Sock 9.First char is OK [10:20:57]request: POST /json_proto HTTP/1.0 [10:20:57]Method: POST [10:20:57]URL: /json_proto [10:20:57]Method is POST - this is cgi request [10:20:57]url: /json_proto [10:20:57]query_string will be loaded in cgi processing [10:20:57]execute_cgi json_proto POST (null) [10:20:57]execute_cgi path=json_proto method=POST [10:20:57]POST find Content-Length [10:20:57]Host: 172.17.50.196:8080 [10:20:57]Content-Length: 775 [10:20:57]Content-Type: application/json [10:20:57] [10:20:57]POST finish read [10:20:57]Found Content-Length = 775 [10:20:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:57]execute_script... [10:20: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)1094380", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:20:57]POST & json_proto [10:20:57]process_json_proto [10:20:57]json parsed OK: [10:20:57]protocol is kg_v1.0 [10:20:57]action value=close_receipt [10:20:57]process_action close_receipt [10:20:57]cmd_close_receipt [10:20:57]MH_GetDate [10:20:57]Write to MH i2c: F0 00 00 C2 39 EA [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: F0 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: F0 09 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: F0 09 00 C2 39 00 8D 08 22 67 72 0D 1C 67 13 [10:20:57]GetLastDocTimeStamp 1730283588 [10:20:57]current date 1730283661 [10:20:57]FM_GetShiftState [10:20:57]SAM_PROTO_GetShiftState [10:20:57]wFMCommunicate request_size=4 [10:20:57]MH_SAM_APDU [10:20:57]CAPDU: 80 13 01 00 [10:20:57]Write to MH i2c: E2 08 00 C3 39 80 13 01 00 00 00 00 00 79 [10:20:57]Write i2c OK [10:20:57]MH_I2C_Read... [10:20:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:20:57]Read from MH i2c: E2 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 0E 00 [10:20:57]MH_I2C_Read... [10:20:57]Read from MH i2c: E2 0E 00 C3 39 00 09 00 01 86 76 21 67 00 00 00 00 90 00 09 [10:20:57]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:20:57]wFMCommunicate OK [10:20:57]SAM_PROTO_GetShiftState done [10:20:57]FM_GetShiftState done [10:20:57]opened in 1730246278 [10:20:57]opened+sec_in_day 1730332678 [10:20:57]quantity*price = 200025 [10:20:57]sum+1 = 200026 [10:20:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 66 30.10.2024 10:21 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139382 ФПД: 257072405836286 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102101&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139382&fm=257072405836286&tin=02508201610067®Number=0000000000091631&sum=200025 [10:20:58]StoreToDocumentArchive [10:20:58]shift 556 fd 139382 [10:20:58]save to /storage/0556/doc_00139382 [10:20:58]save last doc name /storage/0556/doc_00139382 to /storage/kkm_last_doc_name [10:20:58]save OK [10:20:58]Clear old archive folders... [10:20:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:20:58]tlvbuf is 011FBA60 [10:20:58]SAM_PROTO_ClearQueue [10:20:58]wFMCommunicate request_size=4 [10:20:58]MH_SAM_APDU [10:20:58]CAPDU: 80 09 00 00 [10:20:58]Write to MH i2c: E2 08 00 D0 39 80 09 00 00 00 00 00 00 7B [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:20:58]Read from MH i2c: E2 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 03 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 03 00 D0 39 00 90 00 7D [10:20:58]RAPDU: 90 00 [10:20:58]wFMCommunicate OK [10:20:58]SAM_PROTO_ClearQueue done [10:20:58]KKMCreateOFDPacket [10:20:58]OFDProtocolAddRootSTLVToBuf [10:20:58]FM_MakeSignedData [10:20:58]FM_MakeSignedData [10:20:58]SAM_PROTO_SignData [10:20:58]wFMCommunicate request_size=4 [10:20:58]MH_SAM_APDU [10:20:58]CAPDU: 80 0D 01 02 [10:20:58]Write to MH i2c: E2 08 00 D1 39 80 0D 01 02 00 00 00 00 83 [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:20:58]Read from MH i2c: E2 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 03 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 03 00 D1 39 00 90 00 7E [10:20:58]RAPDU: 90 00 [10:20:58]wFMCommunicate OK [10:20:58]wFMCommunicate request_size=255 [10:20:58]MH_SAM_APDU [10:20:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8D 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 20 02 00 35 04 06 00 [10:20:58]Write to MH i2c: E2 02 01 D2 39 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8D 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 20 02 00 35 04 06 00 00 00 36 [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:58]Read from MH i2c: E2 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 03 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 03 00 D2 39 00 90 00 7F [10:20:58]RAPDU: 90 00 [10:20:58]wFMCommunicate OK [10:20:58]wFMCommunicate request_size=11 [10:20:58]MH_SAM_APDU [10:20:58]CAPDU: 80 0D 02 02 06 E9 CE 55 6E 71 FE [10:20:58]Write to MH i2c: E2 0E 00 D3 39 80 0D 02 02 06 00 E9 CE 55 6E 71 FE 00 00 7B [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:20:58]Read from MH i2c: E2 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 03 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 03 00 D3 39 00 90 00 80 [10:20:58]RAPDU: 90 00 [10:20:58]wFMCommunicate OK [10:20:58]wFMCommunicate request_size=4 [10:20:58]MH_SAM_APDU [10:20:58]CAPDU: 80 0D 03 02 [10:20:58]Write to MH i2c: E2 08 00 D4 39 80 0D 03 02 00 00 00 00 88 [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:20:58]Read from MH i2c: E2 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 0B 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 0B 00 D4 39 00 18 66 2C 79 DF FC 29 B9 90 00 69 [10:20:58]RAPDU: 18 66 2C 79 DF FC 29 B9 90 00 [10:20:58]wFMCommunicate OK [10:20:58]SAM_PROTO_SignData done [10:20:58]FM_MakeSignedData done [10:20:58]CreateOFDProtocolMessage [10:20:58]wFMCommunicate request_size=4 [10:20:58]MH_SAM_APDU [10:20:58]CAPDU: 80 11 00 00 [10:20:58]Write to MH i2c: E2 08 00 D5 39 80 11 00 00 00 00 00 00 88 [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:20:58]Read from MH i2c: E2 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 17 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: E2 17 00 D5 39 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E3 [10:20:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:20:58]wFMCommunicate OK [10:20:58]CreateOFDProtocolMessage done [10:20:58]OFDSenderStorePacket 139382 [10:20:58]StoreOFDPacket docnum=139382 [10:20:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 AE 01 08 01 55 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8D 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 20 02 00 35 04 06 00 E9 CE 55 6E 71 FE 18 66 2C 79 DF FC 29 B9 [10:20:58]CheckFolder [10:20:58]dirname=/storage/ofd_packets [10:20:58]CheckFolder done [10:20:58]ProducePacketName [10:20:58]name=ofd_packets/00139382 [10:20:58]NVStorageSaveData ofd_packets/00139382 [10:20:58]File name is /storage/ofd_packets/00139382 [10:20:58]Write 302 bytes [10:20:58]NVStorageSaveData done [10:20:58]OFDSenderStorePacket done [10:20:58]KKMCreateOFDPacket done [10:20:58]NVStorageSaveData kkm_last_timestamp [10:20:58]File name is /storage/kkm_last_timestamp [10:20:58]Write 4 bytes [10:20:58]NVStorageSaveData done [10:20:58]ExternCall_PrintAddStr [10:20:58]wPrintStart [10:20:58]Write to MH i2c: 01 00 00 D6 39 0F [10:20:58]Write i2c OK [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: 01 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: 01 07 00 [10:20:58]MH_I2C_Read... [10:20:58]Read from MH i2c: 01 07 00 D6 39 00 00 00 00 00 FF 0F 24 [10:20:58]RasterBufferAndPrint [10:20:58]line Счет N : (1)1094380 [10:20:58]line ИНН: 02508201610067 [10:20:58]line Контрольно-Кассовый Чек [10:20:58]line ПРОДАЖА [10:20:58]line ТРК (МРК, ГНК) : 11 [10:20:58]line Товар: 2710194210 [10:20:58]line ДТ(л)-К-2 [10:20:58]line 26.250 * 76.20 [10:20:58]line = 2000.25 [10:20:58]line НДС 12% НСП 1% [10:20:58]line > о реализуемом товаре [10:20:58]line ИТОГО: 2000.25 [10:20:58]line НСП 1% : 17.70 [10:20:58]line НДС 12% : 212.42 [10:20:58]line Наличными: 0.00 [10:20:58]line Безнал.: 2000.25 [10:20:58]line Место: АЗС № 101 "Партнер Нефть" [10:20:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:20:58]line СНО: Общий режим [10:20:58]line Чек 66 30.10.2024 10:21 [10:20:58]line Смена: 556 ФФД: 1.0 [10:20:58]line ЗНМ: 0300000081 [10:20:58]line РНМ: 0000000000091631 [10:20:58]line Версия ККМ: 001 [10:20:58]line Платежная система: Mbank [10:20:58]line ФМ: 0000000000874669 [10:20:58]line ФД: 139382 [10:20:58]line ФПД: 257072405836286 [10:20:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102101&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139382&fm=257072405836286&tin=02508201610067®Number=0000000000091631&sum=200025 [10:20:59]written 0, free lines is 4095 [10:20:59]OFD Sender: Processing packet 139382 [packets to send 34, broken 33] [10:20:59]ProducePacketName [10:20:59]name=ofd_packets/00139382 [10:20:59]OFD Sender: To server: pG, [10:20:59]CommunicateWithHost lk.salyk.kg:30040 [10:20:59]ConnectInit lk.salyk.kg [10:20:59]Connected sock=10 [10:20:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 AE 01 08 01 55 87 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 42 00 00 00 F4 03 04 00 8D 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 20 02 00 35 04 06 00 E9 CE 55 6E 71 FE 18 66 2C 79 DF FC 29 B9 [10:20:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A6 C4 47 00 D6 FC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 76 20 02 00 F4 03 04 00 3E B4 21 67 B6 04 01 00 00 66 9D A4 BF 55 FD DA A5 [10:20:59]CommunicateWithHost err = 0 [10:20:59]CheckOFDResponse [10:20:59]1017 (14) - 77093643461234 [10:20:59]1041 (16) - 0000000000874669 [10:20:59]1040 (4) - 139382 [10:20:59]1012 (4) - 30.10.2024 04:21 [10:20:59]1206 (1) - 0 [10:20:59]OFD Sender: Remove packet 139382 [10:20:59]ProducePacketName [10:20:59]name=ofd_packets/00139382 [10:20:59]NVStorageDeleteData [10:20:59]Write to MH i2c: 01 00 00 FF 39 38 [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: 01 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: 01 07 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: 01 07 00 FF 39 00 00 00 00 00 0A 0D 56 [10:20:59]RasterBufferAndPrint [10:20:59]line [10:20:59]line [10:20:59]line [10:20:59]line [10:20:59]line [10:20:59]written 0, free lines is 3347 [10:20:59]MH_Cut [10:20:59]Write to MH i2c: D1 01 00 06 3A 01 12 [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: D1 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: D1 01 00 [10:20:59]MH_I2C_Read... [10:20:59]Read from MH i2c: D1 01 00 06 3A 00 11 [10:20:59]Write to MH i2c: 01 00 00 07 3A 41 [10:20:59]Write i2c OK [10:20:59]MH_I2C_Read... [10:20:59]OFD Sender: No OFD packet to send [10:21:00]*** Cut start [10:21:00]*** Partial cut [10:21:00]*** CUTSNS_PIN = 1 [10:21:00]*** CUTSNS_PIN = 0 [10:21:00]*** Brake cut motor [10:21:00]Read from MH i2c: 01 [10:21:00]MH_I2C_Read... [10:21:00]*** Stop cut motor [10:21:00]*** Cut end [10:21:00]Read from MH i2c: 01 07 00 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: 01 07 00 07 3A 00 00 00 00 00 FF 0F 56 [10:21:00]process_action close_receipt done [10:21:00]requested_data is exist [10:21:00]produce_requested_data [10:21:00]requested_item fm.sn is exist - process it [10:21:00]wFMCommunicate request_size=4 [10:21:00]MH_SAM_APDU [10:21:00]CAPDU: 80 11 00 00 [10:21:00]Write to MH i2c: E2 08 00 08 3A 80 11 00 00 00 00 00 00 BC [10:21:00]Write i2c OK [10:21:00]MH_I2C_Read... [10:21:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:00]Read from MH i2c: E2 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: E2 17 00 [10:21:00]MH_I2C_Read... [10:21:00]Read from MH i2c: E2 17 00 08 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 17 [10:21:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:21:00]wFMCommunicate OK [10:21:00]requested_item fd.num is exist - process it [10:21:00]SAM_PROTO_GetFieldsCounters [10:21:00]wFMCommunicate request_size=4 [10:21:00]MH_SAM_APDU [10:21:00]CAPDU: 80 13 00 00 [10:21:00]Write to MH i2c: E2 08 00 09 3A 80 13 00 00 00 00 00 00 BF [10:21:00]Write i2c OK [10:21:00]MH_I2C_Read... [10:21:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 62 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 62 00 09 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 76 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 6F [10:21:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 76 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 42 00 00 00 5E 04 04 00 42 00 00 00 57 04 04 00 43 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:01]wFMCommunicate OK [10:21:01]SAM_PROTO_GetFieldsCounters done [10:21:01]requested_item shift.num is exist - process it [10:21:01]requested_item shift.opened is exist - process it [10:21:01]req_shift_opened [10:21:01]FM_GetShiftState [10:21:01]SAM_PROTO_GetShiftState [10:21:01]wFMCommunicate request_size=4 [10:21:01]MH_SAM_APDU [10:21:01]CAPDU: 80 13 01 00 [10:21:01]Write to MH i2c: E2 08 00 0A 3A 80 13 01 00 00 00 00 00 C1 [10:21:01]Write i2c OK [10:21:01]MH_I2C_Read... [10:21:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:01]Read from MH i2c: E2 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 0E 00 [10:21:01]MH_I2C_Read... [10:21:01]Read from MH i2c: E2 0E 00 0A 3A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 51 [10:21:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:21:01]wFMCommunicate OK [10:21:01]SAM_PROTO_GetShiftState done [10:21:01]FM_GetShiftState done [10:21:01]req_shift_opened done [10:21:01]requested_item shift.open_date is exist - process it [10:21:01]req_shift_open_date [10:21:01]req_shift_open_date done [10:21:01]produce_requested_data done [10:21:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139382,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:21:01]process_action_free close_receipt [10:21:01]json_value_free [10:21:01]json_value_free done [10:21:01]process_json_proto returns [10:21:01]Send response to host [10:21:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139382,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:21:01]free response buf [10:21:01]execute_script done [10:21:01]execute_script returns [10:21:01]free content buf [10:21:01]Sock 9.Close socket [10:21:01]Sock 9.Thread stoped [10:21:04]OFD Sender: No OFD packet to send [10:21:09]OFD Sender: No OFD packet to send [10:21:14]OFD Sender: No OFD packet to send [10:21:19]OFD Sender: No OFD packet to send [10:21:24]OFD Sender: No OFD packet to send [10:21:29]OFD Sender: No OFD packet to send [10:21:34]OFD Sender: No OFD packet to send [10:21:39]OFD Sender: No OFD packet to send [10:21:44]OFD Sender: No OFD packet to send [10:21:49]OFD Sender: No OFD packet to send [10:21:50]accept exits with 8 [10:21:50]New connection [10:21:50]New thread 3067284836 created [10:21:50]Thread 3067141476 joined [10:21:50]Waiting for new connection... [10:21:50] Sock 8.Parse request [10:21:50]Sock 8.Check first char [10:21:50]Sock 8.First char is OK [10:21:50]request: POST /json_proto HTTP/1.0 [10:21:50]Method: POST [10:21:50]URL: /json_proto [10:21:50]Method is POST - this is cgi request [10:21:50]url: /json_proto [10:21:50]query_string will be loaded in cgi processing [10:21:50]execute_cgi json_proto POST (null) [10:21:50]execute_cgi path=json_proto method=POST [10:21:50]POST find Content-Length [10:21:50]Host: 172.17.50.196:8080 [10:21:50]Content-Length: 1433 [10:21:50]Content-Type: application/json [10:21:50] [10:21:50]POST finish read [10:21:50]Found Content-Length = 1433 [10:21:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335296", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030103", "name": "\u041B\u0435\u0434\u0435\u043D\u0446\u044B JohnyBee AIR PLANE", "price" : 243.00, "quantity" : 1.000, "sum" : 243.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 411.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:50]execute_script... [10:21: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 : (3)335296", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310173", "name": "\u0412\u043E\u0434\u0430 \u0410\u0434\u044B\u0433\u0435\u043D\u0435 0,5\u043B \u0431/\u0433", "price" : 39.00, "quantity" : 1.000, "sum" : 39.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030103", "name": "\u041B\u0435\u0434\u0435\u043D\u0446\u044B JohnyBee AIR PLANE", "price" : 243.00, "quantity" : 1.000, "sum" : 243.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 411.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:21:50]POST & json_proto [10:21:50]process_json_proto [10:21:50]json parsed OK: [10:21:50]protocol is kg_v1.0 [10:21:50]action value=close_receipt [10:21:50]process_action close_receipt [10:21:50]cmd_close_receipt [10:21:50]MH_GetDate [10:21:50]Write to MH i2c: F0 00 00 0B 3A 34 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: F0 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: F0 09 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: F0 09 00 0B 3A 00 C2 08 22 67 72 0D 1C 67 92 [10:21:50]GetLastDocTimeStamp 1730283661 [10:21:50]current date 1730283714 [10:21:50]FM_GetShiftState [10:21:50]SAM_PROTO_GetShiftState [10:21:50]wFMCommunicate request_size=4 [10:21:50]MH_SAM_APDU [10:21:50]CAPDU: 80 13 01 00 [10:21:50]Write to MH i2c: E2 08 00 0C 3A 80 13 01 00 00 00 00 00 C3 [10:21:50]Write i2c OK [10:21:50]MH_I2C_Read... [10:21:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:50]Read from MH i2c: E2 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0E 00 [10:21:50]MH_I2C_Read... [10:21:50]Read from MH i2c: E2 0E 00 0C 3A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 53 [10:21:50]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:21:50]wFMCommunicate OK [10:21:50]SAM_PROTO_GetShiftState done [10:21:50]FM_GetShiftState done [10:21:50]opened in 1730246278 [10:21:50]opened+sec_in_day 1730332678 [10:21:50]quantity*price = 5900 [10:21:50]sum+1 = 5901 [10:21:50]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310173 Вода Адыгене 0,5л б/г 1.000 * 39.00 = 39.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 5904917030103 Леденцы JohnyBee AIR PLANE 1.000 * 243.00 = 243.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 411.00 НСП 1% : 3.63 НДС 12% : 43.63 Наличными: 411.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 67 30.10.2024 10:21 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139383 ФПД: 63379566009210 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102155&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139383&fm=63379566009210&tin=02508201610067®Number=0000000000091631&sum=41100 0 [10:21:51]StoreToDocumentArchive [10:21:51]shift 556 fd 139383 [10:21:51]save to /storage/0556/doc_00139383 [10:21:51]save last doc name /storage/0556/doc_00139383 to /storage/kkm_last_doc_name [10:21:51]save OK [10:21:51]Clear old archive folders... [10:21:51]ProcessDocumentItem done err = 0, tmpTLVsize=604 [10:21:51]tlvbuf is 01115020 [10:21:51]SAM_PROTO_ClearQueue [10:21:51]wFMCommunicate request_size=4 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 09 00 00 [10:21:51]Write to MH i2c: E2 08 00 19 3A 80 09 00 00 00 00 00 00 C5 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:21:51]Read from MH i2c: E2 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 19 3A 00 90 00 C7 [10:21:51]RAPDU: 90 00 [10:21:51]wFMCommunicate OK [10:21:51]SAM_PROTO_ClearQueue done [10:21:51]KKMCreateOFDPacket [10:21:51]OFDProtocolAddRootSTLVToBuf [10:21:51]FM_MakeSignedData [10:21:51]FM_MakeSignedData [10:21:51]SAM_PROTO_SignData [10:21:51]wFMCommunicate request_size=4 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 0D 01 02 [10:21:51]Write to MH i2c: E2 08 00 1A 3A 80 0D 01 02 00 00 00 00 CD [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:21:51]Read from MH i2c: E2 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 [10:21:51]MH_I2C_Read... [10:21:51]Read from MH i2c: E2 03 00 1A 3A 00 90 00 C8 [10:21:51]RAPDU: 90 00 [10:21:51]wFMCommunicate OK [10:21:51]wFMCommunicate request_size=255 [10:21:51]MH_SAM_APDU [10:21:51]CAPDU: 80 0D 02 02 FA 03 00 5C 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 [10:21:51]Write to MH i2c: E2 02 01 1B 3A 80 0D 02 02 FA 00 03 00 5C 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 00 00 73 [10:21:51]Write i2c OK [10:21:51]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 03 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 03 00 1B 3A 00 90 00 C9 [10:21:52]RAPDU: 90 00 [10:21:52]wFMCommunicate OK [10:21:52]wFMCommunicate request_size=255 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 0D 02 02 FA 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 31 30 33 06 04 21 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D1 86 D1 8B 20 4A 6F 68 6E 79 42 65 65 20 41 49 52 20 50 4C 41 4E 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0B 11 00 00 00 00 07 04 06 00 8C [10:21:52]Write to MH i2c: E2 02 01 1C 3A 80 0D 02 02 FA 00 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 31 30 33 06 04 21 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D1 86 D1 8B 20 4A 6F 68 6E 79 42 65 65 20 41 49 52 20 50 4C 41 4E 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0B 11 00 00 00 00 07 04 06 00 8C 00 00 D5 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 03 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 03 00 1C 3A 00 90 00 CA [10:21:52]RAPDU: 90 00 [10:21:52]wFMCommunicate OK [10:21:52]wFMCommunicate request_size=113 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 0D 02 02 6C 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 43 00 00 00 F4 03 04 00 C3 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 20 02 00 35 04 06 00 39 A4 B4 84 9B 7A [10:21:52]Write to MH i2c: E2 74 00 1D 3A 80 0D 02 02 6C 00 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 43 00 00 00 F4 03 04 00 C3 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 20 02 00 35 04 06 00 39 A4 B4 84 9B 7A 00 00 FD [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 03 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 03 00 1D 3A 00 90 00 CB [10:21:52]RAPDU: 90 00 [10:21:52]wFMCommunicate OK [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 0D 03 02 [10:21:52]Write to MH i2c: E2 08 00 1E 3A 80 0D 03 02 00 00 00 00 D3 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 0B 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 0B 00 1E 3A 00 F6 9B 40 21 69 90 92 6F 90 00 C0 [10:21:52]RAPDU: F6 9B 40 21 69 90 92 6F 90 00 [10:21:52]wFMCommunicate OK [10:21:52]SAM_PROTO_SignData done [10:21:52]FM_MakeSignedData done [10:21:52]CreateOFDProtocolMessage [10:21:52]wFMCommunicate request_size=4 [10:21:52]MH_SAM_APDU [10:21:52]CAPDU: 80 11 00 00 [10:21:52]Write to MH i2c: E2 08 00 1F 3A 80 11 00 00 00 00 00 00 D3 [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:52]Read from MH i2c: E2 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 17 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: E2 17 00 1F 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [10:21:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:21:52]wFMCommunicate OK [10:21:52]CreateOFDProtocolMessage done [10:21:52]OFDSenderStorePacket 139383 [10:21:52]StoreOFDPacket docnum=139383 [10:21:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 70 02 00 00 51 85 68 02 18 4B 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 31 30 33 06 04 21 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D1 86 D1 8B 20 4A 6F 68 6E 79 42 65 65 20 41 49 52 20 50 4C 41 4E 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0B 11 00 00 00 00 07 04 06 00 8C 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 43 00 00 00 F4 03 04 00 C3 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 20 02 00 35 04 06 00 39 A4 B4 84 9B 7A F6 9B 40 21 69 90 92 6F [10:21:52]CheckFolder [10:21:52]dirname=/storage/ofd_packets [10:21:52]CheckFolder done [10:21:52]ProducePacketName [10:21:52]name=ofd_packets/00139383 [10:21:52]NVStorageSaveData ofd_packets/00139383 [10:21:52]File name is /storage/ofd_packets/00139383 [10:21:52]Write 654 bytes [10:21:52]NVStorageSaveData done [10:21:52]OFDSenderStorePacket done [10:21:52]KKMCreateOFDPacket done [10:21:52]NVStorageSaveData kkm_last_timestamp [10:21:52]File name is /storage/kkm_last_timestamp [10:21:52]Write 4 bytes [10:21:52]NVStorageSaveData done [10:21:52]ExternCall_PrintAddStr [10:21:52]wPrintStart [10:21:52]Write to MH i2c: 01 00 00 20 3A 5A [10:21:52]Write i2c OK [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 [10:21:52]MH_I2C_Read... [10:21:52]Read from MH i2c: 01 07 00 20 3A 00 00 00 00 00 FF 0F 6F [10:21:52]RasterBufferAndPrint [10:21:52]line Счет N : (3)335296 [10:21:52]line ИНН: 02508201610067 [10:21:52]line Контрольно-Кассовый Чек [10:21:52]line ПРОДАЖА [10:21:52]line Товар: 4011100977624 [10:21:52]line Шок Батончик Баунти 55г [10:21:52]line 1.000 * 59.00 [10:21:52]line = 59.00 [10:21:52]line НДС 12% НСП 1% [10:21:52]line > о реализуемом товаре [10:21:52]line Товар: 4607065000790 [10:21:52]line Шок M&M`s с арахисом 45г [10:21:52]line 1.000 * 70.00 [10:21:52]line = 70.00 [10:21:52]line НДС 12% НСП 1% [10:21:52]line > о реализуемом товаре [10:21:52]line Товар: 4700000310173 [10:21:52]line Вода Адыгене 0,5л б/г [10:21:52]line 1.000 * 39.00 [10:21:52]line = 39.00 [10:21:52]line НДС 12% НСП 1% [10:21:52]line > о реализуемом товаре [10:21:52]line Товар: 5904917030103 [10:21:52]line Леденцы JohnyBee AIR PLANE [10:21:52]line 1.000 * 243.00 [10:21:52]line = 243.00 [10:21:52]line НДС 12% НСП 1% [10:21:52]line > о реализуемом товаре [10:21:52]line ИТОГО: 411.00 [10:21:52]line НСП 1% : 3.63 [10:21:52]line НДС 12% : 43.63 [10:21:52]line Наличными: 411.00 [10:21:52]line Безнал.: 0.00 [10:21:52]line Место: АЗС № 101 "Партнер Нефть" [10:21:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:21:52]line СНО: Общий режим [10:21:52]line Чек 67 30.10.2024 10:21 [10:21:52]line Смена: 556 ФФД: 1.0 [10:21:52]line ЗНМ: 0300000081 [10:21:52]line РНМ: 0000000000091631 [10:21:52]line Версия ККМ: 001 [10:21:52]line ФМ: 0000000000874669 [10:21:52]line ФД: 139383 [10:21:52]line ФПД: 63379566009210 [10:21:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102155&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139383&fm=63379566009210&tin=02508201610067®Number=0000000000091631&sum=41100 [10:21:52]line 0 [10:21:52]OFD Sender: Processing packet 139383 [packets to send 34, broken 33] [10:21:52]ProducePacketName [10:21:52]name=ofd_packets/00139383 [10:21:52]OFD Sender: To server: pG, [10:21:52]CommunicateWithHost lk.salyk.kg:30040 [10:21:52]ConnectInit lk.salyk.kg [10:21:52]written 0, free lines is 4095 [10:21:52]Connected sock=10 [10:21:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 70 02 00 00 51 85 68 02 18 4B 5A 03 01 00 03 00 5C 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 31 37 33 06 04 23 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 90 D0 B4 D1 8B D0 B3 D0 B5 D0 BD D0 B5 20 30 2C 35 D0 BB 20 D0 B1 2F D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 3C 0F 00 00 00 00 13 04 06 00 3C 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 31 30 33 06 04 21 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D1 86 D1 8B 20 4A 6F 68 6E 79 42 65 65 20 41 49 52 20 50 4C 41 4E 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 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 0B 11 00 00 00 00 07 04 06 00 8C 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 43 00 00 00 F4 03 04 00 C3 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 20 02 00 35 04 06 00 39 A4 B4 84 9B 7A F6 9B 40 21 69 90 92 6F [10:21:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A0 FE 47 00 47 60 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 77 20 02 00 F4 03 04 00 74 B4 21 67 B6 04 01 00 00 46 57 B5 4D 88 98 D7 7D [10:21:53]CommunicateWithHost err = 0 [10:21:53]CheckOFDResponse [10:21:53]1017 (14) - 77093643461234 [10:21:53]1041 (16) - 0000000000874669 [10:21:53]1040 (4) - 139383 [10:21:53]1012 (4) - 30.10.2024 04:22 [10:21:53]1206 (1) - 0 [10:21:53]OFD Sender: Remove packet 139383 [10:21:53]ProducePacketName [10:21:53]name=ofd_packets/00139383 [10:21:53]NVStorageDeleteData [10:21:53]Write to MH i2c: 01 00 00 5A 3A 94 [10:21:53]Write i2c OK [10:21:53]MH_I2C_Read... [10:21:53]Read from MH i2c: 01 [10:21:53]MH_I2C_Read... [10:21:53]Read from MH i2c: 01 07 00 [10:21:53]MH_I2C_Read... [10:21:53]Read from MH i2c: 01 07 00 5A 3A 00 00 00 00 00 4F 0C F6 [10:21:53]RasterBufferAndPrint [10:21:53]line [10:21:53]line [10:21:53]line [10:21:53]line [10:21:53]line [10:21:53]written 0, free lines is 3160 [10:21:53]MH_Cut [10:21:53]Write to MH i2c: D1 01 00 61 3A 01 6D [10:21:53]Write i2c OK [10:21:53]MH_I2C_Read... [10:21:53]Read from MH i2c: D1 [10:21:53]MH_I2C_Read... [10:21:53]Read from MH i2c: D1 01 00 [10:21:53]MH_I2C_Read... [10:21:53]Read from MH i2c: D1 01 00 61 3A 00 6C [10:21:53]Write to MH i2c: 01 00 00 62 3A 9C [10:21:53]Write i2c OK [10:21:53]MH_I2C_Read... [10:21:53]OFD Sender: No OFD packet to send [10:21:54]*** Cut start [10:21:54]*** Partial cut [10:21:54]*** CUTSNS_PIN = 1 [10:21:54]*** CUTSNS_PIN = 0 [10:21:54]*** Brake cut motor [10:21:54]Read from MH i2c: 01 [10:21:54]MH_I2C_Read... [10:21:54]*** Stop cut motor [10:21:54]*** Cut end [10:21:54]Read from MH i2c: 01 07 00 [10:21:54]MH_I2C_Read... [10:21:54]Read from MH i2c: 01 07 00 62 3A 00 00 00 00 00 FF 0F B1 [10:21:54]process_action close_receipt done [10:21:54]requested_data is exist [10:21:54]produce_requested_data [10:21:54]requested_item fm.sn is exist - process it [10:21:54]wFMCommunicate request_size=4 [10:21:54]MH_SAM_APDU [10:21:54]CAPDU: 80 11 00 00 [10:21:54]Write to MH i2c: E2 08 00 63 3A 80 11 00 00 00 00 00 00 17 [10:21:54]Write i2c OK [10:21:54]MH_I2C_Read... [10:21:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:21:55]Read from MH i2c: E2 [10:21:55]MH_I2C_Read... [10:21:55]Read from MH i2c: E2 17 00 [10:21:55]MH_I2C_Read... [10:21:55]Read from MH i2c: E2 17 00 63 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 72 [10:21:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:21:55]wFMCommunicate OK [10:21:55]requested_item fd.num is exist - process it [10:21:55]SAM_PROTO_GetFieldsCounters [10:21:55]wFMCommunicate request_size=4 [10:21:55]MH_SAM_APDU [10:21:55]CAPDU: 80 13 00 00 [10:21:55]Write to MH i2c: E2 08 00 64 3A 80 13 00 00 00 00 00 00 1A [10:21:55]Write i2c OK [10:21:55]MH_I2C_Read... [10:21:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:21:55]Read from MH i2c: E2 [10:21:55]MH_I2C_Read... [10:21:55]Read from MH i2c: E2 62 00 [10:21:55]MH_I2C_Read... [10:21:55]Read from MH i2c: E2 62 00 64 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 77 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 CE [10:21:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 77 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 43 00 00 00 5E 04 04 00 43 00 00 00 57 04 04 00 44 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:21:55]wFMCommunicate OK [10:21:55]SAM_PROTO_GetFieldsCounters done [10:21:55]requested_item shift.num is exist - process it [10:21:55]requested_item shift.opened is exist - process it [10:21:55]req_shift_opened [10:21:55]FM_GetShiftState [10:21:55]SAM_PROTO_GetShiftState [10:21:55]wFMCommunicate request_size=4 [10:21:55]MH_SAM_APDU [10:21:55]CAPDU: 80 13 01 00 [10:21:55]Write to MH i2c: E2 08 00 65 3A 80 13 01 00 00 00 00 00 1C [10:21:55]Write i2c OK [10:21:55]MH_I2C_Read... [10:21:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:21:55]Read from MH i2c: E2 [10:21:55]MH_I2C_Read... [10:21:55]Read from MH i2c: E2 0E 00 [10:21:55]MH_I2C_Read... [10:21:55]Read from MH i2c: E2 0E 00 65 3A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AC [10:21:55]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:21:55]wFMCommunicate OK [10:21:55]SAM_PROTO_GetShiftState done [10:21:55]FM_GetShiftState done [10:21:55]req_shift_opened done [10:21:55]requested_item shift.open_date is exist - process it [10:21:55]req_shift_open_date [10:21:55]req_shift_open_date done [10:21:55]produce_requested_data done [10:21:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139383,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:21:55]process_action_free close_receipt [10:21:55]json_value_free [10:21:55]json_value_free done [10:21:55]process_json_proto returns [10:21:55]Send response to host [10:21:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139383,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:21:55]free response buf [10:21:55]execute_script done [10:21:55]execute_script returns [10:21:55]free content buf [10:21:55]Sock 8.Close socket [10:21:55]Sock 8.Thread stoped [10:21:58]OFD Sender: No OFD packet to send [10:22:03]OFD Sender: No OFD packet to send [10:22:08]OFD Sender: No OFD packet to send [10:22:13]OFD Sender: No OFD packet to send [10:22:18]OFD Sender: No OFD packet to send [10:22:23]OFD Sender: No OFD packet to send [10:22:24]accept exits with 9 [10:22:24]New connection [10:22:24]New thread 3067141476 created [10:22:24]Thread 3067284836 joined [10:22:24]Waiting for new connection... [10:22:24] Sock 9.Parse request [10:22:24]Sock 9.Check first char [10:22:24]Sock 9.First char is OK [10:22:24]request: POST /json_proto HTTP/1.0 [10:22:24]Method: POST [10:22:24]URL: /json_proto [10:22:24]Method is POST - this is cgi request [10:22:24]url: /json_proto [10:22:24]query_string will be loaded in cgi processing [10:22:24]execute_cgi json_proto POST (null) [10:22:24]execute_cgi path=json_proto method=POST [10:22:24]POST find Content-Length [10:22:24]Host: 172.17.50.196:8080 [10:22:24]Content-Length: 775 [10:22:24]Content-Type: application/json [10:22:24] [10:22:24]POST finish read [10:22:24]Found Content-Length = 775 [10:22:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 50.000, "sum" : 3810.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" : 3810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:24]execute_script... [10:22: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)1094381", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 50.000, "sum" : 3810.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" : 3810.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:22:24]POST & json_proto [10:22:24]process_json_proto [10:22:24]json parsed OK: [10:22:24]protocol is kg_v1.0 [10:22:24]action value=close_receipt [10:22:24]process_action close_receipt [10:22:24]cmd_close_receipt [10:22:24]MH_GetDate [10:22:24]Write to MH i2c: F0 00 00 66 3A 8F [10:22:24]Write i2c OK [10:22:24]MH_I2C_Read... [10:22:24]Read from MH i2c: F0 [10:22:24]MH_I2C_Read... [10:22:24]Read from MH i2c: F0 09 00 [10:22:24]MH_I2C_Read... [10:22:24]Read from MH i2c: F0 09 00 66 3A 00 E4 08 22 67 72 0D 1C 67 0F [10:22:24]GetLastDocTimeStamp 1730283715 [10:22:24]current date 1730283748 [10:22:24]FM_GetShiftState [10:22:24]SAM_PROTO_GetShiftState [10:22:24]wFMCommunicate request_size=4 [10:22:24]MH_SAM_APDU [10:22:24]CAPDU: 80 13 01 00 [10:22:24]Write to MH i2c: E2 08 00 67 3A 80 13 01 00 00 00 00 00 1E [10:22:24]Write i2c OK [10:22:24]MH_I2C_Read... [10:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:24]Read from MH i2c: E2 [10:22:24]MH_I2C_Read... [10:22:24]Read from MH i2c: E2 0E 00 [10:22:24]MH_I2C_Read... [10:22:24]Read from MH i2c: E2 0E 00 67 3A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AE [10:22:24]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:22:24]wFMCommunicate OK [10:22:24]SAM_PROTO_GetShiftState done [10:22:24]FM_GetShiftState done [10:22:24]opened in 1730246278 [10:22:24]opened+sec_in_day 1730332678 [10:22:24]quantity*price = 381000 [10:22:24]sum+1 = 381001 [10:22:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3810.00 НСП 1% : 33.72 НДС 12% : 404.60 Наличными: 0.00 Безнал.: 3810.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 68 30.10.2024 10:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139384 ФПД: 119410417625629 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102228&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139384&fm=119410417625629&tin=02508201610067®Number=0000000000091631&sum=381000 [10:22:25]StoreToDocumentArchive [10:22:25]shift 556 fd 139384 [10:22:25]save to /storage/0556/doc_00139384 [10:22:25]save last doc name /storage/0556/doc_00139384 to /storage/kkm_last_doc_name [10:22:25]save OK [10:22:25]Clear old archive folders... [10:22:25]ProcessDocumentItem done err = 0, tmpTLVsize=252 [10:22:25]tlvbuf is B6DF9190 [10:22:25]SAM_PROTO_ClearQueue [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 09 00 00 [10:22:25]Write to MH i2c: E2 08 00 74 3A 80 09 00 00 00 00 00 00 20 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 03 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 03 00 74 3A 00 90 00 22 [10:22:25]RAPDU: 90 00 [10:22:25]wFMCommunicate OK [10:22:25]SAM_PROTO_ClearQueue done [10:22:25]KKMCreateOFDPacket [10:22:25]OFDProtocolAddRootSTLVToBuf [10:22:25]FM_MakeSignedData [10:22:25]FM_MakeSignedData [10:22:25]SAM_PROTO_SignData [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 0D 01 02 [10:22:25]Write to MH i2c: E2 08 00 75 3A 80 0D 01 02 00 00 00 00 28 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 03 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 03 00 75 3A 00 90 00 23 [10:22:25]RAPDU: 90 00 [10:22:25]wFMCommunicate OK [10:22:25]wFMCommunicate request_size=255 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 48 D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 9E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 D0 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E4 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 20 02 00 35 04 06 00 [10:22:25]Write to MH i2c: E2 02 01 76 3A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 48 D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 9E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 D0 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E4 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 20 02 00 35 04 06 00 00 00 1C [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 03 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 03 00 76 3A 00 90 00 24 [10:22:25]RAPDU: 90 00 [10:22:25]wFMCommunicate OK [10:22:25]wFMCommunicate request_size=11 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 0D 02 02 06 6C 9A 67 86 6A 1D [10:22:25]Write to MH i2c: E2 0E 00 77 3A 80 0D 02 02 06 00 6C 9A 67 86 6A 1D 00 00 B1 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 03 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 03 00 77 3A 00 90 00 25 [10:22:25]RAPDU: 90 00 [10:22:25]wFMCommunicate OK [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 0D 03 02 [10:22:25]Write to MH i2c: E2 08 00 78 3A 80 0D 03 02 00 00 00 00 2D [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 0B 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 0B 00 78 3A 00 5F B0 53 43 D3 A4 A1 6B 90 00 56 [10:22:25]RAPDU: 5F B0 53 43 D3 A4 A1 6B 90 00 [10:22:25]wFMCommunicate OK [10:22:25]SAM_PROTO_SignData done [10:22:25]FM_MakeSignedData done [10:22:25]CreateOFDProtocolMessage [10:22:25]wFMCommunicate request_size=4 [10:22:25]MH_SAM_APDU [10:22:25]CAPDU: 80 11 00 00 [10:22:25]Write to MH i2c: E2 08 00 79 3A 80 11 00 00 00 00 00 00 2D [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:25]Read from MH i2c: E2 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 17 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: E2 17 00 79 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 88 [10:22:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:22:25]wFMCommunicate OK [10:22:25]CreateOFDProtocolMessage done [10:22:25]OFDSenderStorePacket 139384 [10:22:25]StoreOFDPacket docnum=139384 [10:22:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 95 11 08 01 F7 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 48 D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 9E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 D0 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E4 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 20 02 00 35 04 06 00 6C 9A 67 86 6A 1D 5F B0 53 43 D3 A4 A1 6B [10:22:25]CheckFolder [10:22:25]dirname=/storage/ofd_packets [10:22:25]CheckFolder done [10:22:25]ProducePacketName [10:22:25]name=ofd_packets/00139384 [10:22:25]NVStorageSaveData ofd_packets/00139384 [10:22:25]File name is /storage/ofd_packets/00139384 [10:22:25]Write 302 bytes [10:22:25]NVStorageSaveData done [10:22:25]OFDSenderStorePacket done [10:22:25]KKMCreateOFDPacket done [10:22:25]NVStorageSaveData kkm_last_timestamp [10:22:25]File name is /storage/kkm_last_timestamp [10:22:25]Write 4 bytes [10:22:25]NVStorageSaveData done [10:22:25]ExternCall_PrintAddStr [10:22:25]wPrintStart [10:22:25]Write to MH i2c: 01 00 00 7A 3A B4 [10:22:25]Write i2c OK [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: 01 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: 01 07 00 [10:22:25]MH_I2C_Read... [10:22:25]Read from MH i2c: 01 07 00 7A 3A 00 00 00 00 00 FF 0F C9 [10:22:25]RasterBufferAndPrint [10:22:25]line Счет N : (1)1094381 [10:22:25]line ИНН: 02508201610067 [10:22:25]line Контрольно-Кассовый Чек [10:22:25]line ПРОДАЖА [10:22:25]line ТРК (МРК, ГНК) : 51 [10:22:25]line Товар: 2710194210 [10:22:25]line ДТ(л)-К-2 [10:22:25]line 50.000 * 76.20 [10:22:25]line = 3810.00 [10:22:25]line НДС 12% НСП 1% [10:22:25]line > о реализуемом товаре [10:22:25]line ИТОГО: 3810.00 [10:22:25]line НСП 1% : 33.72 [10:22:25]line НДС 12% : 404.60 [10:22:25]line Наличными: 0.00 [10:22:25]line Безнал.: 3810.00 [10:22:25]line Место: АЗС № 101 "Партнер Нефть" [10:22:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:22:25]line СНО: Общий режим [10:22:25]line Чек 68 30.10.2024 10:22 [10:22:25]line Смена: 556 ФФД: 1.0 [10:22:25]line ЗНМ: 0300000081 [10:22:25]line РНМ: 0000000000091631 [10:22:25]line Версия ККМ: 001 [10:22:25]line Платежная система: Mbank [10:22:25]line ФМ: 0000000000874669 [10:22:25]line ФД: 139384 [10:22:25]line ФПД: 119410417625629 [10:22:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102228&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139384&fm=119410417625629&tin=02508201610067®Number=0000000000091631&sum=381000 [10:22:26]OFD Sender: Processing packet 139384 [packets to send 34, broken 33] [10:22:26]ProducePacketName [10:22:26]name=ofd_packets/00139384 [10:22:26]OFD Sender: To server: pG, [10:22:26]CommunicateWithHost lk.salyk.kg:30040 [10:22:26]ConnectInit lk.salyk.kg [10:22:26]written 0, free lines is 4095 [10:22:26]Connected sock=10 [10:22:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 95 11 08 01 F7 64 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 50 C3 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 48 D0 05 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 48 D0 05 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 0D 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0C 9E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 48 D0 05 00 00 00 1F 04 02 00 01 00 12 04 04 00 44 00 00 00 F4 03 04 00 E4 08 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 78 20 02 00 35 04 06 00 6C 9A 67 86 6A 1D 5F B0 53 43 D3 A4 A1 6B [10:22:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 4A A6 47 00 8F 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 38 37 34 36 36 39 10 04 04 00 78 20 02 00 F4 03 04 00 95 B4 21 67 B6 04 01 00 00 83 48 35 3F 82 B1 5D E8 [10:22:26]CommunicateWithHost err = 0 [10:22:26]CheckOFDResponse [10:22:26]1017 (14) - 77093643461234 [10:22:26]1041 (16) - 0000000000874669 [10:22:26]1040 (4) - 139384 [10:22:26]1012 (4) - 30.10.2024 04:22 [10:22:26]1206 (1) - 0 [10:22:26]OFD Sender: Remove packet 139384 [10:22:26]ProducePacketName [10:22:26]name=ofd_packets/00139384 [10:22:26]NVStorageDeleteData [10:22:26]Write to MH i2c: 01 00 00 A3 3A DD [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: 01 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: 01 07 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: 01 07 00 A3 3A 00 00 00 00 00 08 0D F9 [10:22:26]RasterBufferAndPrint [10:22:26]line [10:22:26]line [10:22:26]line [10:22:26]line [10:22:26]line [10:22:26]written 0, free lines is 3343 [10:22:26]MH_Cut [10:22:26]Write to MH i2c: D1 01 00 AA 3A 01 B6 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: D1 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: D1 01 00 [10:22:26]MH_I2C_Read... [10:22:26]Read from MH i2c: D1 01 00 AA 3A 00 B5 [10:22:26]Write to MH i2c: 01 00 00 AB 3A E5 [10:22:26]Write i2c OK [10:22:26]MH_I2C_Read... [10:22:27]OFD Sender: No OFD packet to send [10:22:27]*** Cut start [10:22:27]*** Partial cut [10:22:27]*** CUTSNS_PIN = 1 [10:22:27]*** CUTSNS_PIN = 0 [10:22:27]*** Brake cut motor [10:22:27]Read from MH i2c: 01 [10:22:27]MH_I2C_Read... [10:22:27]*** Stop cut motor [10:22:27]*** Cut end [10:22:27]Read from MH i2c: 01 07 00 [10:22:27]MH_I2C_Read... [10:22:27]Read from MH i2c: 01 07 00 AB 3A 00 00 00 00 00 FF 0F FA [10:22:27]process_action close_receipt done [10:22:27]requested_data is exist [10:22:27]produce_requested_data [10:22:27]requested_item fm.sn is exist - process it [10:22:27]wFMCommunicate request_size=4 [10:22:27]MH_SAM_APDU [10:22:27]CAPDU: 80 11 00 00 [10:22:27]Write to MH i2c: E2 08 00 AC 3A 80 11 00 00 00 00 00 00 60 [10:22:27]Write i2c OK [10:22:27]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 17 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 17 00 AC 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BB [10:22:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:22:28]wFMCommunicate OK [10:22:28]requested_item fd.num is exist - process it [10:22:28]SAM_PROTO_GetFieldsCounters [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 13 00 00 [10:22:28]Write to MH i2c: E2 08 00 AD 3A 80 13 00 00 00 00 00 00 63 [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 62 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 62 00 AD 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 78 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 1B [10:22:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 78 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 44 00 00 00 5E 04 04 00 44 00 00 00 57 04 04 00 45 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:22:28]wFMCommunicate OK [10:22:28]SAM_PROTO_GetFieldsCounters done [10:22:28]requested_item shift.num is exist - process it [10:22:28]requested_item shift.opened is exist - process it [10:22:28]req_shift_opened [10:22:28]FM_GetShiftState [10:22:28]SAM_PROTO_GetShiftState [10:22:28]wFMCommunicate request_size=4 [10:22:28]MH_SAM_APDU [10:22:28]CAPDU: 80 13 01 00 [10:22:28]Write to MH i2c: E2 08 00 AE 3A 80 13 01 00 00 00 00 00 65 [10:22:28]Write i2c OK [10:22:28]MH_I2C_Read... [10:22:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:22:28]Read from MH i2c: E2 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 0E 00 [10:22:28]MH_I2C_Read... [10:22:28]Read from MH i2c: E2 0E 00 AE 3A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F5 [10:22:28]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:22:28]wFMCommunicate OK [10:22:28]SAM_PROTO_GetShiftState done [10:22:28]FM_GetShiftState done [10:22:28]req_shift_opened done [10:22:28]requested_item shift.open_date is exist - process it [10:22:28]req_shift_open_date [10:22:28]req_shift_open_date done [10:22:28]produce_requested_data done [10:22:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139384,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:22:28]process_action_free close_receipt [10:22:28]json_value_free [10:22:28]json_value_free done [10:22:28]process_json_proto returns [10:22:28]Send response to host [10:22:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139384,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:22:28]free response buf [10:22:28]execute_script done [10:22:28]execute_script returns [10:22:28]free content buf [10:22:28]Sock 9.Close socket [10:22:28]Sock 9.Thread stoped [10:22:32]OFD Sender: No OFD packet to send [10:22:37]OFD Sender: No OFD packet to send [10:22:42]OFD Sender: No OFD packet to send [10:22:47]OFD Sender: No OFD packet to send [10:22:52]OFD Sender: No OFD packet to send [10:22:57]OFD Sender: No OFD packet to send [10:23:02]OFD Sender: No OFD packet to send [10:23:07]OFD Sender: No OFD packet to send [10:23:12]OFD Sender: No OFD packet to send [10:23:17]OFD Sender: No OFD packet to send [10:23:22]OFD Sender: No OFD packet to send [10:23:27]OFD Sender: No OFD packet to send [10:23:32]OFD Sender: No OFD packet to send [10:23:35]accept exits with 8 [10:23:35]New connection [10:23:35]New thread 3067284836 created [10:23:35]Thread 3067141476 joined [10:23:35]Waiting for new connection... [10:23:35] Sock 8.Parse request [10:23:35]Sock 8.Check first char [10:23:35]Sock 8.First char is OK [10:23:35]request: POST /json_proto HTTP/1.0 [10:23:35]Method: POST [10:23:35]URL: /json_proto [10:23:35]Method is POST - this is cgi request [10:23:35]url: /json_proto [10:23:35]query_string will be loaded in cgi processing [10:23:35]execute_cgi json_proto POST (null) [10:23:35]execute_cgi path=json_proto method=POST [10:23:35]POST find Content-Length [10:23:35]Host: 172.17.50.196:8080 [10:23:35]Content-Length: 770 [10:23:35]Content-Type: application/json [10:23:35] [10:23:35]POST finish read [10:23:35]Found Content-Length = 770 [10:23:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [10:23:35]execute_script... [10:23: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)1094383", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [10:23:35]POST & json_proto [10:23:35]process_json_proto [10:23:35]json parsed OK: [10:23:35]protocol is kg_v1.0 [10:23:35]action value=close_receipt [10:23:35]process_action close_receipt [10:23:35]cmd_close_receipt [10:23:35]MH_GetDate [10:23:35]Write to MH i2c: F0 00 00 AF 3A D8 [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 09 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: F0 09 00 AF 3A 00 2C 09 22 67 72 0D 1C 67 A1 [10:23:35]GetLastDocTimeStamp 1730283748 [10:23:35]current date 1730283820 [10:23:35]FM_GetShiftState [10:23:35]SAM_PROTO_GetShiftState [10:23:35]wFMCommunicate request_size=4 [10:23:35]MH_SAM_APDU [10:23:35]CAPDU: 80 13 01 00 [10:23:35]Write to MH i2c: E2 08 00 B0 3A 80 13 01 00 00 00 00 00 67 [10:23:35]Write i2c OK [10:23:35]MH_I2C_Read... [10:23:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:35]Read from MH i2c: E2 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: E2 0E 00 [10:23:35]MH_I2C_Read... [10:23:35]Read from MH i2c: E2 0E 00 B0 3A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F7 [10:23:35]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:23:35]wFMCommunicate OK [10:23:35]SAM_PROTO_GetShiftState done [10:23:35]FM_GetShiftState done [10:23:35]opened in 1730246278 [10:23:35]opened+sec_in_day 1730332678 [10:23:35]quantity*price = 100015 [10:23:35]sum+1 = 100017 [10:23:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 69 30.10.2024 10:23 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139385 ФПД: 132607953439133 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102340&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139385&fm=132607953439133&tin=02508201610067®Number=0000000000091631&sum=100016 [10:23:36]StoreToDocumentArchive [10:23:36]shift 556 fd 139385 [10:23:36]save to /storage/0556/doc_00139385 [10:23:36]save last doc name /storage/0556/doc_00139385 to /storage/kkm_last_doc_name [10:23:36]save OK [10:23:36]Clear old archive folders... [10:23:36]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:23:36]tlvbuf is 01109E20 [10:23:36]SAM_PROTO_ClearQueue [10:23:36]wFMCommunicate request_size=4 [10:23:36]MH_SAM_APDU [10:23:36]CAPDU: 80 09 00 00 [10:23:36]Write to MH i2c: E2 08 00 BD 3A 80 09 00 00 00 00 00 00 69 [10:23:36]Write i2c OK [10:23:36]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 BD 3A 00 90 00 6B [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_ClearQueue done [10:23:37]KKMCreateOFDPacket [10:23:37]OFDProtocolAddRootSTLVToBuf [10:23:37]FM_MakeSignedData [10:23:37]FM_MakeSignedData [10:23:37]SAM_PROTO_SignData [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 01 02 [10:23:37]Write to MH i2c: E2 08 00 BE 3A 80 0D 01 02 00 00 00 00 71 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 BE 3A 00 90 00 6C [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]wFMCommunicate request_size=255 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 2C 09 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 20 02 00 35 04 06 00 78 [10:23:37]Write to MH i2c: E2 02 01 BF 3A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 45 00 00 00 F4 03 04 00 2C 09 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 20 02 00 35 04 06 00 78 00 00 5E [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]OFD Sender: No OFD packet to send [10:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 BF 3A 00 90 00 6D [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]wFMCommunicate request_size=10 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 02 02 05 9B 31 F5 89 9D [10:23:37]Write to MH i2c: E2 0D 00 C0 3A 80 0D 02 02 05 00 9B 31 F5 89 9D 00 00 65 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 03 00 C0 3A 00 90 00 6E [10:23:37]RAPDU: 90 00 [10:23:37]wFMCommunicate OK [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 0D 03 02 [10:23:37]Write to MH i2c: E2 08 00 C1 3A 80 0D 03 02 00 00 00 00 76 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0B 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 0B 00 C1 3A 00 95 5E 7A 41 87 EB EF C0 90 00 46 [10:23:37]RAPDU: 95 5E 7A 41 87 EB EF C0 90 00 [10:23:37]wFMCommunicate OK [10:23:37]SAM_PROTO_SignData done [10:23:37]FM_MakeSignedData done [10:23:37]CreateOFDProtocolMessage [10:23:37]wFMCommunicate request_size=4 [10:23:37]MH_SAM_APDU [10:23:37]CAPDU: 80 11 00 00 [10:23:37]Write to MH i2c: E2 08 00 C2 3A 80 11 00 00 00 00 00 00 76 [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:37]Read from MH i2c: E2 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: E2 17 00 C2 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D1 [10:23:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:23:37]wFMCommunicate OK [10:23:37]CreateOFDProtocolMessage done [10:23:37]OFDSenderStorePacket 139385 [10:23:37]StoreOFDPacket docnum=139385 [10:23:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 E9 EE 07 01 FD 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 45 00 00 00 F4 03 04 00 2C 09 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 20 02 00 35 04 06 00 78 9B 31 F5 89 9D 95 5E 7A 41 87 EB EF C0 [10:23:37]CheckFolder [10:23:37]dirname=/storage/ofd_packets [10:23:37]CheckFolder done [10:23:37]ProducePacketName [10:23:37]name=ofd_packets/00139385 [10:23:37]NVStorageSaveData ofd_packets/00139385 [10:23:37]File name is /storage/ofd_packets/00139385 [10:23:37]Write 301 bytes [10:23:37]NVStorageSaveData done [10:23:37]OFDSenderStorePacket done [10:23:37]KKMCreateOFDPacket done [10:23:37]NVStorageSaveData kkm_last_timestamp [10:23:37]File name is /storage/kkm_last_timestamp [10:23:37]Write 4 bytes [10:23:37]NVStorageSaveData done [10:23:37]ExternCall_PrintAddStr [10:23:37]wPrintStart [10:23:37]Write to MH i2c: 01 00 00 C3 3A FD [10:23:37]Write i2c OK [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 [10:23:37]MH_I2C_Read... [10:23:37]Read from MH i2c: 01 07 00 C3 3A 00 00 00 00 00 FF 0F 12 [10:23:37]RasterBufferAndPrint [10:23:37]line Счет N : (1)1094383 [10:23:37]line ИНН: 02508201610067 [10:23:37]line Контрольно-Кассовый Чек [10:23:37]line ПРОДАЖА [10:23:37]line ТРК (МРК, ГНК) : 33 [10:23:37]line Товар: 2710124130 [10:23:37]line Аи-92-К-2 [10:23:37]line 14.950 * 66.90 [10:23:37]line = 1000.16 [10:23:37]line НДС 12% НСП 1% [10:23:37]line > о реализуемом товаре [10:23:37]line ИТОГО: 1000.16 [10:23:37]line НСП 1% : 8.85 [10:23:37]line НДС 12% : 106.21 [10:23:37]line Наличными: 0.00 [10:23:37]line Безнал.: 1000.16 [10:23:37]line Место: АЗС № 101 "Партнер Нефть" [10:23:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:23:37]line СНО: Общий режим [10:23:37]line Чек 69 30.10.2024 10:23 [10:23:37]line Смена: 556 ФФД: 1.0 [10:23:37]line ЗНМ: 0300000081 [10:23:37]line РНМ: 0000000000091631 [10:23:37]line Версия ККМ: 001 [10:23:37]line Платежная система: Mbank [10:23:37]line ФМ: 0000000000874669 [10:23:37]line ФД: 139385 [10:23:37]line ФПД: 132607953439133 [10:23:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102340&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139385&fm=132607953439133&tin=02508201610067®Number=0000000000091631&sum=100016 [10:23:37]written 0, free lines is 4095 [10:23:37]OFD Sender: Processing packet 139385 [packets to send 34, broken 33] [10:23:37]ProducePacketName [10:23:37]name=ofd_packets/00139385 [10:23:37]OFD Sender: To server: pG, [10:23:37]CommunicateWithHost lk.salyk.kg:30040 [10:23:37]ConnectInit lk.salyk.kg [10:23:37]Connected sock=10 [10:23:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 E9 EE 07 01 FD 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 45 00 00 00 F4 03 04 00 2C 09 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 20 02 00 35 04 06 00 78 9B 31 F5 89 9D 95 5E 7A 41 87 EB EF C0 [10:23:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 22 7F 47 00 9C 92 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 79 20 02 00 F4 03 04 00 DD B4 21 67 B6 04 01 00 00 35 E7 CD 78 B4 4B CC 5B [10:23:38]CommunicateWithHost err = 0 [10:23:38]CheckOFDResponse [10:23:38]1017 (14) - 77093643461234 [10:23:38]1041 (16) - 0000000000874669 [10:23:38]1040 (4) - 139385 [10:23:38]1012 (4) - 30.10.2024 04:23 [10:23:38]1206 (1) - 0 [10:23:38]OFD Sender: Remove packet 139385 [10:23:38]ProducePacketName [10:23:38]name=ofd_packets/00139385 [10:23:38]NVStorageDeleteData [10:23:38]Write to MH i2c: 01 00 00 EC 3A 26 [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: 01 07 00 EC 3A 00 00 00 00 00 10 0D 4A [10:23:38]RasterBufferAndPrint [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]line [10:23:38]written 0, free lines is 3350 [10:23:38]MH_Cut [10:23:38]Write to MH i2c: D1 01 00 F3 3A 01 FF [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: D1 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: D1 01 00 [10:23:38]MH_I2C_Read... [10:23:38]Read from MH i2c: D1 01 00 F3 3A 00 FE [10:23:38]Write to MH i2c: 01 00 00 F4 3A 2E [10:23:38]Write i2c OK [10:23:38]MH_I2C_Read... [10:23:38]OFD Sender: No OFD packet to send [10:23:38]*** Cut start [10:23:38]*** Partial cut [10:23:38]*** CUTSNS_PIN = 1 [10:23:38]*** CUTSNS_PIN = 0 [10:23:39]*** Brake cut motor [10:23:39]Read from MH i2c: 01 [10:23:39]MH_I2C_Read... [10:23:39]*** Stop cut motor [10:23:39]*** Cut end [10:23:39]Read from MH i2c: 01 07 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: 01 07 00 F4 3A 00 00 00 00 00 FF 0F 43 [10:23:39]process_action close_receipt done [10:23:39]requested_data is exist [10:23:39]produce_requested_data [10:23:39]requested_item fm.sn is exist - process it [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 11 00 00 [10:23:39]Write to MH i2c: E2 08 00 F5 3A 80 11 00 00 00 00 00 00 A9 [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 17 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 17 00 F5 3A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 04 [10:23:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:23:39]wFMCommunicate OK [10:23:39]requested_item fd.num is exist - process it [10:23:39]SAM_PROTO_GetFieldsCounters [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 13 00 00 [10:23:39]Write to MH i2c: E2 08 00 F6 3A 80 13 00 00 00 00 00 00 AC [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 62 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 62 00 F6 3A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 79 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 68 [10:23:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 79 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 45 00 00 00 5E 04 04 00 45 00 00 00 57 04 04 00 46 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:23:39]wFMCommunicate OK [10:23:39]SAM_PROTO_GetFieldsCounters done [10:23:39]requested_item shift.num is exist - process it [10:23:39]requested_item shift.opened is exist - process it [10:23:39]req_shift_opened [10:23:39]FM_GetShiftState [10:23:39]SAM_PROTO_GetShiftState [10:23:39]wFMCommunicate request_size=4 [10:23:39]MH_SAM_APDU [10:23:39]CAPDU: 80 13 01 00 [10:23:39]Write to MH i2c: E2 08 00 F7 3A 80 13 01 00 00 00 00 00 AE [10:23:39]Write i2c OK [10:23:39]MH_I2C_Read... [10:23:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:23:39]Read from MH i2c: E2 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 0E 00 [10:23:39]MH_I2C_Read... [10:23:39]Read from MH i2c: E2 0E 00 F7 3A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3E [10:23:39]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:23:39]wFMCommunicate OK [10:23:39]SAM_PROTO_GetShiftState done [10:23:39]FM_GetShiftState done [10:23:39]req_shift_opened done [10:23:39]requested_item shift.open_date is exist - process it [10:23:39]req_shift_open_date [10:23:39]req_shift_open_date done [10:23:39]produce_requested_data done [10:23:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139385,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:23:39]process_action_free close_receipt [10:23:39]json_value_free [10:23:39]json_value_free done [10:23:39]process_json_proto returns [10:23:39]Send response to host [10:23:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139385,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:23:39]free response buf [10:23:39]execute_script done [10:23:39]execute_script returns [10:23:39]free content buf [10:23:39]Sock 8.Close socket [10:23:39]Sock 8.Thread stoped [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:52]accept exits with 9 [10:25:52]New connection [10:25:52]New thread 3067141476 created [10:25:52]Thread 3067284836 joined [10:25:52]Waiting for new connection... [10:25:52] Sock 9.Parse request [10:25:52]Sock 9.Check first char [10:25:52]Sock 9.First char is OK [10:25:52]request: POST /json_proto HTTP/1.0 [10:25:52]Method: POST [10:25:52]URL: /json_proto [10:25:52]Method is POST - this is cgi request [10:25:52]url: /json_proto [10:25:52]query_string will be loaded in cgi processing [10:25:52]execute_cgi json_proto POST (null) [10:25:52]execute_cgi path=json_proto method=POST [10:25:52]POST find Content-Length [10:25:52]Host: 172.17.50.196:8080 [10:25:52]Content-Length: 632 [10:25:52]Content-Type: application/json [10:25:52] [10:25:52]POST finish read [10:25:52]Found Content-Length = 632 [10:25:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335297", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:52]execute_script... [10:25:52]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335297", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 40.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:25:52]POST & json_proto [10:25:52]process_json_proto [10:25:52]json parsed OK: [10:25:52]protocol is kg_v1.0 [10:25:52]action value=close_receipt [10:25:52]process_action close_receipt [10:25:52]cmd_close_receipt [10:25:52]MH_GetDate [10:25:52]Write to MH i2c: F0 00 00 F8 3A 21 [10:25:52]Write i2c OK [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: F0 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: F0 09 00 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: F0 09 00 F8 3A 00 B5 09 22 67 72 0D 1C 67 73 [10:25:52]GetLastDocTimeStamp 1730283820 [10:25:52]current date 1730283957 [10:25:52]FM_GetShiftState [10:25:52]SAM_PROTO_GetShiftState [10:25:52]wFMCommunicate request_size=4 [10:25:52]MH_SAM_APDU [10:25:52]CAPDU: 80 13 01 00 [10:25:52]Write to MH i2c: E2 08 00 F9 3A 80 13 01 00 00 00 00 00 B0 [10:25:52]Write i2c OK [10:25:52]MH_I2C_Read... [10:25:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:52]Read from MH i2c: E2 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: E2 0E 00 [10:25:52]MH_I2C_Read... [10:25:52]Read from MH i2c: E2 0E 00 F9 3A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 40 [10:25:52]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:25:52]wFMCommunicate OK [10:25:52]SAM_PROTO_GetShiftState done [10:25:52]FM_GetShiftState done [10:25:52]opened in 1730246278 [10:25:52]opened+sec_in_day 1730332678 [10:25:52]quantity*price = 4000 [10:25:52]sum+1 = 4001 [10:25:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 40.00 НСП 1% : 0.35 НДС 12% : 4.25 Наличными: 40.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 70 30.10.2024 10:25 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139386 ФПД: 275323410159847 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102557&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139386&fm=275323410159847&tin=02508201610067®Number=0000000000091631&sum=4000 0 [10:25:53]StoreToDocumentArchive [10:25:53]shift 556 fd 139386 [10:25:53]save to /storage/0556/doc_00139386 [10:25:53]save last doc name /storage/0556/doc_00139386 to /storage/kkm_last_doc_name [10:25:53]save OK [10:25:53]Clear old archive folders... [10:25:53]ProcessDocumentItem done err = 0, tmpTLVsize=271 [10:25:53]tlvbuf is B6FA9920 [10:25:53]SAM_PROTO_ClearQueue [10:25:53]wFMCommunicate request_size=4 [10:25:53]MH_SAM_APDU [10:25:53]CAPDU: 80 09 00 00 [10:25:53]Write to MH i2c: E2 08 00 06 3B 80 09 00 00 00 00 00 00 B3 [10:25:53]Write i2c OK [10:25:53]MH_I2C_Read... [10:25:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:25:53]Read from MH i2c: E2 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: E2 03 00 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: E2 03 00 06 3B 00 90 00 B5 [10:25:53]RAPDU: 90 00 [10:25:53]wFMCommunicate OK [10:25:53]SAM_PROTO_ClearQueue done [10:25:53]KKMCreateOFDPacket [10:25:53]OFDProtocolAddRootSTLVToBuf [10:25:53]FM_MakeSignedData [10:25:53]FM_MakeSignedData [10:25:53]SAM_PROTO_SignData [10:25:53]wFMCommunicate request_size=4 [10:25:53]MH_SAM_APDU [10:25:53]CAPDU: 80 0D 01 02 [10:25:53]Write to MH i2c: E2 08 00 07 3B 80 0D 01 02 00 00 00 00 BB [10:25:53]Write i2c OK [10:25:53]MH_I2C_Read... [10:25:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:25:53]Read from MH i2c: E2 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: E2 03 00 [10:25:53]MH_I2C_Read... [10:25:53]Read from MH i2c: E2 03 00 07 3B 00 90 00 B6 [10:25:53]RAPDU: 90 00 [10:25:53]wFMCommunicate OK [10:25:53]wFMCommunicate request_size=255 [10:25:53]MH_SAM_APDU [10:25:53]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B5 09 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [10:25:53]Write to MH i2c: E2 02 01 08 3B 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B5 09 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 56 [10:25:53]Write i2c OK [10:25:53]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 08 3B 00 90 00 B7 [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]wFMCommunicate request_size=30 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 7A 20 02 00 35 04 06 00 FA 67 BA 0F 98 E7 [10:25:54]Write to MH i2c: E2 21 00 09 3B 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 7A 20 02 00 35 04 06 00 FA 67 BA 0F 98 E7 00 00 04 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 03 00 09 3B 00 90 00 B8 [10:25:54]RAPDU: 90 00 [10:25:54]wFMCommunicate OK [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 0D 03 02 [10:25:54]Write to MH i2c: E2 08 00 0A 3B 80 0D 03 02 00 00 00 00 C0 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0B 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 0B 00 0A 3B 00 6C 9A 83 27 03 0C 3B 11 90 00 CC [10:25:54]RAPDU: 6C 9A 83 27 03 0C 3B 11 90 00 [10:25:54]wFMCommunicate OK [10:25:54]SAM_PROTO_SignData done [10:25:54]FM_MakeSignedData done [10:25:54]CreateOFDProtocolMessage [10:25:54]wFMCommunicate request_size=4 [10:25:54]MH_SAM_APDU [10:25:54]CAPDU: 80 11 00 00 [10:25:54]Write to MH i2c: E2 08 00 0B 3B 80 11 00 00 00 00 00 00 C0 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:54]Read from MH i2c: E2 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 17 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: E2 17 00 0B 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1B [10:25:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:25:54]wFMCommunicate OK [10:25:54]CreateOFDProtocolMessage done [10:25:54]OFDSenderStorePacket 139386 [10:25:54]StoreOFDPacket docnum=139386 [10:25:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 E3 34 1B 01 1C 80 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B5 09 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7A 20 02 00 35 04 06 00 FA 67 BA 0F 98 E7 6C 9A 83 27 03 0C 3B 11 [10:25:54]CheckFolder [10:25:54]dirname=/storage/ofd_packets [10:25:54]CheckFolder done [10:25:54]ProducePacketName [10:25:54]name=ofd_packets/00139386 [10:25:54]NVStorageSaveData ofd_packets/00139386 [10:25:54]File name is /storage/ofd_packets/00139386 [10:25:54]Write 321 bytes [10:25:54]NVStorageSaveData done [10:25:54]OFDSenderStorePacket done [10:25:54]KKMCreateOFDPacket done [10:25:54]NVStorageSaveData kkm_last_timestamp [10:25:54]File name is /storage/kkm_last_timestamp [10:25:54]Write 4 bytes [10:25:54]NVStorageSaveData done [10:25:54]ExternCall_PrintAddStr [10:25:54]wPrintStart [10:25:54]Write to MH i2c: 01 00 00 0C 3B 47 [10:25:54]Write i2c OK [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 07 00 [10:25:54]MH_I2C_Read... [10:25:54]Read from MH i2c: 01 07 00 0C 3B 00 00 00 00 00 FF 0F 5C [10:25:54]RasterBufferAndPrint [10:25:54]line Счет N : (3)335297 [10:25:54]line ИНН: 02508201610067 [10:25:54]line Контрольно-Кассовый Чек [10:25:54]line ПРОДАЖА [10:25:54]line Товар: 4700000160211 [10:25:54]line Вода Легенда 0,5л [10:25:54]line 1.000 * 40.00 [10:25:54]line = 40.00 [10:25:54]line НДС 12% НСП 1% [10:25:54]line > о реализуемом товаре [10:25:54]line ИТОГО: 40.00 [10:25:54]line НСП 1% : 0.35 [10:25:54]line НДС 12% : 4.25 [10:25:54]line Наличными: 40.00 [10:25:54]line Безнал.: 0.00 [10:25:54]line Место: АЗС № 101 "Партнер Нефть" [10:25:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:25:54]line СНО: Общий режим [10:25:54]line Чек 70 30.10.2024 10:25 [10:25:54]line Смена: 556 ФФД: 1.0 [10:25:54]line ЗНМ: 0300000081 [10:25:54]line РНМ: 0000000000091631 [10:25:54]line Версия ККМ: 001 [10:25:54]line ФМ: 0000000000874669 [10:25:54]line ФД: 139386 [10:25:54]line ФПД: 275323410159847 [10:25:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T102557&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139386&fm=275323410159847&tin=02508201610067®Number=0000000000091631&sum=4000 [10:25:54]OFD Sender: Processing packet 139386 [packets to send 34, broken 33] [10:25:54]ProducePacketName [10:25:54]name=ofd_packets/00139386 [10:25:54]OFD Sender: To server: pG, [10:25:54]CommunicateWithHost lk.salyk.kg:30040 [10:25:54]ConnectInit lk.salyk.kg [10:25:54]line 0 [10:25:54]written 0, free lines is 4095 [10:25:54]Connected sock=10 [10:25:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 E3 34 1B 01 1C 80 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 0F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 23 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A9 01 00 00 00 00 07 04 06 00 A0 0F 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 B5 09 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7A 20 02 00 35 04 06 00 FA 67 BA 0F 98 E7 6C 9A 83 27 03 0C 3B 11 [10:25:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C1 7B 47 00 A5 C5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7A 20 02 00 F4 03 04 00 66 B5 21 67 B6 04 01 00 00 2C 7A 4B 14 44 CE 88 4A [10:25:55]CommunicateWithHost err = 0 [10:25:55]CheckOFDResponse [10:25:55]1017 (14) - 77093643461234 [10:25:55]1041 (16) - 0000000000874669 [10:25:55]1040 (4) - 139386 [10:25:55]1012 (4) - 30.10.2024 04:26 [10:25:55]1206 (1) - 0 [10:25:55]OFD Sender: Remove packet 139386 [10:25:55]ProducePacketName [10:25:55]name=ofd_packets/00139386 [10:25:55]NVStorageDeleteData [10:25:55]Write to MH i2c: 01 00 00 34 3B 6F [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: 01 07 00 34 3B 00 00 00 00 00 15 0D 98 [10:25:55]RasterBufferAndPrint [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]line [10:25:55]written 0, free lines is 3356 [10:25:55]MH_Cut [10:25:55]Write to MH i2c: D1 01 00 3B 3B 01 48 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 01 00 [10:25:55]MH_I2C_Read... [10:25:55]Read from MH i2c: D1 01 00 3B 3B 00 47 [10:25:55]Write to MH i2c: 01 00 00 3C 3B 77 [10:25:55]Write i2c OK [10:25:55]MH_I2C_Read... [10:25:55]OFD Sender: No OFD packet to send [10:25:55]*** Cut start [10:25:55]*** Partial cut [10:25:55]*** CUTSNS_PIN = 1 [10:25:55]*** CUTSNS_PIN = 0 [10:25:56]*** Brake cut motor [10:25:56]Read from MH i2c: 01 [10:25:56]MH_I2C_Read... [10:25:56]*** Stop cut motor [10:25:56]*** Cut end [10:25:56]Read from MH i2c: 01 07 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: 01 07 00 3C 3B 00 00 00 00 00 FF 0F 8C [10:25:56]process_action close_receipt done [10:25:56]requested_data is exist [10:25:56]produce_requested_data [10:25:56]requested_item fm.sn is exist - process it [10:25:56]wFMCommunicate request_size=4 [10:25:56]MH_SAM_APDU [10:25:56]CAPDU: 80 11 00 00 [10:25:56]Write to MH i2c: E2 08 00 3D 3B 80 11 00 00 00 00 00 00 F2 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:25:56]Read from MH i2c: E2 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 17 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 17 00 3D 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4D [10:25:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:25:56]wFMCommunicate OK [10:25:56]requested_item fd.num is exist - process it [10:25:56]SAM_PROTO_GetFieldsCounters [10:25:56]wFMCommunicate request_size=4 [10:25:56]MH_SAM_APDU [10:25:56]CAPDU: 80 13 00 00 [10:25:56]Write to MH i2c: E2 08 00 3E 3B 80 13 00 00 00 00 00 00 F5 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:25:56]Read from MH i2c: E2 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 62 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 62 00 3E 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7A 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 B5 [10:25:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7A 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 46 00 00 00 5E 04 04 00 46 00 00 00 57 04 04 00 47 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:25:56]wFMCommunicate OK [10:25:56]SAM_PROTO_GetFieldsCounters done [10:25:56]requested_item shift.num is exist - process it [10:25:56]requested_item shift.opened is exist - process it [10:25:56]req_shift_opened [10:25:56]FM_GetShiftState [10:25:56]SAM_PROTO_GetShiftState [10:25:56]wFMCommunicate request_size=4 [10:25:56]MH_SAM_APDU [10:25:56]CAPDU: 80 13 01 00 [10:25:56]Write to MH i2c: E2 08 00 3F 3B 80 13 01 00 00 00 00 00 F7 [10:25:56]Write i2c OK [10:25:56]MH_I2C_Read... [10:25:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:25:56]Read from MH i2c: E2 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 0E 00 [10:25:56]MH_I2C_Read... [10:25:56]Read from MH i2c: E2 0E 00 3F 3B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 87 [10:25:56]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:25:56]wFMCommunicate OK [10:25:56]SAM_PROTO_GetShiftState done [10:25:56]FM_GetShiftState done [10:25:56]req_shift_opened done [10:25:56]requested_item shift.open_date is exist - process it [10:25:56]req_shift_open_date [10:25:56]req_shift_open_date done [10:25:56]produce_requested_data done [10:25:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139386,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:25:56]process_action_free close_receipt [10:25:56]json_value_free [10:25:56]json_value_free done [10:25:56]process_json_proto returns [10:25:56]Send response to host [10:25:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139386,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:25:56]free response buf [10:25:56]execute_script done [10:25:56]execute_script returns [10:25:56]free content buf [10:25:56]Sock 9.Close socket [10:25:56]Sock 9.Thread stoped [10:26:00]OFD Sender: No OFD packet to send [10:26:05]OFD Sender: No OFD packet to send [10:26:10]OFD Sender: No OFD packet to send [10:26:15]OFD Sender: No OFD packet to send [10:26:20]OFD Sender: No OFD packet to send [10:26:25]OFD Sender: No OFD packet to send [10:26:30]OFD Sender: No OFD packet to send [10:26:35]OFD Sender: No OFD packet to send [10:26:40]OFD Sender: No OFD packet to send [10:26:45]OFD Sender: No OFD packet to send [10:26:50]OFD Sender: No OFD packet to send [10:26:55]OFD Sender: No OFD packet to send [10:27:00]OFD Sender: No OFD packet to send [10:27:05]OFD Sender: No OFD packet to send [10:27:10]OFD Sender: No OFD packet to send [10:27:15]OFD Sender: No OFD packet to send [10:27:20]OFD Sender: No OFD packet to send [10:27:25]OFD Sender: No OFD packet to send [10:27:30]OFD Sender: No OFD packet to send [10:27:35]OFD Sender: No OFD packet to send [10:27:40]OFD Sender: No OFD packet to send [10:27:45]OFD Sender: No OFD packet to send [10:27:50]OFD Sender: No OFD packet to send [10:27:55]OFD Sender: No OFD packet to send [10:28:00]OFD Sender: No OFD packet to send [10:28:05]OFD Sender: No OFD packet to send [10:28:10]OFD Sender: No OFD packet to send [10:28:15]OFD Sender: No OFD packet to send [10:28:20]OFD Sender: No OFD packet to send [10:28:25]OFD Sender: No OFD packet to send [10:28:30]OFD Sender: No OFD packet to send [10:28:35]OFD Sender: No OFD packet to send [10:28:40]OFD Sender: No OFD packet to send [10:28:45]OFD Sender: No OFD packet to send [10:28:50]OFD Sender: No OFD packet to send [10:28:55]OFD Sender: No OFD packet to send [10:29:00]OFD Sender: No OFD packet to send [10:29:05]OFD Sender: No OFD packet to send [10:29:10]OFD Sender: No OFD packet to send [10:29:15]OFD Sender: No OFD packet to send [10:29:20]OFD Sender: No OFD packet to send [10:29:25]OFD Sender: No OFD packet to send [10:29:30]OFD Sender: No OFD packet to send [10:29:35]OFD Sender: No OFD packet to send [10:29:40]OFD Sender: No OFD packet to send [10:29:45]OFD Sender: No OFD packet to send [10:29:50]OFD Sender: No OFD packet to send [10:29:55]OFD Sender: No OFD packet to send [10:30:00]OFD Sender: No OFD packet to send [10:30:05]OFD Sender: No OFD packet to send [10:30:10]OFD Sender: No OFD packet to send [10:30:15]OFD Sender: No OFD packet to send [10:30:20]OFD Sender: No OFD packet to send [10:30:25]OFD Sender: No OFD packet to send [10:30:30]OFD Sender: No OFD packet to send [10:30:35]OFD Sender: No OFD packet to send [10:30:40]OFD Sender: No OFD packet to send [10:30:45]OFD Sender: No OFD packet to send [10:30:50]OFD Sender: No OFD packet to send [10:30:55]OFD Sender: No OFD packet to send [10:31:00]OFD Sender: No OFD packet to send [10:31:05]OFD Sender: No OFD packet to send [10:31:10]OFD Sender: No OFD packet to send [10:31:15]OFD Sender: No OFD packet to send [10:31:20]OFD Sender: No OFD packet to send [10:31:25]OFD Sender: No OFD packet to send [10:31:30]OFD Sender: No OFD packet to send [10:31:35]OFD Sender: No OFD packet to send [10:31:40]OFD Sender: No OFD packet to send [10:31:45]OFD Sender: No OFD packet to send [10:31:50]OFD Sender: No OFD packet to send [10:31:55]OFD Sender: No OFD packet to send [10:32:00]OFD Sender: No OFD packet to send [10:32:05]OFD Sender: No OFD packet to send [10:32:10]OFD Sender: No OFD packet to send [10:32:15]OFD Sender: No OFD packet to send [10:32:20]OFD Sender: No OFD packet to send [10:32:25]OFD Sender: No OFD packet to send [10:32:30]OFD Sender: No OFD packet to send [10:32:35]OFD Sender: No OFD packet to send [10:32:40]OFD Sender: No OFD packet to send [10:32:45]OFD Sender: No OFD packet to send [10:32:50]OFD Sender: No OFD packet to send [10:32:55]OFD Sender: No OFD packet to send [10:33:00]OFD Sender: No OFD packet to send [10:33:05]OFD Sender: No OFD packet to send [10:33:10]OFD Sender: No OFD packet to send [10:33:15]OFD Sender: No OFD packet to send [10:33:20]OFD Sender: No OFD packet to send [10:33:25]OFD Sender: No OFD packet to send [10:33:30]OFD Sender: No OFD packet to send [10:33:35]OFD Sender: No OFD packet to send [10:33:40]OFD Sender: No OFD packet to send [10:33:45]OFD Sender: No OFD packet to send [10:33:50]OFD Sender: No OFD packet to send [10:33:55]OFD Sender: No OFD packet to send [10:34:00]OFD Sender: No OFD packet to send [10:34:05]OFD Sender: No OFD packet to send [10:34:10]OFD Sender: No OFD packet to send [10:34:15]OFD Sender: No OFD packet to send [10:34:20]OFD Sender: No OFD packet to send [10:34:25]OFD Sender: No OFD packet to send [10:34:30]OFD Sender: No OFD packet to send [10:34:35]OFD Sender: No OFD packet to send [10:34:40]OFD Sender: No OFD packet to send [10:34:45]OFD Sender: No OFD packet to send [10:34:50]OFD Sender: No OFD packet to send [10:34:55]OFD Sender: No OFD packet to send [10:35:00]OFD Sender: No OFD packet to send [10:35:05]OFD Sender: No OFD packet to send [10:35:10]OFD Sender: No OFD packet to send [10:35:15]OFD Sender: No OFD packet to send [10:35:21]OFD Sender: No OFD packet to send [10:35:26]OFD Sender: No OFD packet to send [10:35:31]OFD Sender: No OFD packet to send [10:35:36]OFD Sender: No OFD packet to send [10:35:41]OFD Sender: No OFD packet to send [10:35:46]OFD Sender: No OFD packet to send [10:35:51]OFD Sender: No OFD packet to send [10:35:56]OFD Sender: No OFD packet to send [10:36:01]OFD Sender: No OFD packet to send [10:36:06]OFD Sender: No OFD packet to send [10:36:11]OFD Sender: No OFD packet to send [10:36:16]OFD Sender: No OFD packet to send [10:36:21]OFD Sender: No OFD packet to send [10:36:26]OFD Sender: No OFD packet to send [10:36:31]OFD Sender: No OFD packet to send [10:36:36]OFD Sender: No OFD packet to send [10:36:41]OFD Sender: No OFD packet to send [10:36:46]OFD Sender: No OFD packet to send [10:36:51]OFD Sender: No OFD packet to send [10:36:56]OFD Sender: No OFD packet to send [10:37:01]OFD Sender: No OFD packet to send [10:37:06]OFD Sender: No OFD packet to send [10:37:11]OFD Sender: No OFD packet to send [10:37:16]OFD Sender: No OFD packet to send [10:37:21]OFD Sender: No OFD packet to send [10:37:26]OFD Sender: No OFD packet to send [10:37:31]OFD Sender: No OFD packet to send [10:37:36]OFD Sender: No OFD packet to send [10:37:41]OFD Sender: No OFD packet to send [10:37:46]OFD Sender: No OFD packet to send [10:37:51]OFD Sender: No OFD packet to send [10:37:56]OFD Sender: No OFD packet to send [10:38:01]OFD Sender: No OFD packet to send [10:38:06]OFD Sender: No OFD packet to send [10:38:11]OFD Sender: No OFD packet to send [10:38:16]OFD Sender: No OFD packet to send [10:38:21]OFD Sender: No OFD packet to send [10:38:26]OFD Sender: No OFD packet to send [10:38:31]OFD Sender: No OFD packet to send [10:38:36]OFD Sender: No OFD packet to send [10:38:41]OFD Sender: No OFD packet to send [10:38:46]OFD Sender: No OFD packet to send [10:38:51]OFD Sender: No OFD packet to send [10:38:56]OFD Sender: No OFD packet to send [10:39:01]OFD Sender: No OFD packet to send [10:39:06]OFD Sender: No OFD packet to send [10:39:11]OFD Sender: No OFD packet to send [10:39:16]OFD Sender: No OFD packet to send [10:39:21]OFD Sender: No OFD packet to send [10:39:26]OFD Sender: No OFD packet to send [10:39:31]OFD Sender: No OFD packet to send [10:39:36]OFD Sender: No OFD packet to send [10:39:41]OFD Sender: No OFD packet to send [10:39:46]OFD Sender: No OFD packet to send [10:39:51]OFD Sender: No OFD packet to send [10:39:56]OFD Sender: No OFD packet to send [10:40:01]OFD Sender: No OFD packet to send [10:40:06]OFD Sender: No OFD packet to send [10:40:11]OFD Sender: No OFD packet to send [10:40:16]OFD Sender: No OFD packet to send [10:40:21]OFD Sender: No OFD packet to send [10:40:26]OFD Sender: No OFD packet to send [10:40:31]OFD Sender: No OFD packet to send [10:40:36]OFD Sender: No OFD packet to send [10:40:41]OFD Sender: No OFD packet to send [10:40:46]OFD Sender: No OFD packet to send [10:40:51]OFD Sender: No OFD packet to send [10:40:56]OFD Sender: No OFD packet to send [10:41:01]OFD Sender: No OFD packet to send [10:41:06]OFD Sender: No OFD packet to send [10:41:11]OFD Sender: No OFD packet to send [10:41:16]OFD Sender: No OFD packet to send [10:41:21]OFD Sender: No OFD packet to send [10:41:26]OFD Sender: No OFD packet to send [10:41:31]OFD Sender: No OFD packet to send [10:41:36]OFD Sender: No OFD packet to send [10:41:41]OFD Sender: No OFD packet to send [10:41:46]OFD Sender: No OFD packet to send [10:41:51]OFD Sender: No OFD packet to send [10:41:56]OFD Sender: No OFD packet to send [10:42:01]OFD Sender: No OFD packet to send [10:42:05]accept exits with 8 [10:42:05]New connection [10:42:05]New thread 3067284836 created [10:42:05]Thread 3067141476 joined [10:42:05]Waiting for new connection... [10:42:05] Sock 8.Parse request [10:42:05]Sock 8.Check first char [10:42:05]Sock 8.First char is OK [10:42:05]request: POST /json_proto HTTP/1.0 [10:42:05]Method: POST [10:42:05]URL: /json_proto [10:42:05]Method is POST - this is cgi request [10:42:05]url: /json_proto [10:42:05]query_string will be loaded in cgi processing [10:42:05]execute_cgi json_proto POST (null) [10:42:05]execute_cgi path=json_proto method=POST [10:42:05]POST find Content-Length [10:42:05]Host: 172.17.50.196:8080 [10:42:05]Content-Length: 684 [10:42:05]Content-Type: application/json [10:42:05] [10:42:05]POST finish read [10:42:05]Found Content-Length = 684 [10:42:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.010, "sum" : 2475.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 2475.00, "payments": [ { "type": 0, "sum" : 2475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:05]execute_script... [10:42: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)1094397", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 37.010, "sum" : 2475.97, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 10000.00, "total" : 2475.00, "payments": [ { "type": 0, "sum" : 2475.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:42:05]POST & json_proto [10:42:05]process_json_proto [10:42:05]json parsed OK: [10:42:05]protocol is kg_v1.0 [10:42:05]action value=close_receipt [10:42:05]process_action close_receipt [10:42:05]cmd_close_receipt [10:42:05]MH_GetDate [10:42:05]Write to MH i2c: F0 00 00 40 3B 6A [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: F0 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: F0 09 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: F0 09 00 40 3B 00 82 0D 22 67 72 0D 1C 67 8D [10:42:05]GetLastDocTimeStamp 1730283957 [10:42:05]current date 1730284930 [10:42:05]FM_GetShiftState [10:42:05]SAM_PROTO_GetShiftState [10:42:05]wFMCommunicate request_size=4 [10:42:05]MH_SAM_APDU [10:42:05]CAPDU: 80 13 01 00 [10:42:05]Write to MH i2c: E2 08 00 41 3B 80 13 01 00 00 00 00 00 F9 [10:42:05]Write i2c OK [10:42:05]MH_I2C_Read... [10:42:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:05]Read from MH i2c: E2 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0E 00 [10:42:05]MH_I2C_Read... [10:42:05]Read from MH i2c: E2 0E 00 41 3B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 89 [10:42:05]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:42:05]wFMCommunicate OK [10:42:05]SAM_PROTO_GetShiftState done [10:42:05]FM_GetShiftState done [10:42:05]opened in 1730246278 [10:42:05]opened+sec_in_day 1730332678 [10:42:05]quantity*price = 247596 [10:42:05]sum+1 = 247598 [10:42:05]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.97 ИТОГО: 2475.00 Внесено: 10000.00 СДАЧА: 7525.00 НСП 1% : 21.91 НДС 12% : 262.93 Наличными: 2475.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 71 30.10.2024 10:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139387 ФПД: 214543488582361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104210&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139387&fm=214543488582361&tin=02508201610067®Number=0000000000091631&sum=247500 [10:42:06]StoreToDocumentArchive [10:42:06]shift 556 fd 139387 [10:42:06]save to /storage/0556/doc_00139387 [10:42:06]save last doc name /storage/0556/doc_00139387 to /storage/kkm_last_doc_name [10:42:06]save OK [10:42:06]Clear old archive folders... [10:42:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [10:42:06]tlvbuf is 0120E550 [10:42:06]SAM_PROTO_ClearQueue [10:42:06]wFMCommunicate request_size=4 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 09 00 00 [10:42:06]Write to MH i2c: E2 08 00 4E 3B 80 09 00 00 00 00 00 00 FB [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:42:06]Read from MH i2c: E2 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 03 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 03 00 4E 3B 00 90 00 FD [10:42:06]RAPDU: 90 00 [10:42:06]wFMCommunicate OK [10:42:06]SAM_PROTO_ClearQueue done [10:42:06]KKMCreateOFDPacket [10:42:06]OFDProtocolAddRootSTLVToBuf [10:42:06]FM_MakeSignedData [10:42:06]FM_MakeSignedData [10:42:06]SAM_PROTO_SignData [10:42:06]wFMCommunicate request_size=4 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 0D 01 02 [10:42:06]Write to MH i2c: E2 08 00 4F 3B 80 0D 01 02 00 00 00 00 03 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:42:06]Read from MH i2c: E2 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 03 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 03 00 4F 3B 00 90 00 FE [10:42:06]RAPDU: 90 00 [10:42:06]wFMCommunicate OK [10:42:06]wFMCommunicate request_size=255 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 90 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D C7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC C6 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 66 00 00 00 00 07 04 06 00 CC C6 03 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 82 0D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 20 02 00 35 04 06 00 C3 [10:42:06]Write to MH i2c: E2 02 01 50 3B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 90 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D C7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC C6 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 66 00 00 00 00 07 04 06 00 CC C6 03 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 82 0D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 20 02 00 35 04 06 00 C3 00 00 2B [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:06]Read from MH i2c: E2 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 03 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 03 00 50 3B 00 90 00 FF [10:42:06]RAPDU: 90 00 [10:42:06]wFMCommunicate OK [10:42:06]wFMCommunicate request_size=10 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 0D 02 02 05 20 4C 6D 02 D9 [10:42:06]Write to MH i2c: E2 0D 00 51 3B 80 0D 02 02 05 00 20 4C 6D 02 D9 00 00 C4 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:42:06]Read from MH i2c: E2 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 03 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 03 00 51 3B 00 90 00 00 [10:42:06]RAPDU: 90 00 [10:42:06]wFMCommunicate OK [10:42:06]wFMCommunicate request_size=4 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 0D 03 02 [10:42:06]Write to MH i2c: E2 08 00 52 3B 80 0D 03 02 00 00 00 00 08 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:42:06]Read from MH i2c: E2 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 0B 00 [10:42:06]MH_I2C_Read... [10:42:06]Read from MH i2c: E2 0B 00 52 3B 00 73 6C 35 FD 23 13 58 A0 90 00 48 [10:42:06]RAPDU: 73 6C 35 FD 23 13 58 A0 90 00 [10:42:06]wFMCommunicate OK [10:42:06]SAM_PROTO_SignData done [10:42:06]FM_MakeSignedData done [10:42:06]CreateOFDProtocolMessage [10:42:06]wFMCommunicate request_size=4 [10:42:06]MH_SAM_APDU [10:42:06]CAPDU: 80 11 00 00 [10:42:06]Write to MH i2c: E2 08 00 53 3B 80 11 00 00 00 00 00 00 08 [10:42:06]Write i2c OK [10:42:06]MH_I2C_Read... [10:42:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:07]Read from MH i2c: E2 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 17 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: E2 17 00 53 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 63 [10:42:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:42:07]wFMCommunicate OK [10:42:07]CreateOFDProtocolMessage done [10:42:07]OFDSenderStorePacket 139387 [10:42:07]StoreOFDPacket docnum=139387 [10:42:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 0F 04 07 01 55 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 90 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D C7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC C6 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 66 00 00 00 00 07 04 06 00 CC C6 03 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 82 0D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 20 02 00 35 04 06 00 C3 20 4C 6D 02 D9 73 6C 35 FD 23 13 58 A0 [10:42:07]CheckFolder [10:42:07]dirname=/storage/ofd_packets [10:42:07]CheckFolder done [10:42:07]ProducePacketName [10:42:07]name=ofd_packets/00139387 [10:42:07]NVStorageSaveData ofd_packets/00139387 [10:42:07]File name is /storage/ofd_packets/00139387 [10:42:07]Write 301 bytes [10:42:07]NVStorageSaveData done [10:42:07]OFDSenderStorePacket done [10:42:07]KKMCreateOFDPacket done [10:42:07]NVStorageSaveData kkm_last_timestamp [10:42:07]File name is /storage/kkm_last_timestamp [10:42:07]Write 4 bytes [10:42:07]NVStorageSaveData done [10:42:07]ExternCall_PrintAddStr [10:42:07]wPrintStart [10:42:07]Write to MH i2c: 01 00 00 54 3B 8F [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 07 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 07 00 54 3B 00 00 00 00 00 FF 0F A4 [10:42:07]RasterBufferAndPrint [10:42:07]line Счет N : (1)1094397 [10:42:07]line ИНН: 02508201610067 [10:42:07]line Контрольно-Кассовый Чек [10:42:07]line ПРОДАЖА [10:42:07]line ТРК (МРК, ГНК) : 63 [10:42:07]line Товар: 2710124130 [10:42:07]line Аи-92-К-2 [10:42:07]line 37.010 * 66.90 [10:42:07]line = 2475.97 [10:42:07]line НДС 12% НСП 1% [10:42:07]line > о реализуемом товаре [10:42:07]line ОКРУГЛЕНИЕ: -0.97 [10:42:07]line ИТОГО: 2475.00 [10:42:07]line Внесено: 10000.00 [10:42:07]line СДАЧА: 7525.00 [10:42:07]line НСП 1% : 21.91 [10:42:07]line НДС 12% : 262.93 [10:42:07]line Наличными: 2475.00 [10:42:07]line Безнал.: 0.00 [10:42:07]line Место: АЗС № 101 "Партнер Нефть" [10:42:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:42:07]line СНО: Общий режим [10:42:07]line Чек 71 30.10.2024 10:42 [10:42:07]line Смена: 556 ФФД: 1.0 [10:42:07]line ЗНМ: 0300000081 [10:42:07]line РНМ: 0000000000091631 [10:42:07]line Версия ККМ: 001 [10:42:07]line ФМ: 0000000000874669 [10:42:07]line ФД: 139387 [10:42:07]line ФПД: 214543488582361 [10:42:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104210&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139387&fm=214543488582361&tin=02508201610067®Number=0000000000091631&sum=247500 [10:42:07]OFD Sender: Processing packet 139387 [packets to send 34, broken 33] [10:42:07]ProducePacketName [10:42:07]name=ofd_packets/00139387 [10:42:07]OFD Sender: To server: pG, [10:42:07]CommunicateWithHost lk.salyk.kg:30040 [10:42:07]ConnectInit lk.salyk.kg [10:42:07]written 0, free lines is 4095 [10:42:07]Connected sock=10 [10:42:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 0F 04 07 01 55 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 92 90 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 2D C7 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 CC C6 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8F 08 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B5 66 00 00 00 00 07 04 06 00 CC C6 03 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 82 0D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7B 20 02 00 35 04 06 00 C3 20 4C 6D 02 D9 73 6C 35 FD 23 13 58 A0 [10:42:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 EF 17 47 00 DF 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 38 37 34 36 36 39 10 04 04 00 7B 20 02 00 F4 03 04 00 32 B9 21 67 B6 04 01 00 00 41 15 FA 1C B3 6E C0 A7 [10:42:07]CommunicateWithHost err = 0 [10:42:07]CheckOFDResponse [10:42:07]1017 (14) - 77093643461234 [10:42:07]1041 (16) - 0000000000874669 [10:42:07]1040 (4) - 139387 [10:42:07]1012 (4) - 30.10.2024 04:42 [10:42:07]1206 (1) - 0 [10:42:07]OFD Sender: Remove packet 139387 [10:42:07]ProducePacketName [10:42:07]name=ofd_packets/00139387 [10:42:07]NVStorageDeleteData [10:42:07]Write to MH i2c: 01 00 00 7F 3B BA [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 07 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: 01 07 00 7F 3B 00 00 00 00 00 F9 0C C6 [10:42:07]RasterBufferAndPrint [10:42:07]line [10:42:07]line [10:42:07]line [10:42:07]line [10:42:07]line [10:42:07]written 0, free lines is 3327 [10:42:07]MH_Cut [10:42:07]Write to MH i2c: D1 01 00 86 3B 01 93 [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: D1 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: D1 01 00 [10:42:07]MH_I2C_Read... [10:42:07]Read from MH i2c: D1 01 00 86 3B 00 92 [10:42:07]Write to MH i2c: 01 00 00 87 3B C2 [10:42:07]Write i2c OK [10:42:07]MH_I2C_Read... [10:42:08]OFD Sender: No OFD packet to send [10:42:08]*** Cut start [10:42:08]*** Partial cut [10:42:08]*** CUTSNS_PIN = 1 [10:42:08]*** CUTSNS_PIN = 0 [10:42:08]*** Brake cut motor [10:42:09]Read from MH i2c: 01 [10:42:09]MH_I2C_Read... [10:42:09]*** Stop cut motor [10:42:09]*** Cut end [10:42:09]Read from MH i2c: 01 07 00 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: 01 07 00 87 3B 00 00 00 00 00 FF 0F D7 [10:42:09]process_action close_receipt done [10:42:09]requested_data is exist [10:42:09]produce_requested_data [10:42:09]requested_item fm.sn is exist - process it [10:42:09]wFMCommunicate request_size=4 [10:42:09]MH_SAM_APDU [10:42:09]CAPDU: 80 11 00 00 [10:42:09]Write to MH i2c: E2 08 00 88 3B 80 11 00 00 00 00 00 00 3D [10:42:09]Write i2c OK [10:42:09]MH_I2C_Read... [10:42:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:42:09]Read from MH i2c: E2 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 17 00 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 17 00 88 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 98 [10:42:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:42:09]wFMCommunicate OK [10:42:09]requested_item fd.num is exist - process it [10:42:09]SAM_PROTO_GetFieldsCounters [10:42:09]wFMCommunicate request_size=4 [10:42:09]MH_SAM_APDU [10:42:09]CAPDU: 80 13 00 00 [10:42:09]Write to MH i2c: E2 08 00 89 3B 80 13 00 00 00 00 00 00 40 [10:42:09]Write i2c OK [10:42:09]MH_I2C_Read... [10:42:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:42:09]Read from MH i2c: E2 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 62 00 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 62 00 89 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7B 20 02 00 0E 04 04 00 2C 02 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 04 [10:42:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7B 20 02 00 0E 04 04 00 2C 02 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 [10:42:09]wFMCommunicate OK [10:42:09]SAM_PROTO_GetFieldsCounters done [10:42:09]requested_item shift.num is exist - process it [10:42:09]requested_item shift.opened is exist - process it [10:42:09]req_shift_opened [10:42:09]FM_GetShiftState [10:42:09]SAM_PROTO_GetShiftState [10:42:09]wFMCommunicate request_size=4 [10:42:09]MH_SAM_APDU [10:42:09]CAPDU: 80 13 01 00 [10:42:09]Write to MH i2c: E2 08 00 8A 3B 80 13 01 00 00 00 00 00 42 [10:42:09]Write i2c OK [10:42:09]MH_I2C_Read... [10:42:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:42:09]Read from MH i2c: E2 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 0E 00 [10:42:09]MH_I2C_Read... [10:42:09]Read from MH i2c: E2 0E 00 8A 3B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D2 [10:42:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:42:09]wFMCommunicate OK [10:42:09]SAM_PROTO_GetShiftState done [10:42:09]FM_GetShiftState done [10:42:09]req_shift_opened done [10:42:09]requested_item shift.open_date is exist - process it [10:42:09]req_shift_open_date [10:42:09]req_shift_open_date done [10:42:09]produce_requested_data done [10:42:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139387,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:42:09]process_action_free close_receipt [10:42:09]json_value_free [10:42:09]json_value_free done [10:42:09]process_json_proto returns [10:42:09]Send response to host [10:42:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139387,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:42:09]free response buf [10:42:09]execute_script done [10:42:09]execute_script returns [10:42:09]free content buf [10:42:09]Sock 8.Close socket [10:42:09]Sock 8.Thread stoped [10:42:13]OFD Sender: No OFD packet to send [10:42:18]OFD Sender: No OFD packet to send [10:42:23]OFD Sender: No OFD packet to send [10:42:28]OFD Sender: No OFD packet to send [10:42:33]OFD Sender: No OFD packet to send [10:42:38]OFD Sender: No OFD packet to send [10:42:43]OFD Sender: No OFD packet to send [10:42:48]OFD Sender: No OFD packet to send [10:42:53]OFD Sender: No OFD packet to send [10:42:58]OFD Sender: No OFD packet to send [10:43:03]OFD Sender: No OFD packet to send [10:43:08]OFD Sender: No OFD packet to send [10:43:11]accept exits with 9 [10:43:11]New connection [10:43:11]New thread 3067141476 created [10:43:11]Thread 3067284836 joined [10:43:11]Waiting for new connection... [10:43:11] Sock 9.Parse request [10:43:11]Sock 9.Check first char [10:43:11]Sock 9.First char is OK [10:43:11]request: POST /json_proto HTTP/1.0 [10:43:11]Method: POST [10:43:11]URL: /json_proto [10:43:11]Method is POST - this is cgi request [10:43:11]url: /json_proto [10:43:11]query_string will be loaded in cgi processing [10:43:11]execute_cgi json_proto POST (null) [10:43:11]execute_cgi path=json_proto method=POST [10:43:11]POST find Content-Length [10:43:11]Host: 172.17.50.196:8080 [10:43:11]Content-Length: 668 [10:43:11]Content-Type: application/json [10:43:11] [10:43:11]POST finish read [10:43:11]Found Content-Length = 668 [10:43:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335298", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:11]execute_script... [10:43: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 : (3)335298", "tax_sys" : 0, "items" : [ { "code": "4011100977624", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0411\u0430\u0443\u043D\u0442\u0438 55\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:43:11]POST & json_proto [10:43:11]process_json_proto [10:43:11]json parsed OK: [10:43:11]protocol is kg_v1.0 [10:43:11]action value=close_receipt [10:43:11]process_action close_receipt [10:43:11]cmd_close_receipt [10:43:11]MH_GetDate [10:43:11]Write to MH i2c: F0 00 00 8B 3B B5 [10:43:11]Write i2c OK [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: F0 [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: F0 09 00 [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: F0 09 00 8B 3B 00 C4 0D 22 67 72 0D 1C 67 1A [10:43:11]GetLastDocTimeStamp 1730284930 [10:43:11]current date 1730284996 [10:43:11]FM_GetShiftState [10:43:11]SAM_PROTO_GetShiftState [10:43:11]wFMCommunicate request_size=4 [10:43:11]MH_SAM_APDU [10:43:11]CAPDU: 80 13 01 00 [10:43:11]Write to MH i2c: E2 08 00 8C 3B 80 13 01 00 00 00 00 00 44 [10:43:11]Write i2c OK [10:43:11]MH_I2C_Read... [10:43:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:11]Read from MH i2c: E2 [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: E2 0E 00 [10:43:11]MH_I2C_Read... [10:43:11]Read from MH i2c: E2 0E 00 8C 3B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D4 [10:43:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:43:11]wFMCommunicate OK [10:43:11]SAM_PROTO_GetShiftState done [10:43:11]FM_GetShiftState done [10:43:11]opened in 1730246278 [10:43:11]opened+sec_in_day 1730332678 [10:43:11]quantity*price = 5900 [10:43:11]sum+1 = 5901 [10:43:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 72 30.10.2024 10:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139388 ФПД: 42035725161975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104316&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139388&fm=42035725161975&tin=02508201610067®Number=0000000000091631&sum=5900 0 [10:43:12]StoreToDocumentArchive [10:43:12]shift 556 fd 139388 [10:43:12]save to /storage/0556/doc_00139388 [10:43:12]save last doc name /storage/0556/doc_00139388 to /storage/kkm_last_doc_name [10:43:12]save OK [10:43:12]Clear old archive folders... [10:43:12]ProcessDocumentItem done err = 0, tmpTLVsize=283 [10:43:12]tlvbuf is 01112860 [10:43:12]SAM_PROTO_ClearQueue [10:43:12]wFMCommunicate request_size=4 [10:43:12]MH_SAM_APDU [10:43:12]CAPDU: 80 09 00 00 [10:43:12]Write to MH i2c: E2 08 00 99 3B 80 09 00 00 00 00 00 00 46 [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:43:12]Read from MH i2c: E2 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 03 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 03 00 99 3B 00 90 00 48 [10:43:12]RAPDU: 90 00 [10:43:12]wFMCommunicate OK [10:43:12]SAM_PROTO_ClearQueue done [10:43:12]KKMCreateOFDPacket [10:43:12]OFDProtocolAddRootSTLVToBuf [10:43:12]FM_MakeSignedData [10:43:12]FM_MakeSignedData [10:43:12]SAM_PROTO_SignData [10:43:12]wFMCommunicate request_size=4 [10:43:12]MH_SAM_APDU [10:43:12]CAPDU: 80 0D 01 02 [10:43:12]Write to MH i2c: E2 08 00 9A 3B 80 0D 01 02 00 00 00 00 4E [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:43:12]Read from MH i2c: E2 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 03 00 [10:43:12]MH_I2C_Read... [10:43:12]Read from MH i2c: E2 03 00 9A 3B 00 90 00 49 [10:43:12]RAPDU: 90 00 [10:43:12]wFMCommunicate OK [10:43:12]wFMCommunicate request_size=255 [10:43:12]MH_SAM_APDU [10:43:12]CAPDU: 80 0D 02 02 FA 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C4 0D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 [10:43:12]Write to MH i2c: E2 02 01 9B 3B 80 0D 02 02 FA 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C4 0D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 00 00 77 [10:43:12]Write i2c OK [10:43:12]MH_I2C_Read... [10:43:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:13]Read from MH i2c: E2 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 03 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 03 00 9B 3B 00 90 00 4A [10:43:13]RAPDU: 90 00 [10:43:13]wFMCommunicate OK [10:43:13]wFMCommunicate request_size=42 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 0D 02 02 25 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 20 02 00 35 04 06 00 26 3B 34 77 55 F7 [10:43:13]Write to MH i2c: E2 2D 00 9C 3B 80 0D 02 02 25 00 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 20 02 00 35 04 06 00 26 3B 34 77 55 F7 00 00 24 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:43:13]Read from MH i2c: E2 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 03 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 03 00 9C 3B 00 90 00 4B [10:43:13]RAPDU: 90 00 [10:43:13]wFMCommunicate OK [10:43:13]wFMCommunicate request_size=4 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 0D 03 02 [10:43:13]Write to MH i2c: E2 08 00 9D 3B 80 0D 03 02 00 00 00 00 53 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:43:13]Read from MH i2c: E2 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 0B 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 0B 00 9D 3B 00 F8 C8 A9 61 32 BD 50 3B 90 00 98 [10:43:13]RAPDU: F8 C8 A9 61 32 BD 50 3B 90 00 [10:43:13]wFMCommunicate OK [10:43:13]SAM_PROTO_SignData done [10:43:13]FM_MakeSignedData done [10:43:13]CreateOFDProtocolMessage [10:43:13]wFMCommunicate request_size=4 [10:43:13]MH_SAM_APDU [10:43:13]CAPDU: 80 11 00 00 [10:43:13]Write to MH i2c: E2 08 00 9E 3B 80 11 00 00 00 00 00 00 53 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:13]Read from MH i2c: E2 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 17 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: E2 17 00 9E 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AE [10:43:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:43:13]wFMCommunicate OK [10:43:13]CreateOFDProtocolMessage done [10:43:13]OFDSenderStorePacket 139388 [10:43:13]StoreOFDPacket docnum=139388 [10:43:13]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 BD 1B 27 01 04 30 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C4 0D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 20 02 00 35 04 06 00 26 3B 34 77 55 F7 F8 C8 A9 61 32 BD 50 3B [10:43:13]CheckFolder [10:43:13]dirname=/storage/ofd_packets [10:43:13]CheckFolder done [10:43:13]ProducePacketName [10:43:13]name=ofd_packets/00139388 [10:43:13]NVStorageSaveData ofd_packets/00139388 [10:43:13]File name is /storage/ofd_packets/00139388 [10:43:13]Write 333 bytes [10:43:13]NVStorageSaveData done [10:43:13]OFDSenderStorePacket done [10:43:13]KKMCreateOFDPacket done [10:43:13]NVStorageSaveData kkm_last_timestamp [10:43:13]File name is /storage/kkm_last_timestamp [10:43:13]Write 4 bytes [10:43:13]NVStorageSaveData done [10:43:13]ExternCall_PrintAddStr [10:43:13]wPrintStart [10:43:13]Write to MH i2c: 01 00 00 9F 3B DA [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: 01 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: 01 07 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: 01 07 00 9F 3B 00 00 00 00 00 FF 0F EF [10:43:13]RasterBufferAndPrint [10:43:13]line Счет N : (3)335298 [10:43:13]line ИНН: 02508201610067 [10:43:13]line Контрольно-Кассовый Чек [10:43:13]line ПРОДАЖА [10:43:13]line Товар: 4011100977624 [10:43:13]line Шок Батончик Баунти 55г [10:43:13]line 1.000 * 59.00 [10:43:13]line = 59.00 [10:43:13]line НДС 12% НСП 1% [10:43:13]line > о реализуемом товаре [10:43:13]line ИТОГО: 59.00 [10:43:13]line НСП 1% : 0.52 [10:43:13]line НДС 12% : 6.26 [10:43:13]line Наличными: 59.00 [10:43:13]line Безнал.: 0.00 [10:43:13]line Место: АЗС № 101 "Партнер Нефть" [10:43:13]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:43:13]line СНО: Общий режим [10:43:13]line Чек 72 30.10.2024 10:43 [10:43:13]line Смена: 556 ФФД: 1.0 [10:43:13]line ЗНМ: 0300000081 [10:43:13]line РНМ: 0000000000091631 [10:43:13]line Версия ККМ: 001 [10:43:13]line ФМ: 0000000000874669 [10:43:13]line ФД: 139388 [10:43:13]line ФПД: 42035725161975 [10:43:13]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104316&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139388&fm=42035725161975&tin=02508201610067®Number=0000000000091631&sum=5900 [10:43:13]line 0 [10:43:13]OFD Sender: Processing packet 139388 [packets to send 34, broken 33] [10:43:13]ProducePacketName [10:43:13]name=ofd_packets/00139388 [10:43:13]OFD Sender: To server: pG, [10:43:13]CommunicateWithHost lk.salyk.kg:30040 [10:43:13]ConnectInit lk.salyk.kg [10:43:13]written 0, free lines is 4095 [10:43:13]Connected sock=10 [10:43:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2F 01 00 00 BD 1B 27 01 04 30 5A 03 01 00 03 00 1B 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 30 31 31 31 30 30 39 37 37 36 32 34 06 04 29 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 91 D0 B0 D1 83 D0 BD D1 82 D0 B8 20 35 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 48 00 00 00 F4 03 04 00 C4 0D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 20 02 00 35 04 06 00 26 3B 34 77 55 F7 F8 C8 A9 61 32 BD 50 3B [10:43:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 41 51 47 00 14 D2 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7C 20 02 00 F4 03 04 00 75 B9 21 67 B6 04 01 00 00 BD EA FA 84 F3 C8 76 60 [10:43:13]CommunicateWithHost err = 0 [10:43:13]CheckOFDResponse [10:43:13]1017 (14) - 77093643461234 [10:43:13]1041 (16) - 0000000000874669 [10:43:13]1040 (4) - 139388 [10:43:13]1012 (4) - 30.10.2024 04:43 [10:43:13]1206 (1) - 0 [10:43:13]OFD Sender: Remove packet 139388 [10:43:13]ProducePacketName [10:43:13]name=ofd_packets/00139388 [10:43:13]NVStorageDeleteData [10:43:13]Write to MH i2c: 01 00 00 C7 3B 02 [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: 01 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: 01 07 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: 01 07 00 C7 3B 00 00 00 00 00 0C 0D 22 [10:43:13]RasterBufferAndPrint [10:43:13]line [10:43:13]line [10:43:13]line [10:43:13]line [10:43:13]line [10:43:13]written 0, free lines is 3349 [10:43:13]MH_Cut [10:43:13]Write to MH i2c: D1 01 00 CE 3B 01 DB [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: D1 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: D1 01 00 [10:43:13]MH_I2C_Read... [10:43:13]Read from MH i2c: D1 01 00 CE 3B 00 DA [10:43:13]Write to MH i2c: 01 00 00 CF 3B 0A [10:43:13]Write i2c OK [10:43:13]MH_I2C_Read... [10:43:14]OFD Sender: No OFD packet to send [10:43:14]*** Cut start [10:43:14]*** Partial cut [10:43:14]*** CUTSNS_PIN = 1 [10:43:14]*** CUTSNS_PIN = 0 [10:43:14]*** Brake cut motor [10:43:15]Read from MH i2c: 01 [10:43:15]MH_I2C_Read... [10:43:15]*** Stop cut motor [10:43:15]*** Cut end [10:43:15]Read from MH i2c: 01 07 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: 01 07 00 CF 3B 00 00 00 00 00 FF 0F 1F [10:43:15]process_action close_receipt done [10:43:15]requested_data is exist [10:43:15]produce_requested_data [10:43:15]requested_item fm.sn is exist - process it [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 11 00 00 [10:43:15]Write to MH i2c: E2 08 00 D0 3B 80 11 00 00 00 00 00 00 85 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 17 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 17 00 D0 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E0 [10:43:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:43:15]wFMCommunicate OK [10:43:15]requested_item fd.num is exist - process it [10:43:15]SAM_PROTO_GetFieldsCounters [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 13 00 00 [10:43:15]Write to MH i2c: E2 08 00 D1 3B 80 13 00 00 00 00 00 00 88 [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 62 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 62 00 D1 3B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7C 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 50 [10:43:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7C 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 48 00 00 00 5E 04 04 00 48 00 00 00 57 04 04 00 49 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:43:15]wFMCommunicate OK [10:43:15]SAM_PROTO_GetFieldsCounters done [10:43:15]requested_item shift.num is exist - process it [10:43:15]requested_item shift.opened is exist - process it [10:43:15]req_shift_opened [10:43:15]FM_GetShiftState [10:43:15]SAM_PROTO_GetShiftState [10:43:15]wFMCommunicate request_size=4 [10:43:15]MH_SAM_APDU [10:43:15]CAPDU: 80 13 01 00 [10:43:15]Write to MH i2c: E2 08 00 D2 3B 80 13 01 00 00 00 00 00 8A [10:43:15]Write i2c OK [10:43:15]MH_I2C_Read... [10:43:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:43:15]Read from MH i2c: E2 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0E 00 [10:43:15]MH_I2C_Read... [10:43:15]Read from MH i2c: E2 0E 00 D2 3B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 1A [10:43:15]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:43:15]wFMCommunicate OK [10:43:15]SAM_PROTO_GetShiftState done [10:43:15]FM_GetShiftState done [10:43:15]req_shift_opened done [10:43:15]requested_item shift.open_date is exist - process it [10:43:15]req_shift_open_date [10:43:15]req_shift_open_date done [10:43:15]produce_requested_data done [10:43:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139388,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:43:15]process_action_free close_receipt [10:43:15]json_value_free [10:43:15]json_value_free done [10:43:15]process_json_proto returns [10:43:15]Send response to host [10:43:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139388,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:43:15]free response buf [10:43:15]execute_script done [10:43:15]execute_script returns [10:43:15]free content buf [10:43:15]Sock 9.Close socket [10:43:15]Sock 9.Thread stoped [10:43:19]OFD Sender: No OFD packet to send [10:43:24]OFD Sender: No OFD packet to send [10:43:29]OFD Sender: No OFD packet to send [10:43:34]OFD Sender: No OFD packet to send [10:43:39]OFD Sender: No OFD packet to send [10:43:44]OFD Sender: No OFD packet to send [10:43:49]OFD Sender: No OFD packet to send [10:43:54]OFD Sender: No OFD packet to send [10:43:59]OFD Sender: No OFD packet to send [10:44:04]OFD Sender: No OFD packet to send [10:44:09]OFD Sender: No OFD packet to send [10:44:14]OFD Sender: No OFD packet to send [10:44:19]OFD Sender: No OFD packet to send [10:44:24]OFD Sender: No OFD packet to send [10:44:29]OFD Sender: No OFD packet to send [10:44:34]OFD Sender: No OFD packet to send [10:44:39]OFD Sender: No OFD packet to send [10:44:44]OFD Sender: No OFD packet to send [10:44:49]OFD Sender: No OFD packet to send [10:44:54]OFD Sender: No OFD packet to send [10:44:59]OFD Sender: No OFD packet to send [10:45:04]OFD Sender: No OFD packet to send [10:45:09]OFD Sender: No OFD packet to send [10:45:14]OFD Sender: No OFD packet to send [10:45:19]OFD Sender: No OFD packet to send [10:45:24]OFD Sender: No OFD packet to send [10:45:29]OFD Sender: No OFD packet to send [10:45:34]OFD Sender: No OFD packet to send [10:45:39]OFD Sender: No OFD packet to send [10:45:41]accept exits with 8 [10:45:41]New connection [10:45:41]New thread 3067284836 created [10:45:41]Thread 3067141476 joined [10:45:41]Waiting for new connection... [10:45:41] Sock 8.Parse request [10:45:41]Sock 8.Check first char [10:45:41]Sock 8.First char is OK [10:45:41]request: POST /json_proto HTTP/1.0 [10:45:41]Method: POST [10:45:41]URL: /json_proto [10:45:41]Method is POST - this is cgi request [10:45:41]url: /json_proto [10:45:41]query_string will be loaded in cgi processing [10:45:41]execute_cgi json_proto POST (null) [10:45:41]execute_cgi path=json_proto method=POST [10:45:41]POST find Content-Length [10:45:41]Host: 172.17.50.196:8080 [10:45:41]Content-Length: 689 [10:45:41]Content-Type: application/json [10:45:41] [10:45:41]POST finish read [10:45:41]Found Content-Length = 689 [10:45:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194800", "name": "D-ENERGY \u0414\u0442-\u041A-2", "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" ] } } [10:45:41]execute_script... [10:45: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)1094399", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194800", "name": "D-ENERGY \u0414\u0442-\u041A-2", "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" ] } } [10:45:41]POST & json_proto [10:45:41]process_json_proto [10:45:41]json parsed OK: [10:45:41]protocol is kg_v1.0 [10:45:41]action value=close_receipt [10:45:41]process_action close_receipt [10:45:41]cmd_close_receipt [10:45:41]MH_GetDate [10:45:41]Write to MH i2c: F0 00 00 D3 3B FD [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: F0 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: F0 09 00 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: F0 09 00 D3 3B 00 5A 0E 22 67 72 0D 1C 67 F9 [10:45:41]GetLastDocTimeStamp 1730284996 [10:45:41]current date 1730285146 [10:45:41]FM_GetShiftState [10:45:41]SAM_PROTO_GetShiftState [10:45:41]wFMCommunicate request_size=4 [10:45:41]MH_SAM_APDU [10:45:41]CAPDU: 80 13 01 00 [10:45:41]Write to MH i2c: E2 08 00 D4 3B 80 13 01 00 00 00 00 00 8C [10:45:41]Write i2c OK [10:45:41]MH_I2C_Read... [10:45:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:41]Read from MH i2c: E2 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: E2 0E 00 [10:45:41]MH_I2C_Read... [10:45:41]Read from MH i2c: E2 0E 00 D4 3B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 1C [10:45:41]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:45:41]wFMCommunicate OK [10:45:41]SAM_PROTO_GetShiftState done [10:45:41]FM_GetShiftState done [10:45:41]opened in 1730246278 [10:45:41]opened+sec_in_day 1730332678 [10:45:41]quantity*price = 300076 [10:45:41]sum+1 = 300077 [10:45: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 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 73 30.10.2024 10:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139389 ФПД: 160431343744958 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104546&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139389&fm=160431343744958&tin=02508201610067®Number=0000000000091631&sum=300000 [10:45:42]StoreToDocumentArchive [10:45:42]shift 556 fd 139389 [10:45:42]save to /storage/0556/doc_00139389 [10:45:42]save last doc name /storage/0556/doc_00139389 to /storage/kkm_last_doc_name [10:45:42]save OK [10:45:42]Clear old archive folders... [10:45:42]ProcessDocumentItem done err = 0, tmpTLVsize=257 [10:45:42]tlvbuf is 011677B0 [10:45:42]SAM_PROTO_ClearQueue [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 09 00 00 [10:45:42]Write to MH i2c: E2 08 00 E1 3B 80 09 00 00 00 00 00 00 8E [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 03 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 03 00 E1 3B 00 90 00 90 [10:45:42]RAPDU: 90 00 [10:45:42]wFMCommunicate OK [10:45:42]SAM_PROTO_ClearQueue done [10:45:42]KKMCreateOFDPacket [10:45:42]OFDProtocolAddRootSTLVToBuf [10:45:42]FM_MakeSignedData [10:45:42]FM_MakeSignedData [10:45:42]SAM_PROTO_SignData [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 0D 01 02 [10:45:42]Write to MH i2c: E2 08 00 E2 3B 80 0D 01 02 00 00 00 00 96 [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 03 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 03 00 E2 3B 00 90 00 91 [10:45:42]RAPDU: 90 00 [10:45:42]wFMCommunicate OK [10:45:42]wFMCommunicate request_size=255 [10:45:42]MH_SAM_APDU [10:45: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 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 5A 0E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 20 02 [10:45:42]Write to MH i2c: E2 02 01 E3 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 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 5A 0E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 20 02 00 00 DC [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 03 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 03 00 E3 3B 00 90 00 92 [10:45:42]RAPDU: 90 00 [10:45:42]wFMCommunicate OK [10:45:42]wFMCommunicate request_size=16 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 91 E9 55 41 37 BE [10:45:42]Write to MH i2c: E2 13 00 E4 3B 80 0D 02 02 0B 00 00 35 04 06 00 91 E9 55 41 37 BE 00 00 F3 [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 03 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 03 00 E4 3B 00 90 00 93 [10:45:42]RAPDU: 90 00 [10:45:42]wFMCommunicate OK [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 0D 03 02 [10:45:42]Write to MH i2c: E2 08 00 E5 3B 80 0D 03 02 00 00 00 00 9B [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 0B 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 0B 00 E5 3B 00 3D A1 BB 9A 0A A7 C6 8A 90 00 D0 [10:45:42]RAPDU: 3D A1 BB 9A 0A A7 C6 8A 90 00 [10:45:42]wFMCommunicate OK [10:45:42]SAM_PROTO_SignData done [10:45:42]FM_MakeSignedData done [10:45:42]CreateOFDProtocolMessage [10:45:42]wFMCommunicate request_size=4 [10:45:42]MH_SAM_APDU [10:45:42]CAPDU: 80 11 00 00 [10:45:42]Write to MH i2c: E2 08 00 E6 3B 80 11 00 00 00 00 00 00 9B [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:42]Read from MH i2c: E2 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 17 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: E2 17 00 E6 3B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F6 [10:45:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:45:42]wFMCommunicate OK [10:45:42]CreateOFDProtocolMessage done [10:45:42]OFDSenderStorePacket 139389 [10:45:42]StoreOFDPacket docnum=139389 [10:45:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 E5 68 0D 01 3C 93 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 5A 0E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 20 02 00 35 04 06 00 91 E9 55 41 37 BE 3D A1 BB 9A 0A A7 C6 8A [10:45:42]CheckFolder [10:45:42]dirname=/storage/ofd_packets [10:45:42]CheckFolder done [10:45:42]ProducePacketName [10:45:42]name=ofd_packets/00139389 [10:45:42]NVStorageSaveData ofd_packets/00139389 [10:45:42]File name is /storage/ofd_packets/00139389 [10:45:42]Write 307 bytes [10:45:42]NVStorageSaveData done [10:45:42]OFDSenderStorePacket done [10:45:42]KKMCreateOFDPacket done [10:45:42]NVStorageSaveData kkm_last_timestamp [10:45:42]File name is /storage/kkm_last_timestamp [10:45:42]Write 4 bytes [10:45:42]NVStorageSaveData done [10:45:42]ExternCall_PrintAddStr [10:45:42]wPrintStart [10:45:42]Write to MH i2c: 01 00 00 E7 3B 22 [10:45:42]Write i2c OK [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: 01 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: 01 07 00 [10:45:42]MH_I2C_Read... [10:45:42]Read from MH i2c: 01 07 00 E7 3B 00 00 00 00 00 FF 0F 37 [10:45:42]RasterBufferAndPrint [10:45:42]line Счет N : (1)1094399 [10:45:42]line ИНН: 02508201610067 [10:45:42]line Контрольно-Кассовый Чек [10:45:42]line ПРОДАЖА [10:45:42]line ТРК (МРК, ГНК) : 12 [10:45:42]line Товар: 2710194800 [10:45:42]line D-ENERGY Дт-К-2 [10:45:42]line 38.870 * 77.20 [10:45:42]line = 3000.76 [10:45:42]line НДС 12% НСП 1% [10:45:42]line > о реализуемом товаре [10:45:42]line ОКРУГЛЕНИЕ: -0.76 [10:45:42]line ИТОГО: 3000.00 [10:45:42]line Внесено: 3000.00 [10:45:42]line СДАЧА: 0.00 [10:45:42]line НСП 1% : 26.55 [10:45:42]line НДС 12% : 318.66 [10:45:42]line Наличными: 3000.00 [10:45:42]line Безнал.: 0.00 [10:45:42]line Место: АЗС № 101 "Партнер Нефть" [10:45:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:45:42]line СНО: Общий режим [10:45:42]line Чек 73 30.10.2024 10:45 [10:45:42]line Смена: 556 ФФД: 1.0 [10:45:42]line ЗНМ: 0300000081 [10:45:42]line РНМ: 0000000000091631 [10:45:42]line Версия ККМ: 001 [10:45:42]line ФМ: 0000000000874669 [10:45:42]line ФД: 139389 [10:45:42]line ФПД: 160431343744958 [10:45:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T104546&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139389&fm=160431343744958&tin=02508201610067®Number=0000000000091631&sum=300000 [10:45:43]OFD Sender: Processing packet 139389 [packets to send 34, broken 33] [10:45:43]ProducePacketName [10:45:43]name=ofd_packets/00139389 [10:45:43]OFD Sender: To server: pG, [10:45:43]CommunicateWithHost lk.salyk.kg:30040 [10:45:43]ConnectInit lk.salyk.kg [10:45:43]written 0, free lines is 4095 [10:45:43]Connected sock=10 [10:45:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 E5 68 0D 01 3C 93 5A 03 01 00 03 00 01 01 1E 04 01 00 01 23 04 53 00 8A 04 0A 00 32 37 31 30 31 39 34 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 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 49 00 00 00 F4 03 04 00 5A 0E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7D 20 02 00 35 04 06 00 91 E9 55 41 37 BE 3D A1 BB 9A 0A A7 C6 8A [10:45:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9E 71 47 00 C6 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 38 37 34 36 36 39 10 04 04 00 7D 20 02 00 F4 03 04 00 0A BA 21 67 B6 04 01 00 00 AA 3B DB 11 F1 48 29 76 [10:45:43]CommunicateWithHost err = 0 [10:45:43]CheckOFDResponse [10:45:43]1017 (14) - 77093643461234 [10:45:43]1041 (16) - 0000000000874669 [10:45:43]1040 (4) - 139389 [10:45:43]1012 (4) - 30.10.2024 04:46 [10:45:43]1206 (1) - 0 [10:45:43]OFD Sender: Remove packet 139389 [10:45:43]ProducePacketName [10:45:43]name=ofd_packets/00139389 [10:45:43]NVStorageDeleteData [10:45:43]Write to MH i2c: 01 00 00 12 3C 4E [10:45:43]Write i2c OK [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: 01 [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: 01 07 00 [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: 01 07 00 12 3C 00 00 00 00 00 F9 0C 5A [10:45:43]RasterBufferAndPrint [10:45:43]line [10:45:43]line [10:45:43]line [10:45:43]line [10:45:43]line [10:45:43]written 0, free lines is 3327 [10:45:43]MH_Cut [10:45:43]Write to MH i2c: D1 01 00 19 3C 01 27 [10:45:43]Write i2c OK [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: D1 [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: D1 01 00 [10:45:43]MH_I2C_Read... [10:45:43]Read from MH i2c: D1 01 00 19 3C 00 26 [10:45:43]Write to MH i2c: 01 00 00 1A 3C 56 [10:45:43]Write i2c OK [10:45:43]MH_I2C_Read... [10:45:44]OFD Sender: No OFD packet to send [10:45:44]*** Cut start [10:45:44]*** Partial cut [10:45:44]*** CUTSNS_PIN = 1 [10:45:44]*** CUTSNS_PIN = 0 [10:45:44]*** Brake cut motor [10:45:44]Read from MH i2c: 01 [10:45:44]MH_I2C_Read... [10:45:44]*** Stop cut motor [10:45:45]*** Cut end [10:45:45]Read from MH i2c: 01 07 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: 01 07 00 1A 3C 00 00 00 00 00 FF 0F 6B [10:45:45]process_action close_receipt done [10:45:45]requested_data is exist [10:45:45]produce_requested_data [10:45:45]requested_item fm.sn is exist - process it [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 11 00 00 [10:45:45]Write to MH i2c: E2 08 00 1B 3C 80 11 00 00 00 00 00 00 D1 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 17 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 17 00 1B 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2C [10:45:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:45:45]wFMCommunicate OK [10:45:45]requested_item fd.num is exist - process it [10:45:45]SAM_PROTO_GetFieldsCounters [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 13 00 00 [10:45:45]Write to MH i2c: E2 08 00 1C 3C 80 13 00 00 00 00 00 00 D4 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 62 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 62 00 1C 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7D 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 A0 [10:45:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7D 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 49 00 00 00 5E 04 04 00 49 00 00 00 57 04 04 00 4A 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:45:45]wFMCommunicate OK [10:45:45]SAM_PROTO_GetFieldsCounters done [10:45:45]requested_item shift.num is exist - process it [10:45:45]requested_item shift.opened is exist - process it [10:45:45]req_shift_opened [10:45:45]FM_GetShiftState [10:45:45]SAM_PROTO_GetShiftState [10:45:45]wFMCommunicate request_size=4 [10:45:45]MH_SAM_APDU [10:45:45]CAPDU: 80 13 01 00 [10:45:45]Write to MH i2c: E2 08 00 1D 3C 80 13 01 00 00 00 00 00 D6 [10:45:45]Write i2c OK [10:45:45]MH_I2C_Read... [10:45:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:45:45]Read from MH i2c: E2 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 0E 00 [10:45:45]MH_I2C_Read... [10:45:45]Read from MH i2c: E2 0E 00 1D 3C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 66 [10:45:45]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:45:45]wFMCommunicate OK [10:45:45]SAM_PROTO_GetShiftState done [10:45:45]FM_GetShiftState done [10:45:45]req_shift_opened done [10:45:45]requested_item shift.open_date is exist - process it [10:45:45]req_shift_open_date [10:45:45]req_shift_open_date done [10:45:45]produce_requested_data done [10:45:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139389,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:45:45]process_action_free close_receipt [10:45:45]json_value_free [10:45:45]json_value_free done [10:45:45]process_json_proto returns [10:45:45]Send response to host [10:45:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139389,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:45:45]free response buf [10:45:45]execute_script done [10:45:45]execute_script returns [10:45:45]free content buf [10:45:45]Sock 8.Close socket [10:45:45]Sock 8.Thread stoped [10:45:49]OFD Sender: No OFD packet to send [10:45:54]OFD Sender: No OFD packet to send [10:45:59]OFD Sender: No OFD packet to send [10:46:04]OFD Sender: No OFD packet to send [10:46:09]OFD Sender: No OFD packet to send [10:46:14]OFD Sender: No OFD packet to send [10:46:19]OFD Sender: No OFD packet to send [10:46:24]OFD Sender: No OFD packet to send [10:46:29]OFD Sender: No OFD packet to send [10:46:34]OFD Sender: No OFD packet to send [10:46:39]OFD Sender: No OFD packet to send [10:46:44]OFD Sender: No OFD packet to send [10:46:49]OFD Sender: No OFD packet to send [10:46:54]OFD Sender: No OFD packet to send [10:46:59]OFD Sender: No OFD packet to send [10:47:04]OFD Sender: No OFD packet to send [10:47:09]OFD Sender: No OFD packet to send [10:47:14]OFD Sender: No OFD packet to send [10:47:19]OFD Sender: No OFD packet to send [10:47:24]OFD Sender: No OFD packet to send [10:47:29]OFD Sender: No OFD packet to send [10:47:34]OFD Sender: No OFD packet to send [10:47:39]OFD Sender: No OFD packet to send [10:47:44]OFD Sender: No OFD packet to send [10:47:49]OFD Sender: No OFD packet to send [10:47:54]OFD Sender: No OFD packet to send [10:47:59]OFD Sender: No OFD packet to send [10:48:04]OFD Sender: No OFD packet to send [10:48:09]OFD Sender: No OFD packet to send [10:48:14]OFD Sender: No OFD packet to send [10:48:19]OFD Sender: No OFD packet to send [10:48:24]OFD Sender: No OFD packet to send [10:48:29]OFD Sender: No OFD packet to send [10:48:34]OFD Sender: No OFD packet to send [10:48:39]OFD Sender: No OFD packet to send [10:48:44]OFD Sender: No OFD packet to send [10:48:49]OFD Sender: No OFD packet to send [10:48:54]OFD Sender: No OFD packet to send [10:48:59]OFD Sender: No OFD packet to send [10:49:04]OFD Sender: No OFD packet to send [10:49:09]OFD Sender: No OFD packet to send [10:49:14]OFD Sender: No OFD packet to send [10:49:19]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:49]OFD Sender: No OFD packet to send [10:49:54]OFD Sender: No OFD packet to send [10:49:59]OFD Sender: No OFD packet to send [10:50:04]OFD Sender: No OFD packet to send [10:50:09]OFD Sender: No OFD packet to send [10:50:14]OFD Sender: No OFD packet to send [10:50:19]OFD Sender: No OFD packet to send [10:50:24]OFD Sender: No OFD packet to send [10:50:29]OFD Sender: No OFD packet to send [10:50:34]OFD Sender: No OFD packet to send [10:50:39]OFD Sender: No OFD packet to send [10:50:44]OFD Sender: No OFD packet to send [10:50:48]accept exits with 9 [10:50:48]New connection [10:50:48]New thread 3067141476 created [10:50:48]Thread 3067284836 joined [10:50:48]Waiting for new connection... [10:50:48] Sock 9.Parse request [10:50:48]Sock 9.Check first char [10:50:48]Sock 9.First char is OK [10:50:48]request: POST /json_proto HTTP/1.0 [10:50:48]Method: POST [10:50:48]URL: /json_proto [10:50:48]Method is POST - this is cgi request [10:50:48]url: /json_proto [10:50:48]query_string will be loaded in cgi processing [10:50:48]execute_cgi json_proto POST (null) [10:50:48]execute_cgi path=json_proto method=POST [10:50:48]POST find Content-Length [10:50:48]Host: 172.17.50.196:8080 [10:50:48]Content-Length: 700 [10:50:48]Content-Type: application/json [10:50:48] [10:50:48]POST finish read [10:50:48]Found Content-Length = 700 [10:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335302", "tax_sys" : 0, "items" : [ { "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:48]execute_script... [10: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 : (3)335302", "tax_sys" : 0, "items" : [ { "code": "4607010740757", "name": "\u0427\u0438\u043F\u0441\u044B \u0427\u0438\u043F\u0441\u043E\u043D\u044B \u0441\u043C\u0435\u0442\u0430\u043D\u0430, \u043B\u0443\u043A 40\u0433", "price" : 45.00, "quantity" : 1.000, "sum" : 45.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 45.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:50:48]POST & json_proto [10:50:48]process_json_proto [10:50:48]json parsed OK: [10:50:48]protocol is kg_v1.0 [10:50:48]action value=close_receipt [10:50:48]process_action close_receipt [10:50:48]cmd_close_receipt [10:50:48]MH_GetDate [10:50:48]Write to MH i2c: F0 00 00 1E 3C 49 [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: F0 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: F0 09 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: F0 09 00 1E 3C 00 8D 0F 22 67 72 0D 1C 67 79 [10:50:48]GetLastDocTimeStamp 1730285146 [10:50:48]current date 1730285453 [10:50:48]FM_GetShiftState [10:50:48]SAM_PROTO_GetShiftState [10:50:48]wFMCommunicate request_size=4 [10:50:48]MH_SAM_APDU [10:50:48]CAPDU: 80 13 01 00 [10:50:48]Write to MH i2c: E2 08 00 1F 3C 80 13 01 00 00 00 00 00 D8 [10:50:48]Write i2c OK [10:50:48]MH_I2C_Read... [10:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:48]Read from MH i2c: E2 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 0E 00 [10:50:48]MH_I2C_Read... [10:50:48]Read from MH i2c: E2 0E 00 1F 3C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 68 [10:50:48]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:50:48]wFMCommunicate OK [10:50:48]SAM_PROTO_GetShiftState done [10:50:48]FM_GetShiftState done [10:50:48]opened in 1730246278 [10:50:48]opened+sec_in_day 1730332678 [10:50:48]quantity*price = 4500 [10:50:48]sum+1 = 4501 [10:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 45.00 НСП 1% : 0.40 НДС 12% : 4.78 Наличными: 45.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 74 30.10.2024 10:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139390 ФПД: 181170565364336 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105053&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139390&fm=181170565364336&tin=02508201610067®Number=0000000000091631&sum=4500 0 [10:50:49]StoreToDocumentArchive [10:50:49]shift 556 fd 139390 [10:50:49]save to /storage/0556/doc_00139390 [10:50:49]save last doc name /storage/0556/doc_00139390 to /storage/kkm_last_doc_name [10:50:49]save OK [10:50:49]Clear old archive folders... [10:50:49]ProcessDocumentItem done err = 0, tmpTLVsize=295 [10:50:49]tlvbuf is 01167BA0 [10:50:49]SAM_PROTO_ClearQueue [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 09 00 00 [10:50:49]Write to MH i2c: E2 08 00 2C 3C 80 09 00 00 00 00 00 00 DA [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 2C 3C 00 90 00 DC [10:50:49]RAPDU: 90 00 [10:50:49]wFMCommunicate OK [10:50:49]SAM_PROTO_ClearQueue done [10:50:49]KKMCreateOFDPacket [10:50:49]OFDProtocolAddRootSTLVToBuf [10:50:49]FM_MakeSignedData [10:50:49]FM_MakeSignedData [10:50:49]SAM_PROTO_SignData [10:50:49]wFMCommunicate request_size=4 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 0D 01 02 [10:50:49]Write to MH i2c: E2 08 00 2D 3C 80 0D 01 02 00 00 00 00 E2 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 2D 3C 00 90 00 DD [10:50:49]RAPDU: 90 00 [10:50:49]wFMCommunicate OK [10:50:49]wFMCommunicate request_size=255 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 0D 02 02 FA 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8D 0F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 [10:50:49]Write to MH i2c: E2 02 01 2E 3C 80 0D 02 02 FA 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8D 0F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 00 00 D3 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:49]Read from MH i2c: E2 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 [10:50:49]MH_I2C_Read... [10:50:49]Read from MH i2c: E2 03 00 2E 3C 00 90 00 DE [10:50:49]RAPDU: 90 00 [10:50:49]wFMCommunicate OK [10:50:49]wFMCommunicate request_size=54 [10:50:49]MH_SAM_APDU [10:50:49]CAPDU: 80 0D 02 02 31 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 20 02 00 35 04 06 00 A4 C6 0F 31 3A 70 [10:50:49]Write to MH i2c: E2 39 00 2F 3C 80 0D 02 02 31 00 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 20 02 00 35 04 06 00 A4 C6 0F 31 3A 70 00 00 03 [10:50:49]Write i2c OK [10:50:49]MH_I2C_Read... [10:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:50:50]Read from MH i2c: E2 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 03 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 03 00 2F 3C 00 90 00 DF [10:50:50]RAPDU: 90 00 [10:50:50]wFMCommunicate OK [10:50:50]wFMCommunicate request_size=4 [10:50:50]MH_SAM_APDU [10:50:50]CAPDU: 80 0D 03 02 [10:50:50]Write to MH i2c: E2 08 00 30 3C 80 0D 03 02 00 00 00 00 E7 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:50:50]Read from MH i2c: E2 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 0B 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 0B 00 30 3C 00 6B 06 59 C6 0C D6 32 BC 90 00 48 [10:50:50]RAPDU: 6B 06 59 C6 0C D6 32 BC 90 00 [10:50:50]wFMCommunicate OK [10:50:50]SAM_PROTO_SignData done [10:50:50]FM_MakeSignedData done [10:50:50]CreateOFDProtocolMessage [10:50:50]wFMCommunicate request_size=4 [10:50:50]MH_SAM_APDU [10:50:50]CAPDU: 80 11 00 00 [10:50:50]Write to MH i2c: E2 08 00 31 3C 80 11 00 00 00 00 00 00 E7 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:50]Read from MH i2c: E2 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 17 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: E2 17 00 31 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 42 [10:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:50:50]wFMCommunicate OK [10:50:50]CreateOFDProtocolMessage done [10:50:50]OFDSenderStorePacket 139390 [10:50:50]StoreOFDPacket docnum=139390 [10:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3B 01 00 00 53 C3 33 01 69 9D 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8D 0F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 20 02 00 35 04 06 00 A4 C6 0F 31 3A 70 6B 06 59 C6 0C D6 32 BC [10:50:50]CheckFolder [10:50:50]dirname=/storage/ofd_packets [10:50:50]CheckFolder done [10:50:50]ProducePacketName [10:50:50]name=ofd_packets/00139390 [10:50:50]NVStorageSaveData ofd_packets/00139390 [10:50:50]File name is /storage/ofd_packets/00139390 [10:50:50]Write 345 bytes [10:50:50]NVStorageSaveData done [10:50:50]OFDSenderStorePacket done [10:50:50]KKMCreateOFDPacket done [10:50:50]NVStorageSaveData kkm_last_timestamp [10:50:50]File name is /storage/kkm_last_timestamp [10:50:50]Write 4 bytes [10:50:50]NVStorageSaveData done [10:50:50]ExternCall_PrintAddStr [10:50:50]wPrintStart [10:50:50]Write to MH i2c: 01 00 00 32 3C 6E [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 07 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 07 00 32 3C 00 00 00 00 00 FF 0F 83 [10:50:50]RasterBufferAndPrint [10:50:50]line Счет N : (3)335302 [10:50:50]line ИНН: 02508201610067 [10:50:50]line Контрольно-Кассовый Чек [10:50:50]line ПРОДАЖА [10:50:50]line Товар: 4607010740757 [10:50:50]line Чипсы Чипсоны сметана, лук 40г [10:50:50]line 1.000 * 45.00 [10:50:50]line = 45.00 [10:50:50]line НДС 12% НСП 1% [10:50:50]line > о реализуемом товаре [10:50:50]line ИТОГО: 45.00 [10:50:50]line НСП 1% : 0.40 [10:50:50]line НДС 12% : 4.78 [10:50:50]line Наличными: 45.00 [10:50:50]line Безнал.: 0.00 [10:50:50]line Место: АЗС № 101 "Партнер Нефть" [10:50:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:50:50]line СНО: Общий режим [10:50:50]line Чек 74 30.10.2024 10:50 [10:50:50]line Смена: 556 ФФД: 1.0 [10:50:50]line ЗНМ: 0300000081 [10:50:50]line РНМ: 0000000000091631 [10:50:50]line Версия ККМ: 001 [10:50:50]line ФМ: 0000000000874669 [10:50:50]line ФД: 139390 [10:50:50]line ФПД: 181170565364336 [10:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105053&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139390&fm=181170565364336&tin=02508201610067®Number=0000000000091631&sum=4500 [10:50:50]OFD Sender: Processing packet 139390 [packets to send 34, broken 33] [10:50:50]ProducePacketName [10:50:50]name=ofd_packets/00139390 [10:50:50]OFD Sender: To server: pG, [10:50:50]CommunicateWithHost lk.salyk.kg:30040 [10:50:50]ConnectInit lk.salyk.kg [10:50:50]line 0 [10:50:50]written 0, free lines is 4095 [10:50:50]Connected sock=10 [10:50:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3B 01 00 00 53 C3 33 01 69 9D 5A 03 01 00 03 00 27 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 37 35 37 06 04 35 00 D0 A7 D0 B8 D0 BF D1 81 D1 8B 20 D0 A7 D0 B8 D0 BF D1 81 D0 BE D0 BD D1 8B 20 D1 81 D0 BC D0 B5 D1 82 D0 B0 D0 BD D0 B0 2C 20 D0 BB D1 83 D0 BA 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 94 11 00 00 00 00 13 04 06 00 94 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 94 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 28 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DE 01 00 00 00 00 07 04 06 00 94 11 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4A 00 00 00 F4 03 04 00 8D 0F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 20 02 00 35 04 06 00 A4 C6 0F 31 3A 70 6B 06 59 C6 0C D6 32 BC [10:50:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 55 7C 47 00 2A 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7E 20 02 00 F4 03 04 00 3E BB 21 67 B6 04 01 00 00 5F E4 02 FB 35 93 8E BC [10:50:50]CommunicateWithHost err = 0 [10:50:50]CheckOFDResponse [10:50:50]1017 (14) - 77093643461234 [10:50:50]1041 (16) - 0000000000874669 [10:50:50]1040 (4) - 139390 [10:50:50]1012 (4) - 30.10.2024 04:51 [10:50:50]1206 (1) - 0 [10:50:50]OFD Sender: Remove packet 139390 [10:50:50]ProducePacketName [10:50:50]name=ofd_packets/00139390 [10:50:50]NVStorageDeleteData [10:50:50]Write to MH i2c: 01 00 00 5B 3C 97 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 07 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: 01 07 00 5B 3C 00 00 00 00 00 F1 0C 9B [10:50:50]RasterBufferAndPrint [10:50:50]line [10:50:50]line [10:50:50]line [10:50:50]line [10:50:50]line [10:50:50]written 0, free lines is 3319 [10:50:50]MH_Cut [10:50:50]Write to MH i2c: D1 01 00 62 3C 01 70 [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: D1 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: D1 01 00 [10:50:50]MH_I2C_Read... [10:50:50]Read from MH i2c: D1 01 00 62 3C 00 6F [10:50:50]Write to MH i2c: 01 00 00 63 3C 9F [10:50:50]Write i2c OK [10:50:50]MH_I2C_Read... [10:50:51]OFD Sender: No OFD packet to send [10:50:51]*** Cut start [10:50:51]*** Partial cut [10:50:51]*** CUTSNS_PIN = 1 [10:50:51]*** CUTSNS_PIN = 0 [10:50:51]*** Brake cut motor [10:50:52]Read from MH i2c: 01 [10:50:52]MH_I2C_Read... [10:50:52]*** Stop cut motor [10:50:52]*** Cut end [10:50:52]Read from MH i2c: 01 07 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: 01 07 00 63 3C 00 00 00 00 00 FF 0F B4 [10:50:52]process_action close_receipt done [10:50:52]requested_data is exist [10:50:52]produce_requested_data [10:50:52]requested_item fm.sn is exist - process it [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 11 00 00 [10:50:52]Write to MH i2c: E2 08 00 64 3C 80 11 00 00 00 00 00 00 1A [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 17 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 17 00 64 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 75 [10:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:50:52]wFMCommunicate OK [10:50:52]requested_item fd.num is exist - process it [10:50:52]SAM_PROTO_GetFieldsCounters [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 13 00 00 [10:50:52]Write to MH i2c: E2 08 00 65 3C 80 13 00 00 00 00 00 00 1D [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 62 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 62 00 65 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7E 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 ED [10:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7E 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 4A 00 00 00 5E 04 04 00 4A 00 00 00 57 04 04 00 4B 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:50:52]wFMCommunicate OK [10:50:52]SAM_PROTO_GetFieldsCounters done [10:50:52]requested_item shift.num is exist - process it [10:50:52]requested_item shift.opened is exist - process it [10:50:52]req_shift_opened [10:50:52]FM_GetShiftState [10:50:52]SAM_PROTO_GetShiftState [10:50:52]wFMCommunicate request_size=4 [10:50:52]MH_SAM_APDU [10:50:52]CAPDU: 80 13 01 00 [10:50:52]Write to MH i2c: E2 08 00 66 3C 80 13 01 00 00 00 00 00 1F [10:50:52]Write i2c OK [10:50:52]MH_I2C_Read... [10:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:50:52]Read from MH i2c: E2 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 0E 00 [10:50:52]MH_I2C_Read... [10:50:52]Read from MH i2c: E2 0E 00 66 3C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AF [10:50:52]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:50:52]wFMCommunicate OK [10:50:52]SAM_PROTO_GetShiftState done [10:50:52]FM_GetShiftState done [10:50:52]req_shift_opened done [10:50:52]requested_item shift.open_date is exist - process it [10:50:52]req_shift_open_date [10:50:52]req_shift_open_date done [10:50:52]produce_requested_data done [10:50:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139390,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:50:52]process_action_free close_receipt [10:50:52]json_value_free [10:50:52]json_value_free done [10:50:52]process_json_proto returns [10:50:52]Send response to host [10:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139390,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:50:52]free response buf [10:50:52]execute_script done [10:50:52]execute_script returns [10:50:52]free content buf [10:50:52]Sock 9.Close socket [10:50:52]Sock 9.Thread stoped [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:12]accept exits with 8 [10:52:12]New connection [10:52:12]New thread 3067284836 created [10:52:12]Thread 3067141476 joined [10:52:12]Waiting for new connection... [10:52:12] Sock 8.Parse request [10:52:12]Sock 8.Check first char [10:52:12]Sock 8.First char is OK [10:52:12]request: POST /json_proto HTTP/1.0 [10:52:12]Method: POST [10:52:12]URL: /json_proto [10:52:12]Method is POST - this is cgi request [10:52:12]url: /json_proto [10:52:12]query_string will be loaded in cgi processing [10:52:12]execute_cgi json_proto POST (null) [10:52:12]execute_cgi path=json_proto method=POST [10:52:12]POST find Content-Length [10:52:12]Host: 172.17.50.196:8080 [10:52:12]Content-Length: 967 [10:52:12]Content-Type: application/json [10:52:12] [10:52:12]POST finish read [10:52:12]Found Content-Length = 967 [10:52:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335303", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:12]execute_script... [10: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 : (3)335303", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160884", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u0438\u043D\u0434\u0438\u0432\u0438\u0434\u0443\u0430\u043B\u044C\u043D\u044B\u0439", "price" : 15.00, "quantity" : 2.000, "sum" : 30.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [10:52:12]POST & json_proto [10:52:12]process_json_proto [10:52:12]json parsed OK: [10:52:12]protocol is kg_v1.0 [10:52:12]action value=close_receipt [10:52:12]process_action close_receipt [10:52:12]cmd_close_receipt [10:52:12]MH_GetDate [10:52:12]Write to MH i2c: F0 00 00 67 3C 92 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: F0 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: F0 09 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: F0 09 00 67 3C 00 E1 0F 22 67 72 0D 1C 67 16 [10:52:12]GetLastDocTimeStamp 1730285453 [10:52:12]current date 1730285537 [10:52:12]FM_GetShiftState [10:52:12]SAM_PROTO_GetShiftState [10:52:12]wFMCommunicate request_size=4 [10:52:12]MH_SAM_APDU [10:52:12]CAPDU: 80 13 01 00 [10:52:12]Write to MH i2c: E2 08 00 68 3C 80 13 01 00 00 00 00 00 21 [10:52:12]Write i2c OK [10:52:12]MH_I2C_Read... [10:52:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:12]Read from MH i2c: E2 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 0E 00 [10:52:12]MH_I2C_Read... [10:52:12]Read from MH i2c: E2 0E 00 68 3C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B1 [10:52:12]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:52:12]wFMCommunicate OK [10:52:12]SAM_PROTO_GetShiftState done [10:52:12]FM_GetShiftState done [10:52:12]opened in 1730246278 [10:52:12]opened+sec_in_day 1730332678 [10:52:12]quantity*price = 6900 [10:52:12]sum+1 = 6901 [10:52:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160884 Снек Курут индивидуальный 2.000 * 15.00 = 30.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.87 НДС 12% : 10.52 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 75 30.10.2024 10:52 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139391 ФПД: 184621728515821 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105217&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139391&fm=184621728515821&tin=02508201610067®Number=0000000000091631&sum=9900 0 [10:52:13]StoreToDocumentArchive [10:52:13]shift 556 fd 139391 [10:52:13]save to /storage/0556/doc_00139391 [10:52:13]save last doc name /storage/0556/doc_00139391 to /storage/kkm_last_doc_name [10:52:13]save OK [10:52:13]Clear old archive folders... [10:52:13]ProcessDocumentItem done err = 0, tmpTLVsize=414 [10:52:13]tlvbuf is B6FA6490 [10:52:13]SAM_PROTO_ClearQueue [10:52:13]wFMCommunicate request_size=4 [10:52:13]MH_SAM_APDU [10:52:13]CAPDU: 80 09 00 00 [10:52:13]Write to MH i2c: E2 08 00 75 3C 80 09 00 00 00 00 00 00 23 [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [10:52:13]Read from MH i2c: E2 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 75 3C 00 90 00 25 [10:52:13]RAPDU: 90 00 [10:52:13]wFMCommunicate OK [10:52:13]SAM_PROTO_ClearQueue done [10:52:13]KKMCreateOFDPacket [10:52:13]OFDProtocolAddRootSTLVToBuf [10:52:13]FM_MakeSignedData [10:52:13]FM_MakeSignedData [10:52:13]SAM_PROTO_SignData [10:52:13]wFMCommunicate request_size=4 [10:52:13]MH_SAM_APDU [10:52:13]CAPDU: 80 0D 01 02 [10:52:13]Write to MH i2c: E2 08 00 76 3C 80 0D 01 02 00 00 00 00 2B [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [10:52:13]Read from MH i2c: E2 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 [10:52:13]MH_I2C_Read... [10:52:13]Read from MH i2c: E2 03 00 76 3C 00 90 00 26 [10:52:13]RAPDU: 90 00 [10:52:13]wFMCommunicate OK [10:52:13]wFMCommunicate request_size=255 [10:52:13]MH_SAM_APDU [10:52:13]CAPDU: 80 0D 02 02 FA 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 [10:52:13]Write to MH i2c: E2 02 01 77 3C 80 0D 02 02 FA 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 00 00 4B [10:52:13]Write i2c OK [10:52:13]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 03 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 03 00 77 3C 00 90 00 27 [10:52:14]RAPDU: 90 00 [10:52:14]wFMCommunicate OK [10:52:14]wFMCommunicate request_size=173 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 0D 02 02 A8 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 04 00 00 00 00 07 04 06 00 AC 26 00 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 E1 0F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 20 02 00 35 04 06 00 A7 E9 98 8B C6 ED [10:52:14]Write to MH i2c: E2 B0 00 78 3C 80 0D 02 02 A8 00 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 04 00 00 00 00 07 04 06 00 AC 26 00 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 E1 0F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 20 02 00 35 04 06 00 A7 E9 98 8B C6 ED 00 00 D9 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 03 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 03 00 78 3C 00 90 00 28 [10:52:14]RAPDU: 90 00 [10:52:14]wFMCommunicate OK [10:52:14]wFMCommunicate request_size=4 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 0D 03 02 [10:52:14]Write to MH i2c: E2 08 00 79 3C 80 0D 03 02 00 00 00 00 30 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 0B 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 0B 00 79 3C 00 AD 83 97 7D 91 01 A1 2C 90 00 D4 [10:52:14]RAPDU: AD 83 97 7D 91 01 A1 2C 90 00 [10:52:14]wFMCommunicate OK [10:52:14]SAM_PROTO_SignData done [10:52:14]FM_MakeSignedData done [10:52:14]CreateOFDProtocolMessage [10:52:14]wFMCommunicate request_size=4 [10:52:14]MH_SAM_APDU [10:52:14]CAPDU: 80 11 00 00 [10:52:14]Write to MH i2c: E2 08 00 7A 3C 80 11 00 00 00 00 00 00 30 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:14]Read from MH i2c: E2 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 17 00 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: E2 17 00 7A 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8B [10:52:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:52:14]wFMCommunicate OK [10:52:14]CreateOFDProtocolMessage done [10:52:14]OFDSenderStorePacket 139391 [10:52:14]StoreOFDPacket docnum=139391 [10:52:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B2 01 00 00 6F 3B AA 01 85 46 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 04 00 00 00 00 07 04 06 00 AC 26 00 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 E1 0F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 20 02 00 35 04 06 00 A7 E9 98 8B C6 ED AD 83 97 7D 91 01 A1 2C [10:52:14]CheckFolder [10:52:14]dirname=/storage/ofd_packets [10:52:14]CheckFolder done [10:52:14]ProducePacketName [10:52:14]name=ofd_packets/00139391 [10:52:14]NVStorageSaveData ofd_packets/00139391 [10:52:14]File name is /storage/ofd_packets/00139391 [10:52:14]Write 464 bytes [10:52:14]NVStorageSaveData done [10:52:14]OFDSenderStorePacket done [10:52:14]KKMCreateOFDPacket done [10:52:14]NVStorageSaveData kkm_last_timestamp [10:52:14]File name is /storage/kkm_last_timestamp [10:52:14]Write 4 bytes [10:52:14]NVStorageSaveData done [10:52:14]ExternCall_PrintAddStr [10:52:14]wPrintStart [10:52:14]Write to MH i2c: 01 00 00 7B 3C B7 [10:52:14]Write i2c OK [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 [10:52:14]MH_I2C_Read... [10:52:14]Read from MH i2c: 01 07 00 [10:52:14]MH_I2C_Read... [10:52:14]OFD Sender: Processing packet 139391 [packets to send 34, broken 33] [10:52:14]ProducePacketName [10:52:14]name=ofd_packets/00139391 [10:52:14]Read from MH i2c: 01 OFD Sender: To server: pG, [10:52:14]07 CommunicateWithHost lk.salyk.kg:30040 [10:52:14]00 ConnectInit lk.salyk.kg [10:52:14]7B 3C 00 00 00 00 00 FF 0F CC [10:52:14]RasterBufferAndPrint [10:52:14]line Счет N : (3)335303 [10:52:14]line ИНН: 02508201610067 [10:52:14]line Контрольно-Кассовый Чек [10:52:14]line ПРОДАЖА [10:52:14]line Товар: 4600682557456 [10:52:14]line Напиток FLash up energy эн ж/б 0,5/0,45л [10:52:14]line 1.000 * 69.00 [10:52:14]line = 69.00 [10:52:14]line НДС 12% НСП 1% [10:52:14]line > о реализуемом товаре [10:52:14]line Товар: 4700000160884 [10:52:14]line Снек Курут индивидуальный [10:52:14]line 2.000 * 15.00 [10:52:14]line = 30.00 [10:52:14]line НДС 12% НСП 1% [10:52:14]line > о реализуемом товаре [10:52:14]line ИТОГО: 99.00 [10:52:14]line НСП 1% : 0.87 [10:52:14]line НДС 12% : 10.52 [10:52:14]line Наличными: 99.00 [10:52:14]line Безнал.: 0.00 [10:52:14]line Место: АЗС № 101 "Партнер Нефть" [10:52:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [10:52:14]line СНО: Общий режим [10:52:14]line Чек 75 30.10.2024 10:52 [10:52:14]line Смена: 556 ФФД: 1.0 [10:52:14]line ЗНМ: 0300000081 [10:52:14]line РНМ: 0000000000091631 [10:52:14]line Версия ККМ: 001 [10:52:14]line ФМ: 0000000000874669 [10:52:14]line ФД: 139391 [10:52:14]line ФПД: 184621728515821 [10:52:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T105217&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139391&fm=184621728515821&tin=02508201610067®Number=0000000000091631&sum=9900 [10:52:14]line 0 [10:52:14]written 0, free lines is 4095 [10:52:14]Connected sock=11 [10:52:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B2 01 00 00 6F 3B AA 01 85 46 5A 03 01 00 03 00 9E 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 38 38 34 06 04 30 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 B8 D0 BD D0 B4 D0 B8 D0 B2 D0 B8 D0 B4 D1 83 D0 B0 D0 BB D1 8C D0 BD D1 8B D0 B9 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 DC 05 00 00 00 00 13 04 06 00 B8 0B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 57 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 04 00 00 00 00 07 04 06 00 AC 26 00 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 E1 0F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 20 02 00 35 04 06 00 A7 E9 98 8B C6 ED AD 83 97 7D 91 01 A1 2C [10:52:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2E 29 47 00 72 1D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 7F 20 02 00 F4 03 04 00 92 BB 21 67 B6 04 01 00 00 F0 A2 A6 6D 1B 49 49 2D [10:52:15]CommunicateWithHost err = 0 [10:52:15]CheckOFDResponse [10:52:15]1017 (14) - 77093643461234 [10:52:15]1041 (16) - 0000000000874669 [10:52:15]1040 (4) - 139391 [10:52:15]1012 (4) - 30.10.2024 04:52 [10:52:15]1206 (1) - 0 [10:52:15]OFD Sender: Remove packet 139391 [10:52:15]ProducePacketName [10:52:15]name=ofd_packets/00139391 [10:52:15]NVStorageDeleteData [10:52:15]Write to MH i2c: 01 00 00 AA 3C E6 [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: 01 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: 01 07 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: 01 07 00 AA 3C 00 00 00 00 00 AD 0C A6 [10:52:15]RasterBufferAndPrint [10:52:15]line [10:52:15]line [10:52:15]line [10:52:15]line [10:52:15]line [10:52:15]written 0, free lines is 3254 [10:52:15]MH_Cut [10:52:15]Write to MH i2c: D1 01 00 B1 3C 01 BF [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: D1 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: D1 01 00 [10:52:15]MH_I2C_Read... [10:52:15]Read from MH i2c: D1 01 00 B1 3C 00 BE [10:52:15]Write to MH i2c: 01 00 00 B2 3C EE [10:52:15]Write i2c OK [10:52:15]MH_I2C_Read... [10:52:15]OFD Sender: No OFD packet to send [10:52:16]*** Cut start [10:52:16]*** Partial cut [10:52:16]*** CUTSNS_PIN = 1 [10:52:16]*** CUTSNS_PIN = 0 [10:52:16]*** Brake cut motor [10:52:16]Read from MH i2c: 01 [10:52:16]MH_I2C_Read... [10:52:16]*** Stop cut motor [10:52:16]*** Cut end [10:52:16]Read from MH i2c: 01 07 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: 01 07 00 B2 3C 00 00 00 00 00 FF 0F 03 [10:52:16]process_action close_receipt done [10:52:16]requested_data is exist [10:52:16]produce_requested_data [10:52:16]requested_item fm.sn is exist - process it [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 11 00 00 [10:52:16]Write to MH i2c: E2 08 00 B3 3C 80 11 00 00 00 00 00 00 69 [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 17 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 17 00 B3 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C4 [10:52:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [10:52:16]wFMCommunicate OK [10:52:16]requested_item fd.num is exist - process it [10:52:16]SAM_PROTO_GetFieldsCounters [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 13 00 00 [10:52:16]Write to MH i2c: E2 08 00 B4 3C 80 13 00 00 00 00 00 00 6C [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 62 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 62 00 B4 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7F 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 40 [10:52:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 7F 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 4B 00 00 00 5E 04 04 00 4B 00 00 00 57 04 04 00 4C 00 00 00 19 04 04 00 00 00 00 00 90 00 [10:52:16]wFMCommunicate OK [10:52:16]SAM_PROTO_GetFieldsCounters done [10:52:16]requested_item shift.num is exist - process it [10:52:16]requested_item shift.opened is exist - process it [10:52:16]req_shift_opened [10:52:16]FM_GetShiftState [10:52:16]SAM_PROTO_GetShiftState [10:52:16]wFMCommunicate request_size=4 [10:52:16]MH_SAM_APDU [10:52:16]CAPDU: 80 13 01 00 [10:52:16]Write to MH i2c: E2 08 00 B5 3C 80 13 01 00 00 00 00 00 6E [10:52:16]Write i2c OK [10:52:16]MH_I2C_Read... [10:52:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [10:52:16]Read from MH i2c: E2 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 0E 00 [10:52:16]MH_I2C_Read... [10:52:16]Read from MH i2c: E2 0E 00 B5 3C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FE [10:52:16]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [10:52:16]wFMCommunicate OK [10:52:16]SAM_PROTO_GetShiftState done [10:52:16]FM_GetShiftState done [10:52:16]req_shift_opened done [10:52:16]requested_item shift.open_date is exist - process it [10:52:16]req_shift_open_date [10:52:16]req_shift_open_date done [10:52:16]produce_requested_data done [10:52:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139391,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [10:52:16]process_action_free close_receipt [10:52:16]json_value_free [10:52:16]json_value_free done [10:52:16]process_json_proto returns [10:52:16]Send response to host [10:52:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139391,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [10:52:16]free response buf [10:52:16]execute_script done [10:52:16]execute_script returns [10:52:16]free content buf [10:52:16]Sock 8.Close socket [10:52:16]Sock 8.Thread stoped [10:52:20]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [10:53:20]OFD Sender: No OFD packet to send [10:53:25]OFD Sender: No OFD packet to send [10:53:30]OFD Sender: No OFD packet to send [10:53:35]OFD Sender: No OFD packet to send [10:53:40]OFD Sender: No OFD packet to send [10:53:45]OFD Sender: No OFD packet to send [10:53:50]OFD Sender: No OFD packet to send [10:53:55]OFD Sender: No OFD packet to send [10:54:00]OFD Sender: No OFD packet to send [10:54:05]OFD Sender: No OFD packet to send [10:54:10]OFD Sender: No OFD packet to send [10:54:15]OFD Sender: No OFD packet to send [10:54:20]OFD Sender: No OFD packet to send [10:54:25]OFD Sender: No OFD packet to send [10:54:30]OFD Sender: No OFD packet to send [10:54:35]OFD Sender: No OFD packet to send [10:54:40]OFD Sender: No OFD packet to send [10:54:45]OFD Sender: No OFD packet to send [10:54:50]OFD Sender: No OFD packet to send [10:54:55]OFD Sender: No OFD packet to send [10:55:00]OFD Sender: No OFD packet to send [10:55:05]OFD Sender: No OFD packet to send [10:55:10]OFD Sender: No OFD packet to send [10:55:15]OFD Sender: No OFD packet to send [10:55:20]OFD Sender: No OFD packet to send [10:55:25]OFD Sender: No OFD packet to send [10:55:30]OFD Sender: No OFD packet to send [10:55:35]OFD Sender: No OFD packet to send [10:55:40]OFD Sender: No OFD packet to send [10:55:45]OFD Sender: No OFD packet to send [10:55:50]OFD Sender: No OFD packet to send [10:55:55]OFD Sender: No OFD packet to send [10:56:00]OFD Sender: No OFD packet to send [10:56:05]OFD Sender: No OFD packet to send [10:56:10]OFD Sender: No OFD packet to send [10:56:15]OFD Sender: No OFD packet to send [10:56:20]OFD Sender: No OFD packet to send [10:56:25]OFD Sender: No OFD packet to send [10:56:30]OFD Sender: No OFD packet to send [10:56:35]OFD Sender: No OFD packet to send [10:56:40]OFD Sender: No OFD packet to send [10:56:45]OFD Sender: No OFD packet to send [10:56:50]OFD Sender: No OFD packet to send [10:56:55]OFD Sender: No OFD packet to send [10:57:00]OFD Sender: No OFD packet to send [10:57:05]OFD Sender: No OFD packet to send [10:57:10]OFD Sender: No OFD packet to send [10:57:15]OFD Sender: No OFD packet to send [10:57:20]OFD Sender: No OFD packet to send [10:57:25]OFD Sender: No OFD packet to send [10:57:30]OFD Sender: No OFD packet to send [10:57:35]OFD Sender: No OFD packet to send [10:57:40]OFD Sender: No OFD packet to send [10:57:45]OFD Sender: No OFD packet to send [10:57:50]OFD Sender: No OFD packet to send [10:57:55]OFD Sender: No OFD packet to send [10:58:00]OFD Sender: No OFD packet to send [10:58:05]OFD Sender: No OFD packet to send [10:58:10]OFD Sender: No OFD packet to send [10:58:15]OFD Sender: No OFD packet to send [10:58:20]OFD Sender: No OFD packet to send [10:58:25]OFD Sender: No OFD packet to send [10:58:30]OFD Sender: No OFD packet to send [10:58:35]OFD Sender: No OFD packet to send [10:58:40]OFD Sender: No OFD packet to send [10:58:45]OFD Sender: No OFD packet to send [10:58:50]OFD Sender: No OFD packet to send [10:58:55]OFD Sender: No OFD packet to send [10:59:00]OFD Sender: No OFD packet to send [10:59:05]OFD Sender: No OFD packet to send [10:59:10]OFD Sender: No OFD packet to send [10:59:15]OFD Sender: No OFD packet to send [10:59:20]OFD Sender: No OFD packet to send [10:59:25]OFD Sender: No OFD packet to send [10:59:30]OFD Sender: No OFD packet to send [10:59:35]OFD Sender: No OFD packet to send [10:59:40]OFD Sender: No OFD packet to send [10:59:45]OFD Sender: No OFD packet to send [10:59:50]OFD Sender: No OFD packet to send [10:59:55]OFD Sender: No OFD packet to send [11:00:00]OFD Sender: No OFD packet to send [11:00:05]OFD Sender: No OFD packet to send [11:00:10]OFD Sender: No OFD packet to send [11:00:15]OFD Sender: No OFD packet to send [11:00:21]OFD Sender: No OFD packet to send [11:00:26]OFD Sender: No OFD packet to send [11:00:31]OFD Sender: No OFD packet to send [11:00:36]OFD Sender: No OFD packet to send [11:00:41]OFD Sender: No OFD packet to send [11:00:46]OFD Sender: No OFD packet to send [11:00:51]OFD Sender: No OFD packet to send [11:00:56]OFD Sender: No OFD packet to send [11:01:01]OFD Sender: No OFD packet to send [11:01:06]OFD Sender: No OFD packet to send [11:01:11]OFD Sender: No OFD packet to send [11:01:16]OFD Sender: No OFD packet to send [11:01:21]OFD Sender: No OFD packet to send [11:01:26]OFD Sender: No OFD packet to send [11:01:31]OFD Sender: No OFD packet to send [11:01:36]OFD Sender: No OFD packet to send [11:01:41]OFD Sender: No OFD packet to send [11:01:46]OFD Sender: No OFD packet to send [11:01:51]OFD Sender: No OFD packet to send [11:01:56]OFD Sender: No OFD packet to send [11:02:01]OFD Sender: No OFD packet to send [11:02:06]OFD Sender: No OFD packet to send [11:02:11]OFD Sender: No OFD packet to send [11:02:16]OFD Sender: No OFD packet to send [11:02:21]OFD Sender: No OFD packet to send [11:02:26]OFD Sender: No OFD packet to send [11:02:31]OFD Sender: No OFD packet to send [11:02:36]OFD Sender: No OFD packet to send [11:02:41]OFD Sender: No OFD packet to send [11:02:46]OFD Sender: No OFD packet to send [11:02:51]OFD Sender: No OFD packet to send [11:02:56]OFD Sender: No OFD packet to send [11:03:01]OFD Sender: No OFD packet to send [11:03:06]OFD Sender: No OFD packet to send [11:03:11]OFD Sender: No OFD packet to send [11:03:16]OFD Sender: No OFD packet to send [11:03:21]OFD Sender: No OFD packet to send [11:03:26]OFD Sender: No OFD packet to send [11:03:31]OFD Sender: No OFD packet to send [11:03:36]OFD Sender: No OFD packet to send [11:03:41]OFD Sender: No OFD packet to send [11:03:46]OFD Sender: No OFD packet to send [11:03:51]OFD Sender: No OFD packet to send [11:03:56]OFD Sender: No OFD packet to send [11:04:01]OFD Sender: No OFD packet to send [11:04:06]OFD Sender: No OFD packet to send [11:04:11]OFD Sender: No OFD packet to send [11:04:16]OFD Sender: No OFD packet to send [11:04:21]OFD Sender: No OFD packet to send [11:04:26]OFD Sender: No OFD packet to send [11:04:31]OFD Sender: No OFD packet to send [11:04:36]OFD Sender: No OFD packet to send [11:04:41]OFD Sender: No OFD packet to send [11:04:46]OFD Sender: No OFD packet to send [11:04:51]OFD Sender: No OFD packet to send [11:04:56]OFD Sender: No OFD packet to send [11:05:01]OFD Sender: No OFD packet to send [11:05:06]OFD Sender: No OFD packet to send [11:05:07]accept exits with 9 [11:05:07]New connection [11:05:07]New thread 3067141476 created [11:05:07]Thread 3067284836 joined [11:05:07]Waiting for new connection... [11:05:07] Sock 9.Parse request [11:05:07]Sock 9.Check first char [11:05:07]Sock 9.First char is OK [11:05:07]request: POST /json_proto HTTP/1.0 [11:05:07]Method: POST [11:05:07]URL: /json_proto [11:05:07]Method is POST - this is cgi request [11:05:07]url: /json_proto [11:05:07]query_string will be loaded in cgi processing [11:05:07]execute_cgi json_proto POST (null) [11:05:07]execute_cgi path=json_proto method=POST [11:05:07]POST find Content-Length [11:05:07]Host: 172.17.50.196:8080 [11:05:07]Content-Length: 753 [11:05:07]Content-Type: application/json [11:05:07] [11:05:07]POST finish read [11:05:07]Found Content-Length = 753 [11:05:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335304", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:07]execute_script... [11:05: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 : (3)335304", "tax_sys" : 0, "items" : [ { "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 115.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:05:07]POST & json_proto [11:05:07]process_json_proto [11:05:07]json parsed OK: [11:05:07]protocol is kg_v1.0 [11:05:07]action value=close_receipt [11:05:07]process_action close_receipt [11:05:07]cmd_close_receipt [11:05:07]MH_GetDate [11:05:07]Write to MH i2c: F0 00 00 B6 3C E1 [11:05:07]Write i2c OK [11:05:07]MH_I2C_Read... [11:05:07]Read from MH i2c: F0 [11:05:07]MH_I2C_Read... [11:05:07]Read from MH i2c: F0 09 00 [11:05:07]MH_I2C_Read... [11:05:07]Read from MH i2c: F0 09 00 B6 3C 00 E8 12 22 67 72 0D 1C 67 6F [11:05:07]GetLastDocTimeStamp 1730285537 [11:05:07]current date 1730286312 [11:05:07]FM_GetShiftState [11:05:07]SAM_PROTO_GetShiftState [11:05:07]wFMCommunicate request_size=4 [11:05:07]MH_SAM_APDU [11:05:07]CAPDU: 80 13 01 00 [11:05:07]Write to MH i2c: E2 08 00 B7 3C 80 13 01 00 00 00 00 00 70 [11:05:07]Write i2c OK [11:05:07]MH_I2C_Read... [11:05:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:07]Read from MH i2c: E2 [11:05:07]MH_I2C_Read... [11:05:07]Read from MH i2c: E2 0E 00 [11:05:07]MH_I2C_Read... [11:05:07]Read from MH i2c: E2 0E 00 B7 3C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 00 [11:05:07]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:05:07]wFMCommunicate OK [11:05:07]SAM_PROTO_GetShiftState done [11:05:07]FM_GetShiftState done [11:05:07]opened in 1730246278 [11:05:07]opened+sec_in_day 1730332678 [11:05:07]quantity*price = 11500 [11:05:07]sum+1 = 11501 [11:05:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 115.00 НСП 1% : 1.02 НДС 12% : 12.21 Наличными: 0.00 Безнал.: 115.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 76 30.10.2024 11:05 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139392 ФПД: 4870627903923 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110512&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139392&fm=4870627903923&tin=02508201610067®Number=0000000000091631&sum=11500 0 [11:05:08]StoreToDocumentArchive [11:05:08]shift 556 fd 139392 [11:05:08]save to /storage/0556/doc_00139392 [11:05:08]save last doc name /storage/0556/doc_00139392 to /storage/kkm_last_doc_name [11:05:08]save OK [11:05:08]Clear old archive folders... [11:05:08]ProcessDocumentItem done err = 0, tmpTLVsize=274 [11:05:08]tlvbuf is 0115A990 [11:05:08]SAM_PROTO_ClearQueue [11:05:08]wFMCommunicate request_size=4 [11:05:08]MH_SAM_APDU [11:05:08]CAPDU: 80 09 00 00 [11:05:08]Write to MH i2c: E2 08 00 C4 3C 80 09 00 00 00 00 00 00 72 [11:05:08]Write i2c OK [11:05:08]MH_I2C_Read... [11:05:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:05:08]Read from MH i2c: E2 [11:05:08]MH_I2C_Read... [11:05:08]Read from MH i2c: E2 03 00 [11:05:08]MH_I2C_Read... [11:05:08]Read from MH i2c: E2 03 00 C4 3C 00 90 00 74 [11:05:08]RAPDU: 90 00 [11:05:08]wFMCommunicate OK [11:05:08]SAM_PROTO_ClearQueue done [11:05:08]KKMCreateOFDPacket [11:05:08]OFDProtocolAddRootSTLVToBuf [11:05:08]FM_MakeSignedData [11:05:08]FM_MakeSignedData [11:05:08]SAM_PROTO_SignData [11:05:08]wFMCommunicate request_size=4 [11:05:08]MH_SAM_APDU [11:05:08]CAPDU: 80 0D 01 02 [11:05:08]Write to MH i2c: E2 08 00 C5 3C 80 0D 01 02 00 00 00 00 7A [11:05:08]Write i2c OK [11:05:08]MH_I2C_Read... [11:05:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:05:08]Read from MH i2c: E2 [11:05:08]MH_I2C_Read... [11:05:08]Read from MH i2c: E2 03 00 [11:05:08]MH_I2C_Read... [11:05:08]Read from MH i2c: E2 03 00 C5 3C 00 90 00 75 [11:05:08]RAPDU: 90 00 [11:05:08]wFMCommunicate OK [11:05:08]wFMCommunicate request_size=255 [11:05:08]MH_SAM_APDU [11:05:08]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E8 12 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [11:05:08]Write to MH i2c: E2 02 01 C6 3C 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E8 12 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 00 00 0E [11:05:08]Write i2c OK [11:05:08]MH_I2C_Read... [11:05:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:08]Read from MH i2c: E2 [11:05:08]MH_I2C_Read... [11:05:08]Read from MH i2c: E2 03 00 [11:05:08]MH_I2C_Read... [11:05:08]Read from MH i2c: E2 03 00 C6 3C 00 90 00 76 [11:05:08]RAPDU: 90 00 [11:05:08]wFMCommunicate OK [11:05:08]wFMCommunicate request_size=33 [11:05:08]MH_SAM_APDU [11:05:08]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 20 02 00 35 04 06 00 04 6E 08 0B C9 B3 [11:05:08]Write to MH i2c: E2 24 00 C7 3C 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 20 02 00 35 04 06 00 04 6E 08 0B C9 B3 00 00 B7 [11:05:08]Write i2c OK [11:05:08]MH_I2C_Read... [11:05:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:05:09]Read from MH i2c: E2 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: E2 03 00 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: E2 03 00 C7 3C 00 90 00 77 [11:05:09]RAPDU: 90 00 [11:05:09]wFMCommunicate OK [11:05:09]wFMCommunicate request_size=4 [11:05:09]MH_SAM_APDU [11:05:09]CAPDU: 80 0D 03 02 [11:05:09]Write to MH i2c: E2 08 00 C8 3C 80 0D 03 02 00 00 00 00 7F [11:05:09]Write i2c OK [11:05:09]MH_I2C_Read... [11:05:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:05:09]Read from MH i2c: E2 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: E2 0B 00 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: E2 0B 00 C8 3C 00 3F 48 2C E4 5C 68 85 C6 90 00 26 [11:05:09]RAPDU: 3F 48 2C E4 5C 68 85 C6 90 00 [11:05:09]wFMCommunicate OK [11:05:09]SAM_PROTO_SignData done [11:05:09]FM_MakeSignedData done [11:05:09]CreateOFDProtocolMessage [11:05:09]wFMCommunicate request_size=4 [11:05:09]MH_SAM_APDU [11:05:09]CAPDU: 80 11 00 00 [11:05:09]Write to MH i2c: E2 08 00 C9 3C 80 11 00 00 00 00 00 00 7F [11:05:09]Write i2c OK [11:05:09]MH_I2C_Read... [11:05:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:09]Read from MH i2c: E2 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: E2 17 00 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: E2 17 00 C9 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DA [11:05:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:05:09]wFMCommunicate OK [11:05:09]CreateOFDProtocolMessage done [11:05:09]OFDSenderStorePacket 139392 [11:05:09]StoreOFDPacket docnum=139392 [11:05:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 0C 41 1E 01 DC 28 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E8 12 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 20 02 00 35 04 06 00 04 6E 08 0B C9 B3 3F 48 2C E4 5C 68 85 C6 [11:05:09]CheckFolder [11:05:09]dirname=/storage/ofd_packets [11:05:09]CheckFolder done [11:05:09]ProducePacketName [11:05:09]name=ofd_packets/00139392 [11:05:09]NVStorageSaveData ofd_packets/00139392 [11:05:09]File name is /storage/ofd_packets/00139392 [11:05:09]Write 324 bytes [11:05:09]NVStorageSaveData done [11:05:09]OFDSenderStorePacket done [11:05:09]KKMCreateOFDPacket done [11:05:09]NVStorageSaveData kkm_last_timestamp [11:05:09]File name is /storage/kkm_last_timestamp [11:05:09]Write 4 bytes [11:05:09]NVStorageSaveData done [11:05:09]ExternCall_PrintAddStr [11:05:09]wPrintStart [11:05:09]Write to MH i2c: 01 00 00 CA 3C 06 [11:05:09]Write i2c OK [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: 01 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: 01 07 00 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: 01 07 00 CA 3C 00 00 00 00 00 FF 0F 1B [11:05:09]RasterBufferAndPrint [11:05:09]line Счет N : (3)335304 [11:05:09]line ИНН: 02508201610067 [11:05:09]line Контрольно-Кассовый Чек [11:05:09]line ПРОДАЖА [11:05:09]line Товар: 2000036240010 [11:05:09]line Кофе Латте (GABB TRADE) [11:05:09]line 1.000 * 115.00 [11:05:09]line = 115.00 [11:05:09]line НДС 12% НСП 1% [11:05:09]line > о реализуемом товаре [11:05:09]line ИТОГО: 115.00 [11:05:09]line НСП 1% : 1.02 [11:05:09]line НДС 12% : 12.21 [11:05:09]line Наличными: 0.00 [11:05:09]line Безнал.: 115.00 [11:05:09]line Место: АЗС № 101 "Партнер Нефть" [11:05:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:05:09]line СНО: Общий режим [11:05:09]line Чек 76 30.10.2024 11:05 [11:05:09]line Смена: 556 ФФД: 1.0 [11:05:09]line ЗНМ: 0300000081 [11:05:09]line РНМ: 0000000000091631 [11:05:09]line Версия ККМ: 001 [11:05:09]line Платежная система: Mbank [11:05:09]line ФМ: 0000000000874669 [11:05:09]line ФД: 139392 [11:05:09]line ФПД: 4870627903923 [11:05:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110512&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139392&fm=4870627903923&tin=02508201610067®Number=0000000000091631&sum=11500 [11:05:09]OFD Sender: Processing packet 139392 [packets to send 34, broken 33] [11:05:09]ProducePacketName [11:05:09]name=ofd_packets/00139392 [11:05:09]OFD Sender: To server: pG, [11:05:09]CommunicateWithHost lk.salyk.kg:30040 [11:05:09]ConnectInit lk.salyk.kg [11:05:09]line 0 [11:05:09]written 0, free lines is 4095 [11:05:09]Connected sock=10 [11:05:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 0C 41 1E 01 DC 28 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 2C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C5 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 2C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 4C 00 00 00 F4 03 04 00 E8 12 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 20 02 00 35 04 06 00 04 6E 08 0B C9 B3 3F 48 2C E4 5C 68 85 C6 [11:05:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8F F3 47 00 B0 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 80 20 02 00 F4 03 04 00 99 BE 21 67 B6 04 01 00 00 E3 74 4D 59 3E 9F 1F AA [11:05:09]CommunicateWithHost err = 0 [11:05:09]CheckOFDResponse [11:05:09]1017 (14) - 77093643461234 [11:05:09]1041 (16) - 0000000000874669 [11:05:09]1040 (4) - 139392 [11:05:09]1012 (4) - 30.10.2024 05:05 [11:05:09]1206 (1) - 0 [11:05:09]OFD Sender: Remove packet 139392 [11:05:09]ProducePacketName [11:05:09]name=ofd_packets/00139392 [11:05:09]NVStorageDeleteData [11:05:09]Write to MH i2c: 01 00 00 F3 3C 2F [11:05:09]Write i2c OK [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: 01 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: 01 07 00 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: 01 07 00 F3 3C 00 00 00 00 00 1E 0D 61 [11:05:09]RasterBufferAndPrint [11:05:09]line [11:05:09]line [11:05:09]line [11:05:09]line [11:05:09]line [11:05:09]written 0, free lines is 3367 [11:05:09]MH_Cut [11:05:09]Write to MH i2c: D1 01 00 FA 3C 01 08 [11:05:09]Write i2c OK [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: D1 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: D1 01 00 [11:05:09]MH_I2C_Read... [11:05:09]Read from MH i2c: D1 01 00 FA 3C 00 07 [11:05:09]Write to MH i2c: 01 00 00 FB 3C 37 [11:05:09]Write i2c OK [11:05:09]MH_I2C_Read... [11:05:10]OFD Sender: No OFD packet to send [11:05:10]*** Cut start [11:05:10]*** Partial cut [11:05:10]*** CUTSNS_PIN = 1 [11:05:10]*** CUTSNS_PIN = 0 [11:05:10]*** Brake cut motor [11:05:11]Read from MH i2c: 01 [11:05:11]MH_I2C_Read... [11:05:11]*** Stop cut motor [11:05:11]*** Cut end [11:05:11]Read from MH i2c: 01 07 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: 01 07 00 FB 3C 00 00 00 00 00 FF 0F 4C [11:05:11]process_action close_receipt done [11:05:11]requested_data is exist [11:05:11]produce_requested_data [11:05:11]requested_item fm.sn is exist - process it [11:05:11]wFMCommunicate request_size=4 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 11 00 00 [11:05:11]Write to MH i2c: E2 08 00 FC 3C 80 11 00 00 00 00 00 00 B2 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 17 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 17 00 FC 3C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0D [11:05:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:05:11]wFMCommunicate OK [11:05:11]requested_item fd.num is exist - process it [11:05:11]SAM_PROTO_GetFieldsCounters [11:05:11]wFMCommunicate request_size=4 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 13 00 00 [11:05:11]Write to MH i2c: E2 08 00 FD 3C 80 13 00 00 00 00 00 00 B5 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 62 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 62 00 FD 3C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 80 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 8D [11:05:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 80 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 4C 00 00 00 5E 04 04 00 4C 00 00 00 57 04 04 00 4D 00 00 00 19 04 04 00 00 00 00 00 90 00 [11:05:11]wFMCommunicate OK [11:05:11]SAM_PROTO_GetFieldsCounters done [11:05:11]requested_item shift.num is exist - process it [11:05:11]requested_item shift.opened is exist - process it [11:05:11]req_shift_opened [11:05:11]FM_GetShiftState [11:05:11]SAM_PROTO_GetShiftState [11:05:11]wFMCommunicate request_size=4 [11:05:11]MH_SAM_APDU [11:05:11]CAPDU: 80 13 01 00 [11:05:11]Write to MH i2c: E2 08 00 FE 3C 80 13 01 00 00 00 00 00 B7 [11:05:11]Write i2c OK [11:05:11]MH_I2C_Read... [11:05:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:05:11]Read from MH i2c: E2 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 0E 00 [11:05:11]MH_I2C_Read... [11:05:11]Read from MH i2c: E2 0E 00 FE 3C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 47 [11:05:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:05:11]wFMCommunicate OK [11:05:11]SAM_PROTO_GetShiftState done [11:05:11]FM_GetShiftState done [11:05:11]req_shift_opened done [11:05:11]requested_item shift.open_date is exist - process it [11:05:11]req_shift_open_date [11:05:11]req_shift_open_date done [11:05:11]produce_requested_data done [11:05:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139392,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [11:05:11]process_action_free close_receipt [11:05:11]json_value_free [11:05:11]json_value_free done [11:05:11]process_json_proto returns [11:05:11]Send response to host [11:05:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139392,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [11:05:11]free response buf [11:05:11]execute_script done [11:05:11]execute_script returns [11:05:11]free content buf [11:05:11]Sock 9.Close socket [11:05:11]Sock 9.Thread stoped [11:05:15]OFD Sender: No OFD packet to send [11:05:20]OFD Sender: No OFD packet to send [11:05:25]OFD Sender: No OFD packet to send [11:05:30]OFD Sender: No OFD packet to send [11:05:35]OFD Sender: No OFD packet to send [11:05:40]OFD Sender: No OFD packet to send [11:05:45]OFD Sender: No OFD packet to send [11:05:50]OFD Sender: No OFD packet to send [11:05:55]OFD Sender: No OFD packet to send [11:06:00]OFD Sender: No OFD packet to send [11:06:05]OFD Sender: No OFD packet to send [11:06:10]OFD Sender: No OFD packet to send [11:06:15]OFD Sender: No OFD packet to send [11:06:20]OFD Sender: No OFD packet to send [11:06:25]OFD Sender: No OFD packet to send [11:06:29]accept exits with 8 [11:06:29]New connection [11:06:29]New thread 3067284836 created [11:06:29]Thread 3067141476 joined [11:06:29]Waiting for new connection... [11:06:29] Sock 8.Parse request [11:06:29]Sock 8.Check first char [11:06:29]Sock 8.First char is OK [11:06:29]request: POST /json_proto HTTP/1.0 [11:06:29]Method: POST [11:06:29]URL: /json_proto [11:06:29]Method is POST - this is cgi request [11:06:29]url: /json_proto [11:06:29]query_string will be loaded in cgi processing [11:06:29]execute_cgi json_proto POST (null) [11:06:29]execute_cgi path=json_proto method=POST [11:06:29]POST find Content-Length [11:06:29]Host: 172.17.50.196:8080 [11:06:29]Content-Length: 773 [11:06:29]Content-Type: application/json [11:06:29] [11:06:29]POST finish read [11:06:29]Found Content-Length = 773 [11:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 36.560, "sum" : 1400.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1400.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:29]execute_script... [11:06: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)1094410", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 81", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 36.560, "sum" : 1400.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1400.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:06:29]POST & json_proto [11:06:29]process_json_proto [11:06:29]json parsed OK: [11:06:29]protocol is kg_v1.0 [11:06:29]action value=close_receipt [11:06:29]process_action close_receipt [11:06:29]cmd_close_receipt [11:06:29]MH_GetDate [11:06:29]Write to MH i2c: F0 00 00 FF 3C 2A [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: F0 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: F0 09 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: F0 09 00 FF 3C 00 39 13 22 67 72 0D 1C 67 0A [11:06:29]GetLastDocTimeStamp 1730286312 [11:06:29]current date 1730286393 [11:06:29]FM_GetShiftState [11:06:29]SAM_PROTO_GetShiftState [11:06:29]wFMCommunicate request_size=4 [11:06:29]MH_SAM_APDU [11:06:29]CAPDU: 80 13 01 00 [11:06:29]Write to MH i2c: E2 08 00 00 3D 80 13 01 00 00 00 00 00 BA [11:06:29]Write i2c OK [11:06:29]MH_I2C_Read... [11:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:29]Read from MH i2c: E2 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 0E 00 [11:06:29]MH_I2C_Read... [11:06:29]Read from MH i2c: E2 0E 00 00 3D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4A [11:06:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:06:29]wFMCommunicate OK [11:06:29]SAM_PROTO_GetShiftState done [11:06:29]FM_GetShiftState done [11:06:29]opened in 1730246278 [11:06:29]opened+sec_in_day 1730332678 [11:06:29]quantity*price = 140024 [11:06:29]sum+1 = 140026 [11:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1400.25 НСП 1% : 12.39 НДС 12% : 148.70 Наличными: 0.00 Безнал.: 1400.25 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 77 30.10.2024 11:06 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139393 ФПД: 27397594740234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110634&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139393&fm=27397594740234&tin=02508201610067®Number=0000000000091631&sum=140025 [11:06:30]StoreToDocumentArchive [11:06:30]shift 556 fd 139393 [11:06:30]save to /storage/0556/doc_00139393 [11:06:30]save last doc name /storage/0556/doc_00139393 to /storage/kkm_last_doc_name [11:06:30]save OK [11:06:30]Clear old archive folders... [11:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=250 [11:06:30]tlvbuf is 011FC2F0 [11:06:30]SAM_PROTO_ClearQueue [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 09 00 00 [11:06:30]Write to MH i2c: E2 08 00 0D 3D 80 09 00 00 00 00 00 00 BC [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 0D 3D 00 90 00 BE [11:06:30]RAPDU: 90 00 [11:06:30]wFMCommunicate OK [11:06:30]SAM_PROTO_ClearQueue done [11:06:30]KKMCreateOFDPacket [11:06:30]OFDProtocolAddRootSTLVToBuf [11:06:30]FM_MakeSignedData [11:06:30]FM_MakeSignedData [11:06:30]SAM_PROTO_SignData [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 0D 01 02 [11:06:30]Write to MH i2c: E2 08 00 0E 3D 80 0D 01 02 00 00 00 00 C4 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 0E 3D 00 90 00 BF [11:06:30]RAPDU: 90 00 [11:06:30]wFMCommunicate OK [11:06:30]wFMCommunicate request_size=255 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 8E 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 F9 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 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 16 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 3A 13 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 20 02 00 35 04 06 00 18 EA [11:06:30]Write to MH i2c: E2 02 01 0F 3D 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 8E 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 F9 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 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 16 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 3A 13 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 20 02 00 35 04 06 00 18 EA 00 00 52 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]OFD Sender: No OFD packet to send [11:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 0F 3D 00 90 00 C0 [11:06:30]RAPDU: 90 00 [11:06:30]wFMCommunicate OK [11:06:30]wFMCommunicate request_size=9 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 0D 02 02 04 FF E6 F6 0A [11:06:30]Write to MH i2c: E2 0C 00 10 3D 80 0D 02 02 04 00 FF E6 F6 0A 00 00 B4 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 03 00 10 3D 00 90 00 C1 [11:06:30]RAPDU: 90 00 [11:06:30]wFMCommunicate OK [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 0D 03 02 [11:06:30]Write to MH i2c: E2 08 00 11 3D 80 0D 03 02 00 00 00 00 C9 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 0B 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 0B 00 11 3D 00 B2 64 8E E9 88 A0 73 37 90 00 29 [11:06:30]RAPDU: B2 64 8E E9 88 A0 73 37 90 00 [11:06:30]wFMCommunicate OK [11:06:30]SAM_PROTO_SignData done [11:06:30]FM_MakeSignedData done [11:06:30]CreateOFDProtocolMessage [11:06:30]wFMCommunicate request_size=4 [11:06:30]MH_SAM_APDU [11:06:30]CAPDU: 80 11 00 00 [11:06:30]Write to MH i2c: E2 08 00 12 3D 80 11 00 00 00 00 00 00 C9 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:30]Read from MH i2c: E2 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 17 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: E2 17 00 12 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 24 [11:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:06:30]wFMCommunicate OK [11:06:30]CreateOFDProtocolMessage done [11:06:30]OFDSenderStorePacket 139393 [11:06:30]StoreOFDPacket docnum=139393 [11:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 93 1B 06 01 8C DB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 8E 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 F9 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 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 16 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 3A 13 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 20 02 00 35 04 06 00 18 EA FF E6 F6 0A B2 64 8E E9 88 A0 73 37 [11:06:30]CheckFolder [11:06:30]dirname=/storage/ofd_packets [11:06:30]CheckFolder done [11:06:30]ProducePacketName [11:06:30]name=ofd_packets/00139393 [11:06:30]NVStorageSaveData ofd_packets/00139393 [11:06:30]File name is /storage/ofd_packets/00139393 [11:06:30]Write 300 bytes [11:06:30]NVStorageSaveData done [11:06:30]OFDSenderStorePacket done [11:06:30]KKMCreateOFDPacket done [11:06:30]NVStorageSaveData kkm_last_timestamp [11:06:30]File name is /storage/kkm_last_timestamp [11:06:30]Write 4 bytes [11:06:30]NVStorageSaveData done [11:06:30]ExternCall_PrintAddStr [11:06:30]wPrintStart [11:06:30]Write to MH i2c: 01 00 00 13 3D 50 [11:06:30]Write i2c OK [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 [11:06:30]MH_I2C_Read... [11:06:30]Read from MH i2c: 01 07 00 13 3D 00 00 00 00 00 FF 0F 65 [11:06:30]RasterBufferAndPrint [11:06:30]line Счет N : (1)1094410 [11:06:30]line ИНН: 02508201610067 [11:06:30]line Контрольно-Кассовый Чек [11:06:30]line ПРОДАЖА [11:06:30]line ТРК (МРК, ГНК) : 81 [11:06:30]line Товар: 2711190000 [11:06:30]line ГАЗ-К-5 [11:06:30]line 36.560 * 38.30 [11:06:30]line = 1400.25 [11:06:30]line НДС 12% НСП 1% [11:06:30]line > о реализуемом товаре [11:06:30]line ИТОГО: 1400.25 [11:06:30]line НСП 1% : 12.39 [11:06:30]line НДС 12% : 148.70 [11:06:30]line Наличными: 0.00 [11:06:30]line Безнал.: 1400.25 [11:06:30]line Место: АЗС № 101 "Партнер Нефть" [11:06:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:06:30]line СНО: Общий режим [11:06:30]line Чек 77 30.10.2024 11:06 [11:06:30]line Смена: 556 ФФД: 1.0 [11:06:30]line ЗНМ: 0300000081 [11:06:30]line РНМ: 0000000000091631 [11:06:30]line Версия ККМ: 001 [11:06:30]line Платежная система: Mbank [11:06:30]line ФМ: 0000000000874669 [11:06:30]line ФД: 139393 [11:06:30]line ФПД: 27397594740234 [11:06:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T110634&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139393&fm=27397594740234&tin=02508201610067®Number=0000000000091631&sum=140025 [11:06:30]written 0, free lines is 4095 [11:06:30]OFD Sender: Processing packet 139393 [packets to send 34, broken 33] [11:06:30]ProducePacketName [11:06:30]name=ofd_packets/00139393 [11:06:30]OFD Sender: To server: pG, [11:06:30]CommunicateWithHost lk.salyk.kg:30040 [11:06:30]ConnectInit lk.salyk.kg [11:06:30]Connected sock=10 [11:06:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 93 1B 06 01 8C DB 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 D0 8E 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 F9 22 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F9 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 16 3A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F9 22 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 4D 00 00 00 F4 03 04 00 3A 13 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 20 02 00 35 04 06 00 18 EA FF E6 F6 0A B2 64 8E E9 88 A0 73 37 [11:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 30 B6 47 00 38 6F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 81 20 02 00 F4 03 04 00 EA BE 21 67 B6 04 01 00 00 9C A1 94 AD 94 63 2E 35 [11:06:31]CommunicateWithHost err = 0 [11:06:31]CheckOFDResponse [11:06:31]1017 (14) - 77093643461234 [11:06:31]1041 (16) - 0000000000874669 [11:06:31]1040 (4) - 139393 [11:06:31]1012 (4) - 30.10.2024 05:06 [11:06:31]1206 (1) - 0 [11:06:31]OFD Sender: Remove packet 139393 [11:06:31]ProducePacketName [11:06:31]name=ofd_packets/00139393 [11:06:31]NVStorageDeleteData [11:06:31]Write to MH i2c: 01 00 00 3C 3D 79 [11:06:31]Write i2c OK [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: 01 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: 01 07 00 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: 01 07 00 3C 3D 00 00 00 00 00 1D 0D AA [11:06:31]RasterBufferAndPrint [11:06:31]line [11:06:31]line [11:06:31]line [11:06:31]line [11:06:31]line [11:06:31]written 0, free lines is 3363 [11:06:31]MH_Cut [11:06:31]Write to MH i2c: D1 01 00 43 3D 01 52 [11:06:31]Write i2c OK [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: D1 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: D1 01 00 [11:06:31]MH_I2C_Read... [11:06:31]Read from MH i2c: D1 01 00 43 3D 00 51 [11:06:31]Write to MH i2c: 01 00 00 44 3D 81 [11:06:31]Write i2c OK [11:06:31]MH_I2C_Read... [11:06:31]OFD Sender: No OFD packet to send [11:06:31]*** Cut start [11:06:31]*** Partial cut [11:06:31]*** CUTSNS_PIN = 1 [11:06:31]*** CUTSNS_PIN = 0 [11:06:32]*** Brake cut motor [11:06:32]Read from MH i2c: 01 [11:06:32]MH_I2C_Read... [11:06:32]*** Stop cut motor [11:06:32]*** Cut end [11:06:32]Read from MH i2c: 01 07 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: 01 07 00 44 3D 00 00 00 00 00 FF 0F 96 [11:06:32]process_action close_receipt done [11:06:32]requested_data is exist [11:06:32]produce_requested_data [11:06:32]requested_item fm.sn is exist - process it [11:06:32]wFMCommunicate request_size=4 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 11 00 00 [11:06:32]Write to MH i2c: E2 08 00 45 3D 80 11 00 00 00 00 00 00 FC [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:06:32]Read from MH i2c: E2 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 17 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 17 00 45 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 57 [11:06:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:06:32]wFMCommunicate OK [11:06:32]requested_item fd.num is exist - process it [11:06:32]SAM_PROTO_GetFieldsCounters [11:06:32]wFMCommunicate request_size=4 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 13 00 00 [11:06:32]Write to MH i2c: E2 08 00 46 3D 80 13 00 00 00 00 00 00 FF [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:06:32]Read from MH i2c: E2 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 62 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 62 00 46 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 81 20 02 00 0E 04 04 00 2C 02 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 DB [11:06:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 81 20 02 00 0E 04 04 00 2C 02 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 [11:06:32]wFMCommunicate OK [11:06:32]SAM_PROTO_GetFieldsCounters done [11:06:32]requested_item shift.num is exist - process it [11:06:32]requested_item shift.opened is exist - process it [11:06:32]req_shift_opened [11:06:32]FM_GetShiftState [11:06:32]SAM_PROTO_GetShiftState [11:06:32]wFMCommunicate request_size=4 [11:06:32]MH_SAM_APDU [11:06:32]CAPDU: 80 13 01 00 [11:06:32]Write to MH i2c: E2 08 00 47 3D 80 13 01 00 00 00 00 00 01 [11:06:32]Write i2c OK [11:06:32]MH_I2C_Read... [11:06:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:06:32]Read from MH i2c: E2 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 0E 00 [11:06:32]MH_I2C_Read... [11:06:32]Read from MH i2c: E2 0E 00 47 3D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 91 [11:06:32]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:06:32]wFMCommunicate OK [11:06:32]SAM_PROTO_GetShiftState done [11:06:32]FM_GetShiftState done [11:06:32]req_shift_opened done [11:06:32]requested_item shift.open_date is exist - process it [11:06:32]req_shift_open_date [11:06:32]req_shift_open_date done [11:06:32]produce_requested_data done [11:06:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139393,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [11:06:32]process_action_free close_receipt [11:06:32]json_value_free [11:06:32]json_value_free done [11:06:32]process_json_proto returns [11:06:32]Send response to host [11:06:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139393,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [11:06:32]free response buf [11:06:32]execute_script done [11:06:32]execute_script returns [11:06:32]free content buf [11:06:32]Sock 8.Close socket [11:06:32]Sock 8.Thread stoped [11:06:36]OFD Sender: No OFD packet to send [11:06:41]OFD Sender: No OFD packet to send [11:06:46]OFD Sender: No OFD packet to send [11:06:51]OFD Sender: No OFD packet to send [11:06:56]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:31]OFD Sender: No OFD packet to send [11:07:36]OFD Sender: No OFD packet to send [11:07:41]OFD Sender: No OFD packet to send [11:07:46]OFD Sender: No OFD packet to send [11:07:51]OFD Sender: No OFD packet to send [11:07:56]OFD Sender: No OFD packet to send [11:08:01]OFD Sender: No OFD packet to send [11:08:06]OFD Sender: No OFD packet to send [11:08:11]OFD Sender: No OFD packet to send [11:08:16]OFD Sender: No OFD packet to send [11:08:21]OFD Sender: No OFD packet to send [11:08:26]OFD Sender: No OFD packet to send [11:08:31]OFD Sender: No OFD packet to send [11:08:36]OFD Sender: No OFD packet to send [11:08:41]OFD Sender: No OFD packet to send [11:08:46]OFD Sender: No OFD packet to send [11:08:51]OFD Sender: No OFD packet to send [11:08:56]OFD Sender: No OFD packet to send [11:09:01]OFD Sender: No OFD packet to send [11:09:06]OFD Sender: No OFD packet to send [11:09:11]OFD Sender: No OFD packet to send [11:09:16]OFD Sender: No OFD packet to send [11:09:21]OFD Sender: No OFD packet to send [11:09:26]OFD Sender: No OFD packet to send [11:09:31]OFD Sender: No OFD packet to send [11:09:36]OFD Sender: No OFD packet to send [11:09:41]OFD Sender: No OFD packet to send [11:09:46]OFD Sender: No OFD packet to send [11:09:51]OFD Sender: No OFD packet to send [11:09:56]OFD Sender: No OFD packet to send [11:10:01]OFD Sender: No OFD packet to send [11:10:06]OFD Sender: No OFD packet to send [11:10:11]OFD Sender: No OFD packet to send [11:10:16]OFD Sender: No OFD packet to send [11:10:21]OFD Sender: No OFD packet to send [11:10:26]OFD Sender: No OFD packet to send [11:10:31]OFD Sender: No OFD packet to send [11:10:36]OFD Sender: No OFD packet to send [11:10:41]OFD Sender: No OFD packet to send [11:10:46]OFD Sender: No OFD packet to send [11:10:51]OFD Sender: No OFD packet to send [11:10:56]OFD Sender: No OFD packet to send [11:11:01]OFD Sender: No OFD packet to send [11:11:06]OFD Sender: No OFD packet to send [11:11:11]OFD Sender: No OFD packet to send [11:11:16]OFD Sender: No OFD packet to send [11:11:21]OFD Sender: No OFD packet to send [11:11:26]OFD Sender: No OFD packet to send [11:11:31]OFD Sender: No OFD packet to send [11:11:36]OFD Sender: No OFD packet to send [11:11:41]OFD Sender: No OFD packet to send [11:11:46]OFD Sender: No OFD packet to send [11:11:51]OFD Sender: No OFD packet to send [11:11:56]OFD Sender: No OFD packet to send [11:12:01]OFD Sender: No OFD packet to send [11:12:06]OFD Sender: No OFD packet to send [11:12:11]OFD Sender: No OFD packet to send [11:12:16]OFD Sender: No OFD packet to send [11:12:21]OFD Sender: No OFD packet to send [11:12:26]OFD Sender: No OFD packet to send [11:12:31]OFD Sender: No OFD packet to send [11:12:36]OFD Sender: No OFD packet to send [11:12:41]OFD Sender: No OFD packet to send [11:12:46]OFD Sender: No OFD packet to send [11:12:51]OFD Sender: No OFD packet to send [11:12:56]OFD Sender: No OFD packet to send [11:13:01]OFD Sender: No OFD packet to send [11:13:06]OFD Sender: No OFD packet to send [11:13:11]OFD Sender: No OFD packet to send [11:13:17]OFD Sender: No OFD packet to send [11:13:22]OFD Sender: No OFD packet to send [11:13:27]OFD Sender: No OFD packet to send [11:13:32]OFD Sender: No OFD packet to send [11:13:37]OFD Sender: No OFD packet to send [11:13:42]OFD Sender: No OFD packet to send [11:13:47]OFD Sender: No OFD packet to send [11:13:52]OFD Sender: No OFD packet to send [11:13:57]OFD Sender: No OFD packet to send [11:14:02]OFD Sender: No OFD packet to send [11:14:07]OFD Sender: No OFD packet to send [11:14:12]OFD Sender: No OFD packet to send [11:14:17]OFD Sender: No OFD packet to send [11:14:22]OFD Sender: No OFD packet to send [11:14:27]OFD Sender: No OFD packet to send [11:14:32]OFD Sender: No OFD packet to send [11:14:37]OFD Sender: No OFD packet to send [11:14:42]OFD Sender: No OFD packet to send [11:14:47]OFD Sender: No OFD packet to send [11:14:52]OFD Sender: No OFD packet to send [11:14:57]OFD Sender: No OFD packet to send [11:15:02]OFD Sender: No OFD packet to send [11:15:07]OFD Sender: No OFD packet to send [11:15:12]OFD Sender: No OFD packet to send [11:15:17]OFD Sender: No OFD packet to send [11:15:22]OFD Sender: No OFD packet to send [11:15:27]OFD Sender: No OFD packet to send [11:15:32]OFD Sender: No OFD packet to send [11:15:37]OFD Sender: No OFD packet to send [11:15:42]OFD Sender: No OFD packet to send [11:15:47]OFD Sender: No OFD packet to send [11:15:52]OFD Sender: No OFD packet to send [11:15:57]OFD Sender: No OFD packet to send [11:16:02]OFD Sender: No OFD packet to send [11:16:07]OFD Sender: No OFD packet to send [11:16:12]OFD Sender: No OFD packet to send [11:16:17]OFD Sender: No OFD packet to send [11:16:22]OFD Sender: No OFD packet to send [11:16:27]OFD Sender: No OFD packet to send [11:16:32]OFD Sender: No OFD packet to send [11:16:37]OFD Sender: No OFD packet to send [11:16:42]OFD Sender: No OFD packet to send [11:16:47]OFD Sender: No OFD packet to send [11:16:52]OFD Sender: No OFD packet to send [11:16:57]OFD Sender: No OFD packet to send [11:17:02]OFD Sender: No OFD packet to send [11:17:07]OFD Sender: No OFD packet to send [11:17:12]OFD Sender: No OFD packet to send [11:17:17]OFD Sender: No OFD packet to send [11:17:22]OFD Sender: No OFD packet to send [11:17:27]OFD Sender: No OFD packet to send [11:17:32]OFD Sender: No OFD packet to send [11:17:37]OFD Sender: No OFD packet to send [11:17:42]OFD Sender: No OFD packet to send [11:17:47]OFD Sender: No OFD packet to send [11:17:52]OFD Sender: No OFD packet to send [11:17:57]OFD Sender: No OFD packet to send [11:18:02]OFD Sender: No OFD packet to send [11:18:07]OFD Sender: No OFD packet to send [11:18:12]OFD Sender: No OFD packet to send [11:18:17]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:17]OFD Sender: No OFD packet to send [11:19:22]OFD Sender: No OFD packet to send [11:19:27]OFD Sender: No OFD packet to send [11:19:32]OFD Sender: No OFD packet to send [11:19:37]OFD Sender: No OFD packet to send [11:19:42]OFD Sender: No OFD packet to send [11:19:47]OFD Sender: No OFD packet to send [11:19:52]OFD Sender: No OFD packet to send [11:19:57]OFD Sender: No OFD packet to send [11:20:02]OFD Sender: No OFD packet to send [11:20:07]OFD Sender: No OFD packet to send [11:20:12]OFD Sender: No OFD packet to send [11:20:17]OFD Sender: No OFD packet to send [11:20:22]OFD Sender: No OFD packet to send [11:20:27]OFD Sender: No OFD packet to send [11:20:27]accept exits with 9 [11:20:27]New connection [11:20:27]New thread 3067141476 created [11:20:27]Thread 3067284836 joined [11:20:27]Waiting for new connection... [11:20:27] Sock 9.Parse request [11:20:27]Sock 9.Check first char [11:20:27]Sock 9.First char is OK [11:20:27]request: POST /json_proto HTTP/1.0 [11:20:27]Method: POST [11:20:27]URL: /json_proto [11:20:27]Method is POST - this is cgi request [11:20:27]url: /json_proto [11:20:27]query_string will be loaded in cgi processing [11:20:27]execute_cgi json_proto POST (null) [11:20:27]execute_cgi path=json_proto method=POST [11:20:27]POST find Content-Length [11:20:27]Host: 172.17.50.196:8080 [11:20:27]Content-Length: 684 [11:20:27]Content-Type: application/json [11:20:27] [11:20:27]POST finish read [11:20:27]Found Content-Length = 684 [11:20:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335305", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:27]execute_script... [11:20: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 : (3)335305", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 2.000, "sum" : 140.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 140.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:20:27]POST & json_proto [11:20:27]process_json_proto [11:20:27]json parsed OK: [11:20:27]protocol is kg_v1.0 [11:20:27]action value=close_receipt [11:20:27]process_action close_receipt [11:20:27]cmd_close_receipt [11:20:27]MH_GetDate [11:20:27]Write to MH i2c: F0 00 00 48 3D 74 [11:20:27]Write i2c OK [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: F0 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: F0 09 00 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: F0 09 00 48 3D 00 80 16 22 67 72 0D 1C 67 9E [11:20:27]GetLastDocTimeStamp 1730286394 [11:20:27]current date 1730287232 [11:20:27]FM_GetShiftState [11:20:27]SAM_PROTO_GetShiftState [11:20:27]wFMCommunicate request_size=4 [11:20:27]MH_SAM_APDU [11:20:27]CAPDU: 80 13 01 00 [11:20:27]Write to MH i2c: E2 08 00 49 3D 80 13 01 00 00 00 00 00 03 [11:20:27]Write i2c OK [11:20:27]MH_I2C_Read... [11:20:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:27]Read from MH i2c: E2 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: E2 0E 00 [11:20:27]MH_I2C_Read... [11:20:27]Read from MH i2c: E2 0E 00 49 3D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 93 [11:20:27]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:20:27]wFMCommunicate OK [11:20:27]SAM_PROTO_GetShiftState done [11:20:27]FM_GetShiftState done [11:20:27]opened in 1730246278 [11:20:27]opened+sec_in_day 1730332678 [11:20:27]quantity*price = 14000 [11:20:27]sum+1 = 14001 [11:20:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 140.00 НСП 1% : 1.24 НДС 12% : 14.87 Наличными: 140.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 78 30.10.2024 11:20 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139394 ФПД: 122263431917181 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112032&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139394&fm=122263431917181&tin=02508201610067®Number=0000000000091631&sum=14000 0 [11:20:28]StoreToDocumentArchive [11:20:28]shift 556 fd 139394 [11:20:28]save to /storage/0556/doc_00139394 [11:20:28]save last doc name /storage/0556/doc_00139394 to /storage/kkm_last_doc_name [11:20:28]save OK [11:20:28]Clear old archive folders... [11:20:28]ProcessDocumentItem done err = 0, tmpTLVsize=293 [11:20:28]tlvbuf is B6FA9AC0 [11:20:28]SAM_PROTO_ClearQueue [11:20:28]wFMCommunicate request_size=4 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 09 00 00 [11:20:28]Write to MH i2c: E2 08 00 56 3D 80 09 00 00 00 00 00 00 05 [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 56 3D 00 90 00 07 [11:20:28]RAPDU: 90 00 [11:20:28]wFMCommunicate OK [11:20:28]SAM_PROTO_ClearQueue done [11:20:28]KKMCreateOFDPacket [11:20:28]OFDProtocolAddRootSTLVToBuf [11:20:28]FM_MakeSignedData [11:20:28]FM_MakeSignedData [11:20:28]SAM_PROTO_SignData [11:20:28]wFMCommunicate request_size=4 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 0D 01 02 [11:20:28]Write to MH i2c: E2 08 00 57 3D 80 0D 01 02 00 00 00 00 0D [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:20:28]Read from MH i2c: E2 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 [11:20:28]MH_I2C_Read... [11:20:28]Read from MH i2c: E2 03 00 57 3D 00 90 00 08 [11:20:28]RAPDU: 90 00 [11:20:28]wFMCommunicate OK [11:20:28]wFMCommunicate request_size=255 [11:20:28]MH_SAM_APDU [11:20:28]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 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 CF 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 4E 00 00 00 F4 03 04 00 80 16 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [11:20:28]Write to MH i2c: E2 02 01 58 3D 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 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 CF 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 4E 00 00 00 F4 03 04 00 80 16 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 88 [11:20:28]Write i2c OK [11:20:28]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 58 3D 00 90 00 09 [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]wFMCommunicate request_size=52 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 20 02 00 35 04 06 00 6F 32 AC 6D AE 7D [11:20:29]Write to MH i2c: E2 37 00 59 3D 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 20 02 00 35 04 06 00 6F 32 AC 6D AE 7D 00 00 5F [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 03 00 59 3D 00 90 00 0A [11:20:29]RAPDU: 90 00 [11:20:29]wFMCommunicate OK [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 0D 03 02 [11:20:29]Write to MH i2c: E2 08 00 5A 3D 80 0D 03 02 00 00 00 00 12 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 0B 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 0B 00 5A 3D 00 C3 23 2E 36 1D 8B 5A 77 90 00 D6 [11:20:29]RAPDU: C3 23 2E 36 1D 8B 5A 77 90 00 [11:20:29]wFMCommunicate OK [11:20:29]SAM_PROTO_SignData done [11:20:29]FM_MakeSignedData done [11:20:29]CreateOFDProtocolMessage [11:20:29]wFMCommunicate request_size=4 [11:20:29]MH_SAM_APDU [11:20:29]CAPDU: 80 11 00 00 [11:20:29]Write to MH i2c: E2 08 00 5B 3D 80 11 00 00 00 00 00 00 12 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:29]Read from MH i2c: E2 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 17 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: E2 17 00 5B 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6D [11:20:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:20:29]wFMCommunicate OK [11:20:29]CreateOFDProtocolMessage done [11:20:29]OFDSenderStorePacket 139394 [11:20:29]StoreOFDPacket docnum=139394 [11:20:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 38 E2 31 01 51 BD 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 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 CF 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 4E 00 00 00 F4 03 04 00 80 16 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 20 02 00 35 04 06 00 6F 32 AC 6D AE 7D C3 23 2E 36 1D 8B 5A 77 [11:20:29]CheckFolder [11:20:29]dirname=/storage/ofd_packets [11:20:29]CheckFolder done [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00139394 [11:20:29]NVStorageSaveData ofd_packets/00139394 [11:20:29]File name is /storage/ofd_packets/00139394 [11:20:29]Write 343 bytes [11:20:29]NVStorageSaveData done [11:20:29]OFDSenderStorePacket done [11:20:29]KKMCreateOFDPacket done [11:20:29]NVStorageSaveData kkm_last_timestamp [11:20:29]File name is /storage/kkm_last_timestamp [11:20:29]OFD Sender: Processing packet 139394 [packets to send 34, broken 33] [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00139394 [11:20:29]OFD Sender: To server: pG, [11:20:29]CommunicateWithHost lk.salyk.kg:30040 [11:20:29]ConnectInit lk.salyk.kg [11:20:29]Write 4 bytes [11:20:29]NVStorageSaveData done [11:20:29]ExternCall_PrintAddStr [11:20:29]wPrintStart [11:20:29]Write to MH i2c: 01 00 00 5C 3D 99 [11:20:29]Write i2c OK [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 07 00 [11:20:29]MH_I2C_Read... [11:20:29]Read from MH i2c: 01 07 00 5C 3D 00 00 00 00 00 FF 0F AE [11:20:29]RasterBufferAndPrint [11:20:29]line Счет N : (3)335305 [11:20:29]line ИНН: 02508201610067 [11:20:29]line Контрольно-Кассовый Чек [11:20:29]line ПРОДАЖА [11:20:29]line Товар: 4870202521148 [11:20:29]line Напиток MAXI чай зел лимон 0.45л [11:20:29]line 2.000 * 70.00 [11:20:29]line = 140.00 [11:20:29]line НДС 12% НСП 1% [11:20:29]line > о реализуемом товаре [11:20:29]line ИТОГО: 140.00 [11:20:29]line НСП 1% : 1.24 [11:20:29]line НДС 12% : 14.87 [11:20:29]line Наличными: 140.00 [11:20:29]line Безнал.: 0.00 [11:20:29]line Место: АЗС № 101 "Партнер Нефть" [11:20:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:20:29]line СНО: Общий режим [11:20:29]line Чек 78 30.10.2024 11:20 [11:20:29]line Смена: 556 ФФД: 1.0 [11:20:29]line ЗНМ: 0300000081 [11:20:29]line РНМ: 0000000000091631 [11:20:29]line Версия ККМ: 001 [11:20:29]line ФМ: 0000000000874669 [11:20:29]line ФД: 139394 [11:20:29]line ФПД: 122263431917181 [11:20:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112032&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139394&fm=122263431917181&tin=02508201610067®Number=0000000000091631&sum=14000 [11:20:29]line 0 [11:20:29]Connected sock=11 [11:20:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 38 E2 31 01 51 BD 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 B0 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 CF 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 4E 00 00 00 F4 03 04 00 80 16 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 82 20 02 00 35 04 06 00 6F 32 AC 6D AE 7D C3 23 2E 36 1D 8B 5A 77 [11:20:29]written 0, free lines is 4095 [11:20:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 79 11 47 00 E7 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 38 37 34 36 36 39 10 04 04 00 82 20 02 00 F4 03 04 00 31 C2 21 67 B6 04 01 00 00 FF BF F4 7A D9 C6 F0 CD [11:20:29]CommunicateWithHost err = 0 [11:20:29]CheckOFDResponse [11:20:29]1017 (14) - 77093643461234 [11:20:29]1041 (16) - 0000000000874669 [11:20:29]1040 (4) - 139394 [11:20:29]1012 (4) - 30.10.2024 05:20 [11:20:29]1206 (1) - 0 [11:20:29]OFD Sender: Remove packet 139394 [11:20:29]ProducePacketName [11:20:29]name=ofd_packets/00139394 [11:20:29]NVStorageDeleteData [11:20:30]Write to MH i2c: 01 00 00 85 3D C2 [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: 01 07 00 85 3D 00 00 00 00 00 FD 0C D2 [11:20:30]RasterBufferAndPrint [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]line [11:20:30]written 0, free lines is 3334 [11:20:30]MH_Cut [11:20:30]Write to MH i2c: D1 01 00 8C 3D 01 9B [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 01 00 [11:20:30]MH_I2C_Read... [11:20:30]Read from MH i2c: D1 01 00 8C 3D 00 9A [11:20:30]Write to MH i2c: 01 00 00 8D 3D CA [11:20:30]Write i2c OK [11:20:30]MH_I2C_Read... [11:20:30]OFD Sender: No OFD packet to send [11:20:30]*** Cut start [11:20:30]*** Partial cut [11:20:30]*** CUTSNS_PIN = 1 [11:20:30]*** CUTSNS_PIN = 0 [11:20:30]*** Brake cut motor [11:20:31]Read from MH i2c: 01 [11:20:31]MH_I2C_Read... [11:20:31]*** Stop cut motor [11:20:31]*** Cut end [11:20:31]Read from MH i2c: 01 07 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: 01 07 00 8D 3D 00 00 00 00 00 FF 0F DF [11:20:31]process_action close_receipt done [11:20:31]requested_data is exist [11:20:31]produce_requested_data [11:20:31]requested_item fm.sn is exist - process it [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 11 00 00 [11:20:31]Write to MH i2c: E2 08 00 8E 3D 80 11 00 00 00 00 00 00 45 [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 17 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 17 00 8E 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A0 [11:20:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:20:31]wFMCommunicate OK [11:20:31]requested_item fd.num is exist - process it [11:20:31]SAM_PROTO_GetFieldsCounters [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 13 00 00 [11:20:31]Write to MH i2c: E2 08 00 8F 3D 80 13 00 00 00 00 00 00 48 [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 62 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 62 00 8F 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 82 20 02 00 0E 04 04 00 2C 02 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 28 [11:20:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 82 20 02 00 0E 04 04 00 2C 02 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 [11:20:31]wFMCommunicate OK [11:20:31]SAM_PROTO_GetFieldsCounters done [11:20:31]requested_item shift.num is exist - process it [11:20:31]requested_item shift.opened is exist - process it [11:20:31]req_shift_opened [11:20:31]FM_GetShiftState [11:20:31]SAM_PROTO_GetShiftState [11:20:31]wFMCommunicate request_size=4 [11:20:31]MH_SAM_APDU [11:20:31]CAPDU: 80 13 01 00 [11:20:31]Write to MH i2c: E2 08 00 90 3D 80 13 01 00 00 00 00 00 4A [11:20:31]Write i2c OK [11:20:31]MH_I2C_Read... [11:20:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:20:31]Read from MH i2c: E2 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 0E 00 [11:20:31]MH_I2C_Read... [11:20:31]Read from MH i2c: E2 0E 00 90 3D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DA [11:20:31]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:20:31]wFMCommunicate OK [11:20:31]SAM_PROTO_GetShiftState done [11:20:31]FM_GetShiftState done [11:20:31]req_shift_opened done [11:20:31]requested_item shift.open_date is exist - process it [11:20:31]req_shift_open_date [11:20:31]req_shift_open_date done [11:20:31]produce_requested_data done [11:20:31]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139394,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [11:20:31]process_action_free close_receipt [11:20:31]json_value_free [11:20:31]json_value_free done [11:20:31]process_json_proto returns [11:20:31]Send response to host [11:20:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139394,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [11:20:31]free response buf [11:20:31]execute_script done [11:20:31]execute_script returns [11:20:31]free content buf [11:20:31]Sock 9.Close socket [11:20:31]Sock 9.Thread stoped [11:20:35]OFD Sender: No OFD packet to send [11:20:40]OFD Sender: No OFD packet to send [11:20:45]OFD Sender: No OFD packet to send [11:20:50]OFD Sender: No OFD packet to send [11:20:55]OFD Sender: No OFD packet to send [11:21:00]OFD Sender: No OFD packet to send [11:21:05]OFD Sender: No OFD packet to send [11:21:10]OFD Sender: No OFD packet to send [11:21:15]OFD Sender: No OFD packet to send [11:21:20]OFD Sender: No OFD packet to send [11:21:25]OFD Sender: No OFD packet to send [11:21:30]OFD Sender: No OFD packet to send [11:21:35]OFD Sender: No OFD packet to send [11:21:40]OFD Sender: No OFD packet to send [11:21:45]OFD Sender: No OFD packet to send [11:21:50]OFD Sender: No OFD packet to send [11:21:55]OFD Sender: No OFD packet to send [11:22:00]OFD Sender: No OFD packet to send [11:22:05]OFD Sender: No OFD packet to send [11:22:10]OFD Sender: No OFD packet to send [11:22:15]OFD Sender: No OFD packet to send [11:22:20]OFD Sender: No OFD packet to send [11:22:25]OFD Sender: No OFD packet to send [11:22:30]OFD Sender: No OFD packet to send [11:22:35]OFD Sender: No OFD packet to send [11:22:40]OFD Sender: No OFD packet to send [11:22:45]OFD Sender: No OFD packet to send [11:22:50]OFD Sender: No OFD packet to send [11:22:55]OFD Sender: No OFD packet to send [11:23:00]OFD Sender: No OFD packet to send [11:23:05]OFD Sender: No OFD packet to send [11:23:10]OFD Sender: No OFD packet to send [11:23:15]OFD Sender: No OFD packet to send [11:23:20]OFD Sender: No OFD packet to send [11:23:25]OFD Sender: No OFD packet to send [11:23:30]OFD Sender: No OFD packet to send [11:23:35]OFD Sender: No OFD packet to send [11:23:40]OFD Sender: No OFD packet to send [11:23:45]OFD Sender: No OFD packet to send [11:23:50]OFD Sender: No OFD packet to send [11:23:55]OFD Sender: No OFD packet to send [11:24:00]OFD Sender: No OFD packet to send [11:24:04]accept exits with 8 [11:24:04]New connection [11:24:04]New thread 3067284836 created [11:24:04]Thread 3067141476 joined [11:24:04]Waiting for new connection... [11:24:04] Sock 8.Parse request [11:24:04]Sock 8.Check first char [11:24:04]Sock 8.First char is OK [11:24:04]request: POST /json_proto HTTP/1.0 [11:24:04]Method: POST [11:24:04]URL: /json_proto [11:24:04]Method is POST - this is cgi request [11:24:04]url: /json_proto [11:24:04]query_string will be loaded in cgi processing [11:24:04]execute_cgi json_proto POST (null) [11:24:04]execute_cgi path=json_proto method=POST [11:24:04]POST find Content-Length [11:24:04]Host: 172.17.50.196:8080 [11:24:04]Content-Length: 621 [11:24:04]Content-Type: application/json [11:24:04] [11:24:04]POST finish read [11:24:04]Found Content-Length = 621 [11:24:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335307", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:04]execute_script... [11: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 : (3)335307", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:24:04]POST & json_proto [11:24:04]process_json_proto [11:24:04]json parsed OK: [11:24:04]protocol is kg_v1.0 [11:24:04]action value=close_receipt [11:24:04]process_action close_receipt [11:24:04]cmd_close_receipt [11:24:04]MH_GetDate [11:24:04]Write to MH i2c: F0 00 00 91 3D BD [11:24:04]Write i2c OK [11:24:04]MH_I2C_Read... [11:24:04]Read from MH i2c: F0 [11:24:04]MH_I2C_Read... [11:24:04]Read from MH i2c: F0 09 00 [11:24:04]MH_I2C_Read... [11:24:04]Read from MH i2c: F0 09 00 91 3D 00 59 17 22 67 72 0D 1C 67 C1 [11:24:04]GetLastDocTimeStamp 1730287232 [11:24:04]current date 1730287449 [11:24:04]FM_GetShiftState [11:24:04]SAM_PROTO_GetShiftState [11:24:04]wFMCommunicate request_size=4 [11:24:04]MH_SAM_APDU [11:24:04]CAPDU: 80 13 01 00 [11:24:04]Write to MH i2c: E2 08 00 92 3D 80 13 01 00 00 00 00 00 4C [11:24:04]Write i2c OK [11:24:04]MH_I2C_Read... [11:24:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:04]Read from MH i2c: E2 [11:24:04]MH_I2C_Read... [11:24:04]Read from MH i2c: E2 0E 00 [11:24:04]MH_I2C_Read... [11:24:04]Read from MH i2c: E2 0E 00 92 3D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DC [11:24:04]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:24:04]wFMCommunicate OK [11:24:04]SAM_PROTO_GetShiftState done [11:24:04]FM_GetShiftState done [11:24:04]opened in 1730246278 [11:24:04]opened+sec_in_day 1730332678 [11:24:04]quantity*price = 14400 [11:24:04]sum+1 = 14401 [11:24:04]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 79 30.10.2024 11:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139395 ФПД: 240494489437361 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112409&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139395&fm=240494489437361&tin=02508201610067®Number=0000000000091631&sum=14400 0 [11:24:05]StoreToDocumentArchive [11:24:05]shift 556 fd 139395 [11:24:05]save to /storage/0556/doc_00139395 [11:24:05]save last doc name /storage/0556/doc_00139395 to /storage/kkm_last_doc_name [11:24:05]save OK [11:24:05]Clear old archive folders... [11:24:05]ProcessDocumentItem done err = 0, tmpTLVsize=273 [11:24:05]tlvbuf is 011FC210 [11:24:05]SAM_PROTO_ClearQueue [11:24:05]wFMCommunicate request_size=4 [11:24:05]MH_SAM_APDU [11:24:05]CAPDU: 80 09 00 00 [11:24:05]Write to MH i2c: E2 08 00 9F 3D 80 09 00 00 00 00 00 00 4E [11:24:05]Write i2c OK [11:24:05]MH_I2C_Read... [11:24:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:24:05]Read from MH i2c: E2 [11:24:05]MH_I2C_Read... [11:24:05]Read from MH i2c: E2 03 00 [11:24:05]MH_I2C_Read... [11:24:05]Read from MH i2c: E2 03 00 9F 3D 00 90 00 50 [11:24:05]RAPDU: 90 00 [11:24:05]wFMCommunicate OK [11:24:05]SAM_PROTO_ClearQueue done [11:24:05]KKMCreateOFDPacket [11:24:05]OFDProtocolAddRootSTLVToBuf [11:24:05]FM_MakeSignedData [11:24:05]FM_MakeSignedData [11:24:05]SAM_PROTO_SignData [11:24:05]wFMCommunicate request_size=4 [11:24:05]MH_SAM_APDU [11:24:05]CAPDU: 80 0D 01 02 [11:24:05]Write to MH i2c: E2 08 00 A0 3D 80 0D 01 02 00 00 00 00 56 [11:24:05]Write i2c OK [11:24:05]MH_I2C_Read... [11:24:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:24:05]Read from MH i2c: E2 [11:24:05]MH_I2C_Read... [11:24:05]Read from MH i2c: E2 03 00 [11:24:05]MH_I2C_Read... [11:24:05]Read from MH i2c: E2 03 00 A0 3D 00 90 00 51 [11:24:05]RAPDU: 90 00 [11:24:05]wFMCommunicate OK [11:24:05]wFMCommunicate request_size=255 [11:24:05]MH_SAM_APDU [11:24:05]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 59 17 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [11:24:05]Write to MH i2c: E2 02 01 A1 3D 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 59 17 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 1D [11:24:05]Write i2c OK [11:24:05]MH_I2C_Read... [11:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:05]Read from MH i2c: E2 [11:24:05]MH_I2C_Read... [11:24:05]Read from MH i2c: E2 03 00 [11:24:05]MH_I2C_Read... [11:24:05]Read from MH i2c: E2 03 00 A1 3D 00 90 00 52 [11:24:05]RAPDU: 90 00 [11:24:05]wFMCommunicate OK [11:24:05]wFMCommunicate request_size=32 [11:24:05]MH_SAM_APDU [11:24:05]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 83 20 02 00 35 04 06 00 DA BA 7C 9D 04 B1 [11:24:05]Write to MH i2c: E2 23 00 A2 3D 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 83 20 02 00 35 04 06 00 DA BA 7C 9D 04 B1 00 00 C5 [11:24:05]Write i2c OK [11:24:05]MH_I2C_Read... [11:24:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:24:05]Read from MH i2c: E2 [11:24:05]MH_I2C_Read... [11:24:05]Read from MH i2c: E2 03 00 [11:24:05]MH_I2C_Read... [11:24:05]Read from MH i2c: E2 03 00 A2 3D 00 90 00 53 [11:24:05]RAPDU: 90 00 [11:24:05]wFMCommunicate OK [11:24:05]wFMCommunicate request_size=4 [11:24:05]MH_SAM_APDU [11:24:05]CAPDU: 80 0D 03 02 [11:24:05]Write to MH i2c: E2 08 00 A3 3D 80 0D 03 02 00 00 00 00 5B [11:24:05]Write i2c OK [11:24:05]MH_I2C_Read... [11:24:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:24:06]Read from MH i2c: E2 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: E2 0B 00 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: E2 0B 00 A3 3D 00 79 51 A7 A5 41 DB 46 55 90 00 29 [11:24:06]RAPDU: 79 51 A7 A5 41 DB 46 55 90 00 [11:24:06]wFMCommunicate OK [11:24:06]SAM_PROTO_SignData done [11:24:06]FM_MakeSignedData done [11:24:06]CreateOFDProtocolMessage [11:24:06]wFMCommunicate request_size=4 [11:24:06]MH_SAM_APDU [11:24:06]CAPDU: 80 11 00 00 [11:24:06]Write to MH i2c: E2 08 00 A4 3D 80 11 00 00 00 00 00 00 5B [11:24:06]Write i2c OK [11:24:06]MH_I2C_Read... [11:24:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:06]Read from MH i2c: E2 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: E2 17 00 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: E2 17 00 A4 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B6 [11:24:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:24:06]wFMCommunicate OK [11:24:06]CreateOFDProtocolMessage done [11:24:06]OFDSenderStorePacket 139395 [11:24:06]StoreOFDPacket docnum=139395 [11:24:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 81 AC 1D 01 18 AF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 59 17 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 83 20 02 00 35 04 06 00 DA BA 7C 9D 04 B1 79 51 A7 A5 41 DB 46 55 [11:24:06]CheckFolder [11:24:06]dirname=/storage/ofd_packets [11:24:06]CheckFolder done [11:24:06]ProducePacketName [11:24:06]name=ofd_packets/00139395 [11:24:06]NVStorageSaveData ofd_packets/00139395 [11:24:06]File name is /storage/ofd_packets/00139395 [11:24:06]Write 323 bytes [11:24:06]NVStorageSaveData done [11:24:06]OFDSenderStorePacket done [11:24:06]KKMCreateOFDPacket done [11:24:06]NVStorageSaveData kkm_last_timestamp [11:24:06]File name is /storage/kkm_last_timestamp [11:24:06]Write 4 bytes [11:24:06]NVStorageSaveData done [11:24:06]ExternCall_PrintAddStr [11:24:06]wPrintStart [11:24:06]Write to MH i2c: 01 00 00 A5 3D E2 [11:24:06]Write i2c OK [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: 01 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: 01 07 00 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: 01 07 00 A5 3D 00 00 00 00 00 FF 0F F7 [11:24:06]RasterBufferAndPrint [11:24:06]line Счет N : (3)335307 [11:24:06]line ИНН: 02508201610067 [11:24:06]line Контрольно-Кассовый Чек [11:24:06]line ПРОДАЖА [11:24:06]line Товар: 48747059 [11:24:06]line Сигареты Winston Legend Blue [11:24:06]line 1.000 * 144.00 [11:24:06]line = 144.00 [11:24:06]line НДС 12% НСП 1% [11:24:06]line > о реализуемом товаре [11:24:06]line ИТОГО: 144.00 [11:24:06]line НСП 1% : 1.27 [11:24:06]line НДС 12% : 15.29 [11:24:06]line Наличными: 144.00 [11:24:06]line Безнал.: 0.00 [11:24:06]line Место: АЗС № 101 "Партнер Нефть" [11:24:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:24:06]line СНО: Общий режим [11:24:06]line Чек 79 30.10.2024 11:24 [11:24:06]line Смена: 556 ФФД: 1.0 [11:24:06]line ЗНМ: 0300000081 [11:24:06]line РНМ: 0000000000091631 [11:24:06]line Версия ККМ: 001 [11:24:06]line ФМ: 0000000000874669 [11:24:06]line ФД: 139395 [11:24:06]line ФПД: 240494489437361 [11:24:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T112409&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139395&fm=240494489437361&tin=02508201610067®Number=0000000000091631&sum=14400 [11:24:06]line 0 [11:24:06]OFD Sender: Processing packet 139395 [packets to send 34, broken 33] [11:24:06]ProducePacketName [11:24:06]name=ofd_packets/00139395 [11:24:06]OFD Sender: To server: pG, [11:24:06]CommunicateWithHost lk.salyk.kg:30040 [11:24:06]ConnectInit lk.salyk.kg [11:24:06]written 0, free lines is 4095 [11:24:06]Connected sock=10 [11:24:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 81 AC 1D 01 18 AF 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 59 17 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 83 20 02 00 35 04 06 00 DA BA 7C 9D 04 B1 79 51 A7 A5 41 DB 46 55 [11:24:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 27 83 47 00 94 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 38 37 34 36 36 39 10 04 04 00 83 20 02 00 F4 03 04 00 0A C3 21 67 B6 04 01 00 00 F1 48 E9 63 69 ED 1E 44 [11:24:06]CommunicateWithHost err = 0 [11:24:06]CheckOFDResponse [11:24:06]1017 (14) - 77093643461234 [11:24:06]1041 (16) - 0000000000874669 [11:24:06]1040 (4) - 139395 [11:24:06]1012 (4) - 30.10.2024 05:24 [11:24:06]1206 (1) - 0 [11:24:06]OFD Sender: Remove packet 139395 [11:24:06]ProducePacketName [11:24:06]name=ofd_packets/00139395 [11:24:06]NVStorageDeleteData [11:24:06]Write to MH i2c: 01 00 00 CE 3D 0B [11:24:06]Write i2c OK [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: 01 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: 01 07 00 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: 01 07 00 CE 3D 00 00 00 00 00 EA 0C 08 [11:24:06]RasterBufferAndPrint [11:24:06]line [11:24:06]line [11:24:06]line [11:24:06]line [11:24:06]line [11:24:06]written 0, free lines is 3315 [11:24:06]MH_Cut [11:24:06]Write to MH i2c: D1 01 00 D5 3D 01 E4 [11:24:06]Write i2c OK [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: D1 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: D1 01 00 [11:24:06]MH_I2C_Read... [11:24:06]Read from MH i2c: D1 01 00 D5 3D 00 E3 [11:24:06]Write to MH i2c: 01 00 00 D6 3D 13 [11:24:06]Write i2c OK [11:24:06]MH_I2C_Read... [11:24:07]OFD Sender: No OFD packet to send [11:24:07]*** Cut start [11:24:07]*** Partial cut [11:24:07]*** CUTSNS_PIN = 1 [11:24:07]*** CUTSNS_PIN = 0 [11:24:07]*** Brake cut motor [11:24:08]Read from MH i2c: 01 [11:24:08]MH_I2C_Read... [11:24:08]*** Stop cut motor [11:24:08]*** Cut end [11:24:08]Read from MH i2c: 01 07 00 [11:24:08]MH_I2C_Read... [11:24:08]Read from MH i2c: 01 07 00 D6 3D 00 00 00 00 00 FF 0F 28 [11:24:08]process_action close_receipt done [11:24:08]requested_data is exist [11:24:08]produce_requested_data [11:24:08]requested_item fm.sn is exist - process it [11:24:08]wFMCommunicate request_size=4 [11:24:08]MH_SAM_APDU [11:24:08]CAPDU: 80 11 00 00 [11:24:08]Write to MH i2c: E2 08 00 D7 3D 80 11 00 00 00 00 00 00 8E [11:24:08]Write i2c OK [11:24:08]MH_I2C_Read... [11:24:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:24:08]Read from MH i2c: E2 [11:24:08]MH_I2C_Read... [11:24:08]Read from MH i2c: E2 17 00 [11:24:08]MH_I2C_Read... [11:24:08]Read from MH i2c: E2 17 00 D7 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E9 [11:24:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:24:08]wFMCommunicate OK [11:24:08]requested_item fd.num is exist - process it [11:24:08]SAM_PROTO_GetFieldsCounters [11:24:08]wFMCommunicate request_size=4 [11:24:08]MH_SAM_APDU [11:24:08]CAPDU: 80 13 00 00 [11:24:08]Write to MH i2c: E2 08 00 D8 3D 80 13 00 00 00 00 00 00 91 [11:24:08]Write i2c OK [11:24:08]MH_I2C_Read... [11:24:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:24:08]Read from MH i2c: E2 [11:24:08]MH_I2C_Read... [11:24:08]Read from MH i2c: E2 62 00 [11:24:08]MH_I2C_Read... [11:24:08]Read from MH i2c: E2 62 00 D8 3D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 83 20 02 00 0E 04 04 00 2C 02 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 75 [11:24:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 83 20 02 00 0E 04 04 00 2C 02 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 [11:24:08]wFMCommunicate OK [11:24:08]SAM_PROTO_GetFieldsCounters done [11:24:08]requested_item shift.num is exist - process it [11:24:08]requested_item shift.opened is exist - process it [11:24:08]req_shift_opened [11:24:08]FM_GetShiftState [11:24:08]SAM_PROTO_GetShiftState [11:24:08]wFMCommunicate request_size=4 [11:24:08]MH_SAM_APDU [11:24:08]CAPDU: 80 13 01 00 [11:24:08]Write to MH i2c: E2 08 00 D9 3D 80 13 01 00 00 00 00 00 93 [11:24:08]Write i2c OK [11:24:08]MH_I2C_Read... [11:24:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:24:08]Read from MH i2c: E2 [11:24:08]MH_I2C_Read... [11:24:08]Read from MH i2c: E2 0E 00 [11:24:08]MH_I2C_Read... [11:24:08]Read from MH i2c: E2 0E 00 D9 3D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 23 [11:24:08]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:24:08]wFMCommunicate OK [11:24:08]SAM_PROTO_GetShiftState done [11:24:08]FM_GetShiftState done [11:24:08]req_shift_opened done [11:24:08]requested_item shift.open_date is exist - process it [11:24:08]req_shift_open_date [11:24:08]req_shift_open_date done [11:24:08]produce_requested_data done [11:24:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139395,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [11:24:08]process_action_free close_receipt [11:24:08]json_value_free [11:24:08]json_value_free done [11:24:08]process_json_proto returns [11:24:08]Send response to host [11:24:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139395,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [11:24:08]free response buf [11:24:08]execute_script done [11:24:08]execute_script returns [11:24:08]free content buf [11:24:08]Sock 8.Close socket [11:24:08]Sock 8.Thread stoped [11:24:12]OFD Sender: No OFD packet to send [11:24:17]OFD Sender: No OFD packet to send [11:24:22]OFD Sender: No OFD packet to send [11:24:27]OFD Sender: No OFD packet to send [11:24:32]OFD Sender: No OFD packet to send [11:24:37]OFD Sender: No OFD packet to send [11:24:42]OFD Sender: No OFD packet to send [11:24:47]OFD Sender: No OFD packet to send [11:24:52]OFD Sender: No OFD packet to send [11:24:57]OFD Sender: No OFD packet to send [11:25:02]OFD Sender: No OFD packet to send [11:25:07]OFD Sender: No OFD packet to send [11:25:12]OFD Sender: No OFD packet to send [11:25:17]OFD Sender: No OFD packet to send [11:25:22]OFD Sender: No OFD packet to send [11:25:27]OFD Sender: No OFD packet to send [11:25:32]OFD Sender: No OFD packet to send [11:25:37]OFD Sender: No OFD packet to send [11:25:42]OFD Sender: No OFD packet to send [11:25:47]OFD Sender: No OFD packet to send [11:25:52]OFD Sender: No OFD packet to send [11:25:57]OFD Sender: No OFD packet to send [11:26:02]OFD Sender: No OFD packet to send [11:26:07]OFD Sender: No OFD packet to send [11:26:12]OFD Sender: No OFD packet to send [11:26:17]OFD Sender: No OFD packet to send [11:26:22]OFD Sender: No OFD packet to send [11:26:27]OFD Sender: No OFD packet to send [11:26:32]OFD Sender: No OFD packet to send [11:26:37]OFD Sender: No OFD packet to send [11:26:42]OFD Sender: No OFD packet to send [11:26:47]OFD Sender: No OFD packet to send [11:26:52]OFD Sender: No OFD packet to send [11:26:57]OFD Sender: No OFD packet to send [11:27:02]OFD Sender: No OFD packet to send [11:27:07]OFD Sender: No OFD packet to send [11:27:12]OFD Sender: No OFD packet to send [11:27:17]OFD Sender: No OFD packet to send [11:27:22]OFD Sender: No OFD packet to send [11:27:27]OFD Sender: No OFD packet to send [11:27:32]OFD Sender: No OFD packet to send [11:27:37]OFD Sender: No OFD packet to send [11:27:42]OFD Sender: No OFD packet to send [11:27:47]OFD Sender: No OFD packet to send [11:27:52]OFD Sender: No OFD packet to send [11:27:57]OFD Sender: No OFD packet to send [11:28:02]OFD Sender: No OFD packet to send [11:28:07]OFD Sender: No OFD packet to send [11:28:12]OFD Sender: No OFD packet to send [11:28:17]OFD Sender: No OFD packet to send [11:28:22]OFD Sender: No OFD packet to send [11:28:27]OFD Sender: No OFD packet to send [11:28:32]OFD Sender: No OFD packet to send [11:28:37]OFD Sender: No OFD packet to send [11:28:42]OFD Sender: No OFD packet to send [11:28:47]OFD Sender: No OFD packet to send [11:28:52]OFD Sender: No OFD packet to send [11:28:57]OFD Sender: No OFD packet to send [11:29:02]OFD Sender: No OFD packet to send [11:29:07]OFD Sender: No OFD packet to send [11:29:12]OFD Sender: No OFD packet to send [11:29:17]OFD Sender: No OFD packet to send [11:29:22]OFD Sender: No OFD packet to send [11:29:27]OFD Sender: No OFD packet to send [11:29:32]OFD Sender: No OFD packet to send [11:29:37]OFD Sender: No OFD packet to send [11:29:42]OFD Sender: No OFD packet to send [11:29:47]OFD Sender: No OFD packet to send [11:29:52]OFD Sender: No OFD packet to send [11:29:57]OFD Sender: No OFD packet to send [11:30:02]OFD Sender: No OFD packet to send [11:30:07]OFD Sender: No OFD packet to send [11:30:12]OFD Sender: No OFD packet to send [11:30:17]OFD Sender: No OFD packet to send [11:30:22]OFD Sender: No OFD packet to send [11:30:27]OFD Sender: No OFD packet to send [11:30:32]OFD Sender: No OFD packet to send [11:30:37]OFD Sender: No OFD packet to send [11:30:42]OFD Sender: No OFD packet to send [11:30:47]OFD Sender: No OFD packet to send [11:30:52]OFD Sender: No OFD packet to send [11:30:57]OFD Sender: No OFD packet to send [11:31:02]OFD Sender: No OFD packet to send [11:31:07]OFD Sender: No OFD packet to send [11:31:12]OFD Sender: No OFD packet to send [11:31:17]OFD Sender: No OFD packet to send [11:31:22]OFD Sender: No OFD packet to send [11:31:27]OFD Sender: No OFD packet to send [11:31:32]OFD Sender: No OFD packet to send [11:31:37]OFD Sender: No OFD packet to send [11:31:42]OFD Sender: No OFD packet to send [11:31:47]OFD Sender: No OFD packet to send [11:31:52]OFD Sender: No OFD packet to send [11:31:57]OFD Sender: No OFD packet to send [11:32:02]OFD Sender: No OFD packet to send [11:32:07]OFD Sender: No OFD packet to send [11:32:12]OFD Sender: No OFD packet to send [11:32:17]OFD Sender: No OFD packet to send [11:32:22]OFD Sender: No OFD packet to send [11:32:27]OFD Sender: No OFD packet to send [11:32:32]OFD Sender: No OFD packet to send [11:32:37]OFD Sender: No OFD packet to send [11:32:42]OFD Sender: No OFD packet to send [11:32:47]OFD Sender: No OFD packet to send [11:32:52]OFD Sender: No OFD packet to send [11:32:57]OFD Sender: No OFD packet to send [11:33:02]OFD Sender: No OFD packet to send [11:33:07]OFD Sender: No OFD packet to send [11:33:12]OFD Sender: No OFD packet to send [11:33:17]OFD Sender: No OFD packet to send [11:33:22]OFD Sender: No OFD packet to send [11:33:27]OFD Sender: No OFD packet to send [11:33:32]OFD Sender: No OFD packet to send [11:33:37]OFD Sender: No OFD packet to send [11:33:42]OFD Sender: No OFD packet to send [11:33:47]OFD Sender: No OFD packet to send [11:33:52]OFD Sender: No OFD packet to send [11:33:57]OFD Sender: No OFD packet to send [11:34:02]OFD Sender: No OFD packet to send [11:34:07]OFD Sender: No OFD packet to send [11:34:12]OFD Sender: No OFD packet to send [11:34:17]OFD Sender: No OFD packet to send [11:34:22]OFD Sender: No OFD packet to send [11:34:27]OFD Sender: No OFD packet to send [11:34:32]OFD Sender: No OFD packet to send [11:34:37]OFD Sender: No OFD packet to send [11:34:42]OFD Sender: No OFD packet to send [11:34:47]OFD Sender: No OFD packet to send [11:34:52]OFD Sender: No OFD packet to send [11:34:57]OFD Sender: No OFD packet to send [11:35:02]OFD Sender: No OFD packet to send [11:35:07]OFD Sender: No OFD packet to send [11:35:12]OFD Sender: No OFD packet to send [11:35:17]OFD Sender: No OFD packet to send [11:35:22]OFD Sender: No OFD packet to send [11:35:27]OFD Sender: No OFD packet to send [11:35:32]OFD Sender: No OFD packet to send [11:35:37]OFD Sender: No OFD packet to send [11:35:42]OFD Sender: No OFD packet to send [11:35:47]OFD Sender: No OFD packet to send [11:35:52]OFD Sender: No OFD packet to send [11:35:57]OFD Sender: No OFD packet to send [11:36:02]OFD Sender: No OFD packet to send [11:36:07]OFD Sender: No OFD packet to send [11:36:12]OFD Sender: No OFD packet to send [11:36:17]OFD Sender: No OFD packet to send [11:36:22]OFD Sender: No OFD packet to send [11:36:27]OFD Sender: No OFD packet to send [11:36:32]OFD Sender: No OFD packet to send [11:36:37]OFD Sender: No OFD packet to send [11:36:42]OFD Sender: No OFD packet to send [11:36:47]OFD Sender: No OFD packet to send [11:36:52]OFD Sender: No OFD packet to send [11:36:57]OFD Sender: No OFD packet to send [11:37:02]OFD Sender: No OFD packet to send [11:37:07]OFD Sender: No OFD packet to send [11:37:12]OFD Sender: No OFD packet to send [11:37:17]OFD Sender: No OFD packet to send [11:37:22]OFD Sender: No OFD packet to send [11:37:27]OFD Sender: No OFD packet to send [11:37:31]accept exits with 9 [11:37:31]New connection [11:37:31]New thread 3067141476 created [11:37:31]Thread 3067284836 joined [11:37:31]Waiting for new connection... [11:37:31] Sock 9.Parse request [11:37:31]Sock 9.Check first char [11:37:31]Sock 9.First char is OK [11:37:31]request: POST /json_proto HTTP/1.0 [11:37:31]Method: POST [11:37:31]URL: /json_proto [11:37:31]Method is POST - this is cgi request [11:37:31]url: /json_proto [11:37:31]query_string will be loaded in cgi processing [11:37:31]execute_cgi json_proto POST (null) [11:37:31]execute_cgi path=json_proto method=POST [11:37:31]POST find Content-Length [11:37:31]Host: 172.17.50.196:8080 [11:37:31]Content-Length: 626 [11:37:31]Content-Type: application/json [11:37:31] [11:37:31]POST finish read [11:37:31]Found Content-Length = 626 [11:37:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335308", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:31]execute_script... [11: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 : (3)335308", "tax_sys" : 0, "items" : [ { "code": "48741224", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Blue", "price" : 139.00, "quantity" : 2.000, "sum" : 278.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 278.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:37:31]POST & json_proto [11:37:31]process_json_proto [11:37:31]json parsed OK: [11:37:31]protocol is kg_v1.0 [11:37:31]action value=close_receipt [11:37:31]process_action close_receipt [11:37:31]cmd_close_receipt [11:37:31]MH_GetDate [11:37:31]Write to MH i2c: F0 00 00 DA 3D 06 [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: F0 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: F0 09 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: F0 09 00 DA 3D 00 80 1A 22 67 72 0D 1C 67 34 [11:37:31]GetLastDocTimeStamp 1730287449 [11:37:31]current date 1730288256 [11:37:31]FM_GetShiftState [11:37:31]SAM_PROTO_GetShiftState [11:37:31]wFMCommunicate request_size=4 [11:37:31]MH_SAM_APDU [11:37:31]CAPDU: 80 13 01 00 [11:37:31]Write to MH i2c: E2 08 00 DB 3D 80 13 01 00 00 00 00 00 95 [11:37:31]Write i2c OK [11:37:31]MH_I2C_Read... [11:37:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:31]Read from MH i2c: E2 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 0E 00 [11:37:31]MH_I2C_Read... [11:37:31]Read from MH i2c: E2 0E 00 DB 3D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 25 [11:37:31]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:37:31]wFMCommunicate OK [11:37:31]SAM_PROTO_GetShiftState done [11:37:31]FM_GetShiftState done [11:37:31]opened in 1730246278 [11:37:31]opened+sec_in_day 1730332678 [11:37:31]quantity*price = 27800 [11:37:31]sum+1 = 27801 [11:37:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 278.00 НСП 1% : 2.46 НДС 12% : 29.52 Наличными: 278.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 80 30.10.2024 11:37 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139396 ФПД: 110844883199912 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T113736&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139396&fm=110844883199912&tin=02508201610067®Number=0000000000091631&sum=27800 0 [11:37:32]StoreToDocumentArchive [11:37:32]shift 556 fd 139396 [11:37:32]save to /storage/0556/doc_00139396 [11:37:32]save last doc name /storage/0556/doc_00139396 to /storage/kkm_last_doc_name [11:37:32]save OK [11:37:32]Clear old archive folders... [11:37:32]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:37:32]tlvbuf is 011FC0F0 [11:37:32]SAM_PROTO_ClearQueue [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 09 00 00 [11:37:32]Write to MH i2c: E2 08 00 E8 3D 80 09 00 00 00 00 00 00 97 [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 E8 3D 00 90 00 99 [11:37:32]RAPDU: 90 00 [11:37:32]wFMCommunicate OK [11:37:32]SAM_PROTO_ClearQueue done [11:37:32]KKMCreateOFDPacket [11:37:32]OFDProtocolAddRootSTLVToBuf [11:37:32]FM_MakeSignedData [11:37:32]FM_MakeSignedData [11:37:32]SAM_PROTO_SignData [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 0D 01 02 [11:37:32]Write to MH i2c: E2 08 00 E9 3D 80 0D 01 02 00 00 00 00 9F [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 E9 3D 00 90 00 9A [11:37:32]RAPDU: 90 00 [11:37:32]wFMCommunicate OK [11:37:32]wFMCommunicate request_size=255 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 1A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [11:37:32]Write to MH i2c: E2 02 01 EA 3D 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 1A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 32 [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 EA 3D 00 90 00 9B [11:37:32]RAPDU: 90 00 [11:37:32]wFMCommunicate OK [11:37:32]wFMCommunicate request_size=37 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 20 02 00 35 04 06 00 64 D0 15 E3 67 A8 [11:37:32]Write to MH i2c: E2 28 00 EB 3D 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 20 02 00 35 04 06 00 64 D0 15 E3 67 A8 00 00 E2 [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 03 00 EB 3D 00 90 00 9C [11:37:32]RAPDU: 90 00 [11:37:32]wFMCommunicate OK [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 0D 03 02 [11:37:32]Write to MH i2c: E2 08 00 EC 3D 80 0D 03 02 00 00 00 00 A4 [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:37:32]Read from MH i2c: E2 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 0B 00 [11:37:32]MH_I2C_Read... [11:37:32]Read from MH i2c: E2 0B 00 EC 3D 00 6F 37 42 8E 8D FE 32 9A 90 00 72 [11:37:32]RAPDU: 6F 37 42 8E 8D FE 32 9A 90 00 [11:37:32]wFMCommunicate OK [11:37:32]SAM_PROTO_SignData done [11:37:32]FM_MakeSignedData done [11:37:32]CreateOFDProtocolMessage [11:37:32]wFMCommunicate request_size=4 [11:37:32]MH_SAM_APDU [11:37:32]CAPDU: 80 11 00 00 [11:37:32]Write to MH i2c: E2 08 00 ED 3D 80 11 00 00 00 00 00 00 A4 [11:37:32]OFD Sender: No OFD packet to send [11:37:32]Write i2c OK [11:37:32]MH_I2C_Read... [11:37:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:33]Read from MH i2c: E2 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 17 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: E2 17 00 ED 3D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FF [11:37:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:37:33]wFMCommunicate OK [11:37:33]CreateOFDProtocolMessage done [11:37:33]OFDSenderStorePacket 139396 [11:37:33]StoreOFDPacket docnum=139396 [11:37:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 3D A2 22 01 60 F4 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 1A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 20 02 00 35 04 06 00 64 D0 15 E3 67 A8 6F 37 42 8E 8D FE 32 9A [11:37:33]CheckFolder [11:37:33]dirname=/storage/ofd_packets [11:37:33]CheckFolder done [11:37:33]ProducePacketName [11:37:33]name=ofd_packets/00139396 [11:37:33]NVStorageSaveData ofd_packets/00139396 [11:37:33]File name is /storage/ofd_packets/00139396 [11:37:33]Write 328 bytes [11:37:33]NVStorageSaveData done [11:37:33]OFDSenderStorePacket done [11:37:33]KKMCreateOFDPacket done [11:37:33]NVStorageSaveData kkm_last_timestamp [11:37:33]File name is /storage/kkm_last_timestamp [11:37:33]Write 4 bytes [11:37:33]NVStorageSaveData done [11:37:33]ExternCall_PrintAddStr [11:37:33]wPrintStart [11:37:33]Write to MH i2c: 01 00 00 EE 3D 2B [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 07 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 07 00 EE 3D 00 00 00 00 00 FF 0F 40 [11:37:33]RasterBufferAndPrint [11:37:33]line Счет N : (3)335308 [11:37:33]line ИНН: 02508201610067 [11:37:33]line Контрольно-Кассовый Чек [11:37:33]line ПРОДАЖА [11:37:33]line Товар: 48741224 [11:37:33]line Сигареты Winston Super Slims Blue [11:37:33]line 2.000 * 139.00 [11:37:33]line = 278.00 [11:37:33]line НДС 12% НСП 1% [11:37:33]line > о реализуемом товаре [11:37:33]line ИТОГО: 278.00 [11:37:33]line НСП 1% : 2.46 [11:37:33]line НДС 12% : 29.52 [11:37:33]line Наличными: 278.00 [11:37:33]line Безнал.: 0.00 [11:37:33]line Место: АЗС № 101 "Партнер Нефть" [11:37:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:37:33]line СНО: Общий режим [11:37:33]line Чек 80 30.10.2024 11:37 [11:37:33]line Смена: 556 ФФД: 1.0 [11:37:33]line ЗНМ: 0300000081 [11:37:33]line РНМ: 0000000000091631 [11:37:33]line Версия ККМ: 001 [11:37:33]line ФМ: 0000000000874669 [11:37:33]line ФД: 139396 [11:37:33]line ФПД: 110844883199912 [11:37:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T113736&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139396&fm=110844883199912&tin=02508201610067®Number=0000000000091631&sum=27800 [11:37:33]line 0 [11:37:33]OFD Sender: Processing packet 139396 [packets to send 34, broken 33] [11:37:33]ProducePacketName [11:37:33]name=ofd_packets/00139396 [11:37:33]OFD Sender: To server: pG, [11:37:33]CommunicateWithHost lk.salyk.kg:30040 [11:37:33]ConnectInit lk.salyk.kg [11:37:33]written 0, free lines is 4095 [11:37:33]Connected sock=10 [11:37:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 3D A2 22 01 60 F4 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 31 32 32 34 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 42 6C 75 65 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 98 6C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 6C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 F6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 88 0B 00 00 00 00 07 04 06 00 98 6C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 50 00 00 00 F4 03 04 00 80 1A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 20 02 00 35 04 06 00 64 D0 15 E3 67 A8 6F 37 42 8E 8D FE 32 9A [11:37:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A0 A1 47 00 1C 10 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 84 20 02 00 F4 03 04 00 30 C6 21 67 B6 04 01 00 00 24 59 4F 18 92 AD BB 67 [11:37:33]CommunicateWithHost err = 0 [11:37:33]CheckOFDResponse [11:37:33]1017 (14) - 77093643461234 [11:37:33]1041 (16) - 0000000000874669 [11:37:33]1040 (4) - 139396 [11:37:33]1012 (4) - 30.10.2024 05:37 [11:37:33]1206 (1) - 0 [11:37:33]OFD Sender: Remove packet 139396 [11:37:33]ProducePacketName [11:37:33]name=ofd_packets/00139396 [11:37:33]NVStorageDeleteData [11:37:33]Write to MH i2c: 01 00 00 17 3E 55 [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 07 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: 01 07 00 17 3E 00 00 00 00 00 F2 0C 5A [11:37:33]RasterBufferAndPrint [11:37:33]line [11:37:33]line [11:37:33]line [11:37:33]line [11:37:33]line [11:37:33]written 0, free lines is 3320 [11:37:33]MH_Cut [11:37:33]Write to MH i2c: D1 01 00 1E 3E 01 2E [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: D1 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: D1 01 00 [11:37:33]MH_I2C_Read... [11:37:33]Read from MH i2c: D1 01 00 1E 3E 00 2D [11:37:33]Write to MH i2c: 01 00 00 1F 3E 5D [11:37:33]Write i2c OK [11:37:33]MH_I2C_Read... [11:37:34]OFD Sender: No OFD packet to send [11:37:34]*** Cut start [11:37:34]*** Partial cut [11:37:34]*** CUTSNS_PIN = 1 [11:37:34]*** CUTSNS_PIN = 0 [11:37:34]*** Brake cut motor [11:37:35]Read from MH i2c: 01 [11:37:35]MH_I2C_Read... [11:37:35]*** Stop cut motor [11:37:35]*** Cut end [11:37:35]Read from MH i2c: 01 07 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: 01 07 00 1F 3E 00 00 00 00 00 FF 0F 72 [11:37:35]process_action close_receipt done [11:37:35]requested_data is exist [11:37:35]produce_requested_data [11:37:35]requested_item fm.sn is exist - process it [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 11 00 00 [11:37:35]Write to MH i2c: E2 08 00 20 3E 80 11 00 00 00 00 00 00 D8 [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 17 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 17 00 20 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 33 [11:37:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:37:35]wFMCommunicate OK [11:37:35]requested_item fd.num is exist - process it [11:37:35]SAM_PROTO_GetFieldsCounters [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 13 00 00 [11:37:35]Write to MH i2c: E2 08 00 21 3E 80 13 00 00 00 00 00 00 DB [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 62 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 62 00 21 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 84 20 02 00 0E 04 04 00 2C 02 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 C3 [11:37:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 84 20 02 00 0E 04 04 00 2C 02 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 [11:37:35]wFMCommunicate OK [11:37:35]SAM_PROTO_GetFieldsCounters done [11:37:35]requested_item shift.num is exist - process it [11:37:35]requested_item shift.opened is exist - process it [11:37:35]req_shift_opened [11:37:35]FM_GetShiftState [11:37:35]SAM_PROTO_GetShiftState [11:37:35]wFMCommunicate request_size=4 [11:37:35]MH_SAM_APDU [11:37:35]CAPDU: 80 13 01 00 [11:37:35]Write to MH i2c: E2 08 00 22 3E 80 13 01 00 00 00 00 00 DD [11:37:35]Write i2c OK [11:37:35]MH_I2C_Read... [11:37:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:37:35]Read from MH i2c: E2 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0E 00 [11:37:35]MH_I2C_Read... [11:37:35]Read from MH i2c: E2 0E 00 22 3E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6D [11:37:35]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:37:35]wFMCommunicate OK [11:37:35]SAM_PROTO_GetShiftState done [11:37:35]FM_GetShiftState done [11:37:35]req_shift_opened done [11:37:35]requested_item shift.open_date is exist - process it [11:37:35]req_shift_open_date [11:37:35]req_shift_open_date done [11:37:35]produce_requested_data done [11:37:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139396,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [11:37:35]process_action_free close_receipt [11:37:35]json_value_free [11:37:35]json_value_free done [11:37:35]process_json_proto returns [11:37:35]Send response to host [11:37:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139396,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [11:37:35]free response buf [11:37:35]execute_script done [11:37:35]execute_script returns [11:37:35]free content buf [11:37:35]Sock 9.Close socket [11:37:35]Sock 9.Thread stoped [11:37:39]OFD Sender: No OFD packet to send [11:37:44]OFD Sender: No OFD packet to send [11:37:49]OFD Sender: No OFD packet to send [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:54]OFD Sender: No OFD packet to send [11:38:59]OFD Sender: No OFD packet to send [11:39:04]OFD Sender: No OFD packet to send [11:39:09]OFD Sender: No OFD packet to send [11:39:14]OFD Sender: No OFD packet to send [11:39:19]OFD Sender: No OFD packet to send [11:39:24]OFD Sender: No OFD packet to send [11:39:29]OFD Sender: No OFD packet to send [11:39:34]OFD Sender: No OFD packet to send [11:39:39]OFD Sender: No OFD packet to send [11:39:44]OFD Sender: No OFD packet to send [11:39:49]OFD Sender: No OFD packet to send [11:39:54]OFD Sender: No OFD packet to send [11:39:59]OFD Sender: No OFD packet to send [11:40:04]OFD Sender: No OFD packet to send [11:40:09]OFD Sender: No OFD packet to send [11:40:14]OFD Sender: No OFD packet to send [11:40:19]OFD Sender: No OFD packet to send [11:40:24]OFD Sender: No OFD packet to send [11:40:29]OFD Sender: No OFD packet to send [11:40:34]OFD Sender: No OFD packet to send [11:40:39]OFD Sender: No OFD packet to send [11:40:44]OFD Sender: No OFD packet to send [11:40:49]OFD Sender: No OFD packet to send [11:40:54]OFD Sender: No OFD packet to send [11:40:59]OFD Sender: No OFD packet to send [11:41:04]OFD Sender: No OFD packet to send [11:41:09]OFD Sender: No OFD packet to send [11:41:14]OFD Sender: No OFD packet to send [11:41:19]OFD Sender: No OFD packet to send [11:41:24]OFD Sender: No OFD packet to send [11:41:29]OFD Sender: No OFD packet to send [11:41:34]OFD Sender: No OFD packet to send [11:41:39]OFD Sender: No OFD packet to send [11:41:44]OFD Sender: No OFD packet to send [11:41:49]OFD Sender: No OFD packet to send [11:41:54]OFD Sender: No OFD packet to send [11:41:59]OFD Sender: No OFD packet to send [11:42:04]OFD Sender: No OFD packet to send [11:42:09]OFD Sender: No OFD packet to send [11:42:14]OFD Sender: No OFD packet to send [11:42:19]OFD Sender: No OFD packet to send [11:42:24]OFD Sender: No OFD packet to send [11:42:29]OFD Sender: No OFD packet to send [11:42:34]OFD Sender: No OFD packet to send [11:42:39]OFD Sender: No OFD packet to send [11:42:44]OFD Sender: No OFD packet to send [11:42:49]OFD Sender: No OFD packet to send [11:42:54]OFD Sender: No OFD packet to send [11:42:59]OFD Sender: No OFD packet to send [11:43:04]OFD Sender: No OFD packet to send [11:43:09]OFD Sender: No OFD packet to send [11:43:14]OFD Sender: No OFD packet to send [11:43:18]accept exits with 8 [11:43:18]New connection [11:43:18]New thread 3067284836 created [11:43:18]Thread 3067141476 joined [11:43:18]Waiting for new connection... [11:43:18] Sock 8.Parse request [11:43:18]Sock 8.Check first char [11:43:18]Sock 8.First char is OK [11:43:18]request: POST /json_proto HTTP/1.0 [11:43:18]Method: POST [11:43:18]URL: /json_proto [11:43:18]Method is POST - this is cgi request [11:43:18]url: /json_proto [11:43:18]query_string will be loaded in cgi processing [11:43:18]execute_cgi json_proto POST (null) [11:43:18]execute_cgi path=json_proto method=POST [11:43:18]POST find Content-Length [11:43:18]Host: 172.17.50.196:8080 [11:43:18]Content-Length: 809 [11:43:18]Content-Type: application/json [11:43:18] [11:43:18]POST finish read [11:43:18]Found Content-Length = 809 [11:43:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:18]execute_script... [11:43: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)1094432", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 19.690, "sum" : 1500.38, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 1500.38 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:43:18]POST & json_proto [11:43:18]process_json_proto [11:43:18]json parsed OK: [11:43:18]protocol is kg_v1.0 [11:43:18]action value=close_receipt [11:43:18]process_action close_receipt [11:43:18]cmd_close_receipt [11:43:18]MH_GetDate [11:43:18]Write to MH i2c: F0 00 00 23 3E 50 [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 09 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: F0 09 00 23 3E 00 DB 1B 22 67 72 0D 1C 67 DA [11:43:18]GetLastDocTimeStamp 1730288256 [11:43:18]current date 1730288603 [11:43:18]FM_GetShiftState [11:43:18]SAM_PROTO_GetShiftState [11:43:18]wFMCommunicate request_size=4 [11:43:18]MH_SAM_APDU [11:43:18]CAPDU: 80 13 01 00 [11:43:18]Write to MH i2c: E2 08 00 24 3E 80 13 01 00 00 00 00 00 DF [11:43:18]Write i2c OK [11:43:18]MH_I2C_Read... [11:43:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:18]Read from MH i2c: E2 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 0E 00 [11:43:18]MH_I2C_Read... [11:43:18]Read from MH i2c: E2 0E 00 24 3E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6F [11:43:18]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:43:18]wFMCommunicate OK [11:43:18]SAM_PROTO_GetShiftState done [11:43:18]FM_GetShiftState done [11:43:18]opened in 1730246278 [11:43:18]opened+sec_in_day 1730332678 [11:43:18]quantity*price = 150037 [11:43:18]sum+1 = 150039 [11:43:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.38 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.38 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 81 30.10.2024 11:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874669 ФД: 139397 ФПД: 99565435426995 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T114323&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139397&fm=99565435426995&tin=02508201610067®Number=0000000000091631&sum=150038 [11:43:20]StoreToDocumentArchive [11:43:20]shift 556 fd 139397 [11:43:20]save to /storage/0556/doc_00139397 [11:43:20]save last doc name /storage/0556/doc_00139397 to /storage/kkm_last_doc_name [11:43:20]save OK [11:43:20]Clear old archive folders... [11:43:20]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:43:20]tlvbuf is 0120E910 [11:43:20]SAM_PROTO_ClearQueue [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 09 00 00 [11:43:20]Write to MH i2c: E2 08 00 31 3E 80 09 00 00 00 00 00 00 E1 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 31 3E 00 90 00 E3 [11:43:20]RAPDU: 90 00 [11:43:20]wFMCommunicate OK [11:43:20]SAM_PROTO_ClearQueue done [11:43:20]KKMCreateOFDPacket [11:43:20]OFDProtocolAddRootSTLVToBuf [11:43:20]FM_MakeSignedData [11:43:20]FM_MakeSignedData [11:43:20]SAM_PROTO_SignData [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 0D 01 02 [11:43:20]Write to MH i2c: E2 08 00 32 3E 80 0D 01 02 00 00 00 00 E9 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 32 3E 00 90 00 E4 [11:43:20]RAPDU: 90 00 [11:43:20]wFMCommunicate OK [11:43:20]wFMCommunicate request_size=255 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DB 1B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 85 20 02 00 35 04 06 00 [11:43:20]Write to MH i2c: E2 02 01 33 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DB 1B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 85 20 02 00 35 04 06 00 00 00 C0 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 33 3E 00 90 00 E5 [11:43:20]RAPDU: 90 00 [11:43:20]wFMCommunicate OK [11:43:20]wFMCommunicate request_size=11 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 0D 02 02 06 5A 8D E2 69 18 B3 [11:43:20]Write to MH i2c: E2 0E 00 34 3E 80 0D 02 02 06 00 5A 8D E2 69 18 B3 00 00 F5 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 03 00 34 3E 00 90 00 E6 [11:43:20]RAPDU: 90 00 [11:43:20]wFMCommunicate OK [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 0D 03 02 [11:43:20]Write to MH i2c: E2 08 00 35 3E 80 0D 03 02 00 00 00 00 EE [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 0B 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 0B 00 35 3E 00 BE E4 7A EA DE 63 B9 A9 90 00 98 [11:43:20]RAPDU: BE E4 7A EA DE 63 B9 A9 90 00 [11:43:20]wFMCommunicate OK [11:43:20]SAM_PROTO_SignData done [11:43:20]FM_MakeSignedData done [11:43:20]CreateOFDProtocolMessage [11:43:20]wFMCommunicate request_size=4 [11:43:20]MH_SAM_APDU [11:43:20]CAPDU: 80 11 00 00 [11:43:20]Write to MH i2c: E2 08 00 36 3E 80 11 00 00 00 00 00 00 EE [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:20]Read from MH i2c: E2 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 17 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: E2 17 00 36 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 49 [11:43:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:43:20]wFMCommunicate OK [11:43:20]CreateOFDProtocolMessage done [11:43:20]OFDSenderStorePacket 139397 [11:43:20]StoreOFDPacket docnum=139397 [11:43:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 2D 09 08 01 39 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DB 1B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 85 20 02 00 35 04 06 00 5A 8D E2 69 18 B3 BE E4 7A EA DE 63 B9 A9 [11:43:20]CheckFolder [11:43:20]dirname=/storage/ofd_packets [11:43:20]CheckFolder done [11:43:20]ProducePacketName [11:43:20]name=ofd_packets/00139397 [11:43:20]NVStorageSaveData ofd_packets/00139397 [11:43:20]File name is /storage/ofd_packets/00139397 [11:43:20]Write 302 bytes [11:43:20]NVStorageSaveData done [11:43:20]OFDSenderStorePacket done [11:43:20]KKMCreateOFDPacket done [11:43:20]NVStorageSaveData kkm_last_timestamp [11:43:20]File name is /storage/kkm_last_timestamp [11:43:20]Write 4 bytes [11:43:20]NVStorageSaveData done [11:43:20]ExternCall_PrintAddStr [11:43:20]wPrintStart [11:43:20]Write to MH i2c: 01 00 00 37 3E 75 [11:43:20]Write i2c OK [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 [11:43:20]MH_I2C_Read... [11:43:20]Read from MH i2c: 01 07 00 37 3E 00 00 00 00 00 FF 0F 8A [11:43:20]RasterBufferAndPrint [11:43:20]line Счет N : (1)1094432 [11:43:20]line ИНН: 02508201610067 [11:43:20]line Контрольно-Кассовый Чек [11:43:20]line ПРОДАЖА [11:43:20]line ТРК (МРК, ГНК) : 21 [11:43:20]line Товар: 2710194210 [11:43:20]line ДТ(л)-К-2 [11:43:20]line 19.690 * 76.20 [11:43:20]line = 1500.38 [11:43:20]line НДС 12% НСП 1% [11:43:20]line > о реализуемом товаре [11:43:20]line ИТОГО: 1500.38 [11:43:20]line НСП 1% : 13.28 [11:43:20]line НДС 12% : 159.33 [11:43:20]line Наличными: 0.00 [11:43:20]line Безнал.: 1500.38 [11:43:20]line Место: АЗС № 101 "Партнер Нефть" [11:43:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:43:20]line СНО: Общий режим [11:43:20]line Чек 81 30.10.2024 11:43 [11:43:20]line Смена: 556 ФФД: 1.0 [11:43:20]line ЗНМ: 0300000081 [11:43:20]line РНМ: 0000000000091631 [11:43:20]line Версия ККМ: 001 [11:43:20]line Платежная система: O! деньги [11:43:20]line ФМ: 0000000000874669 [11:43:20]line ФД: 139397 [11:43:20]line ФПД: 99565435426995 [11:43:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T114323&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139397&fm=99565435426995&tin=02508201610067®Number=0000000000091631&sum=150038 [11:43:20]OFD Sender: Processing packet 139397 [packets to send 34, broken 33] [11:43:20]ProducePacketName [11:43:20]name=ofd_packets/00139397 [11:43:20]OFD Sender: To server: pG, [11:43:20]CommunicateWithHost lk.salyk.kg:30040 [11:43:20]ConnectInit lk.salyk.kg [11:43:20]written 0, free lines is 4095 [11:43:20]Connected sock=10 [11:43:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 2D 09 08 01 39 1B 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 16 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 16 4A 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 51 00 00 00 F4 03 04 00 DB 1B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 85 20 02 00 35 04 06 00 5A 8D E2 69 18 B3 BE E4 7A EA DE 63 B9 A9 [11:43:21]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 99 F4 47 00 D1 69 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 85 20 02 00 F4 03 04 00 8C C7 21 67 B6 04 01 00 00 4B F6 79 02 78 2C 9C DD [11:43:21]CommunicateWithHost err = 0 [11:43:21]CheckOFDResponse [11:43:21]1017 (14) - 77093643461234 [11:43:21]1041 (16) - 0000000000874669 [11:43:21]1040 (4) - 139397 [11:43:21]1012 (4) - 30.10.2024 05:43 [11:43:21]1206 (1) - 0 [11:43:21]OFD Sender: Remove packet 139397 [11:43:21]ProducePacketName [11:43:21]name=ofd_packets/00139397 [11:43:21]NVStorageDeleteData [11:43:21]Write to MH i2c: 01 00 00 61 3E 9F [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: 01 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: 01 07 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: 01 07 00 61 3E 00 00 00 00 00 0B 0D BE [11:43:21]RasterBufferAndPrint [11:43:21]line [11:43:21]line [11:43:21]line [11:43:21]line [11:43:21]line [11:43:21]written 0, free lines is 3347 [11:43:21]MH_Cut [11:43:21]Write to MH i2c: D1 01 00 68 3E 01 78 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: D1 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: D1 01 00 [11:43:21]MH_I2C_Read... [11:43:21]Read from MH i2c: D1 01 00 68 3E 00 77 [11:43:21]Write to MH i2c: 01 00 00 69 3E A7 [11:43:21]Write i2c OK [11:43:21]MH_I2C_Read... [11:43:21]OFD Sender: No OFD packet to send [11:43:22]*** Cut start [11:43:22]*** Partial cut [11:43:22]*** CUTSNS_PIN = 1 [11:43:22]*** CUTSNS_PIN = 0 [11:43:22]*** Brake cut motor [11:43:22]Read from MH i2c: 01 [11:43:22]MH_I2C_Read... [11:43:22]*** Stop cut motor [11:43:22]*** Cut end [11:43:22]Read from MH i2c: 01 07 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: 01 07 00 69 3E 00 00 00 00 00 FF 0F BC [11:43:22]process_action close_receipt done [11:43:22]requested_data is exist [11:43:22]produce_requested_data [11:43:22]requested_item fm.sn is exist - process it [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 11 00 00 [11:43:22]Write to MH i2c: E2 08 00 6A 3E 80 11 00 00 00 00 00 00 22 [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 17 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 17 00 6A 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7D [11:43:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:43:22]wFMCommunicate OK [11:43:22]requested_item fd.num is exist - process it [11:43:22]SAM_PROTO_GetFieldsCounters [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 13 00 00 [11:43:22]Write to MH i2c: E2 08 00 6B 3E 80 13 00 00 00 00 00 00 25 [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 62 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 62 00 6B 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 85 20 02 00 0E 04 04 00 2C 02 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 11 [11:43:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 85 20 02 00 0E 04 04 00 2C 02 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 [11:43:22]wFMCommunicate OK [11:43:22]SAM_PROTO_GetFieldsCounters done [11:43:22]requested_item shift.num is exist - process it [11:43:22]requested_item shift.opened is exist - process it [11:43:22]req_shift_opened [11:43:22]FM_GetShiftState [11:43:22]SAM_PROTO_GetShiftState [11:43:22]wFMCommunicate request_size=4 [11:43:22]MH_SAM_APDU [11:43:22]CAPDU: 80 13 01 00 [11:43:22]Write to MH i2c: E2 08 00 6C 3E 80 13 01 00 00 00 00 00 27 [11:43:22]Write i2c OK [11:43:22]MH_I2C_Read... [11:43:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:43:22]Read from MH i2c: E2 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 0E 00 [11:43:22]MH_I2C_Read... [11:43:22]Read from MH i2c: E2 0E 00 6C 3E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B7 [11:43:22]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:43:22]wFMCommunicate OK [11:43:22]SAM_PROTO_GetShiftState done [11:43:22]FM_GetShiftState done [11:43:22]req_shift_opened done [11:43:22]requested_item shift.open_date is exist - process it [11:43:22]req_shift_open_date [11:43:22]req_shift_open_date done [11:43:22]produce_requested_data done [11:43:22]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139397,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [11:43:22]process_action_free close_receipt [11:43:22]json_value_free [11:43:22]json_value_free done [11:43:22]process_json_proto returns [11:43:22]Send response to host [11:43:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139397,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [11:43:22]free response buf [11:43:22]execute_script done [11:43:22]execute_script returns [11:43:22]free content buf [11:43:22]Sock 8.Close socket [11:43:22]Sock 8.Thread stoped [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:05]accept exits with 9 [11:44:05]New connection [11:44:05]New thread 3067141476 created [11:44:05]Thread 3067284836 joined [11:44:05]Waiting for new connection... [11:44:05] Sock 9.Parse request [11:44:05]Sock 9.Check first char [11:44:05]Sock 9.First char is OK [11:44:05]request: POST /json_proto HTTP/1.0 [11:44:05]Method: POST [11:44:05]URL: /json_proto [11:44:05]Method is POST - this is cgi request [11:44:05]url: /json_proto [11:44:05]query_string will be loaded in cgi processing [11:44:05]execute_cgi json_proto POST (null) [11:44:05]execute_cgi path=json_proto method=POST [11:44:05]POST find Content-Length [11:44:05]Host: 172.17.50.196:8080 [11:44:05]Content-Length: 785 [11:44:05]Content-Type: application/json [11:44:05] [11:44:05]POST finish read [11:44:05]Found Content-Length = 785 [11:44:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335309", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:05]execute_script... [11:44: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 : (3)335309", "tax_sys" : 0, "items" : [ { "code": "5449000054227", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.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" : 125.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:44:05]POST & json_proto [11:44:05]process_json_proto [11:44:05]json parsed OK: [11:44:05]protocol is kg_v1.0 [11:44:05]action value=close_receipt [11:44:05]process_action close_receipt [11:44:05]cmd_close_receipt [11:44:05]MH_GetDate [11:44:05]Write to MH i2c: F0 00 00 6D 3E 9A [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: F0 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: F0 09 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: F0 09 00 6D 3E 00 0A 1C 22 67 72 0D 1C 67 54 [11:44:05]GetLastDocTimeStamp 1730288603 [11:44:05]current date 1730288650 [11:44:05]FM_GetShiftState [11:44:05]SAM_PROTO_GetShiftState [11:44:05]wFMCommunicate request_size=4 [11:44:05]MH_SAM_APDU [11:44:05]CAPDU: 80 13 01 00 [11:44:05]Write to MH i2c: E2 08 00 6E 3E 80 13 01 00 00 00 00 00 29 [11:44:05]Write i2c OK [11:44:05]MH_I2C_Read... [11:44:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:05]Read from MH i2c: E2 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0E 00 [11:44:05]MH_I2C_Read... [11:44:05]Read from MH i2c: E2 0E 00 6E 3E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B9 [11:44:05]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:44:05]wFMCommunicate OK [11:44:05]SAM_PROTO_GetShiftState done [11:44:05]FM_GetShiftState done [11:44:05]opened in 1730246278 [11:44:05]opened+sec_in_day 1730332678 [11:44:05]quantity*price = 12500 [11:44:05]sum+1 = 12501 [11:44:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 125.00 НСП 1% : 1.11 НДС 12% : 13.27 Наличными: 0.00 Безнал.: 125.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 82 30.10.2024 11:44 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139398 ФПД: 104187357434146 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T114410&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139398&fm=104187357434146&tin=02508201610067®Number=0000000000091631&sum=12500 0 [11:44:06]StoreToDocumentArchive [11:44:06]shift 556 fd 139398 [11:44:06]save to /storage/0556/doc_00139398 [11:44:06]save last doc name /storage/0556/doc_00139398 to /storage/kkm_last_doc_name [11:44:06]save OK [11:44:06]Clear old archive folders... [11:44:06]ProcessDocumentItem done err = 0, tmpTLVsize=278 [11:44:06]tlvbuf is 0111CEC0 [11:44:06]SAM_PROTO_ClearQueue [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 09 00 00 [11:44:06]Write to MH i2c: E2 08 00 7B 3E 80 09 00 00 00 00 00 00 2B [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 7B 3E 00 90 00 2D [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]SAM_PROTO_ClearQueue done [11:44:06]KKMCreateOFDPacket [11:44:06]OFDProtocolAddRootSTLVToBuf [11:44:06]FM_MakeSignedData [11:44:06]FM_MakeSignedData [11:44:06]SAM_PROTO_SignData [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 01 02 [11:44:06]Write to MH i2c: E2 08 00 7C 3E 80 0D 01 02 00 00 00 00 33 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 7C 3E 00 90 00 2E [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=255 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0A 1C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [11:44:06]Write to MH i2c: E2 02 01 7D 3E 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0A 1C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 09 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]OFD Sender: No OFD packet to send [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 7D 3E 00 90 00 2F [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=37 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 20 02 00 35 04 06 00 5E C2 02 6E 11 22 [11:44:06]Write to MH i2c: E2 28 00 7E 3E 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 20 02 00 35 04 06 00 5E C2 02 6E 11 22 00 00 00 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 03 00 7E 3E 00 90 00 30 [11:44:06]RAPDU: 90 00 [11:44:06]wFMCommunicate OK [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 0D 03 02 [11:44:06]Write to MH i2c: E2 08 00 7F 3E 80 0D 03 02 00 00 00 00 38 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0B 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 0B 00 7F 3E 00 67 E2 D3 3E E8 A7 E9 D3 90 00 DE [11:44:06]RAPDU: 67 E2 D3 3E E8 A7 E9 D3 90 00 [11:44:06]wFMCommunicate OK [11:44:06]SAM_PROTO_SignData done [11:44:06]FM_MakeSignedData done [11:44:06]CreateOFDProtocolMessage [11:44:06]wFMCommunicate request_size=4 [11:44:06]MH_SAM_APDU [11:44:06]CAPDU: 80 11 00 00 [11:44:06]Write to MH i2c: E2 08 00 80 3E 80 11 00 00 00 00 00 00 38 [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:06]Read from MH i2c: E2 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: E2 17 00 80 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 93 [11:44:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:44:06]wFMCommunicate OK [11:44:06]CreateOFDProtocolMessage done [11:44:06]OFDSenderStorePacket 139398 [11:44:06]StoreOFDPacket docnum=139398 [11:44:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 CB 5D 22 01 99 00 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0A 1C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 20 02 00 35 04 06 00 5E C2 02 6E 11 22 67 E2 D3 3E E8 A7 E9 D3 [11:44:06]CheckFolder [11:44:06]dirname=/storage/ofd_packets [11:44:06]CheckFolder done [11:44:06]ProducePacketName [11:44:06]name=ofd_packets/00139398 [11:44:06]NVStorageSaveData ofd_packets/00139398 [11:44:06]File name is /storage/ofd_packets/00139398 [11:44:06]Write 328 bytes [11:44:06]NVStorageSaveData done [11:44:06]OFDSenderStorePacket done [11:44:06]KKMCreateOFDPacket done [11:44:06]NVStorageSaveData kkm_last_timestamp [11:44:06]File name is /storage/kkm_last_timestamp [11:44:06]Write 4 bytes [11:44:06]NVStorageSaveData done [11:44:06]ExternCall_PrintAddStr [11:44:06]wPrintStart [11:44:06]Write to MH i2c: 01 00 00 81 3E BF [11:44:06]Write i2c OK [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 [11:44:06]MH_I2C_Read... [11:44:06]Read from MH i2c: 01 07 00 81 3E 00 00 00 00 00 FF 0F D4 [11:44:06]RasterBufferAndPrint [11:44:06]line Счет N : (3)335309 [11:44:06]line ИНН: 02508201610067 [11:44:06]line Контрольно-Кассовый Чек [11:44:06]line ПРОДАЖА [11:44:06]line Товар: 5449000054227 [11:44:06]line Напиток Кока-Кола 1л [11:44:06]line 1.000 * 125.00 [11:44:06]line = 125.00 [11:44:06]line НДС 12% НСП 1% [11:44:06]line > о реализуемом товаре [11:44:06]line ИТОГО: 125.00 [11:44:06]line НСП 1% : 1.11 [11:44:06]line НДС 12% : 13.27 [11:44:06]line Наличными: 0.00 [11:44:06]line Безнал.: 125.00 [11:44:06]line Место: АЗС № 101 "Партнер Нефть" [11:44:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:44:06]line СНО: Общий режим [11:44:06]line Чек 82 30.10.2024 11:44 [11:44:06]line Смена: 556 ФФД: 1.0 [11:44:06]line ЗНМ: 0300000081 [11:44:06]line РНМ: 0000000000091631 [11:44:06]line Версия ККМ: 001 [11:44:06]line Платежная система: Mbank [11:44:06]line ФМ: 0000000000874669 [11:44:06]line ФД: 139398 [11:44:06]line ФПД: 104187357434146 [11:44:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T114410&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139398&fm=104187357434146&tin=02508201610067®Number=0000000000091631&sum=12500 [11:44:07]line 0 [11:44:07]OFD Sender: Processing packet 139398 [packets to send 34, broken 33] [11:44:07]ProducePacketName [11:44:07]name=ofd_packets/00139398 [11:44:07]OFD Sender: To server: pG, [11:44:07]CommunicateWithHost lk.salyk.kg:30040 [11:44:07]ConnectInit lk.salyk.kg [11:44:07]written 0, free lines is 4095 [11:44:07]Connected sock=10 [11:44:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 CB 5D 22 01 99 00 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 35 34 34 39 30 30 30 30 35 34 32 32 37 06 04 24 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 30 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2F 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 D4 30 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 52 00 00 00 F4 03 04 00 0A 1C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 86 20 02 00 35 04 06 00 5E C2 02 6E 11 22 67 E2 D3 3E E8 A7 E9 D3 [11:44:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 44 86 47 00 B2 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 38 37 34 36 36 39 10 04 04 00 86 20 02 00 F4 03 04 00 BA C7 21 67 B6 04 01 00 00 64 E0 5C B6 65 B2 76 27 [11:44:07]CommunicateWithHost err = 0 [11:44:07]CheckOFDResponse [11:44:07]1017 (14) - 77093643461234 [11:44:07]1041 (16) - 0000000000874669 [11:44:07]1040 (4) - 139398 [11:44:07]1012 (4) - 30.10.2024 05:44 [11:44:07]1206 (1) - 0 [11:44:07]OFD Sender: Remove packet 139398 [11:44:07]ProducePacketName [11:44:07]name=ofd_packets/00139398 [11:44:07]NVStorageDeleteData [11:44:07]Write to MH i2c: 01 00 00 AA 3E E8 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 07 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: 01 07 00 AA 3E 00 00 00 00 00 16 0D 12 [11:44:07]RasterBufferAndPrint [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]line [11:44:07]written 0, free lines is 3357 [11:44:07]MH_Cut [11:44:07]Write to MH i2c: D1 01 00 B1 3E 01 C1 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 01 00 [11:44:07]MH_I2C_Read... [11:44:07]Read from MH i2c: D1 01 00 B1 3E 00 C0 [11:44:07]Write to MH i2c: 01 00 00 B2 3E F0 [11:44:07]Write i2c OK [11:44:07]MH_I2C_Read... [11:44:08]OFD Sender: No OFD packet to send [11:44:08]*** Cut start [11:44:08]*** Partial cut [11:44:08]*** CUTSNS_PIN = 1 [11:44:08]*** CUTSNS_PIN = 0 [11:44:08]*** Brake cut motor [11:44:08]Read from MH i2c: 01 [11:44:09]MH_I2C_Read... [11:44:09]*** Stop cut motor [11:44:09]*** Cut end [11:44:09]Read from MH i2c: 01 07 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: 01 07 00 B2 3E 00 00 00 00 00 FF 0F 05 [11:44:09]process_action close_receipt done [11:44:09]requested_data is exist [11:44:09]produce_requested_data [11:44:09]requested_item fm.sn is exist - process it [11:44:09]wFMCommunicate request_size=4 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 11 00 00 [11:44:09]Write to MH i2c: E2 08 00 B3 3E 80 11 00 00 00 00 00 00 6B [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 17 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 17 00 B3 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C6 [11:44:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:44:09]wFMCommunicate OK [11:44:09]requested_item fd.num is exist - process it [11:44:09]SAM_PROTO_GetFieldsCounters [11:44:09]wFMCommunicate request_size=4 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 13 00 00 [11:44:09]Write to MH i2c: E2 08 00 B4 3E 80 13 00 00 00 00 00 00 6E [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 62 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 62 00 B4 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 86 20 02 00 0E 04 04 00 2C 02 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 5E [11:44:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 86 20 02 00 0E 04 04 00 2C 02 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 [11:44:09]wFMCommunicate OK [11:44:09]SAM_PROTO_GetFieldsCounters done [11:44:09]requested_item shift.num is exist - process it [11:44:09]requested_item shift.opened is exist - process it [11:44:09]req_shift_opened [11:44:09]FM_GetShiftState [11:44:09]SAM_PROTO_GetShiftState [11:44:09]wFMCommunicate request_size=4 [11:44:09]MH_SAM_APDU [11:44:09]CAPDU: 80 13 01 00 [11:44:09]Write to MH i2c: E2 08 00 B5 3E 80 13 01 00 00 00 00 00 70 [11:44:09]Write i2c OK [11:44:09]MH_I2C_Read... [11:44:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:44:09]Read from MH i2c: E2 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 0E 00 [11:44:09]MH_I2C_Read... [11:44:09]Read from MH i2c: E2 0E 00 B5 3E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 00 [11:44:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:44:09]wFMCommunicate OK [11:44:09]SAM_PROTO_GetShiftState done [11:44:09]FM_GetShiftState done [11:44:09]req_shift_opened done [11:44:09]requested_item shift.open_date is exist - process it [11:44:09]req_shift_open_date [11:44:09]req_shift_open_date done [11:44:09]produce_requested_data done [11:44:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139398,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [11:44:09]process_action_free close_receipt [11:44:09]json_value_free [11:44:09]json_value_free done [11:44:09]process_json_proto returns [11:44:09]Send response to host [11:44:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139398,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [11:44:09]free response buf [11:44:09]execute_script done [11:44:09]execute_script returns [11:44:09]free content buf [11:44:09]Sock 9.Close socket [11:44:09]Sock 9.Thread stoped [11:44:13]OFD Sender: No OFD packet to send [11:44:18]OFD Sender: No OFD packet to send [11:44:23]OFD Sender: No OFD packet to send [11:44:28]OFD Sender: No OFD packet to send [11:44:33]OFD Sender: No OFD packet to send [11:44:38]OFD Sender: No OFD packet to send [11:44:43]OFD Sender: No OFD packet to send [11:44:48]OFD Sender: No OFD packet to send [11:44:53]OFD Sender: No OFD packet to send [11:44:58]OFD Sender: No OFD packet to send [11:45:03]OFD Sender: No OFD packet to send [11:45:08]OFD Sender: No OFD packet to send [11:45:13]OFD Sender: No OFD packet to send [11:45:18]OFD Sender: No OFD packet to send [11:45:23]OFD Sender: No OFD packet to send [11:45:28]OFD Sender: No OFD packet to send [11:45:33]OFD Sender: No OFD packet to send [11:45:38]OFD Sender: No OFD packet to send [11:45:43]OFD Sender: No OFD packet to send [11:45:48]OFD Sender: No OFD packet to send [11:45:53]OFD Sender: No OFD packet to send [11:45:58]OFD Sender: No OFD packet to send [11:46:03]OFD Sender: No OFD packet to send [11:46:08]OFD Sender: No OFD packet to send [11:46:13]OFD Sender: No OFD packet to send [11:46:18]OFD Sender: No OFD packet to send [11:46:23]OFD Sender: No OFD packet to send [11:46:28]OFD Sender: No OFD packet to send [11:46:33]OFD Sender: No OFD packet to send [11:46:38]OFD Sender: No OFD packet to send [11:46:43]OFD Sender: No OFD packet to send [11:46:48]OFD Sender: No OFD packet to send [11:46:53]OFD Sender: No OFD packet to send [11:46:58]OFD Sender: No OFD packet to send [11:47:03]OFD Sender: No OFD packet to send [11:47:08]OFD Sender: No OFD packet to send [11:47:13]OFD Sender: No OFD packet to send [11:47:18]OFD Sender: No OFD packet to send [11:47:23]OFD Sender: No OFD packet to send [11:47:28]OFD Sender: No OFD packet to send [11:47:33]OFD Sender: No OFD packet to send [11:47:38]OFD Sender: No OFD packet to send [11:47:43]OFD Sender: No OFD packet to send [11:47:48]OFD Sender: No OFD packet to send [11:47:53]OFD Sender: No OFD packet to send [11:47:58]OFD Sender: No OFD packet to send [11:48:03]OFD Sender: No OFD packet to send [11:48:08]OFD Sender: No OFD packet to send [11:48:13]OFD Sender: No OFD packet to send [11:48:18]OFD Sender: No OFD packet to send [11:48:23]OFD Sender: No OFD packet to send [11:48:28]OFD Sender: No OFD packet to send [11:48:33]OFD Sender: No OFD packet to send [11:48:38]OFD Sender: No OFD packet to send [11:48:43]OFD Sender: No OFD packet to send [11:48:48]OFD Sender: No OFD packet to send [11:48:53]OFD Sender: No OFD packet to send [11:48:58]OFD Sender: No OFD packet to send [11:49:03]OFD Sender: No OFD packet to send [11:49:08]OFD Sender: No OFD packet to send [11:49:13]OFD Sender: No OFD packet to send [11:49:18]OFD Sender: No OFD packet to send [11:49:23]OFD Sender: No OFD packet to send [11:49:28]OFD Sender: No OFD packet to send [11:49:33]OFD Sender: No OFD packet to send [11:49:38]OFD Sender: No OFD packet to send [11:49:43]OFD Sender: No OFD packet to send [11:49:48]OFD Sender: No OFD packet to send [11:49:53]OFD Sender: No OFD packet to send [11:49:58]OFD Sender: No OFD packet to send [11:50:03]OFD Sender: No OFD packet to send [11:50:08]OFD Sender: No OFD packet to send [11:50:13]OFD Sender: No OFD packet to send [11:50:18]OFD Sender: No OFD packet to send [11:50:23]OFD Sender: No OFD packet to send [11:50:28]OFD Sender: No OFD packet to send [11:50:33]OFD Sender: No OFD packet to send [11:50:38]OFD Sender: No OFD packet to send [11:50:43]OFD Sender: No OFD packet to send [11:50:48]OFD Sender: No OFD packet to send [11:50:53]OFD Sender: No OFD packet to send [11:50:58]OFD Sender: No OFD packet to send [11:51:03]OFD Sender: No OFD packet to send [11:51:08]OFD Sender: No OFD packet to send [11:51:13]OFD Sender: No OFD packet to send [11:51:18]OFD Sender: No OFD packet to send [11:51:23]OFD Sender: No OFD packet to send [11:51:28]OFD Sender: No OFD packet to send [11:51:33]OFD Sender: No OFD packet to send [11:51:38]OFD Sender: No OFD packet to send [11:51:43]OFD Sender: No OFD packet to send [11:51:48]OFD Sender: No OFD packet to send [11:51:53]OFD Sender: No OFD packet to send [11:51:58]OFD Sender: No OFD packet to send [11:52:03]OFD Sender: No OFD packet to send [11:52:08]OFD Sender: No OFD packet to send [11:52:13]OFD Sender: No OFD packet to send [11:52:18]OFD Sender: No OFD packet to send [11:52:23]OFD Sender: No OFD packet to send [11:52:28]OFD Sender: No OFD packet to send [11:52:33]OFD Sender: No OFD packet to send [11:52:38]OFD Sender: No OFD packet to send [11:52:43]OFD Sender: No OFD packet to send [11:52:48]OFD Sender: No OFD packet to send [11:52:53]OFD Sender: No OFD packet to send [11:52:58]OFD Sender: No OFD packet to send [11:53:03]OFD Sender: No OFD packet to send [11:53:08]OFD Sender: No OFD packet to send [11:53:13]OFD Sender: No OFD packet to send [11:53:18]accept exits with 8 [11:53:18]New connection [11:53:18]New thread 3067284836 created [11:53:18]Thread 3067141476 joined [11:53:18]Waiting for new connection... [11:53:18] Sock 8.Parse request [11:53:18]Sock 8.Check first char [11:53:18]Sock 8.First char is OK [11:53:18]request: POST /json_proto HTTP/1.0 [11:53:18]Method: POST [11:53:18]URL: /json_proto [11:53:18]Method is POST - this is cgi request [11:53:18]url: /json_proto [11:53:18]query_string will be loaded in cgi processing [11:53:18]execute_cgi json_proto POST (null) [11:53:18]execute_cgi path=json_proto method=POST [11:53:18]POST find Content-Length [11:53:18]Host: 172.17.50.196:8080 [11:53:18]Content-Length: 799 [11:53:18]Content-Type: application/json [11:53:18] [11:53:18]POST finish read [11:53:18]Found Content-Length = 799 [11:53:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 0.00, "quantity" : 105.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\u000A24266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:18]execute_script... [11:53: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)1094438", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 0.00, "quantity" : 105.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\u000A24266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [11:53:18]POST & json_proto [11:53:18]process_json_proto [11:53:18]json parsed OK: [11:53:18]protocol is kg_v1.0 [11:53:18]action value=close_receipt [11:53:18]process_action close_receipt [11:53:18]cmd_close_receipt [11:53:18]MH_GetDate [11:53:18]Write to MH i2c: F0 00 00 B6 3E E3 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: F0 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: F0 09 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: F0 09 00 B6 3E 00 33 1E 22 67 72 0D 1C 67 C8 [11:53:18]GetLastDocTimeStamp 1730288650 [11:53:18]current date 1730289203 [11:53:18]FM_GetShiftState [11:53:18]SAM_PROTO_GetShiftState [11:53:18]wFMCommunicate request_size=4 [11:53:18]MH_SAM_APDU [11:53:18]CAPDU: 80 13 01 00 [11:53:18]Write to MH i2c: E2 08 00 B7 3E 80 13 01 00 00 00 00 00 72 [11:53:18]Write i2c OK [11:53:18]MH_I2C_Read... [11:53:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [11:53:18]Read from MH i2c: E2 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 0E 00 [11:53:18]MH_I2C_Read... [11:53:18]Read from MH i2c: E2 0E 00 B7 3E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 02 [11:53:18]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [11:53:18]wFMCommunicate OK [11:53:18]SAM_PROTO_GetShiftState done [11:53:18]FM_GetShiftState done [11:53:18]opened in 1730246278 [11:53:18]opened+sec_in_day 1730332678 [11:53:18]quantity*price = 0 [11:53:18]sum+1 = 1 [11:53:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 83 30.10.2024 11:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: Топливная Карта 24266 ФМ: 0000000000874669 ФД: 139399 ФПД: 266329749019343 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115323&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139399&fm=266329749019343&tin=02508201610067®Number=0000000000091631&sum=0 [11:53:19]StoreToDocumentArchive [11:53:19]shift 556 fd 139399 [11:53:19]save to /storage/0556/doc_00139399 [11:53:19]save last doc name /storage/0556/doc_00139399 to /storage/kkm_last_doc_name [11:53:19]save OK [11:53:19]Clear old archive folders... [11:53:19]ProcessDocumentItem done err = 0, tmpTLVsize=252 [11:53:19]tlvbuf is 01167630 [11:53:19]SAM_PROTO_ClearQueue [11:53:19]wFMCommunicate request_size=4 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 09 00 00 [11:53:19]Write to MH i2c: E2 08 00 C4 3E 80 09 00 00 00 00 00 00 74 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 03 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 03 00 C4 3E 00 90 00 76 [11:53:19]RAPDU: 90 00 [11:53:19]wFMCommunicate OK [11:53:19]SAM_PROTO_ClearQueue done [11:53:19]KKMCreateOFDPacket [11:53:19]OFDProtocolAddRootSTLVToBuf [11:53:19]FM_MakeSignedData [11:53:19]FM_MakeSignedData [11:53:19]SAM_PROTO_SignData [11:53:19]wFMCommunicate request_size=4 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 0D 01 02 [11:53:19]Write to MH i2c: E2 08 00 C5 3E 80 0D 01 02 00 00 00 00 7C [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [11:53:19]Read from MH i2c: E2 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 03 00 [11:53:19]MH_I2C_Read... [11:53:19]Read from MH i2c: E2 03 00 C5 3E 00 90 00 77 [11:53:19]RAPDU: 90 00 [11:53:19]wFMCommunicate OK [11:53:19]wFMCommunicate request_size=255 [11:53:19]MH_SAM_APDU [11:53:19]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 28 9A 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 53 00 00 00 F4 03 04 00 33 1E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 87 20 02 00 35 04 06 00 [11:53:19]Write to MH i2c: E2 02 01 C6 3E 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 28 9A 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 53 00 00 00 F4 03 04 00 33 1E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 87 20 02 00 35 04 06 00 00 00 88 [11:53:19]Write i2c OK [11:53:19]MH_I2C_Read... [11:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:20]Read from MH i2c: E2 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 03 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 03 00 C6 3E 00 90 00 78 [11:53:20]RAPDU: 90 00 [11:53:20]wFMCommunicate OK [11:53:20]wFMCommunicate request_size=11 [11:53:20]MH_SAM_APDU [11:53:20]CAPDU: 80 0D 02 02 06 F2 39 BA 15 5A CF [11:53:20]Write to MH i2c: E2 0E 00 C7 3E 80 0D 02 02 06 00 F2 39 BA 15 5A CF 00 00 AE [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [11:53:20]Read from MH i2c: E2 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 03 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 03 00 C7 3E 00 90 00 79 [11:53:20]RAPDU: 90 00 [11:53:20]wFMCommunicate OK [11:53:20]wFMCommunicate request_size=4 [11:53:20]MH_SAM_APDU [11:53:20]CAPDU: 80 0D 03 02 [11:53:20]Write to MH i2c: E2 08 00 C8 3E 80 0D 03 02 00 00 00 00 81 [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [11:53:20]Read from MH i2c: E2 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 0B 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 0B 00 C8 3E 00 5A F7 42 BA 6A 44 40 3A 90 00 F7 [11:53:20]RAPDU: 5A F7 42 BA 6A 44 40 3A 90 00 [11:53:20]wFMCommunicate OK [11:53:20]SAM_PROTO_SignData done [11:53:20]FM_MakeSignedData done [11:53:20]CreateOFDProtocolMessage [11:53:20]wFMCommunicate request_size=4 [11:53:20]MH_SAM_APDU [11:53:20]CAPDU: 80 11 00 00 [11:53:20]Write to MH i2c: E2 08 00 C9 3E 80 11 00 00 00 00 00 00 81 [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:20]Read from MH i2c: E2 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 17 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: E2 17 00 C9 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DC [11:53:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:53:20]wFMCommunicate OK [11:53:20]CreateOFDProtocolMessage done [11:53:20]OFDSenderStorePacket 139399 [11:53:20]StoreOFDPacket docnum=139399 [11:53:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 AB AB 08 01 09 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 28 9A 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 53 00 00 00 F4 03 04 00 33 1E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 87 20 02 00 35 04 06 00 F2 39 BA 15 5A CF 5A F7 42 BA 6A 44 40 3A [11:53:20]CheckFolder [11:53:20]dirname=/storage/ofd_packets [11:53:20]CheckFolder done [11:53:20]ProducePacketName [11:53:20]name=ofd_packets/00139399 [11:53:20]NVStorageSaveData ofd_packets/00139399 [11:53:20]File name is /storage/ofd_packets/00139399 [11:53:20]Write 302 bytes [11:53:20]NVStorageSaveData done [11:53:20]OFDSenderStorePacket done [11:53:20]KKMCreateOFDPacket done [11:53:20]NVStorageSaveData kkm_last_timestamp [11:53:20]File name is /storage/kkm_last_timestamp [11:53:20]Write 4 bytes [11:53:20]NVStorageSaveData done [11:53:20]ExternCall_PrintAddStr [11:53:20]wPrintStart [11:53:20]Write to MH i2c: 01 00 00 CA 3E 08 [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: 01 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: 01 07 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: 01 07 00 CA 3E 00 00 00 00 00 FF 0F 1D [11:53:20]RasterBufferAndPrint [11:53:20]line Счет N : (1)1094438 [11:53:20]line ИНН: 02508201610067 [11:53:20]line Контрольно-Кассовый Чек [11:53:20]line ПРОДАЖА [11:53:20]line ТРК (МРК, ГНК) : 11 [11:53:20]line Товар: 2710194210 [11:53:20]line ДТ(л)-К-2 [11:53:20]line 105.000 * 0.00 [11:53:20]line = 0.00 [11:53:20]line НДС 12% НСП 1% [11:53:20]line > о реализуемом товаре [11:53:20]line ИТОГО: 0.00 [11:53:20]line НСП 1% : 0.00 [11:53:20]line НДС 12% : 0.00 [11:53:20]line Наличными: 0.00 [11:53:20]line Безнал.: 0.00 [11:53:20]line Место: АЗС № 101 "Партнер Нефть" [11:53:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [11:53:20]line СНО: Общий режим [11:53:20]line Чек 83 30.10.2024 11:53 [11:53:20]line Смена: 556 ФФД: 1.0 [11:53:20]line ЗНМ: 0300000081 [11:53:20]line РНМ: 0000000000091631 [11:53:20]line Версия ККМ: 001 [11:53:20]line Талоны: Топливная Карта [11:53:20]line 24266 [11:53:20]line ФМ: 0000000000874669 [11:53:20]line ФД: 139399 [11:53:20]line ФПД: 266329749019343 [11:53:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T115323&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139399&fm=266329749019343&tin=02508201610067®Number=0000000000091631&sum=0 [11:53:20]OFD Sender: Processing packet 139399 [packets to send 34, broken 33] [11:53:20]ProducePacketName [11:53:20]name=ofd_packets/00139399 [11:53:20]OFD Sender: To server: pG, [11:53:20]CommunicateWithHost lk.salyk.kg:30040 [11:53:20]ConnectInit lk.salyk.kg [11:53:20]written 0, free lines is 4095 [11:53:20]Connected sock=10 [11:53:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 AB AB 08 01 09 AE 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 28 9A 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 53 00 00 00 F4 03 04 00 33 1E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 87 20 02 00 35 04 06 00 F2 39 BA 15 5A CF 5A F7 42 BA 6A 44 40 3A [11:53:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A0 9E 47 00 FA 67 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 87 20 02 00 F4 03 04 00 E4 C9 21 67 B6 04 01 00 00 B7 58 17 B0 72 E4 D7 A1 [11:53:20]CommunicateWithHost err = 0 [11:53:20]CheckOFDResponse [11:53:20]1017 (14) - 77093643461234 [11:53:20]1041 (16) - 0000000000874669 [11:53:20]1040 (4) - 139399 [11:53:20]1012 (4) - 30.10.2024 05:53 [11:53:20]1206 (1) - 0 [11:53:20]OFD Sender: Remove packet 139399 [11:53:20]ProducePacketName [11:53:20]name=ofd_packets/00139399 [11:53:20]NVStorageDeleteData [11:53:20]Write to MH i2c: 01 00 00 F4 3E 32 [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: 01 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: 01 07 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: 01 07 00 F4 3E 00 00 00 00 00 F7 0C 3C [11:53:20]RasterBufferAndPrint [11:53:20]line [11:53:20]line [11:53:20]line [11:53:20]line [11:53:20]line [11:53:20]written 0, free lines is 3325 [11:53:20]MH_Cut [11:53:20]Write to MH i2c: D1 01 00 FB 3E 01 0B [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: D1 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: D1 01 00 [11:53:20]MH_I2C_Read... [11:53:20]Read from MH i2c: D1 01 00 FB 3E 00 0A [11:53:20]Write to MH i2c: 01 00 00 FC 3E 3A [11:53:20]Write i2c OK [11:53:20]MH_I2C_Read... [11:53:21]OFD Sender: No OFD packet to send [11:53:21]*** Cut start [11:53:21]*** Partial cut [11:53:21]*** CUTSNS_PIN = 1 [11:53:21]*** CUTSNS_PIN = 0 [11:53:21]*** Brake cut motor [11:53:22]Read from MH i2c: 01 [11:53:22]MH_I2C_Read... [11:53:22]*** Stop cut motor [11:53:22]*** Cut end [11:53:22]Read from MH i2c: 01 07 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: 01 07 00 FC 3E 00 00 00 00 00 FF 0F 4F [11:53:22]process_action close_receipt done [11:53:22]requested_data is exist [11:53:22]produce_requested_data [11:53:22]requested_item fm.sn is exist - process it [11:53:22]wFMCommunicate request_size=4 [11:53:22]MH_SAM_APDU [11:53:22]CAPDU: 80 11 00 00 [11:53:22]Write to MH i2c: E2 08 00 FD 3E 80 11 00 00 00 00 00 00 B5 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [11:53:22]Read from MH i2c: E2 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 17 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 17 00 FD 3E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 10 [11:53:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [11:53:22]wFMCommunicate OK [11:53:22]requested_item fd.num is exist - process it [11:53:22]SAM_PROTO_GetFieldsCounters [11:53:22]wFMCommunicate request_size=4 [11:53:22]MH_SAM_APDU [11:53:22]CAPDU: 80 13 00 00 [11:53:22]Write to MH i2c: E2 08 00 FE 3E 80 13 00 00 00 00 00 00 B8 [11:53:22]Write i2c OK [11:53:22]MH_I2C_Read... [11:53:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [11:53:22]Read from MH i2c: E2 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 62 00 [11:53:22]MH_I2C_Read... [11:53:22]Read from MH i2c: E2 62 00 FE 3E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 87 20 02 00 0E 04 04 00 2C 02 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 AC [11:53:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 87 20 02 00 0E 04 04 00 2C 02 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 [11:53:22]wFMCommunicate OK [11:53:22]SAM_PROTO_GetFieldsCounters done [11:53:22]requested_item shift.num is exist - process it [11:53:22]requested_item shift.opened is exist - process it [11:53:22]req_shift_opened [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 FF 3E 80 13 01 00 00 00 00 00 BA [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 FF 3E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4A [11:53:22]RAPDU: 09 00 01 86 76 21 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]req_shift_opened done [11:53:22]requested_item shift.open_date is exist - process it [11:53:22]req_shift_open_date [11:53:22]req_shift_open_date done [11:53:22]produce_requested_data done [11:53:22]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139399,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [11:53:22]process_action_free close_receipt [11:53:22]json_value_free [11:53:22]json_value_free done [11:53:22]process_json_proto returns [11:53:22]Send response to host [11:53:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139399,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [11:53:22]free response buf [11:53:22]execute_script done [11:53:22]execute_script returns [11:53:22]free content buf [11:53:22]Sock 8.Close socket [11:53:22]Sock 8.Thread stoped [11:53:26]OFD Sender: No OFD packet to send [11:53:31]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]OFD Sender: No OFD packet to send [11:54:26]OFD Sender: No OFD packet to send [11:54:31]OFD Sender: No OFD packet to send [11:54:36]OFD Sender: No OFD packet to send [11:54:41]OFD Sender: No OFD packet to send [11:54:46]OFD Sender: No OFD packet to send [11:54:51]OFD Sender: No OFD packet to send [11:54:56]OFD Sender: No OFD packet to send [11:55:01]OFD Sender: No OFD packet to send [11:55:06]OFD Sender: No OFD packet to send [11:55:11]OFD Sender: No OFD packet to send [11:55:16]OFD Sender: No OFD packet to send [11:55:21]OFD Sender: No OFD packet to send [11:55:26]OFD Sender: No OFD packet to send [11:55:31]OFD Sender: No OFD packet to send [11:55:36]OFD Sender: No OFD packet to send [11:55:41]OFD Sender: No OFD packet to send [11:55:46]OFD Sender: No OFD packet to send [11:55:51]OFD Sender: No OFD packet to send [11:55:56]OFD Sender: No OFD packet to send [11:56:01]OFD Sender: No OFD packet to send [11:56:06]OFD Sender: No OFD packet to send [11:56:11]OFD Sender: No OFD packet to send [11:56:16]OFD Sender: No OFD packet to send [11:56:21]OFD Sender: No OFD packet to send [11:56:26]OFD Sender: No OFD packet to send [11:56:31]OFD Sender: No OFD packet to send [11:56:36]OFD Sender: No OFD packet to send [11:56:41]OFD Sender: No OFD packet to send [11:56:46]OFD Sender: No OFD packet to send [11:56:51]OFD Sender: No OFD packet to send [11:56:56]OFD Sender: No OFD packet to send [11:57:01]OFD Sender: No OFD packet to send [11:57:06]OFD Sender: No OFD packet to send [11:57:11]OFD Sender: No OFD packet to send [11:57:16]OFD Sender: No OFD packet to send [11:57:21]OFD Sender: No OFD packet to send [11:57:26]OFD Sender: No OFD packet to send [11:57:31]OFD Sender: No OFD packet to send [11:57:36]OFD Sender: No OFD packet to send [11:57:41]OFD Sender: No OFD packet to send [11:57:46]OFD Sender: No OFD packet to send [11:57:51]OFD Sender: No OFD packet to send [11:57:56]OFD Sender: No OFD packet to send [11:58:01]OFD Sender: No OFD packet to send [11:58:06]OFD Sender: No OFD packet to send [11:58:11]OFD Sender: No OFD packet to send [11:58:16]OFD Sender: No OFD packet to send [11:58:21]OFD Sender: No OFD packet to send [11:58:26]OFD Sender: No OFD packet to send [11:58:31]OFD Sender: No OFD packet to send [11:58:36]OFD Sender: No OFD packet to send [11:58:41]OFD Sender: No OFD packet to send [11:58:46]OFD Sender: No OFD packet to send [11:58:51]OFD Sender: No OFD packet to send [11:58:56]OFD Sender: No OFD packet to send [11:59:01]OFD Sender: No OFD packet to send [11:59:06]OFD Sender: No OFD packet to send [11:59:11]OFD Sender: No OFD packet to send [11:59:16]OFD Sender: No OFD packet to send [11:59:21]OFD Sender: No OFD packet to send [11:59:26]OFD Sender: No OFD packet to send [11:59:31]OFD Sender: No OFD packet to send [11:59:36]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [12:00:41]OFD Sender: No OFD packet to send [12:00:46]OFD Sender: No OFD packet to send [12:00:51]OFD Sender: No OFD packet to send [12:00:56]OFD Sender: No OFD packet to send [12:01:01]OFD Sender: No OFD packet to send [12:01:06]OFD Sender: No OFD packet to send [12:01:11]OFD Sender: No OFD packet to send [12:01:16]OFD Sender: No OFD packet to send [12:01:21]OFD Sender: No OFD packet to send [12:01:26]OFD Sender: No OFD packet to send [12:01:31]OFD Sender: No OFD packet to send [12:01:36]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [12:03:01]OFD Sender: No OFD packet to send [12:03:06]OFD Sender: No OFD packet to send [12:03:11]OFD Sender: No OFD packet to send [12:03:16]OFD Sender: No OFD packet to send [12:03:21]OFD Sender: No OFD packet to send [12:03:26]OFD Sender: No OFD packet to send [12:03:31]OFD Sender: No OFD packet to send [12:03:36]OFD Sender: No OFD packet to send [12:03:41]OFD Sender: No OFD packet to send [12:03:46]OFD Sender: No OFD packet to send [12:03:51]OFD Sender: No OFD packet to send [12:03:56]OFD Sender: No OFD packet to send [12:04:01]OFD Sender: No OFD packet to send [12:04:06]OFD Sender: No OFD packet to send [12:04:11]OFD Sender: No OFD packet to send [12:04:16]OFD Sender: No OFD packet to send [12:04:21]OFD Sender: No OFD packet to send [12:04:26]OFD Sender: No OFD packet to send [12:04:31]OFD Sender: No OFD packet to send [12:04:36]OFD Sender: No OFD packet to send [12:04:41]OFD Sender: No OFD packet to send [12:04:46]OFD Sender: No OFD packet to send [12:04:51]OFD Sender: No OFD packet to send [12:04:56]OFD Sender: No OFD packet to send [12:05:01]OFD Sender: No OFD packet to send [12:05:06]OFD Sender: No OFD packet to send [12:05:11]OFD Sender: No OFD packet to send [12:05:16]OFD Sender: No OFD packet to send [12:05:21]OFD Sender: No OFD packet to send [12:05:26]OFD Sender: No OFD packet to send [12:05:31]OFD Sender: No OFD packet to send [12:05:36]OFD Sender: No OFD packet to send [12:05:41]OFD Sender: No OFD packet to send [12:05:46]OFD Sender: No OFD packet to send [12:05:51]OFD Sender: No OFD packet to send [12:05:56]OFD Sender: No OFD packet to send [12:06:01]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:37]OFD Sender: No OFD packet to send [12:06:42]OFD Sender: No OFD packet to send [12:06:47]OFD Sender: No OFD packet to send [12:06:52]OFD Sender: No OFD packet to send [12:06:57]OFD Sender: No OFD packet to send [12:07:02]OFD Sender: No OFD packet to send [12:07:07]OFD Sender: No OFD packet to send [12:07:12]OFD Sender: No OFD packet to send [12:07:17]OFD Sender: No OFD packet to send [12:07:22]OFD Sender: No OFD packet to send [12:07:27]OFD Sender: No OFD packet to send [12:07:27]accept exits with 9 [12:07:27]New connection [12:07:27]New thread 3067141476 created [12:07:27]Thread 3067284836 joined [12:07:27]Waiting for new connection... [12:07:27] Sock 9.Parse request [12:07:27]Sock 9.Check first char [12:07:27]Sock 9.First char is OK [12:07:27]request: POST /json_proto HTTP/1.0 [12:07:27]Method: POST [12:07:27]URL: /json_proto [12:07:27]Method is POST - this is cgi request [12:07:27]url: /json_proto [12:07:27]query_string will be loaded in cgi processing [12:07:27]execute_cgi json_proto POST (null) [12:07:27]execute_cgi path=json_proto method=POST [12:07:27]POST find Content-Length [12:07:27]Host: 172.17.50.196:8080 [12:07:27]Content-Length: 678 [12:07:27]Content-Type: application/json [12:07:27] [12:07:27]POST finish read [12:07:27]Found Content-Length = 678 [12:07:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:07:27]execute_script... [12:07: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)1094450", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:07:27]POST & json_proto [12:07:27]process_json_proto [12:07:27]json parsed OK: [12:07:27]protocol is kg_v1.0 [12:07:27]action value=close_receipt [12:07:27]process_action close_receipt [12:07:27]cmd_close_receipt [12:07:27]MH_GetDate [12:07:27]Write to MH i2c: F0 00 00 00 3F 2E [12:07:27]Write i2c OK [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: F0 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: F0 09 00 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: F0 09 00 00 3F 00 84 21 22 67 72 0D 1C 67 67 [12:07:27]GetLastDocTimeStamp 1730289203 [12:07:27]current date 1730290052 [12:07:27]FM_GetShiftState [12:07:27]SAM_PROTO_GetShiftState [12:07:27]wFMCommunicate request_size=4 [12:07:27]MH_SAM_APDU [12:07:27]CAPDU: 80 13 01 00 [12:07:27]Write to MH i2c: E2 08 00 01 3F 80 13 01 00 00 00 00 00 BD [12:07:27]Write i2c OK [12:07:27]MH_I2C_Read... [12:07:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:27]Read from MH i2c: E2 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 0E 00 [12:07:27]MH_I2C_Read... [12:07:27]Read from MH i2c: E2 0E 00 01 3F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4D [12:07:27]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:07:27]wFMCommunicate OK [12:07:27]SAM_PROTO_GetShiftState done [12:07:27]FM_GetShiftState done [12:07:27]opened in 1730246278 [12:07:27]opened+sec_in_day 1730332678 [12:07:27]quantity*price = 65026 [12:07:27]sum+1 = 65028 [12:07:27]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 650.00 Внесено: 650.00 СДАЧА: 0.00 НСП 1% : 5.75 НДС 12% : 69.05 Наличными: 650.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 84 30.10.2024 12:07 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139400 ФПД: 204581511777659 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120732&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139400&fm=204581511777659&tin=02508201610067®Number=0000000000091631&sum=65000 [12:07:29]StoreToDocumentArchive [12:07:29]shift 556 fd 139400 [12:07:29]save to /storage/0556/doc_00139400 [12:07:29]save last doc name /storage/0556/doc_00139400 to /storage/kkm_last_doc_name [12:07:29]save OK [12:07:29]Clear old archive folders... [12:07:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:07:29]tlvbuf is 011D7B40 [12:07:29]SAM_PROTO_ClearQueue [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 09 00 00 [12:07:29]Write to MH i2c: E2 08 00 0E 3F 80 09 00 00 00 00 00 00 BF [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 0E 3F 00 90 00 C1 [12:07:29]RAPDU: 90 00 [12:07:29]wFMCommunicate OK [12:07:29]SAM_PROTO_ClearQueue done [12:07:29]KKMCreateOFDPacket [12:07:29]OFDProtocolAddRootSTLVToBuf [12:07:29]FM_MakeSignedData [12:07:29]FM_MakeSignedData [12:07:29]SAM_PROTO_SignData [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 0D 01 02 [12:07:29]Write to MH i2c: E2 08 00 0F 3F 80 0D 01 02 00 00 00 00 C7 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 0F 3F 00 90 00 C2 [12:07:29]RAPDU: 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=255 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 54 00 00 00 F4 03 04 00 84 21 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 88 20 02 00 35 04 06 00 BA [12:07:29]Write to MH i2c: E2 02 01 10 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 32 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 54 00 00 00 F4 03 04 00 84 21 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 88 20 02 00 35 04 06 00 BA 00 00 5D [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 10 3F 00 90 00 C3 [12:07:29]RAPDU: 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=10 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 0D 02 02 05 10 D8 56 4D 7B [12:07:29]Write to MH i2c: E2 0D 00 11 3F 80 0D 02 02 05 00 10 D8 56 4D 7B 00 00 DA [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 03 00 11 3F 00 90 00 C4 [12:07:29]RAPDU: 90 00 [12:07:29]wFMCommunicate OK [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 0D 03 02 [12:07:29]Write to MH i2c: E2 08 00 12 3F 80 0D 03 02 00 00 00 00 CC [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 0B 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 0B 00 12 3F 00 7D A2 5C 84 14 EA CF DA 90 00 73 [12:07:29]RAPDU: 7D A2 5C 84 14 EA CF DA 90 00 [12:07:29]wFMCommunicate OK [12:07:29]SAM_PROTO_SignData done [12:07:29]FM_MakeSignedData done [12:07:29]CreateOFDProtocolMessage [12:07:29]wFMCommunicate request_size=4 [12:07:29]MH_SAM_APDU [12:07:29]CAPDU: 80 11 00 00 [12:07:29]Write to MH i2c: E2 08 00 13 3F 80 11 00 00 00 00 00 00 CC [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:29]Read from MH i2c: E2 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 17 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: E2 17 00 13 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 27 [12:07:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:07:29]wFMCommunicate OK [12:07:29]CreateOFDProtocolMessage done [12:07:29]OFDSenderStorePacket 139400 [12:07:29]StoreOFDPacket docnum=139400 [12:07:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 A3 8A 07 01 4C 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 32 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 54 00 00 00 F4 03 04 00 84 21 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 88 20 02 00 35 04 06 00 BA 10 D8 56 4D 7B 7D A2 5C 84 14 EA CF DA [12:07:29]CheckFolder [12:07:29]dirname=/storage/ofd_packets [12:07:29]CheckFolder done [12:07:29]ProducePacketName [12:07:29]name=ofd_packets/00139400 [12:07:29]NVStorageSaveData ofd_packets/00139400 [12:07:29]File name is /storage/ofd_packets/00139400 [12:07:29]Write 301 bytes [12:07:29]NVStorageSaveData done [12:07:29]OFDSenderStorePacket done [12:07:29]KKMCreateOFDPacket done [12:07:29]NVStorageSaveData kkm_last_timestamp [12:07:29]File name is /storage/kkm_last_timestamp [12:07:29]Write 4 bytes [12:07:29]NVStorageSaveData done [12:07:29]ExternCall_PrintAddStr [12:07:29]wPrintStart [12:07:29]Write to MH i2c: 01 00 00 14 3F 53 [12:07:29]Write i2c OK [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: 01 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: 01 07 00 [12:07:29]MH_I2C_Read... [12:07:29]Read from MH i2c: 01 07 00 14 3F 00 00 00 00 00 FF 0F 68 [12:07:29]RasterBufferAndPrint [12:07:29]line Счет N : (1)1094450 [12:07:29]line ИНН: 02508201610067 [12:07:29]line Контрольно-Кассовый Чек [12:07:29]line ПРОДАЖА [12:07:29]line ТРК (МРК, ГНК) : 53 [12:07:29]line Товар: 2710124130 [12:07:29]line Аи-92-К-2 [12:07:29]line 9.720 * 66.90 [12:07:29]line = 650.27 [12:07:29]line НДС 12% НСП 1% [12:07:29]line > о реализуемом товаре [12:07:29]line ОКРУГЛЕНИЕ: -0.27 [12:07:29]line ИТОГО: 650.00 [12:07:29]line Внесено: 650.00 [12:07:29]line СДАЧА: 0.00 [12:07:29]line НСП 1% : 5.75 [12:07:29]line НДС 12% : 69.05 [12:07:29]line Наличными: 650.00 [12:07:29]line Безнал.: 0.00 [12:07:29]line Место: АЗС № 101 "Партнер Нефть" [12:07:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:07:29]line СНО: Общий режим [12:07:29]line Чек 84 30.10.2024 12:07 [12:07:29]line Смена: 556 ФФД: 1.0 [12:07:29]line ЗНМ: 0300000081 [12:07:29]line РНМ: 0000000000091631 [12:07:29]line Версия ККМ: 001 [12:07:29]line ФМ: 0000000000874669 [12:07:29]line ФД: 139400 [12:07:29]line ФПД: 204581511777659 [12:07:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T120732&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139400&fm=204581511777659&tin=02508201610067®Number=0000000000091631&sum=65000 [12:07:29]OFD Sender: Processing packet 139400 [packets to send 34, broken 33] [12:07:29]ProducePacketName [12:07:29]name=ofd_packets/00139400 [12:07:29]OFD Sender: To server: pG, [12:07:29]CommunicateWithHost lk.salyk.kg:30040 [12:07:29]ConnectInit lk.salyk.kg [12:07:29]written 0, free lines is 4095 [12:07:29]Connected sock=10 [12:07:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 A3 8A 07 01 4C 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 32 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 54 00 00 00 F4 03 04 00 84 21 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 88 20 02 00 35 04 06 00 BA 10 D8 56 4D 7B 7D A2 5C 84 14 EA CF DA [12:07:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 02 ED 47 00 B5 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 38 37 34 36 36 39 10 04 04 00 88 20 02 00 F4 03 04 00 35 CD 21 67 B6 04 01 00 00 11 12 B7 C6 4E 90 FA FB [12:07:30]CommunicateWithHost err = 0 [12:07:30]CheckOFDResponse [12:07:30]1017 (14) - 77093643461234 [12:07:30]1041 (16) - 0000000000874669 [12:07:30]1040 (4) - 139400 [12:07:30]1012 (4) - 30.10.2024 06:07 [12:07:30]1206 (1) - 0 [12:07:30]OFD Sender: Remove packet 139400 [12:07:30]ProducePacketName [12:07:30]name=ofd_packets/00139400 [12:07:30]NVStorageDeleteData [12:07:30]Write to MH i2c: 01 00 00 3F 3F 7E [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 07 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: 01 07 00 3F 3F 00 00 00 00 00 F7 0C 88 [12:07:30]RasterBufferAndPrint [12:07:30]line [12:07:30]line [12:07:30]line [12:07:30]line [12:07:30]line [12:07:30]written 0, free lines is 3326 [12:07:30]MH_Cut [12:07:30]Write to MH i2c: D1 01 00 46 3F 01 57 [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: D1 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: D1 01 00 [12:07:30]MH_I2C_Read... [12:07:30]Read from MH i2c: D1 01 00 46 3F 00 56 [12:07:30]Write to MH i2c: 01 00 00 47 3F 86 [12:07:30]Write i2c OK [12:07:30]MH_I2C_Read... [12:07:30]OFD Sender: No OFD packet to send [12:07:31]*** Cut start [12:07:31]*** Partial cut [12:07:31]*** CUTSNS_PIN = 1 [12:07:31]*** CUTSNS_PIN = 0 [12:07:31]*** Brake cut motor [12:07:31]Read from MH i2c: 01 [12:07:31]MH_I2C_Read... [12:07:31]*** Stop cut motor [12:07:31]*** Cut end [12:07:31]Read from MH i2c: 01 07 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: 01 07 00 47 3F 00 00 00 00 00 FF 0F 9B [12:07:31]process_action close_receipt done [12:07:31]requested_data is exist [12:07:31]produce_requested_data [12:07:31]requested_item fm.sn is exist - process it [12:07:31]wFMCommunicate request_size=4 [12:07:31]MH_SAM_APDU [12:07:31]CAPDU: 80 11 00 00 [12:07:31]Write to MH i2c: E2 08 00 48 3F 80 11 00 00 00 00 00 00 01 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:07:31]Read from MH i2c: E2 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 17 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 17 00 48 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5C [12:07:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:07:31]wFMCommunicate OK [12:07:31]requested_item fd.num is exist - process it [12:07:31]SAM_PROTO_GetFieldsCounters [12:07:31]wFMCommunicate request_size=4 [12:07:31]MH_SAM_APDU [12:07:31]CAPDU: 80 13 00 00 [12:07:31]Write to MH i2c: E2 08 00 49 3F 80 13 00 00 00 00 00 00 04 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:07:31]Read from MH i2c: E2 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 62 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 62 00 49 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 88 20 02 00 0E 04 04 00 2C 02 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 FC [12:07:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 88 20 02 00 0E 04 04 00 2C 02 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 [12:07:31]wFMCommunicate OK [12:07:31]SAM_PROTO_GetFieldsCounters done [12:07:31]requested_item shift.num is exist - process it [12:07:31]requested_item shift.opened is exist - process it [12:07:31]req_shift_opened [12:07:31]FM_GetShiftState [12:07:31]SAM_PROTO_GetShiftState [12:07:31]wFMCommunicate request_size=4 [12:07:31]MH_SAM_APDU [12:07:31]CAPDU: 80 13 01 00 [12:07:31]Write to MH i2c: E2 08 00 4A 3F 80 13 01 00 00 00 00 00 06 [12:07:31]Write i2c OK [12:07:31]MH_I2C_Read... [12:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:07:31]Read from MH i2c: E2 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 0E 00 [12:07:31]MH_I2C_Read... [12:07:31]Read from MH i2c: E2 0E 00 4A 3F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 96 [12:07:31]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:07:31]wFMCommunicate OK [12:07:31]SAM_PROTO_GetShiftState done [12:07:31]FM_GetShiftState done [12:07:31]req_shift_opened done [12:07:31]requested_item shift.open_date is exist - process it [12:07:31]req_shift_open_date [12:07:31]req_shift_open_date done [12:07:31]produce_requested_data done [12:07:31]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139400,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:07:31]process_action_free close_receipt [12:07:31]json_value_free [12:07:31]json_value_free done [12:07:31]process_json_proto returns [12:07:31]Send response to host [12:07:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139400,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:07:31]free response buf [12:07:31]execute_script done [12:07:31]execute_script returns [12:07:31]free content buf [12:07:31]Sock 9.Close socket [12:07:31]Sock 9.Thread stoped [12:07:35]OFD Sender: No OFD packet to send [12:07:40]OFD Sender: No OFD packet to send [12:07:45]OFD Sender: No OFD packet to send [12:07:50]OFD Sender: No OFD packet to send [12:07:55]OFD Sender: No OFD packet to send [12:08:00]OFD Sender: No OFD packet to send [12:08:05]OFD Sender: No OFD packet to send [12:08:10]OFD Sender: No OFD packet to send [12:08:15]OFD Sender: No OFD packet to send [12:08:20]OFD Sender: No OFD packet to send [12:08:25]OFD Sender: No OFD packet to send [12:08:30]OFD Sender: No OFD packet to send [12:08:35]OFD Sender: No OFD packet to send [12:08:40]OFD Sender: No OFD packet to send [12:08:45]OFD Sender: No OFD packet to send [12:08:50]OFD Sender: No OFD packet to send [12:08:55]OFD Sender: No OFD packet to send [12:09:00]OFD Sender: No OFD packet to send [12:09:05]OFD Sender: No OFD packet to send [12:09:10]OFD Sender: No OFD packet to send [12:09:15]OFD Sender: No OFD packet to send [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:12:00]OFD Sender: No OFD packet to send [12:12:05]OFD Sender: No OFD packet to send [12:12:10]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:30]OFD Sender: No OFD packet to send [12:13:35]OFD Sender: No OFD packet to send [12:13:41]OFD Sender: No OFD packet to send [12:13:46]OFD Sender: No OFD packet to send [12:13:51]OFD Sender: No OFD packet to send [12:13:56]OFD Sender: No OFD packet to send [12:14:01]OFD Sender: No OFD packet to send [12:14:06]OFD Sender: No OFD packet to send [12:14:11]OFD Sender: No OFD packet to send [12:14:16]OFD Sender: No OFD packet to send [12:14:21]OFD Sender: No OFD packet to send [12:14:26]OFD Sender: No OFD packet to send [12:14:31]OFD Sender: No OFD packet to send [12:14:36]OFD Sender: No OFD packet to send [12:14:41]OFD Sender: No OFD packet to send [12:14:46]OFD Sender: No OFD packet to send [12:14:51]OFD Sender: No OFD packet to send [12:14:56]OFD Sender: No OFD packet to send [12:15:01]OFD Sender: No OFD packet to send [12:15:06]OFD Sender: No OFD packet to send [12:15:11]OFD Sender: No OFD packet to send [12:15:16]OFD Sender: No OFD packet to send [12:15:21]OFD Sender: No OFD packet to send [12:15:26]OFD Sender: No OFD packet to send [12:15:31]OFD Sender: No OFD packet to send [12:15:36]OFD Sender: No OFD packet to send [12:15:41]OFD Sender: No OFD packet to send [12:15:46]OFD Sender: No OFD packet to send [12:15:51]OFD Sender: No OFD packet to send [12:15:56]OFD Sender: No OFD packet to send [12:16:01]OFD Sender: No OFD packet to send [12:16:06]OFD Sender: No OFD packet to send [12:16:11]OFD Sender: No OFD packet to send [12:16:16]OFD Sender: No OFD packet to send [12:16:21]OFD Sender: No OFD packet to send [12:16:26]OFD Sender: No OFD packet to send [12:16:31]OFD Sender: No OFD packet to send [12:16:36]OFD Sender: No OFD packet to send [12:16:41]OFD Sender: No OFD packet to send [12:16:46]OFD Sender: No OFD packet to send [12:16:51]OFD Sender: No OFD packet to send [12:16:56]OFD Sender: No OFD packet to send [12:17:01]OFD Sender: No OFD packet to send [12:17:06]OFD Sender: No OFD packet to send [12:17:11]OFD Sender: No OFD packet to send [12:17:16]OFD Sender: No OFD packet to send [12:17:21]OFD Sender: No OFD packet to send [12:17:26]OFD Sender: No OFD packet to send [12:17:31]OFD Sender: No OFD packet to send [12:17:36]OFD Sender: No OFD packet to send [12:17:41]OFD Sender: No OFD packet to send [12:17:46]OFD Sender: No OFD packet to send [12:17:51]OFD Sender: No OFD packet to send [12:17:56]OFD Sender: No OFD packet to send [12:18:01]OFD Sender: No OFD packet to send [12:18:06]OFD Sender: No OFD packet to send [12:18:11]OFD Sender: No OFD packet to send [12:18:16]OFD Sender: No OFD packet to send [12:18:21]OFD Sender: No OFD packet to send [12:18:26]OFD Sender: No OFD packet to send [12:18:31]OFD Sender: No OFD packet to send [12:18:36]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [12:22:01]OFD Sender: No OFD packet to send [12:22:06]OFD Sender: No OFD packet to send [12:22:11]OFD Sender: No OFD packet to send [12:22:16]OFD Sender: No OFD packet to send [12:22:21]OFD Sender: No OFD packet to send [12:22:26]OFD Sender: No OFD packet to send [12:22:29]accept exits with 8 [12:22:29]New connection [12:22:29]New thread 3067284836 created [12:22:29]Thread 3067141476 joined [12:22:29]Waiting for new connection... [12:22:29] Sock 8.Parse request [12:22:29]Sock 8.Check first char [12:22:29]Sock 8.First char is OK [12:22:29]request: POST /json_proto HTTP/1.0 [12:22:29]Method: POST [12:22:29]URL: /json_proto [12:22:29]Method is POST - this is cgi request [12:22:29]url: /json_proto [12:22:29]query_string will be loaded in cgi processing [12:22:29]execute_cgi json_proto POST (null) [12:22:29]execute_cgi path=json_proto method=POST [12:22:29]POST find Content-Length [12:22:29]Host: 172.17.50.196:8080 [12:22:29]Content-Length: 683 [12:22:29]Content-Type: application/json [12:22:29] [12:22:29]POST finish read [12:22:29]Found Content-Length = 683 [12:22:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:22:29]execute_script... [12:22: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)1094459", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [12:22:29]POST & json_proto [12:22:29]process_json_proto [12:22:29]json parsed OK: [12:22:29]protocol is kg_v1.0 [12:22:29]action value=close_receipt [12:22:29]process_action close_receipt [12:22:29]cmd_close_receipt [12:22:29]MH_GetDate [12:22:29]Write to MH i2c: F0 00 00 4B 3F 79 [12:22:29]Write i2c OK [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: F0 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: F0 09 00 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: F0 09 00 4B 3F 00 0A 25 22 67 72 0D 1C 67 3C [12:22:29]GetLastDocTimeStamp 1730290052 [12:22:29]current date 1730290954 [12:22:29]FM_GetShiftState [12:22:29]SAM_PROTO_GetShiftState [12:22:29]wFMCommunicate request_size=4 [12:22:29]MH_SAM_APDU [12:22:29]CAPDU: 80 13 01 00 [12:22:29]Write to MH i2c: E2 08 00 4C 3F 80 13 01 00 00 00 00 00 08 [12:22:29]Write i2c OK [12:22:29]MH_I2C_Read... [12:22:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:29]Read from MH i2c: E2 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: E2 0E 00 [12:22:29]MH_I2C_Read... [12:22:29]Read from MH i2c: E2 0E 00 4C 3F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 98 [12:22:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:22:29]wFMCommunicate OK [12:22:29]SAM_PROTO_GetShiftState done [12:22:29]FM_GetShiftState done [12:22:29]opened in 1730246278 [12:22:29]opened+sec_in_day 1730332678 [12:22:29]quantity*price = 150056 [12:22:29]sum+1 = 150058 [12:22:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.57 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.35 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 85 30.10.2024 12:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139401 ФПД: 31981383126916 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122234&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139401&fm=31981383126916&tin=02508201610067®Number=0000000000091631&sum=150000 [12:22:30]StoreToDocumentArchive [12:22:30]shift 556 fd 139401 [12:22:30]save to /storage/0556/doc_00139401 [12:22:30]save last doc name /storage/0556/doc_00139401 to /storage/kkm_last_doc_name [12:22:30]save OK [12:22:30]Clear old archive folders... [12:22:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [12:22:30]tlvbuf is 01113020 [12:22:30]SAM_PROTO_ClearQueue [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 09 00 00 [12:22:30]Write to MH i2c: E2 08 00 59 3F 80 09 00 00 00 00 00 00 0A [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 03 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 03 00 59 3F 00 90 00 0C [12:22:30]RAPDU: 90 00 [12:22:30]wFMCommunicate OK [12:22:30]SAM_PROTO_ClearQueue done [12:22:30]KKMCreateOFDPacket [12:22:30]OFDProtocolAddRootSTLVToBuf [12:22:30]FM_MakeSignedData [12:22:30]FM_MakeSignedData [12:22:30]SAM_PROTO_SignData [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 0D 01 02 [12:22:30]Write to MH i2c: E2 08 00 5A 3F 80 0D 01 02 00 00 00 00 12 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 03 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 03 00 5A 3F 00 90 00 0D [12:22:30]RAPDU: 90 00 [12:22:30]wFMCommunicate OK [12:22:30]wFMCommunicate request_size=255 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 0A 25 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 20 02 00 35 04 06 00 1D [12:22:30]Write to MH i2c: E2 02 01 5B 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 32 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 55 00 00 00 F4 03 04 00 0A 25 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 20 02 00 35 04 06 00 1D 00 00 ED [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 03 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 03 00 5B 3F 00 90 00 0E [12:22:30]RAPDU: 90 00 [12:22:30]wFMCommunicate OK [12:22:30]wFMCommunicate request_size=10 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 0D 02 02 05 16 3E FB 0F 84 [12:22:30]Write to MH i2c: E2 0D 00 5C 3F 80 0D 02 02 05 00 16 3E FB 0F 84 00 00 01 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 03 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 03 00 5C 3F 00 90 00 0F [12:22:30]RAPDU: 90 00 [12:22:30]wFMCommunicate OK [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 0D 03 02 [12:22:30]Write to MH i2c: E2 08 00 5D 3F 80 0D 03 02 00 00 00 00 17 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 0B 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 0B 00 5D 3F 00 2A 10 D5 DF CC 1C C2 42 90 00 F2 [12:22:30]RAPDU: 2A 10 D5 DF CC 1C C2 42 90 00 [12:22:30]wFMCommunicate OK [12:22:30]SAM_PROTO_SignData done [12:22:30]FM_MakeSignedData done [12:22:30]CreateOFDProtocolMessage [12:22:30]wFMCommunicate request_size=4 [12:22:30]MH_SAM_APDU [12:22:30]CAPDU: 80 11 00 00 [12:22:30]Write to MH i2c: E2 08 00 5E 3F 80 11 00 00 00 00 00 00 17 [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:30]Read from MH i2c: E2 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 17 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: E2 17 00 5E 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 72 [12:22:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:22:30]wFMCommunicate OK [12:22:30]CreateOFDProtocolMessage done [12:22:30]OFDSenderStorePacket 139401 [12:22:30]StoreOFDPacket docnum=139401 [12:22:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 BD 9B 07 01 98 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 0A 25 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 20 02 00 35 04 06 00 1D 16 3E FB 0F 84 2A 10 D5 DF CC 1C C2 42 [12:22:30]CheckFolder [12:22:30]dirname=/storage/ofd_packets [12:22:30]CheckFolder done [12:22:30]ProducePacketName [12:22:30]name=ofd_packets/00139401 [12:22:30]NVStorageSaveData ofd_packets/00139401 [12:22:30]File name is /storage/ofd_packets/00139401 [12:22:30]Write 301 bytes [12:22:30]NVStorageSaveData done [12:22:30]OFDSenderStorePacket done [12:22:30]KKMCreateOFDPacket done [12:22:30]NVStorageSaveData kkm_last_timestamp [12:22:30]File name is /storage/kkm_last_timestamp [12:22:30]Write 4 bytes [12:22:30]NVStorageSaveData done [12:22:30]ExternCall_PrintAddStr [12:22:30]wPrintStart [12:22:30]Write to MH i2c: 01 00 00 5F 3F 9E [12:22:30]Write i2c OK [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: 01 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: 01 07 00 [12:22:30]MH_I2C_Read... [12:22:30]Read from MH i2c: 01 07 00 5F 3F 00 00 00 00 00 FF 0F B3 [12:22:30]RasterBufferAndPrint [12:22:30]line Счет N : (1)1094459 [12:22:30]line ИНН: 02508201610067 [12:22:30]line Контрольно-Кассовый Чек [12:22:30]line ПРОДАЖА [12:22:30]line ТРК (МРК, ГНК) : 33 [12:22:30]line Товар: 2710124130 [12:22:30]line Аи-92-К-2 [12:22:30]line 22.430 * 66.90 [12:22:30]line = 1500.57 [12:22:30]line НДС 12% НСП 1% [12:22:30]line > о реализуемом товаре [12:22:30]line ОКРУГЛЕНИЕ: -0.57 [12:22:30]line ИТОГО: 1500.00 [12:22:30]line Внесено: 1500.00 [12:22:30]line СДАЧА: 0.00 [12:22:30]line НСП 1% : 13.28 [12:22:30]line НДС 12% : 159.35 [12:22:30]line Наличными: 1500.00 [12:22:30]line Безнал.: 0.00 [12:22:30]line Место: АЗС № 101 "Партнер Нефть" [12:22:30]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:22:30]line СНО: Общий режим [12:22:30]line Чек 85 30.10.2024 12:22 [12:22:30]line Смена: 556 ФФД: 1.0 [12:22:30]line ЗНМ: 0300000081 [12:22:30]line РНМ: 0000000000091631 [12:22:30]line Версия ККМ: 001 [12:22:30]line ФМ: 0000000000874669 [12:22:30]line ФД: 139401 [12:22:30]line ФПД: 31981383126916 [12:22:30]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T122234&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139401&fm=31981383126916&tin=02508201610067®Number=0000000000091631&sum=150000 [12:22:31]OFD Sender: Processing packet 139401 [packets to send 34, broken 33] [12:22:31]ProducePacketName [12:22:31]name=ofd_packets/00139401 [12:22:31]OFD Sender: To server: pG, [12:22:31]CommunicateWithHost lk.salyk.kg:30040 [12:22:31]ConnectInit lk.salyk.kg [12:22:31]written 0, free lines is 4095 [12:22:31]Connected sock=10 [12:22:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 BD 9B 07 01 98 81 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 55 00 00 00 F4 03 04 00 0A 25 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 89 20 02 00 35 04 06 00 1D 16 3E FB 0F 84 2A 10 D5 DF CC 1C C2 42 [12:22:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B7 29 47 00 B4 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 38 37 34 36 36 39 10 04 04 00 89 20 02 00 F4 03 04 00 BA D0 21 67 B6 04 01 00 00 38 04 6C FE 1B 5E 21 98 [12:22:31]CommunicateWithHost err = 0 [12:22:31]CheckOFDResponse [12:22:31]1017 (14) - 77093643461234 [12:22:31]1041 (16) - 0000000000874669 [12:22:31]1040 (4) - 139401 [12:22:31]1012 (4) - 30.10.2024 06:22 [12:22:31]1206 (1) - 0 [12:22:31]OFD Sender: Remove packet 139401 [12:22:31]ProducePacketName [12:22:31]name=ofd_packets/00139401 [12:22:31]NVStorageDeleteData [12:22:31]Write to MH i2c: 01 00 00 8A 3F C9 [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: 01 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: 01 07 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: 01 07 00 8A 3F 00 00 00 00 00 FB 0C D7 [12:22:31]RasterBufferAndPrint [12:22:31]line [12:22:31]line [12:22:31]line [12:22:31]line [12:22:31]line [12:22:31]written 0, free lines is 3329 [12:22:31]MH_Cut [12:22:31]Write to MH i2c: D1 01 00 91 3F 01 A2 [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: D1 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: D1 01 00 [12:22:31]MH_I2C_Read... [12:22:31]Read from MH i2c: D1 01 00 91 3F 00 A1 [12:22:31]Write to MH i2c: 01 00 00 92 3F D1 [12:22:31]Write i2c OK [12:22:31]MH_I2C_Read... [12:22:31]OFD Sender: No OFD packet to send [12:22:32]*** Cut start [12:22:32]*** Partial cut [12:22:32]*** CUTSNS_PIN = 1 [12:22:32]*** CUTSNS_PIN = 0 [12:22:32]*** Brake cut motor [12:22:32]Read from MH i2c: 01 [12:22:32]MH_I2C_Read... [12:22:32]*** Stop cut motor [12:22:32]*** Cut end [12:22:32]Read from MH i2c: 01 07 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: 01 07 00 92 3F 00 00 00 00 00 FF 0F E6 [12:22:32]process_action close_receipt done [12:22:32]requested_data is exist [12:22:32]produce_requested_data [12:22:32]requested_item fm.sn is exist - process it [12:22:32]wFMCommunicate request_size=4 [12:22:32]MH_SAM_APDU [12:22:32]CAPDU: 80 11 00 00 [12:22:32]Write to MH i2c: E2 08 00 93 3F 80 11 00 00 00 00 00 00 4C [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:22:32]Read from MH i2c: E2 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 17 00 [12:22:32]MH_I2C_Read... [12:22:32]Read from MH i2c: E2 17 00 93 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A7 [12:22:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:22:32]wFMCommunicate OK [12:22:32]requested_item fd.num is exist - process it [12:22:32]SAM_PROTO_GetFieldsCounters [12:22:32]wFMCommunicate request_size=4 [12:22:32]MH_SAM_APDU [12:22:32]CAPDU: 80 13 00 00 [12:22:32]Write to MH i2c: E2 08 00 94 3F 80 13 00 00 00 00 00 00 4F [12:22:32]Write i2c OK [12:22:32]MH_I2C_Read... [12:22:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:22:33]Read from MH i2c: E2 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 62 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 62 00 94 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 89 20 02 00 0E 04 04 00 2C 02 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 4B [12:22:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 89 20 02 00 0E 04 04 00 2C 02 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 [12:22:33]wFMCommunicate OK [12:22:33]SAM_PROTO_GetFieldsCounters done [12:22:33]requested_item shift.num is exist - process it [12:22:33]requested_item shift.opened is exist - process it [12:22:33]req_shift_opened [12:22:33]FM_GetShiftState [12:22:33]SAM_PROTO_GetShiftState [12:22:33]wFMCommunicate request_size=4 [12:22:33]MH_SAM_APDU [12:22:33]CAPDU: 80 13 01 00 [12:22:33]Write to MH i2c: E2 08 00 95 3F 80 13 01 00 00 00 00 00 51 [12:22:33]Write i2c OK [12:22:33]MH_I2C_Read... [12:22:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:22:33]Read from MH i2c: E2 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 0E 00 [12:22:33]MH_I2C_Read... [12:22:33]Read from MH i2c: E2 0E 00 95 3F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E1 [12:22:33]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:22:33]wFMCommunicate OK [12:22:33]SAM_PROTO_GetShiftState done [12:22:33]FM_GetShiftState done [12:22:33]req_shift_opened done [12:22:33]requested_item shift.open_date is exist - process it [12:22:33]req_shift_open_date [12:22:33]req_shift_open_date done [12:22:33]produce_requested_data done [12:22:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139401,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:22:33]process_action_free close_receipt [12:22:33]json_value_free [12:22:33]json_value_free done [12:22:33]process_json_proto returns [12:22:33]Send response to host [12:22:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139401,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:22:33]free response buf [12:22:33]execute_script done [12:22:33]execute_script returns [12:22:33]free content buf [12:22:33]Sock 8.Close socket [12:22:33]Sock 8.Thread stoped [12:22:36]OFD Sender: No OFD packet to send [12:22:41]OFD Sender: No OFD packet to send [12:22:46]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [12:24:06]OFD Sender: No OFD packet to send [12:24:11]OFD Sender: No OFD packet to send [12:24:16]OFD Sender: No OFD packet to send [12:24:22]OFD Sender: No OFD packet to send [12:24:27]OFD Sender: No OFD packet to send [12:24:32]OFD Sender: No OFD packet to send [12:24:37]OFD Sender: No OFD packet to send [12:24:42]OFD Sender: No OFD packet to send [12:24:47]OFD Sender: No OFD packet to send [12:24:52]OFD Sender: No OFD packet to send [12:24:57]OFD Sender: No OFD packet to send [12:25:02]OFD Sender: No OFD packet to send [12:25:07]OFD Sender: No OFD packet to send [12:25:12]OFD Sender: No OFD packet to send [12:25:17]OFD Sender: No OFD packet to send [12:25:22]OFD Sender: No OFD packet to send [12:25:27]OFD Sender: No OFD packet to send [12:25:32]OFD Sender: No OFD packet to send [12:25:37]OFD Sender: No OFD packet to send [12:25:42]OFD Sender: No OFD packet to send [12:25:47]OFD Sender: No OFD packet to send [12:25:52]OFD Sender: No OFD packet to send [12:25:57]OFD Sender: No OFD packet to send [12:26:02]OFD Sender: No OFD packet to send [12:26:07]OFD Sender: No OFD packet to send [12:26:12]OFD Sender: No OFD packet to send [12:26:17]OFD Sender: No OFD packet to send [12:26:22]OFD Sender: No OFD packet to send [12:26:27]OFD Sender: No OFD packet to send [12:26:32]OFD Sender: No OFD packet to send [12:26:37]OFD Sender: No OFD packet to send [12:26:42]OFD Sender: No OFD packet to send [12:26:47]OFD Sender: No OFD packet to send [12:26:52]OFD Sender: No OFD packet to send [12:26:57]OFD Sender: No OFD packet to send [12:27:02]OFD Sender: No OFD packet to send [12:27:07]OFD Sender: No OFD packet to send [12:27:12]OFD Sender: No OFD packet to send [12:27:17]OFD Sender: No OFD packet to send [12:27:22]OFD Sender: No OFD packet to send [12:27:27]OFD Sender: No OFD packet to send [12:27:32]OFD Sender: No OFD packet to send [12:27:37]OFD Sender: No OFD packet to send [12:27:42]OFD Sender: No OFD packet to send [12:27:47]OFD Sender: No OFD packet to send [12:27:52]OFD Sender: No OFD packet to send [12:27:57]OFD Sender: No OFD packet to send [12:28:02]OFD Sender: No OFD packet to send [12:28:07]OFD Sender: No OFD packet to send [12:28:12]OFD Sender: No OFD packet to send [12:28:17]OFD Sender: No OFD packet to send [12:28:22]OFD Sender: No OFD packet to send [12:28:27]OFD Sender: No OFD packet to send [12:28:32]OFD Sender: No OFD packet to send [12:28:37]OFD Sender: No OFD packet to send [12:28:42]OFD Sender: No OFD packet to send [12:28:47]OFD Sender: No OFD packet to send [12:28:52]OFD Sender: No OFD packet to send [12:28:57]OFD Sender: No OFD packet to send [12:29:02]OFD Sender: No OFD packet to send [12:29:07]OFD Sender: No OFD packet to send [12:29:12]OFD Sender: No OFD packet to send [12:29:17]OFD Sender: No OFD packet to send [12:29:22]OFD Sender: No OFD packet to send [12:29:27]OFD Sender: No OFD packet to send [12:29:32]OFD Sender: No OFD packet to send [12:29:37]OFD Sender: No OFD packet to send [12:29:42]OFD Sender: No OFD packet to send [12:29:47]OFD Sender: No OFD packet to send [12:29:52]OFD Sender: No OFD packet to send [12:29:57]OFD Sender: No OFD packet to send [12:30:02]OFD Sender: No OFD packet to send [12:30:07]OFD Sender: No OFD packet to send [12:30:12]OFD Sender: No OFD packet to send [12:30:17]OFD Sender: No OFD packet to send [12:30:22]OFD Sender: No OFD packet to send [12:30:27]OFD Sender: No OFD packet to send [12:30:32]OFD Sender: No OFD packet to send [12:30:37]OFD Sender: No OFD packet to send [12:30:42]OFD Sender: No OFD packet to send [12:30:47]OFD Sender: No OFD packet to send [12:30:52]OFD Sender: No OFD packet to send [12:30:57]OFD Sender: No OFD packet to send [12:31:02]OFD Sender: No OFD packet to send [12:31:07]OFD Sender: No OFD packet to send [12:31:12]OFD Sender: No OFD packet to send [12:31:17]OFD Sender: No OFD packet to send [12:31:22]OFD Sender: No OFD packet to send [12:31:27]OFD Sender: No OFD packet to send [12:31:32]OFD Sender: No OFD packet to send [12:31:37]OFD Sender: No OFD packet to send [12:31:42]OFD Sender: No OFD packet to send [12:31:47]OFD Sender: No OFD packet to send [12:31:52]OFD Sender: No OFD packet to send [12:31:57]OFD Sender: No OFD packet to send [12:32:02]OFD Sender: No OFD packet to send [12:32:07]OFD Sender: No OFD packet to send [12:32:12]OFD Sender: No OFD packet to send [12:32:17]OFD Sender: No OFD packet to send [12:32:22]OFD Sender: No OFD packet to send [12:32:27]OFD Sender: No OFD packet to send [12:32:32]OFD Sender: No OFD packet to send [12:32:37]OFD Sender: No OFD packet to send [12:32:42]OFD Sender: No OFD packet to send [12:32:47]OFD Sender: No OFD packet to send [12:32:52]OFD Sender: No OFD packet to send [12:32:57]OFD Sender: No OFD packet to send [12:33:02]OFD Sender: No OFD packet to send [12:33:07]OFD Sender: No OFD packet to send [12:33:12]OFD Sender: No OFD packet to send [12:33:17]OFD Sender: No OFD packet to send [12:33:22]OFD Sender: No OFD packet to send [12:33:27]OFD Sender: No OFD packet to send [12:33:30]accept exits with 9 [12:33:30]New connection [12:33:30]New thread 3067141476 created [12:33:30]Thread 3067284836 joined [12:33:30]Waiting for new connection... [12:33:30] Sock 9.Parse request [12:33:30]Sock 9.Check first char [12:33:30]Sock 9.First char is OK [12:33:30]request: POST /json_proto HTTP/1.0 [12:33:30]Method: POST [12:33:30]URL: /json_proto [12:33:30]Method is POST - this is cgi request [12:33:30]url: /json_proto [12:33:30]query_string will be loaded in cgi processing [12:33:30]execute_cgi json_proto POST (null) [12:33:30]execute_cgi path=json_proto method=POST [12:33:30]POST find Content-Length [12:33:30]Host: 172.17.50.196:8080 [12:33:30]Content-Length: 718 [12:33:30]Content-Type: application/json [12:33:30] [12:33:30]POST finish read [12:33:30]Found Content-Length = 718 [12:33:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335310", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:30]execute_script... [12: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 : (3)335310", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:33:30]POST & json_proto [12:33:30]process_json_proto [12:33:30]json parsed OK: [12:33:30]protocol is kg_v1.0 [12:33:30]action value=close_receipt [12:33:30]process_action close_receipt [12:33:30]cmd_close_receipt [12:33:30]MH_GetDate [12:33:30]Write to MH i2c: F0 00 00 96 3F C4 [12:33:30]Write i2c OK [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: F0 [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: F0 09 00 [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: F0 09 00 96 3F 00 9F 27 22 67 72 0D 1C 67 1E [12:33:30]GetLastDocTimeStamp 1730290954 [12:33:30]current date 1730291615 [12:33:30]FM_GetShiftState [12:33:30]SAM_PROTO_GetShiftState [12:33:30]wFMCommunicate request_size=4 [12:33:30]MH_SAM_APDU [12:33:30]CAPDU: 80 13 01 00 [12:33:30]Write to MH i2c: E2 08 00 97 3F 80 13 01 00 00 00 00 00 53 [12:33:30]Write i2c OK [12:33:30]MH_I2C_Read... [12:33:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:30]Read from MH i2c: E2 [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: E2 0E 00 [12:33:30]MH_I2C_Read... [12:33:30]Read from MH i2c: E2 0E 00 97 3F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E3 [12:33:30]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:33:30]wFMCommunicate OK [12:33:30]SAM_PROTO_GetShiftState done [12:33:30]FM_GetShiftState done [12:33:30]opened in 1730246278 [12:33:30]opened+sec_in_day 1730332678 [12:33:30]quantity*price = 10400 [12:33:30]sum+1 = 10401 [12:33:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 86 30.10.2024 12:33 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139402 ФПД: 212839795215665 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123335&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139402&fm=212839795215665&tin=02508201610067®Number=0000000000091631&sum=10400 0 [12:33:31]StoreToDocumentArchive [12:33:31]shift 556 fd 139402 [12:33:31]save to /storage/0556/doc_00139402 [12:33:31]save last doc name /storage/0556/doc_00139402 to /storage/kkm_last_doc_name [12:33:31]save OK [12:33:31]Clear old archive folders... [12:33:31]ProcessDocumentItem done err = 0, tmpTLVsize=306 [12:33:31]tlvbuf is B6F2B620 [12:33:31]SAM_PROTO_ClearQueue [12:33:31]wFMCommunicate request_size=4 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 09 00 00 [12:33:31]Write to MH i2c: E2 08 00 A4 3F 80 09 00 00 00 00 00 00 55 [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 03 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 03 00 A4 3F 00 90 00 57 [12:33:31]RAPDU: 90 00 [12:33:31]wFMCommunicate OK [12:33:31]SAM_PROTO_ClearQueue done [12:33:31]KKMCreateOFDPacket [12:33:31]OFDProtocolAddRootSTLVToBuf [12:33:31]FM_MakeSignedData [12:33:31]FM_MakeSignedData [12:33:31]SAM_PROTO_SignData [12:33:31]wFMCommunicate request_size=4 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 0D 01 02 [12:33:31]Write to MH i2c: E2 08 00 A5 3F 80 0D 01 02 00 00 00 00 5D [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 03 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 03 00 A5 3F 00 90 00 58 [12:33:31]RAPDU: 90 00 [12:33:31]wFMCommunicate OK [12:33:31]wFMCommunicate request_size=255 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 9F 27 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 [12:33:31]Write to MH i2c: E2 02 01 A6 3F 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 9F 27 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 00 1F [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 03 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 03 00 A6 3F 00 90 00 59 [12:33:31]RAPDU: 90 00 [12:33:31]wFMCommunicate OK [12:33:31]wFMCommunicate request_size=65 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 20 02 00 35 04 06 00 C1 93 A0 63 4D 31 [12:33:31]Write to MH i2c: E2 44 00 A7 3F 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 20 02 00 35 04 06 00 C1 93 A0 63 4D 31 00 00 33 [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:33:31]Read from MH i2c: E2 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 03 00 [12:33:31]MH_I2C_Read... [12:33:31]Read from MH i2c: E2 03 00 A7 3F 00 90 00 5A [12:33:31]RAPDU: 90 00 [12:33:31]wFMCommunicate OK [12:33:31]wFMCommunicate request_size=4 [12:33:31]MH_SAM_APDU [12:33:31]CAPDU: 80 0D 03 02 [12:33:31]Write to MH i2c: E2 08 00 A8 3F 80 0D 03 02 00 00 00 00 62 [12:33:31]Write i2c OK [12:33:31]MH_I2C_Read... [12:33:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 0B 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 0B 00 A8 3F 00 53 09 23 F9 0A 18 CD 0E 90 00 D8 [12:33:32]RAPDU: 53 09 23 F9 0A 18 CD 0E 90 00 [12:33:32]wFMCommunicate OK [12:33:32]SAM_PROTO_SignData done [12:33:32]FM_MakeSignedData done [12:33:32]CreateOFDProtocolMessage [12:33:32]wFMCommunicate request_size=4 [12:33:32]MH_SAM_APDU [12:33:32]CAPDU: 80 11 00 00 [12:33:32]Write to MH i2c: E2 08 00 A9 3F 80 11 00 00 00 00 00 00 62 [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:32]Read from MH i2c: E2 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 17 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: E2 17 00 A9 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BD [12:33:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:33:32]wFMCommunicate OK [12:33:32]CreateOFDProtocolMessage done [12:33:32]OFDSenderStorePacket 139402 [12:33:32]StoreOFDPacket docnum=139402 [12:33:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 46 01 00 00 D5 4A 3E 01 42 4B 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 9F 27 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 20 02 00 35 04 06 00 C1 93 A0 63 4D 31 53 09 23 F9 0A 18 CD 0E [12:33:32]CheckFolder [12:33:32]dirname=/storage/ofd_packets [12:33:32]CheckFolder done [12:33:32]ProducePacketName [12:33:32]name=ofd_packets/00139402 [12:33:32]NVStorageSaveData ofd_packets/00139402 [12:33:32]File name is /storage/ofd_packets/00139402 [12:33:32]Write 356 bytes [12:33:32]NVStorageSaveData done [12:33:32]OFDSenderStorePacket done [12:33:32]KKMCreateOFDPacket done [12:33:32]NVStorageSaveData kkm_last_timestamp [12:33:32]File name is /storage/kkm_last_timestamp [12:33:32]Write 4 bytes [12:33:32]NVStorageSaveData done [12:33:32]ExternCall_PrintAddStr [12:33:32]wPrintStart [12:33:32]Write to MH i2c: 01 00 00 AA 3F E9 [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 07 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 07 00 AA 3F 00 00 00 00 00 FF 0F FE [12:33:32]RasterBufferAndPrint [12:33:32]line Счет N : (3)335310 [12:33:32]line ИНН: 02508201610067 [12:33:32]line Контрольно-Кассовый Чек [12:33:32]line ПРОДАЖА [12:33:32]line Товар: 4870202522671 [12:33:32]line Garden напиток со вкусом граната 1,20 ПЭ [12:33:32]line 1.000 * 104.00 [12:33:32]line = 104.00 [12:33:32]line НДС 12% НСП 1% [12:33:32]line > о реализуемом товаре [12:33:32]line ИТОГО: 104.00 [12:33:32]line НСП 1% : 0.92 [12:33:32]line НДС 12% : 11.04 [12:33:32]line Наличными: 104.00 [12:33:32]line Безнал.: 0.00 [12:33:32]line Место: АЗС № 101 "Партнер Нефть" [12:33:32]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:33:32]line СНО: Общий режим [12:33:32]line Чек 86 30.10.2024 12:33 [12:33:32]line Смена: 556 ФФД: 1.0 [12:33:32]line ЗНМ: 0300000081 [12:33:32]line РНМ: 0000000000091631 [12:33:32]line Версия ККМ: 001 [12:33:32]line ФМ: 0000000000874669 [12:33:32]line ФД: 139402 [12:33:32]line ФПД: 212839795215665 [12:33:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123335&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139402&fm=212839795215665&tin=02508201610067®Number=0000000000091631&sum=10400 [12:33:32]line 0 [12:33:32]OFD Sender: Processing packet 139402 [packets to send 34, broken 33] [12:33:32]ProducePacketName [12:33:32]name=ofd_packets/00139402 [12:33:32]OFD Sender: To server: pG, [12:33:32]CommunicateWithHost lk.salyk.kg:30040 [12:33:32]ConnectInit lk.salyk.kg [12:33:32]written 0, free lines is 4095 [12:33:32]Connected sock=10 [12:33:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 46 01 00 00 D5 4A 3E 01 42 4B 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 9F 27 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 20 02 00 35 04 06 00 C1 93 A0 63 4D 31 53 09 23 F9 0A 18 CD 0E [12:33:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 70 BB 47 00 47 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8A 20 02 00 F4 03 04 00 50 D3 21 67 B6 04 01 00 00 8A F4 F1 E1 35 C5 4D 14 [12:33:32]CommunicateWithHost err = 0 [12:33:32]CheckOFDResponse [12:33:32]1017 (14) - 77093643461234 [12:33:32]1041 (16) - 0000000000874669 [12:33:32]1040 (4) - 139402 [12:33:32]1012 (4) - 30.10.2024 06:33 [12:33:32]1206 (1) - 0 [12:33:32]OFD Sender: Remove packet 139402 [12:33:32]ProducePacketName [12:33:32]name=ofd_packets/00139402 [12:33:32]NVStorageDeleteData [12:33:32]Write to MH i2c: 01 00 00 D3 3F 12 [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 07 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: 01 07 00 D3 3F 00 00 00 00 00 05 0D 2B [12:33:32]RasterBufferAndPrint [12:33:32]line [12:33:32]line [12:33:32]line [12:33:32]line [12:33:32]line [12:33:32]written 0, free lines is 3343 [12:33:32]MH_Cut [12:33:32]Write to MH i2c: D1 01 00 DA 3F 01 EB [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: D1 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: D1 01 00 [12:33:32]MH_I2C_Read... [12:33:32]Read from MH i2c: D1 01 00 DA 3F 00 EA [12:33:32]Write to MH i2c: 01 00 00 DB 3F 1A [12:33:32]Write i2c OK [12:33:32]MH_I2C_Read... [12:33:33]OFD Sender: No OFD packet to send [12:33:33]*** Cut start [12:33:33]*** Partial cut [12:33:33]*** CUTSNS_PIN = 1 [12:33:33]*** CUTSNS_PIN = 0 [12:33:33]*** Brake cut motor [12:33:34]Read from MH i2c: 01 [12:33:34]MH_I2C_Read... [12:33:34]*** Stop cut motor [12:33:34]*** Cut end [12:33:34]Read from MH i2c: 01 07 00 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: 01 07 00 DB 3F 00 00 00 00 00 FF 0F 2F [12:33:34]process_action close_receipt done [12:33:34]requested_data is exist [12:33:34]produce_requested_data [12:33:34]requested_item fm.sn is exist - process it [12:33:34]wFMCommunicate request_size=4 [12:33:34]MH_SAM_APDU [12:33:34]CAPDU: 80 11 00 00 [12:33:34]Write to MH i2c: E2 08 00 DC 3F 80 11 00 00 00 00 00 00 95 [12:33:34]Write i2c OK [12:33:34]MH_I2C_Read... [12:33:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:33:34]Read from MH i2c: E2 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: E2 17 00 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: E2 17 00 DC 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F0 [12:33:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:33:34]wFMCommunicate OK [12:33:34]requested_item fd.num is exist - process it [12:33:34]SAM_PROTO_GetFieldsCounters [12:33:34]wFMCommunicate request_size=4 [12:33:34]MH_SAM_APDU [12:33:34]CAPDU: 80 13 00 00 [12:33:34]Write to MH i2c: E2 08 00 DD 3F 80 13 00 00 00 00 00 00 98 [12:33:34]Write i2c OK [12:33:34]MH_I2C_Read... [12:33:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:33:34]Read from MH i2c: E2 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: E2 62 00 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: E2 62 00 DD 3F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8A 20 02 00 0E 04 04 00 2C 02 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 98 [12:33:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8A 20 02 00 0E 04 04 00 2C 02 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 [12:33:34]wFMCommunicate OK [12:33:34]SAM_PROTO_GetFieldsCounters done [12:33:34]requested_item shift.num is exist - process it [12:33:34]requested_item shift.opened is exist - process it [12:33:34]req_shift_opened [12:33:34]FM_GetShiftState [12:33:34]SAM_PROTO_GetShiftState [12:33:34]wFMCommunicate request_size=4 [12:33:34]MH_SAM_APDU [12:33:34]CAPDU: 80 13 01 00 [12:33:34]Write to MH i2c: E2 08 00 DE 3F 80 13 01 00 00 00 00 00 9A [12:33:34]Write i2c OK [12:33:34]MH_I2C_Read... [12:33:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:33:34]Read from MH i2c: E2 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: E2 0E 00 [12:33:34]MH_I2C_Read... [12:33:34]Read from MH i2c: E2 0E 00 DE 3F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 2A [12:33:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:33:34]wFMCommunicate OK [12:33:34]SAM_PROTO_GetShiftState done [12:33:34]FM_GetShiftState done [12:33:34]req_shift_opened done [12:33:34]requested_item shift.open_date is exist - process it [12:33:34]req_shift_open_date [12:33:34]req_shift_open_date done [12:33:34]produce_requested_data done [12:33:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139402,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:33:34]process_action_free close_receipt [12:33:34]json_value_free [12:33:34]json_value_free done [12:33:34]process_json_proto returns [12:33:34]Send response to host [12:33:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139402,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:33:34]free response buf [12:33:34]execute_script done [12:33:34]execute_script returns [12:33:34]free content buf [12:33:34]Sock 9.Close socket [12:33:34]Sock 9.Thread stoped [12:33:38]OFD Sender: No OFD packet to send [12:33:43]OFD Sender: No OFD packet to send [12:33:48]OFD Sender: No OFD packet to send [12:33:53]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:58]OFD Sender: No OFD packet to send [12:35:03]OFD Sender: No OFD packet to send [12:35:08]OFD Sender: No OFD packet to send [12:35:13]OFD Sender: No OFD packet to send [12:35:18]OFD Sender: No OFD packet to send [12:35:23]OFD Sender: No OFD packet to send [12:35:28]OFD Sender: No OFD packet to send [12:35:33]OFD Sender: No OFD packet to send [12:35:38]OFD Sender: No OFD packet to send [12:35:43]OFD Sender: No OFD packet to send [12:35:48]OFD Sender: No OFD packet to send [12:35:53]OFD Sender: No OFD packet to send [12:35:54]accept exits with 8 [12:35:54]New connection [12:35:54]New thread 3067284836 created [12:35:54]Thread 3067141476 joined [12:35:54]Waiting for new connection... [12:35:54] Sock 8.Parse request [12:35:54]Sock 8.Check first char [12:35:54]Sock 8.First char is OK [12:35:54]request: POST /json_proto HTTP/1.0 [12:35:54]Method: POST [12:35:54]URL: /json_proto [12:35:54]Method is POST - this is cgi request [12:35:54]url: /json_proto [12:35:54]query_string will be loaded in cgi processing [12:35:54]execute_cgi json_proto POST (null) [12:35:54]execute_cgi path=json_proto method=POST [12:35:54]POST find Content-Length [12:35:54]Host: 172.17.50.196:8080 [12:35:54]Content-Length: 798 [12:35:54]Content-Type: application/json [12:35:54] [12:35:54]POST finish read [12:35:54]Found Content-Length = 798 [12:35:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 0.00, "quantity" : 82.030, "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\u000A24266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:54]execute_script... [12:35: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)1094470", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 0.00, "quantity" : 82.030, "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\u000A24266", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:35:54]POST & json_proto [12:35:54]process_json_proto [12:35:54]json parsed OK: [12:35:54]protocol is kg_v1.0 [12:35:54]action value=close_receipt [12:35:54]process_action close_receipt [12:35:54]cmd_close_receipt [12:35:54]MH_GetDate [12:35:54]Write to MH i2c: F0 00 00 DF 3F 0D [12:35:54]Write i2c OK [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: F0 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: F0 09 00 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: F0 09 00 DF 3F 00 2F 28 22 67 72 0D 1C 67 F8 [12:35:54]GetLastDocTimeStamp 1730291615 [12:35:54]current date 1730291759 [12:35:54]FM_GetShiftState [12:35:54]SAM_PROTO_GetShiftState [12:35:54]wFMCommunicate request_size=4 [12:35:54]MH_SAM_APDU [12:35:54]CAPDU: 80 13 01 00 [12:35:54]Write to MH i2c: E2 08 00 E0 3F 80 13 01 00 00 00 00 00 9C [12:35:54]Write i2c OK [12:35:54]MH_I2C_Read... [12:35:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:54]Read from MH i2c: E2 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: E2 0E 00 [12:35:54]MH_I2C_Read... [12:35:54]Read from MH i2c: E2 0E 00 E0 3F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 2C [12:35:54]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:35:54]wFMCommunicate OK [12:35:54]SAM_PROTO_GetShiftState done [12:35:54]FM_GetShiftState done [12:35:54]opened in 1730246278 [12:35:54]opened+sec_in_day 1730332678 [12:35:54]quantity*price = 0 [12:35:54]sum+1 = 1 [12:35:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 87 30.10.2024 12:35 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: Топливная Карта 24266 ФМ: 0000000000874669 ФД: 139403 ФПД: 69896354693902 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123559&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139403&fm=69896354693902&tin=02508201610067®Number=0000000000091631&sum=0 [12:35:55]StoreToDocumentArchive [12:35:55]shift 556 fd 139403 [12:35:55]save to /storage/0556/doc_00139403 [12:35:55]save last doc name /storage/0556/doc_00139403 to /storage/kkm_last_doc_name [12:35:55]save OK [12:35:55]Clear old archive folders... [12:35:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:35:55]tlvbuf is B6FA9950 [12:35:55]SAM_PROTO_ClearQueue [12:35:55]wFMCommunicate request_size=4 [12:35:55]MH_SAM_APDU [12:35:55]CAPDU: 80 09 00 00 [12:35:55]Write to MH i2c: E2 08 00 ED 3F 80 09 00 00 00 00 00 00 9E [12:35:55]Write i2c OK [12:35:55]MH_I2C_Read... [12:35:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:35:55]Read from MH i2c: E2 [12:35:55]MH_I2C_Read... [12:35:55]Read from MH i2c: E2 03 00 [12:35:55]MH_I2C_Read... [12:35:55]Read from MH i2c: E2 03 00 ED 3F 00 90 00 A0 [12:35:55]RAPDU: 90 00 [12:35:55]wFMCommunicate OK [12:35:55]SAM_PROTO_ClearQueue done [12:35:55]KKMCreateOFDPacket [12:35:55]OFDProtocolAddRootSTLVToBuf [12:35:55]FM_MakeSignedData [12:35:55]FM_MakeSignedData [12:35:55]SAM_PROTO_SignData [12:35:55]wFMCommunicate request_size=4 [12:35:55]MH_SAM_APDU [12:35:55]CAPDU: 80 0D 01 02 [12:35:55]Write to MH i2c: E2 08 00 EE 3F 80 0D 01 02 00 00 00 00 A6 [12:35:55]Write i2c OK [12:35:55]MH_I2C_Read... [12:35:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:35:55]Read from MH i2c: E2 [12:35:55]MH_I2C_Read... [12:35:55]Read from MH i2c: E2 03 00 [12:35:55]MH_I2C_Read... [12:35:55]Read from MH i2c: E2 03 00 EE 3F 00 90 00 A1 [12:35:55]RAPDU: 90 00 [12:35:55]wFMCommunicate OK [12:35:55]wFMCommunicate request_size=255 [12:35:55]MH_SAM_APDU [12:35:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 6E 40 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 57 00 00 00 F4 03 04 00 2F 28 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 20 02 00 35 04 06 00 [12:35:55]Write to MH i2c: E2 02 01 EF 3F 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 6E 40 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 57 00 00 00 F4 03 04 00 2F 28 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 20 02 00 35 04 06 00 00 00 AC [12:35:55]Write i2c OK [12:35:55]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 03 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 03 00 EF 3F 00 90 00 A2 [12:35:56]RAPDU: 90 00 [12:35:56]wFMCommunicate OK [12:35:56]wFMCommunicate request_size=11 [12:35:56]MH_SAM_APDU [12:35:56]CAPDU: 80 0D 02 02 06 3F 92 03 64 83 0E [12:35:56]Write to MH i2c: E2 0E 00 F0 3F 80 0D 02 02 06 00 3F 92 03 64 83 0E 00 00 7E [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 03 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 03 00 F0 3F 00 90 00 A3 [12:35:56]RAPDU: 90 00 [12:35:56]wFMCommunicate OK [12:35:56]wFMCommunicate request_size=4 [12:35:56]MH_SAM_APDU [12:35:56]CAPDU: 80 0D 03 02 [12:35:56]Write to MH i2c: E2 08 00 F1 3F 80 0D 03 02 00 00 00 00 AB [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 0B 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 0B 00 F1 3F 00 CE A2 AB 9B D4 64 52 EF 90 00 DB [12:35:56]RAPDU: CE A2 AB 9B D4 64 52 EF 90 00 [12:35:56]wFMCommunicate OK [12:35:56]SAM_PROTO_SignData done [12:35:56]FM_MakeSignedData done [12:35:56]CreateOFDProtocolMessage [12:35:56]wFMCommunicate request_size=4 [12:35:56]MH_SAM_APDU [12:35:56]CAPDU: 80 11 00 00 [12:35:56]Write to MH i2c: E2 08 00 F2 3F 80 11 00 00 00 00 00 00 AB [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:56]Read from MH i2c: E2 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 17 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: E2 17 00 F2 3F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 06 [12:35:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:35:56]wFMCommunicate OK [12:35:56]CreateOFDProtocolMessage done [12:35:56]OFDSenderStorePacket 139403 [12:35:56]StoreOFDPacket docnum=139403 [12:35:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 97 B6 08 01 06 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 6E 40 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 57 00 00 00 F4 03 04 00 2F 28 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 20 02 00 35 04 06 00 3F 92 03 64 83 0E CE A2 AB 9B D4 64 52 EF [12:35:56]CheckFolder [12:35:56]dirname=/storage/ofd_packets [12:35:56]CheckFolder done [12:35:56]ProducePacketName [12:35:56]name=ofd_packets/00139403 [12:35:56]NVStorageSaveData ofd_packets/00139403 [12:35:56]File name is /storage/ofd_packets/00139403 [12:35:56]Write 302 bytes [12:35:56]NVStorageSaveData done [12:35:56]OFDSenderStorePacket done [12:35:56]KKMCreateOFDPacket done [12:35:56]NVStorageSaveData kkm_last_timestamp [12:35:56]File name is /storage/kkm_last_timestamp [12:35:56]Write 4 bytes [12:35:56]NVStorageSaveData done [12:35:56]ExternCall_PrintAddStr [12:35:56]wPrintStart [12:35:56]Write to MH i2c: 01 00 00 F3 3F 32 [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: 01 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: 01 07 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: 01 07 00 F3 3F 00 00 00 00 00 FF 0F 47 [12:35:56]RasterBufferAndPrint [12:35:56]line Счет N : (1)1094470 [12:35:56]line ИНН: 02508201610067 [12:35:56]line Контрольно-Кассовый Чек [12:35:56]line ПРОДАЖА [12:35:56]line ТРК (МРК, ГНК) : 31 [12:35:56]line Товар: 2710194210 [12:35:56]line ДТ(л)-К-2 [12:35:56]line 82.030 * 0.00 [12:35:56]line = 0.00 [12:35:56]line НДС 12% НСП 1% [12:35:56]line > о реализуемом товаре [12:35:56]line ИТОГО: 0.00 [12:35:56]line НСП 1% : 0.00 [12:35:56]line НДС 12% : 0.00 [12:35:56]line Наличными: 0.00 [12:35:56]line Безнал.: 0.00 [12:35:56]line Место: АЗС № 101 "Партнер Нефть" [12:35:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:35:56]line СНО: Общий режим [12:35:56]line Чек 87 30.10.2024 12:35 [12:35:56]line Смена: 556 ФФД: 1.0 [12:35:56]line ЗНМ: 0300000081 [12:35:56]line РНМ: 0000000000091631 [12:35:56]line Версия ККМ: 001 [12:35:56]line Талоны: Топливная Карта [12:35:56]line 24266 [12:35:56]line ФМ: 0000000000874669 [12:35:56]line ФД: 139403 [12:35:56]line ФПД: 69896354693902 [12:35:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T123559&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139403&fm=69896354693902&tin=02508201610067®Number=0000000000091631&sum=0 [12:35:56]written 0, free lines is 4095 [12:35:56]OFD Sender: Processing packet 139403 [packets to send 34, broken 33] [12:35:56]ProducePacketName [12:35:56]name=ofd_packets/00139403 [12:35:56]OFD Sender: To server: pG, [12:35:56]CommunicateWithHost lk.salyk.kg:30040 [12:35:56]ConnectInit lk.salyk.kg [12:35:56]Connected sock=11 [12:35:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 97 B6 08 01 06 AF 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 6E 40 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 57 00 00 00 F4 03 04 00 2F 28 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 20 02 00 35 04 06 00 3F 92 03 64 83 0E CE A2 AB 9B D4 64 52 EF [12:35:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 AE 30 47 00 78 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8B 20 02 00 F4 03 04 00 DF D3 21 67 B6 04 01 00 00 F3 49 70 95 E2 6B 9C 9F [12:35:56]CommunicateWithHost err = 0 [12:35:56]CheckOFDResponse [12:35:56]1017 (14) - 77093643461234 [12:35:56]1041 (16) - 0000000000874669 [12:35:56]1040 (4) - 139403 [12:35:56]1012 (4) - 30.10.2024 06:36 [12:35:56]1206 (1) - 0 [12:35:56]OFD Sender: Remove packet 139403 [12:35:56]ProducePacketName [12:35:56]name=ofd_packets/00139403 [12:35:56]NVStorageDeleteData [12:35:56]Write to MH i2c: 01 00 00 1D 40 5D [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: 01 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: 01 07 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: 01 07 00 1D 40 00 00 00 00 00 0C 0D 7D [12:35:56]RasterBufferAndPrint [12:35:56]line [12:35:56]line [12:35:56]line [12:35:56]line [12:35:56]line [12:35:56]written 0, free lines is 3347 [12:35:56]MH_Cut [12:35:56]Write to MH i2c: D1 01 00 24 40 01 36 [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: D1 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: D1 01 00 [12:35:56]MH_I2C_Read... [12:35:56]Read from MH i2c: D1 01 00 24 40 00 35 [12:35:56]Write to MH i2c: 01 00 00 25 40 65 [12:35:56]Write i2c OK [12:35:56]MH_I2C_Read... [12:35:57]OFD Sender: No OFD packet to send [12:35:57]*** Cut start [12:35:57]*** Partial cut [12:35:57]*** CUTSNS_PIN = 1 [12:35:57]*** CUTSNS_PIN = 0 [12:35:57]*** Brake cut motor [12:35:57]Read from MH i2c: 01 [12:35:58]MH_I2C_Read... [12:35:58]*** Stop cut motor [12:35:58]*** Cut end [12:35:58]Read from MH i2c: 01 07 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: 01 07 00 25 40 00 00 00 00 00 FF 0F 7A [12:35:58]process_action close_receipt done [12:35:58]requested_data is exist [12:35:58]produce_requested_data [12:35:58]requested_item fm.sn is exist - process it [12:35:58]wFMCommunicate request_size=4 [12:35:58]MH_SAM_APDU [12:35:58]CAPDU: 80 11 00 00 [12:35:58]Write to MH i2c: E2 08 00 26 40 80 11 00 00 00 00 00 00 E0 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:35:58]Read from MH i2c: E2 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 17 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 17 00 26 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3B [12:35:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:35:58]wFMCommunicate OK [12:35:58]requested_item fd.num is exist - process it [12:35:58]SAM_PROTO_GetFieldsCounters [12:35:58]wFMCommunicate request_size=4 [12:35:58]MH_SAM_APDU [12:35:58]CAPDU: 80 13 00 00 [12:35:58]Write to MH i2c: E2 08 00 27 40 80 13 00 00 00 00 00 00 E3 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:35:58]Read from MH i2c: E2 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 62 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 62 00 27 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8B 20 02 00 0E 04 04 00 2C 02 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 E7 [12:35:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8B 20 02 00 0E 04 04 00 2C 02 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 [12:35:58]wFMCommunicate OK [12:35:58]SAM_PROTO_GetFieldsCounters done [12:35:58]requested_item shift.num is exist - process it [12:35:58]requested_item shift.opened is exist - process it [12:35:58]req_shift_opened [12:35:58]FM_GetShiftState [12:35:58]SAM_PROTO_GetShiftState [12:35:58]wFMCommunicate request_size=4 [12:35:58]MH_SAM_APDU [12:35:58]CAPDU: 80 13 01 00 [12:35:58]Write to MH i2c: E2 08 00 28 40 80 13 01 00 00 00 00 00 E5 [12:35:58]Write i2c OK [12:35:58]MH_I2C_Read... [12:35:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:35:58]Read from MH i2c: E2 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 0E 00 [12:35:58]MH_I2C_Read... [12:35:58]Read from MH i2c: E2 0E 00 28 40 00 09 00 01 86 76 21 67 00 00 00 00 90 00 75 [12:35:58]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:35:58]wFMCommunicate OK [12:35:58]SAM_PROTO_GetShiftState done [12:35:58]FM_GetShiftState done [12:35:58]req_shift_opened done [12:35:58]requested_item shift.open_date is exist - process it [12:35:58]req_shift_open_date [12:35:58]req_shift_open_date done [12:35:58]produce_requested_data done [12:35:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139403,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:35:58]process_action_free close_receipt [12:35:58]json_value_free [12:35:58]json_value_free done [12:35:58]process_json_proto returns [12:35:58]Send response to host [12:35:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139403,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:35:58]free response buf [12:35:58]execute_script done [12:35:58]execute_script returns [12:35:58]free content buf [12:35:58]Sock 8.Close socket [12:35:58]Sock 8.Thread stoped [12:36:02]OFD Sender: No OFD packet to send [12:36:07]OFD Sender: No OFD packet to send [12:36:12]OFD Sender: No OFD packet to send [12:36:17]OFD Sender: No OFD packet to send [12:36:22]OFD Sender: No OFD packet to send [12:36:27]OFD Sender: No OFD packet to send [12:36:32]OFD Sender: No OFD packet to send [12:36:37]OFD Sender: No OFD packet to send [12:36:42]OFD Sender: No OFD packet to send [12:36:47]OFD Sender: No OFD packet to send [12:36:52]OFD Sender: No OFD packet to send [12:36:57]OFD Sender: No OFD packet to send [12:37:02]OFD Sender: No OFD packet to send [12:37:07]OFD Sender: No OFD packet to send [12:37:12]OFD Sender: No OFD packet to send [12:37:17]OFD Sender: No OFD packet to send [12:37:22]OFD Sender: No OFD packet to send [12:37:27]OFD Sender: No OFD packet to send [12:37:32]OFD Sender: No OFD packet to send [12:37:37]OFD Sender: No OFD packet to send [12:37:42]OFD Sender: No OFD packet to send [12:37:47]OFD Sender: No OFD packet to send [12:37:52]OFD Sender: No OFD packet to send [12:37:57]OFD Sender: No OFD packet to send [12:38:02]OFD Sender: No OFD packet to send [12:38:07]OFD Sender: No OFD packet to send [12:38:12]OFD Sender: No OFD packet to send [12:38:17]OFD Sender: No OFD packet to send [12:38:22]OFD Sender: No OFD packet to send [12:38:27]OFD Sender: No OFD packet to send [12:38:32]OFD Sender: No OFD packet to send [12:38:37]OFD Sender: No OFD packet to send [12:38:42]OFD Sender: No OFD packet to send [12:38:47]OFD Sender: No OFD packet to send [12:38:52]OFD Sender: No OFD packet to send [12:38:57]OFD Sender: No OFD packet to send [12:39:02]OFD Sender: No OFD packet to send [12:39:07]OFD Sender: No OFD packet to send [12:39:12]OFD Sender: No OFD packet to send [12:39:17]OFD Sender: No OFD packet to send [12:39:22]OFD Sender: No OFD packet to send [12:39:27]OFD Sender: No OFD packet to send [12:39:32]OFD Sender: No OFD packet to send [12:39:37]OFD Sender: No OFD packet to send [12:39:42]OFD Sender: No OFD packet to send [12:39:47]OFD Sender: No OFD packet to send [12:39:52]OFD Sender: No OFD packet to send [12:39:57]OFD Sender: No OFD packet to send [12:40:02]OFD Sender: No OFD packet to send [12:40:07]OFD Sender: No OFD packet to send [12:40:12]OFD Sender: No OFD packet to send [12:40:17]OFD Sender: No OFD packet to send [12:40:22]OFD Sender: No OFD packet to send [12:40:27]OFD Sender: No OFD packet to send [12:40:32]OFD Sender: No OFD packet to send [12:40:37]OFD Sender: No OFD packet to send [12:40:42]OFD Sender: No OFD packet to send [12:40:47]OFD Sender: No OFD packet to send [12:40:52]OFD Sender: No OFD packet to send [12:40:57]OFD Sender: No OFD packet to send [12:41:02]OFD Sender: No OFD packet to send [12:41:07]OFD Sender: No OFD packet to send [12:41:12]OFD Sender: No OFD packet to send [12:41:17]OFD Sender: No OFD packet to send [12:41:22]OFD Sender: No OFD packet to send [12:41:27]OFD Sender: No OFD packet to send [12:41:32]OFD Sender: No OFD packet to send [12:41:37]OFD Sender: No OFD packet to send [12:41:42]OFD Sender: No OFD packet to send [12:41:47]OFD Sender: No OFD packet to send [12:41:52]OFD Sender: No OFD packet to send [12:41:57]OFD Sender: No OFD packet to send [12:42:02]OFD Sender: No OFD packet to send [12:42:07]OFD Sender: No OFD packet to send [12:42:12]OFD Sender: No OFD packet to send [12:42:17]OFD Sender: No OFD packet to send [12:42:22]OFD Sender: No OFD packet to send [12:42:27]OFD Sender: No OFD packet to send [12:42:32]OFD Sender: No OFD packet to send [12:42:37]OFD Sender: No OFD packet to send [12:42:42]OFD Sender: No OFD packet to send [12:42:47]OFD Sender: No OFD packet to send [12:42:52]OFD Sender: No OFD packet to send [12:42:57]OFD Sender: No OFD packet to send [12:43:02]OFD Sender: No OFD packet to send [12:43:07]OFD Sender: No OFD packet to send [12:43:12]OFD Sender: No OFD packet to send [12:43:17]accept exits with 9 [12:43:17]New connection [12:43:17]New thread 3067141476 created [12:43:17]Thread 3067284836 joined [12:43:17]Waiting for new connection... [12:43:17] Sock 9.Parse request [12:43:17]Sock 9.Check first char [12:43:17]Sock 9.First char is OK [12:43:17]request: POST /json_proto HTTP/1.0 [12:43:17]Method: POST [12:43:17]URL: /json_proto [12:43:17]Method is POST - this is cgi request [12:43:17]url: /json_proto [12:43:17]query_string will be loaded in cgi processing [12:43:17]execute_cgi json_proto POST (null) [12:43:17]execute_cgi path=json_proto method=POST [12:43:17]POST find Content-Length [12:43:17]Host: 172.17.50.196:8080 [12:43:17]Content-Length: 1066 [12:43:17]Content-Type: application/json [12:43:17] [12:43:17]POST finish read [12:43:17]Found Content-Length = 1066 [12:43:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335311", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.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" : 483.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:17]execute_script... [12:43: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 : (3)335311", "tax_sys" : 0, "items" : [ { "code": "4700028325357", "name": "\u0412\u043E\u0434\u043A\u0430 \u0410\u043D\u0442\u0438\u0432\u0438\u0440\u0443\u0441 0,5\u043B", "price" : 390.00, "quantity" : 1.000, "sum" : 390.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.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" : 483.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:43:17]POST & json_proto [12:43:17]process_json_proto [12:43:17]json parsed OK: [12:43:17]protocol is kg_v1.0 [12:43:17]action value=close_receipt [12:43:17]process_action close_receipt [12:43:17]cmd_close_receipt [12:43:17]MH_GetDate [12:43:17]Write to MH i2c: F0 00 00 29 40 58 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 09 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: F0 09 00 29 40 00 EA 29 22 67 72 0D 1C 67 FF [12:43:17]GetLastDocTimeStamp 1730291759 [12:43:17]current date 1730292202 [12:43:17]FM_GetShiftState [12:43:17]SAM_PROTO_GetShiftState [12:43:17]wFMCommunicate request_size=4 [12:43:17]MH_SAM_APDU [12:43:17]CAPDU: 80 13 01 00 [12:43:17]Write to MH i2c: E2 08 00 2A 40 80 13 01 00 00 00 00 00 E7 [12:43:17]Write i2c OK [12:43:17]MH_I2C_Read... [12:43:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:17]Read from MH i2c: E2 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0E 00 [12:43:17]MH_I2C_Read... [12:43:17]Read from MH i2c: E2 0E 00 2A 40 00 09 00 01 86 76 21 67 00 00 00 00 90 00 77 [12:43:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:43:17]wFMCommunicate OK [12:43:17]SAM_PROTO_GetShiftState done [12:43:17]FM_GetShiftState done [12:43:17]opened in 1730246278 [12:43:17]opened+sec_in_day 1730332678 [12:43:17]quantity*price = 39000 [12:43:17]sum+1 = 39001 [12:43:17]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 483.00 НСП 1% : 4.27 НДС 12% : 51.30 Наличными: 0.00 Безнал.: 483.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 88 30.10.2024 12:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139404 ФПД: 39704655193028 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124322&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139404&fm=39704655193028&tin=02508201610067®Number=0000000000091631&sum=48300 0 [12:43:18]StoreToDocumentArchive [12:43:18]shift 556 fd 139404 [12:43:18]save to /storage/0556/doc_00139404 [12:43:18]save last doc name /storage/0556/doc_00139404 to /storage/kkm_last_doc_name [12:43:18]save OK [12:43:18]Clear old archive folders... [12:43:18]ProcessDocumentItem done err = 0, tmpTLVsize=395 [12:43:18]tlvbuf is 011937E0 [12:43:18]SAM_PROTO_ClearQueue [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 09 00 00 [12:43:18]Write to MH i2c: E2 08 00 37 40 80 09 00 00 00 00 00 00 E9 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 37 40 00 90 00 EB [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]SAM_PROTO_ClearQueue done [12:43:18]KKMCreateOFDPacket [12:43:18]OFDProtocolAddRootSTLVToBuf [12:43:18]FM_MakeSignedData [12:43:18]FM_MakeSignedData [12:43:18]SAM_PROTO_SignData [12:43:18]wFMCommunicate request_size=4 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 01 02 [12:43:18]Write to MH i2c: E2 08 00 38 40 80 0D 01 02 00 00 00 00 F1 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 38 40 00 90 00 EC [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=255 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 02 02 FA 03 00 8B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC BC 00 00 00 00 EB 03 26 00 EF 03 [12:43:18]Write to MH i2c: E2 02 01 39 40 80 0D 02 02 FA 00 03 00 8B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC BC 00 00 00 00 EB 03 26 00 EF 03 00 00 6F [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:18]Read from MH i2c: E2 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 [12:43:18]MH_I2C_Read... [12:43:18]Read from MH i2c: E2 03 00 39 40 00 90 00 ED [12:43:18]RAPDU: 90 00 [12:43:18]wFMCommunicate OK [12:43:18]wFMCommunicate request_size=154 [12:43:18]MH_SAM_APDU [12:43:18]CAPDU: 80 0D 02 02 95 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC BC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EA 29 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 20 02 00 35 04 06 00 24 1C 75 DE 63 C4 [12:43:18]Write to MH i2c: E2 9D 00 3A 40 80 0D 02 02 95 00 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC BC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EA 29 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 20 02 00 35 04 06 00 24 1C 75 DE 63 C4 00 00 14 [12:43:18]Write i2c OK [12:43:18]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 03 00 3A 40 00 90 00 EE [12:43:19]RAPDU: 90 00 [12:43:19]wFMCommunicate OK [12:43:19]wFMCommunicate request_size=4 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 0D 03 02 [12:43:19]Write to MH i2c: E2 08 00 3B 40 80 0D 03 02 00 00 00 00 F6 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 0B 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 0B 00 3B 40 00 26 4C 84 1B 01 81 B1 69 90 00 A4 [12:43:19]RAPDU: 26 4C 84 1B 01 81 B1 69 90 00 [12:43:19]wFMCommunicate OK [12:43:19]SAM_PROTO_SignData done [12:43:19]FM_MakeSignedData done [12:43:19]CreateOFDProtocolMessage [12:43:19]wFMCommunicate request_size=4 [12:43:19]MH_SAM_APDU [12:43:19]CAPDU: 80 11 00 00 [12:43:19]Write to MH i2c: E2 08 00 3C 40 80 11 00 00 00 00 00 00 F6 [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:19]Read from MH i2c: E2 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 17 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: E2 17 00 3C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 51 [12:43:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:43:19]wFMCommunicate OK [12:43:19]CreateOFDProtocolMessage done [12:43:19]OFDSenderStorePacket 139404 [12:43:19]StoreOFDPacket docnum=139404 [12:43:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9F 01 00 00 95 02 97 01 E6 A8 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC BC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EA 29 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 20 02 00 35 04 06 00 24 1C 75 DE 63 C4 26 4C 84 1B 01 81 B1 69 [12:43:19]CheckFolder [12:43:19]dirname=/storage/ofd_packets [12:43:19]CheckFolder done [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00139404 [12:43:19]NVStorageSaveData ofd_packets/00139404 [12:43:19]File name is /storage/ofd_packets/00139404 [12:43:19]Write 445 bytes [12:43:19]NVStorageSaveData done [12:43:19]OFDSenderStorePacket done [12:43:19]KKMCreateOFDPacket done [12:43:19]NVStorageSaveData kkm_last_timestamp [12:43:19]File name is /storage/kkm_last_timestamp [12:43:19]Write 4 bytes [12:43:19]NVStorageSaveData done [12:43:19]ExternCall_PrintAddStr [12:43:19]wPrintStart [12:43:19]Write to MH i2c: 01 00 00 3D 40 7D [12:43:19]Write i2c OK [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 [12:43:19]MH_I2C_Read... [12:43:19]Read from MH i2c: 01 07 00 3D 40 00 00 00 00 00 FF 0F 92 [12:43:19]RasterBufferAndPrint [12:43:19]line Счет N : (3)335311 [12:43:19]line ИНН: 02508201610067 [12:43:19]line Контрольно-Кассовый Чек [12:43:19]line ПРОДАЖА [12:43:19]line Товар: 4700028325357 [12:43:19]line Водка Антивирус 0,5л [12:43:19]line 1.000 * 390.00 [12:43:19]line = 390.00 [12:43:19]line НДС 12% НСП 1% [12:43:19]line > о реализуемом товаре [12:43:19]line Товар: 4603290004879 [12:43:19]line Печ.сах.FORSITE Сэнд.кокос.вк [12:43:19]line 1.000 * 93.00 [12:43:19]line = 93.00 [12:43:19]line НДС 12% НСП 1% [12:43:19]line > о реализуемом товаре [12:43:19]line ИТОГО: 483.00 [12:43:19]line НСП 1% : 4.27 [12:43:19]line НДС 12% : 51.30 [12:43:19]line Наличными: 0.00 [12:43:19]line Безнал.: 483.00 [12:43:19]line Место: АЗС № 101 "Партнер Нефть" [12:43:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:43:19]line СНО: Общий режим [12:43:19]line Чек 88 30.10.2024 12:43 [12:43:19]line Смена: 556 ФФД: 1.0 [12:43:19]line ЗНМ: 0300000081 [12:43:19]line РНМ: 0000000000091631 [12:43:19]line Версия ККМ: 001 [12:43:19]line Платежная система: Mbank [12:43:19]line ФМ: 0000000000874669 [12:43:19]line ФД: 139404 [12:43:19]line ФПД: 39704655193028 [12:43:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124322&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139404&fm=39704655193028&tin=02508201610067®Number=0000000000091631&sum=48300 [12:43:19]line 0 [12:43:19]OFD Sender: Processing packet 139404 [packets to send 34, broken 33] [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00139404 [12:43:19]OFD Sender: To server: pG, [12:43:19]CommunicateWithHost lk.salyk.kg:30040 [12:43:19]ConnectInit lk.salyk.kg [12:43:19]written 0, free lines is 4095 [12:43:19]Connected sock=10 [12:43:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9F 01 00 00 95 02 97 01 E6 A8 5A 03 01 00 03 00 8B 01 1E 04 01 00 01 23 04 67 00 8A 04 0D 00 34 37 30 30 30 32 38 33 32 35 33 35 37 06 04 23 00 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 D0 90 D0 BD D1 82 D0 B8 D0 B2 D0 B8 D1 80 D1 83 D1 81 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 98 00 00 00 00 13 04 06 00 58 98 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC BC 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 AB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0A 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 AC BC 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 58 00 00 00 F4 03 04 00 EA 29 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8C 20 02 00 35 04 06 00 24 1C 75 DE 63 C4 26 4C 84 1B 01 81 B1 69 [12:43:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 91 C6 47 00 61 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 38 37 34 36 36 39 10 04 04 00 8C 20 02 00 F4 03 04 00 9B D5 21 67 B6 04 01 00 00 1A B7 D1 6E 07 82 81 FB [12:43:19]CommunicateWithHost err = 0 [12:43:19]CheckOFDResponse [12:43:19]1017 (14) - 77093643461234 [12:43:19]1041 (16) - 0000000000874669 [12:43:19]1040 (4) - 139404 [12:43:19]1012 (4) - 30.10.2024 06:43 [12:43:19]1206 (1) - 0 [12:43:19]OFD Sender: Remove packet 139404 [12:43:19]ProducePacketName [12:43:19]name=ofd_packets/00139404 [12:43:19]NVStorageDeleteData [12:43:20]Write to MH i2c: 01 00 00 6C 40 AC [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: 01 07 00 6C 40 00 00 00 00 00 C7 0C 86 [12:43:20]RasterBufferAndPrint [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]line [12:43:20]written 0, free lines is 3280 [12:43:20]MH_Cut [12:43:20]Write to MH i2c: D1 01 00 73 40 01 85 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 01 00 [12:43:20]MH_I2C_Read... [12:43:20]Read from MH i2c: D1 01 00 73 40 00 84 [12:43:20]Write to MH i2c: 01 00 00 74 40 B4 [12:43:20]Write i2c OK [12:43:20]MH_I2C_Read... [12:43:20]OFD Sender: No OFD packet to send [12:43:20]*** Cut start [12:43:20]*** Partial cut [12:43:20]*** CUTSNS_PIN = 1 [12:43:20]*** CUTSNS_PIN = 0 [12:43:21]*** Brake cut motor [12:43:21]Read from MH i2c: 01 [12:43:21]MH_I2C_Read... [12:43:21]*** Stop cut motor [12:43:21]*** Cut end [12:43:21]Read from MH i2c: 01 07 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: 01 07 00 74 40 00 00 00 00 00 FF 0F C9 [12:43:21]process_action close_receipt done [12:43:21]requested_data is exist [12:43:21]produce_requested_data [12:43:21]requested_item fm.sn is exist - process it [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 11 00 00 [12:43:21]Write to MH i2c: E2 08 00 75 40 80 11 00 00 00 00 00 00 2F [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 17 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 17 00 75 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8A [12:43:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:43:21]wFMCommunicate OK [12:43:21]requested_item fd.num is exist - process it [12:43:21]SAM_PROTO_GetFieldsCounters [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 13 00 00 [12:43:21]Write to MH i2c: E2 08 00 76 40 80 13 00 00 00 00 00 00 32 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 62 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 62 00 76 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8C 20 02 00 0E 04 04 00 2C 02 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 3A [12:43:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8C 20 02 00 0E 04 04 00 2C 02 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 [12:43:21]wFMCommunicate OK [12:43:21]SAM_PROTO_GetFieldsCounters done [12:43:21]requested_item shift.num is exist - process it [12:43:21]requested_item shift.opened is exist - process it [12:43:21]req_shift_opened [12:43:21]FM_GetShiftState [12:43:21]SAM_PROTO_GetShiftState [12:43:21]wFMCommunicate request_size=4 [12:43:21]MH_SAM_APDU [12:43:21]CAPDU: 80 13 01 00 [12:43:21]Write to MH i2c: E2 08 00 77 40 80 13 01 00 00 00 00 00 34 [12:43:21]Write i2c OK [12:43:21]MH_I2C_Read... [12:43:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:43:21]Read from MH i2c: E2 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 0E 00 [12:43:21]MH_I2C_Read... [12:43:21]Read from MH i2c: E2 0E 00 77 40 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C4 [12:43:21]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:43:21]wFMCommunicate OK [12:43:21]SAM_PROTO_GetShiftState done [12:43:21]FM_GetShiftState done [12:43:21]req_shift_opened done [12:43:21]requested_item shift.open_date is exist - process it [12:43:21]req_shift_open_date [12:43:21]req_shift_open_date done [12:43:21]produce_requested_data done [12:43:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139404,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:43:21]process_action_free close_receipt [12:43:21]json_value_free [12:43:21]json_value_free done [12:43:21]process_json_proto returns [12:43:21]Send response to host [12:43:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139404,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:43:21]free response buf [12:43:21]execute_script done [12:43:21]execute_script returns [12:43:21]free content buf [12:43:21]Sock 9.Close socket [12:43:21]Sock 9.Thread stoped [12:43:25]OFD Sender: No OFD packet to send [12:43:30]OFD Sender: No OFD packet to send [12:43:35]OFD Sender: No OFD packet to send [12:43:40]OFD Sender: No OFD packet to send [12:43:45]OFD Sender: No OFD packet to send [12:43:50]OFD Sender: No OFD packet to send [12:43:55]OFD Sender: No OFD packet to send [12:44:00]OFD Sender: No OFD packet to send [12:44:05]OFD Sender: No OFD packet to send [12:44:10]OFD Sender: No OFD packet to send [12:44:15]OFD Sender: No OFD packet to send [12:44:20]OFD Sender: No OFD packet to send [12:44:25]OFD Sender: No OFD packet to send [12:44:30]OFD Sender: No OFD packet to send [12:44:35]OFD Sender: No OFD packet to send [12:44:40]OFD Sender: No OFD packet to send [12:44:45]OFD Sender: No OFD packet to send [12:44:50]OFD Sender: No OFD packet to send [12:44:55]OFD Sender: No OFD packet to send [12:45:00]OFD Sender: No OFD packet to send [12:45:05]OFD Sender: No OFD packet to send [12:45:10]OFD Sender: No OFD packet to send [12:45:15]OFD Sender: No OFD packet to send [12:45:20]OFD Sender: No OFD packet to send [12:45:25]OFD Sender: No OFD packet to send [12:45:30]OFD Sender: No OFD packet to send [12:45:35]OFD Sender: No OFD packet to send [12:45:40]OFD Sender: No OFD packet to send [12:45:45]OFD Sender: No OFD packet to send [12:45:50]OFD Sender: No OFD packet to send [12:45:55]OFD Sender: No OFD packet to send [12:46:00]OFD Sender: No OFD packet to send [12:46:05]OFD Sender: No OFD packet to send [12:46:10]OFD Sender: No OFD packet to send [12:46:15]OFD Sender: No OFD packet to send [12:46:20]OFD Sender: No OFD packet to send [12:46:25]OFD Sender: No OFD packet to send [12:46:30]OFD Sender: No OFD packet to send [12:46:35]OFD Sender: No OFD packet to send [12:46:40]OFD Sender: No OFD packet to send [12:46:45]OFD Sender: No OFD packet to send [12:46:50]OFD Sender: No OFD packet to send [12:46:55]OFD Sender: No OFD packet to send [12:47:00]OFD Sender: No OFD packet to send [12:47:05]OFD Sender: No OFD packet to send [12:47:10]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:55]OFD Sender: No OFD packet to send [12:49:00]OFD Sender: No OFD packet to send [12:49:05]OFD Sender: No OFD packet to send [12:49:10]OFD Sender: No OFD packet to send [12:49:15]OFD Sender: No OFD packet to send [12:49:20]OFD Sender: No OFD packet to send [12:49:25]OFD Sender: No OFD packet to send [12:49:30]OFD Sender: No OFD packet to send [12:49:35]OFD Sender: No OFD packet to send [12:49:40]OFD Sender: No OFD packet to send [12:49:42]accept exits with 8 [12:49:42]New connection [12:49:42]New thread 3067284836 created [12:49:42]Thread 3067141476 joined [12:49:42]Waiting for new connection... [12:49:42] Sock 8.Parse request [12:49:42]Sock 8.Check first char [12:49:42]Sock 8.First char is OK [12:49:42]request: POST /json_proto HTTP/1.0 [12:49:42]Method: POST [12:49:42]URL: /json_proto [12:49:42]Method is POST - this is cgi request [12:49:42]url: /json_proto [12:49:42]query_string will be loaded in cgi processing [12:49:42]execute_cgi json_proto POST (null) [12:49:42]execute_cgi path=json_proto method=POST [12:49:42]POST find Content-Length [12:49:42]Host: 172.17.50.196:8080 [12:49:42]Content-Length: 1728 [12:49:42]Content-Type: application/json [12:49:42] [12:49:42]POST finish read [12:49:42]Found Content-Length = 1728 [12:49:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335312", "tax_sys" : 0, "items" : [ { "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 588.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:42]execute_script... [12:49: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 : (3)335312", "tax_sys" : 0, "items" : [ { "code": "4650075420409", "name": "\u0421\u043E\u043A Rich \u0412\u0438\u0448\u043D\u044F 0,2", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4860019001353", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u0440\u0436\u043E\u043C\u0438 0,5\u043B \u041F\u042D\u0422", "price" : 120.00, "quantity" : 3.000, "sum" : 360.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700026030031", "name": "\u041A\u0443\u0440\u0443\u0442 orbit", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.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" : 588.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:49:43]POST & json_proto [12:49:43]process_json_proto [12:49:43]json parsed OK: [12:49:43]protocol is kg_v1.0 [12:49:43]action value=close_receipt [12:49:43]process_action close_receipt [12:49:43]cmd_close_receipt [12:49:43]MH_GetDate [12:49:43]Write to MH i2c: F0 00 00 78 40 A7 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: F0 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: F0 09 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: F0 09 00 78 40 00 6C 2B 22 67 72 0D 1C 67 D2 [12:49:43]GetLastDocTimeStamp 1730292202 [12:49:43]current date 1730292588 [12:49:43]FM_GetShiftState [12:49:43]SAM_PROTO_GetShiftState [12:49:43]wFMCommunicate request_size=4 [12:49:43]MH_SAM_APDU [12:49:43]CAPDU: 80 13 01 00 [12:49:43]Write to MH i2c: E2 08 00 79 40 80 13 01 00 00 00 00 00 36 [12:49:43]Write i2c OK [12:49:43]MH_I2C_Read... [12:49:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:43]Read from MH i2c: E2 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0E 00 [12:49:43]MH_I2C_Read... [12:49:43]Read from MH i2c: E2 0E 00 79 40 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C6 [12:49:43]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:49:43]wFMCommunicate OK [12:49:43]SAM_PROTO_GetShiftState done [12:49:43]FM_GetShiftState done [12:49:43]opened in 1730246278 [12:49:43]opened+sec_in_day 1730332678 [12:49:43]quantity*price = 8500 [12:49:43]sum+1 = 8501 [12:49:43]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4860019001353 Вода Боржоми 0,5л ПЭТ 3.000 * 120.00 = 360.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700026030031 Курут orbit 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40052403 Nestle KIT-KAT плоский 41,5г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 588.00 НСП 1% : 5.20 НДС 12% : 62.44 Наличными: 0.00 Безнал.: 588.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 89 30.10.2024 12:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139405 ФПД: 220254019043137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124948&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139405&fm=220254019043137&tin=02508201610067®Number=0000000000091631&sum=58800 0 [12:49:44]StoreToDocumentArchive [12:49:44]shift 556 fd 139405 [12:49:44]save to /storage/0556/doc_00139405 [12:49:44]save last doc name /storage/0556/doc_00139405 to /storage/kkm_last_doc_name [12:49:44]save OK [12:49:44]Clear old archive folders... [12:49:44]ProcessDocumentItem done err = 0, tmpTLVsize=675 [12:49:44]tlvbuf is 01112F00 [12:49:44]SAM_PROTO_ClearQueue [12:49:44]wFMCommunicate request_size=4 [12:49:44]MH_SAM_APDU [12:49:44]CAPDU: 80 09 00 00 [12:49:44]Write to MH i2c: E2 08 00 86 40 80 09 00 00 00 00 00 00 38 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:49:44]Read from MH i2c: E2 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 03 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 03 00 86 40 00 90 00 3A [12:49:44]RAPDU: 90 00 [12:49:44]wFMCommunicate OK [12:49:44]SAM_PROTO_ClearQueue done [12:49:44]KKMCreateOFDPacket [12:49:44]OFDProtocolAddRootSTLVToBuf [12:49:44]FM_MakeSignedData [12:49:44]FM_MakeSignedData [12:49:44]SAM_PROTO_SignData [12:49:44]wFMCommunicate request_size=4 [12:49:44]MH_SAM_APDU [12:49:44]CAPDU: 80 0D 01 02 [12:49:44]Write to MH i2c: E2 08 00 87 40 80 0D 01 02 00 00 00 00 40 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:49:44]Read from MH i2c: E2 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 03 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 03 00 87 40 00 90 00 3B [12:49:44]RAPDU: 90 00 [12:49:44]wFMCommunicate OK [12:49:44]wFMCommunicate request_size=255 [12:49:44]MH_SAM_APDU [12:49:44]CAPDU: 80 0D 02 02 FA 03 00 A3 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 [12:49:44]Write to MH i2c: E2 02 01 88 40 80 0D 02 02 FA 00 03 00 A3 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 00 00 78 [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:44]Read from MH i2c: E2 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 03 00 [12:49:44]MH_I2C_Read... [12:49:44]Read from MH i2c: E2 03 00 88 40 00 90 00 3C [12:49:44]RAPDU: 90 00 [12:49:44]wFMCommunicate OK [12:49:44]wFMCommunicate request_size=255 [12:49:44]MH_SAM_APDU [12:49:44]CAPDU: 80 0D 02 02 FA 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 [12:49:44]Write to MH i2c: E2 02 01 89 40 80 0D 02 02 FA 00 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 00 00 DA [12:49:44]Write i2c OK [12:49:44]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 89 40 00 90 00 3D [12:49:45]RAPDU: 90 00 [12:49:45]wFMCommunicate OK [12:49:45]wFMCommunicate request_size=184 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 0D 02 02 B3 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 E5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6C 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 20 02 00 35 04 06 00 C8 51 E2 90 BF 41 [12:49:45]Write to MH i2c: E2 BB 00 8A 40 80 0D 02 02 B3 00 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 E5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6C 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 20 02 00 35 04 06 00 C8 51 E2 90 BF 41 00 00 42 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 03 00 8A 40 00 90 00 3E [12:49:45]RAPDU: 90 00 [12:49:45]wFMCommunicate OK [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 0D 03 02 [12:49:45]Write to MH i2c: E2 08 00 8B 40 80 0D 03 02 00 00 00 00 46 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 0B 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 0B 00 8B 40 00 88 C3 68 37 BD D6 3A 31 90 00 2F [12:49:45]RAPDU: 88 C3 68 37 BD D6 3A 31 90 00 [12:49:45]wFMCommunicate OK [12:49:45]SAM_PROTO_SignData done [12:49:45]FM_MakeSignedData done [12:49:45]CreateOFDProtocolMessage [12:49:45]wFMCommunicate request_size=4 [12:49:45]MH_SAM_APDU [12:49:45]CAPDU: 80 11 00 00 [12:49:45]Write to MH i2c: E2 08 00 8C 40 80 11 00 00 00 00 00 00 46 [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:45]Read from MH i2c: E2 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: E2 17 00 8C 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A1 [12:49:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:49:45]wFMCommunicate OK [12:49:45]CreateOFDProtocolMessage done [12:49:45]OFDSenderStorePacket 139405 [12:49:45]StoreOFDPacket docnum=139405 [12:49:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B7 02 00 00 6D 65 AF 02 05 D1 5A 03 01 00 03 00 A3 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 E5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6C 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 20 02 00 35 04 06 00 C8 51 E2 90 BF 41 88 C3 68 37 BD D6 3A 31 [12:49:45]CheckFolder [12:49:45]dirname=/storage/ofd_packets [12:49:45]CheckFolder done [12:49:45]ProducePacketName [12:49:45]name=ofd_packets/00139405 [12:49:45]NVStorageSaveData ofd_packets/00139405 [12:49:45]File name is /storage/ofd_packets/00139405 [12:49:45]Write 725 bytes [12:49:45]NVStorageSaveData done [12:49:45]OFDSenderStorePacket done [12:49:45]KKMCreateOFDPacket done [12:49:45]NVStorageSaveData kkm_last_timestamp [12:49:45]File name is /storage/kkm_last_timestamp [12:49:45]Write 4 bytes [12:49:45]NVStorageSaveData done [12:49:45]ExternCall_PrintAddStr [12:49:45]wPrintStart [12:49:45]Write to MH i2c: 01 00 00 8D 40 CD [12:49:45]Write i2c OK [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 07 00 [12:49:45]MH_I2C_Read... [12:49:45]Read from MH i2c: 01 07 00 8D 40 00 00 00 00 00 FF 0F E2 [12:49:45]RasterBufferAndPrint [12:49:45]line Счет N : (3)335312 [12:49:45]line ИНН: 02508201610067 [12:49:45]line Контрольно-Кассовый Чек [12:49:45]line ПРОДАЖА [12:49:45]line Товар: 4650075420409 [12:49:45]line Сок Rich Вишня 0,2 [12:49:45]line 1.000 * 85.00 [12:49:45]line = 85.00 [12:49:45]line НДС 12% НСП 1% [12:49:45]line > о реализуемом товаре [12:49:45]line Товар: 4860019001353 [12:49:45]line Вода Боржоми 0,5л ПЭТ [12:49:45]line 3.000 * 120.00 [12:49:45]line = 360.00 [12:49:45]line НДС 12% НСП 1% [12:49:45]line > о реализуемом товаре [12:49:45]line Товар: 4700026030031 [12:49:45]line Курут orbit [12:49:45]line 1.000 * 49.00 [12:49:45]line = 49.00 [12:49:45]line НДС 12% НСП 1% [12:49:45]line > о реализуемом товаре [12:49:45]line Товар: 2000031750019 [12:49:45]line Пакет Партнер Нефть [12:49:45]line 1.000 * 4.00 [12:49:45]line = 4.00 [12:49:45]line НДС 12% НСП 1% [12:49:45]line > о реализуемом товаре [12:49:45]line Товар: 40052403 [12:49:45]line Nestle KIT-KAT плоский 41,5г [12:49:45]line 1.000 * 90.00 [12:49:45]line = 90.00 [12:49:45]line НДС 12% НСП 1% [12:49:45]line > о реализуемом товаре [12:49:45]line ИТОГО: 588.00 [12:49:45]line НСП 1% : 5.20 [12:49:45]line НДС 12% : 62.44 [12:49:45]line Наличными: 0.00 [12:49:45]line Безнал.: 588.00 [12:49:45]line Место: АЗС № 101 "Партнер Нефть" [12:49:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:49:45]line СНО: Общий режим [12:49:45]line Чек 89 30.10.2024 12:49 [12:49:45]line Смена: 556 ФФД: 1.0 [12:49:45]line ЗНМ: 0300000081 [12:49:45]line РНМ: 0000000000091631 [12:49:45]line Версия ККМ: 001 [12:49:45]line Платежная система: Mbank [12:49:45]line ФМ: 0000000000874669 [12:49:45]line ФД: 139405 [12:49:45]line ФПД: 220254019043137 [12:49:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T124948&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139405&fm=220254019043137&tin=02508201610067®Number=0000000000091631&sum=58800 [12:49:45]line 0 [12:49:45]written 0, free lines is 4095 [12:49:45]OFD Sender: Processing packet 139405 [packets to send 34, broken 33] [12:49:45]ProducePacketName [12:49:45]name=ofd_packets/00139405 [12:49:45]OFD Sender: To server: pG, [12:49:45]CommunicateWithHost lk.salyk.kg:30040 [12:49:45]ConnectInit lk.salyk.kg [12:49:45]Connected sock=10 [12:49:45]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B7 02 00 00 6D 65 AF 02 05 D1 5A 03 01 00 03 00 A3 02 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 36 35 30 30 37 35 34 32 30 34 30 39 06 04 1A 00 D0 A1 D0 BE D0 BA 20 52 69 63 68 20 D0 92 D0 B8 D1 88 D0 BD D1 8F 20 30 2C 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 34 38 36 30 30 31 39 30 30 31 33 35 33 06 04 24 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D1 80 D0 B6 D0 BE D0 BC D0 B8 20 30 2C 35 D0 BB 20 D0 9F D0 AD D0 A2 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 A0 8C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 54 00 8A 04 0D 00 34 37 30 30 30 32 36 30 33 30 30 33 31 06 04 10 00 D0 9A D1 83 D1 80 D1 83 D1 82 20 6F 72 62 69 74 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 E5 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 08 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 B0 E5 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 59 00 00 00 F4 03 04 00 6C 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 20 02 00 35 04 06 00 C8 51 E2 90 BF 41 88 C3 68 37 BD D6 3A 31 [12:49:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8F 4E 47 00 F2 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8D 20 02 00 F4 03 04 00 1D D7 21 67 B6 04 01 00 00 1A 69 C5 CC 64 55 C7 7D [12:49:46]CommunicateWithHost err = 0 [12:49:46]CheckOFDResponse [12:49:46]1017 (14) - 77093643461234 [12:49:46]1041 (16) - 0000000000874669 [12:49:46]1040 (4) - 139405 [12:49:46]1012 (4) - 30.10.2024 06:50 [12:49:46]1206 (1) - 0 [12:49:46]OFD Sender: Remove packet 139405 [12:49:46]ProducePacketName [12:49:46]name=ofd_packets/00139405 [12:49:46]NVStorageDeleteData [12:49:46]Write to MH i2c: 01 00 00 CE 40 0E [12:49:46]Write i2c OK [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: 01 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: 01 07 00 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: 01 07 00 CE 40 00 00 00 00 00 E8 0B 08 [12:49:46]RasterBufferAndPrint [12:49:46]line [12:49:46]line [12:49:46]line [12:49:46]line [12:49:46]line [12:49:46]written 0, free lines is 3062 [12:49:46]MH_Cut [12:49:46]Write to MH i2c: D1 01 00 D5 40 01 E7 [12:49:46]Write i2c OK [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: D1 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: D1 01 00 [12:49:46]MH_I2C_Read... [12:49:46]Read from MH i2c: D1 01 00 D5 40 00 E6 [12:49:46]Write to MH i2c: 01 00 00 D6 40 16 [12:49:46]Write i2c OK [12:49:46]MH_I2C_Read... [12:49:46]OFD Sender: No OFD packet to send [12:49:47]*** Cut start [12:49:47]*** Partial cut [12:49:47]*** CUTSNS_PIN = 1 [12:49:47]*** CUTSNS_PIN = 0 [12:49:47]*** Brake cut motor [12:49:47]Read from MH i2c: 01 [12:49:47]MH_I2C_Read... [12:49:47]*** Stop cut motor [12:49:47]*** Cut end [12:49:47]Read from MH i2c: 01 07 00 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: 01 07 00 D6 40 00 00 00 00 00 FF 0F 2B [12:49:47]process_action close_receipt done [12:49:47]requested_data is exist [12:49:47]produce_requested_data [12:49:47]requested_item fm.sn is exist - process it [12:49:47]wFMCommunicate request_size=4 [12:49:47]MH_SAM_APDU [12:49:47]CAPDU: 80 11 00 00 [12:49:47]Write to MH i2c: E2 08 00 D7 40 80 11 00 00 00 00 00 00 91 [12:49:47]Write i2c OK [12:49:47]MH_I2C_Read... [12:49:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:49:47]Read from MH i2c: E2 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 17 00 [12:49:47]MH_I2C_Read... [12:49:47]Read from MH i2c: E2 17 00 D7 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EC [12:49:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:49:47]wFMCommunicate OK [12:49:47]requested_item fd.num is exist - process it [12:49:47]SAM_PROTO_GetFieldsCounters [12:49:47]wFMCommunicate request_size=4 [12:49:47]MH_SAM_APDU [12:49:47]CAPDU: 80 13 00 00 [12:49:47]Write to MH i2c: E2 08 00 D8 40 80 13 00 00 00 00 00 00 94 [12:49:47]Write i2c OK [12:49:47]MH_I2C_Read... [12:49:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:49:48]Read from MH i2c: E2 [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: E2 62 00 [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: E2 62 00 D8 40 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8D 20 02 00 0E 04 04 00 2C 02 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 A0 [12:49:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8D 20 02 00 0E 04 04 00 2C 02 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 [12:49:48]wFMCommunicate OK [12:49:48]SAM_PROTO_GetFieldsCounters done [12:49:48]requested_item shift.num is exist - process it [12:49:48]requested_item shift.opened is exist - process it [12:49:48]req_shift_opened [12:49:48]FM_GetShiftState [12:49:48]SAM_PROTO_GetShiftState [12:49:48]wFMCommunicate request_size=4 [12:49:48]MH_SAM_APDU [12:49:48]CAPDU: 80 13 01 00 [12:49:48]Write to MH i2c: E2 08 00 D9 40 80 13 01 00 00 00 00 00 96 [12:49:48]Write i2c OK [12:49:48]MH_I2C_Read... [12:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:49:48]Read from MH i2c: E2 [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: E2 0E 00 [12:49:48]MH_I2C_Read... [12:49:48]Read from MH i2c: E2 0E 00 D9 40 00 09 00 01 86 76 21 67 00 00 00 00 90 00 26 [12:49:48]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:49:48]wFMCommunicate OK [12:49:48]SAM_PROTO_GetShiftState done [12:49:48]FM_GetShiftState done [12:49:48]req_shift_opened done [12:49:48]requested_item shift.open_date is exist - process it [12:49:48]req_shift_open_date [12:49:48]req_shift_open_date done [12:49:48]produce_requested_data done [12:49:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139405,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:49:48]process_action_free close_receipt [12:49:48]json_value_free [12:49:48]json_value_free done [12:49:48]process_json_proto returns [12:49:48]Send response to host [12:49:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139405,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:49:48]free response buf [12:49:48]execute_script done [12:49:48]execute_script returns [12:49:48]free content buf [12:49:48]Sock 8.Close socket [12:49:48]Sock 8.Thread stoped [12:49:51]OFD Sender: No OFD packet to send [12:49:56]OFD Sender: No OFD packet to send [12:50:01]OFD Sender: No OFD packet to send [12:50:06]OFD Sender: No OFD packet to send [12:50:11]OFD Sender: No OFD packet to send [12:50:16]OFD Sender: No OFD packet to send [12:50:21]OFD Sender: No OFD packet to send [12:50:26]OFD Sender: No OFD packet to send [12:50:31]OFD Sender: No OFD packet to send [12:50:36]OFD Sender: No OFD packet to send [12:50:41]OFD Sender: No OFD packet to send [12:50:46]OFD Sender: No OFD packet to send [12:50:51]OFD Sender: No OFD packet to send [12:50:56]OFD Sender: No OFD packet to send [12:51:01]OFD Sender: No OFD packet to send [12:51:06]OFD Sender: No OFD packet to send [12:51:11]OFD Sender: No OFD packet to send [12:51:16]OFD Sender: No OFD packet to send [12:51:21]OFD Sender: No OFD packet to send [12:51:25]accept exits with 9 [12:51:25]New connection [12:51:25]New thread 3067141476 created [12:51:25]Thread 3067284836 joined [12:51:25]Waiting for new connection... [12:51:25] Sock 9.Parse request [12:51:25]Sock 9.Check first char [12:51:25]Sock 9.First char is OK [12:51:25]request: POST /json_proto HTTP/1.0 [12:51:25]Method: POST [12:51:25]URL: /json_proto [12:51:25]Method is POST - this is cgi request [12:51:25]url: /json_proto [12:51:25]query_string will be loaded in cgi processing [12:51:25]execute_cgi json_proto POST (null) [12:51:25]execute_cgi path=json_proto method=POST [12:51:25]POST find Content-Length [12:51:25]Host: 172.17.50.196:8080 [12:51:25]Content-Length: 743 [12:51:25]Content-Type: application/json [12:51:25] [12:51:25]POST finish read [12:51:25]Found Content-Length = 743 [12:51:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335314", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.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" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:25]execute_script... [12:51: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 : (3)335314", "tax_sys" : 0, "items" : [ { "code": "4870002329487", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1,5\u043B", "price" : 175.00, "quantity" : 1.000, "sum" : 175.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" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:25]POST & json_proto [12:51:25]process_json_proto [12:51:25]json parsed OK: [12:51:25]protocol is kg_v1.0 [12:51:25]action value=close_receipt [12:51:25]process_action close_receipt [12:51:25]cmd_close_receipt [12:51:25]MH_GetDate [12:51:25]Write to MH i2c: F0 00 00 DA 40 09 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: F0 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: F0 09 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: F0 09 00 DA 40 00 D2 2B 22 67 72 0D 1C 67 9A [12:51:25]GetLastDocTimeStamp 1730292588 [12:51:25]current date 1730292690 [12:51:25]FM_GetShiftState [12:51:25]SAM_PROTO_GetShiftState [12:51:25]wFMCommunicate request_size=4 [12:51:25]MH_SAM_APDU [12:51:25]CAPDU: 80 13 01 00 [12:51:25]Write to MH i2c: E2 08 00 DB 40 80 13 01 00 00 00 00 00 98 [12:51:25]Write i2c OK [12:51:25]MH_I2C_Read... [12:51:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:25]Read from MH i2c: E2 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 0E 00 [12:51:25]MH_I2C_Read... [12:51:25]Read from MH i2c: E2 0E 00 DB 40 00 09 00 01 86 76 21 67 00 00 00 00 90 00 28 [12:51:25]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:51:25]wFMCommunicate OK [12:51:25]SAM_PROTO_GetShiftState done [12:51:25]FM_GetShiftState done [12:51:25]opened in 1730246278 [12:51:25]opened+sec_in_day 1730332678 [12:51:25]quantity*price = 17500 [12:51:25]sum+1 = 17501 [12:51:25]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 0.00 Безнал.: 175.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 90 30.10.2024 12:51 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139406 ФПД: 242973984713024 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125130&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139406&fm=242973984713024&tin=02508201610067®Number=0000000000091631&sum=17500 0 [12:51:26]StoreToDocumentArchive [12:51:26]shift 556 fd 139406 [12:51:26]save to /storage/0556/doc_00139406 [12:51:26]save last doc name /storage/0556/doc_00139406 to /storage/kkm_last_doc_name [12:51:26]save OK [12:51:26]Clear old archive folders... [12:51:26]ProcessDocumentItem done err = 0, tmpTLVsize=268 [12:51:26]tlvbuf is 0112F620 [12:51:26]SAM_PROTO_ClearQueue [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 09 00 00 [12:51:26]Write to MH i2c: E2 08 00 E8 40 80 09 00 00 00 00 00 00 9A [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 E8 40 00 90 00 9C [12:51:26]RAPDU: 90 00 [12:51:26]wFMCommunicate OK [12:51:26]SAM_PROTO_ClearQueue done [12:51:26]KKMCreateOFDPacket [12:51:26]OFDProtocolAddRootSTLVToBuf [12:51:26]FM_MakeSignedData [12:51:26]FM_MakeSignedData [12:51:26]SAM_PROTO_SignData [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 0D 01 02 [12:51:26]Write to MH i2c: E2 08 00 E9 40 80 0D 01 02 00 00 00 00 A2 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 E9 40 00 90 00 9D [12:51:26]RAPDU: 90 00 [12:51:26]wFMCommunicate OK [12:51:26]wFMCommunicate request_size=255 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [12:51:26]Write to MH i2c: E2 02 01 EA 40 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 15 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 EA 40 00 90 00 9E [12:51:26]RAPDU: 90 00 [12:51:26]wFMCommunicate OK [12:51:26]wFMCommunicate request_size=27 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 0D 02 02 16 34 36 36 39 10 04 04 00 8E 20 02 00 35 04 06 00 DC FB CA 0C 69 40 [12:51:26]Write to MH i2c: E2 1E 00 EB 40 80 0D 02 02 16 00 34 36 36 39 10 04 04 00 8E 20 02 00 35 04 06 00 DC FB CA 0C 69 40 00 00 07 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]OFD Sender: No OFD packet to send [12:51:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 03 00 EB 40 00 90 00 9F [12:51:26]RAPDU: 90 00 [12:51:26]wFMCommunicate OK [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 0D 03 02 [12:51:26]Write to MH i2c: E2 08 00 EC 40 80 0D 03 02 00 00 00 00 A7 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 0B 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 0B 00 EC 40 00 BB 72 BE F6 3B 2C DD C4 90 00 91 [12:51:26]RAPDU: BB 72 BE F6 3B 2C DD C4 90 00 [12:51:26]wFMCommunicate OK [12:51:26]SAM_PROTO_SignData done [12:51:26]FM_MakeSignedData done [12:51:26]CreateOFDProtocolMessage [12:51:26]wFMCommunicate request_size=4 [12:51:26]MH_SAM_APDU [12:51:26]CAPDU: 80 11 00 00 [12:51:26]Write to MH i2c: E2 08 00 ED 40 80 11 00 00 00 00 00 00 A7 [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:26]Read from MH i2c: E2 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 17 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: E2 17 00 ED 40 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [12:51:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:51:26]wFMCommunicate OK [12:51:26]CreateOFDProtocolMessage done [12:51:26]OFDSenderStorePacket 139406 [12:51:26]StoreOFDPacket docnum=139406 [12:51:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 20 01 00 00 64 D5 18 01 43 32 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8E 20 02 00 35 04 06 00 DC FB CA 0C 69 40 BB 72 BE F6 3B 2C DD C4 [12:51:26]CheckFolder [12:51:26]dirname=/storage/ofd_packets [12:51:26]CheckFolder done [12:51:26]ProducePacketName [12:51:26]name=ofd_packets/00139406 [12:51:26]NVStorageSaveData ofd_packets/00139406 [12:51:26]File name is /storage/ofd_packets/00139406 [12:51:26]Write 318 bytes [12:51:26]NVStorageSaveData done [12:51:26]OFDSenderStorePacket done [12:51:26]KKMCreateOFDPacket done [12:51:26]NVStorageSaveData kkm_last_timestamp [12:51:26]File name is /storage/kkm_last_timestamp [12:51:26]Write 4 bytes [12:51:26]NVStorageSaveData done [12:51:26]ExternCall_PrintAddStr [12:51:26]wPrintStart [12:51:26]Write to MH i2c: 01 00 00 EE 40 2E [12:51:26]Write i2c OK [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: 01 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: 01 07 00 [12:51:26]MH_I2C_Read... [12:51:26]Read from MH i2c: 01 07 00 EE 40 00 00 00 00 00 FF 0F 43 [12:51:26]RasterBufferAndPrint [12:51:26]line Счет N : (3)335314 [12:51:26]line ИНН: 02508201610067 [12:51:26]line Контрольно-Кассовый Чек [12:51:26]line ПРОДАЖА [12:51:26]line Товар: 4870002329487 [12:51:26]line Напиток Pepsi 1,5л [12:51:26]line 1.000 * 175.00 [12:51:26]line = 175.00 [12:51:26]line НДС 12% НСП 1% [12:51:26]line > о реализуемом товаре [12:51:26]line ИТОГО: 175.00 [12:51:26]line НСП 1% : 1.55 [12:51:26]line НДС 12% : 18.58 [12:51:26]line Наличными: 0.00 [12:51:26]line Безнал.: 175.00 [12:51:26]line Место: АЗС № 101 "Партнер Нефть" [12:51:26]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:51:26]line СНО: Общий режим [12:51:26]line Чек 90 30.10.2024 12:51 [12:51:26]line Смена: 556 ФФД: 1.0 [12:51:26]line ЗНМ: 0300000081 [12:51:26]line РНМ: 0000000000091631 [12:51:26]line Версия ККМ: 001 [12:51:26]line Платежная система: Mbank [12:51:26]line ФМ: 0000000000874669 [12:51:26]line ФД: 139406 [12:51:26]line ФПД: 242973984713024 [12:51:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125130&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139406&fm=242973984713024&tin=02508201610067®Number=0000000000091631&sum=17500 [12:51:27]line 0 [12:51:27]OFD Sender: Processing packet 139406 [packets to send 34, broken 33] [12:51:27]ProducePacketName [12:51:27]name=ofd_packets/00139406 [12:51:27]OFD Sender: To server: pG, [12:51:27]CommunicateWithHost lk.salyk.kg:30040 [12:51:27]ConnectInit lk.salyk.kg [12:51:27]written 0, free lines is 4095 [12:51:27]Write to MH i2c: 01 00 00 17 41 58 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 07 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: 01 07 00 17 41 00 00 00 00 00 02 0D 6E [12:51:27]RasterBufferAndPrint [12:51:27]line [12:51:27]line [12:51:27]line [12:51:27]line [12:51:27]line [12:51:27]written 0, free lines is 3336 [12:51:27]MH_Cut [12:51:27]Write to MH i2c: D1 01 00 1E 41 01 31 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: D1 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: D1 01 00 [12:51:27]MH_I2C_Read... [12:51:27]Read from MH i2c: D1 01 00 1E 41 00 30 [12:51:27]Write to MH i2c: 01 00 00 1F 41 60 [12:51:27]Write i2c OK [12:51:27]MH_I2C_Read... [12:51:28]*** Cut start [12:51:28]*** Partial cut [12:51:28]*** CUTSNS_PIN = 1 [12:51:28]*** CUTSNS_PIN = 0 [12:51:28]*** Brake cut motor [12:51:28]Read from MH i2c: 01 [12:51:28]MH_I2C_Read... [12:51:28]*** Stop cut motor [12:51:28]*** Cut end [12:51:28]Read from MH i2c: 01 07 00 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: 01 07 00 1F 41 00 00 00 00 00 FF 0F 75 [12:51:28]process_action close_receipt done [12:51:28]requested_data is exist [12:51:28]produce_requested_data [12:51:28]requested_item fm.sn is exist - process it [12:51:28]wFMCommunicate request_size=4 [12:51:28]MH_SAM_APDU [12:51:28]CAPDU: 80 11 00 00 [12:51:28]Write to MH i2c: E2 08 00 20 41 80 11 00 00 00 00 00 00 DB [12:51:28]Write i2c OK [12:51:28]MH_I2C_Read... [12:51:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:28]Read from MH i2c: E2 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: E2 17 00 [12:51:28]MH_I2C_Read... [12:51:28]Read from MH i2c: E2 17 00 20 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [12:51:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:51:28]wFMCommunicate OK [12:51:28]requested_item fd.num is exist - process it [12:51:28]SAM_PROTO_GetFieldsCounters [12:51:28]wFMCommunicate request_size=4 [12:51:28]MH_SAM_APDU [12:51:28]CAPDU: 80 13 00 00 [12:51:28]Write to MH i2c: E2 08 00 21 41 80 13 00 00 00 00 00 00 DE [12:51:28]Write i2c OK [12:51:28]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 62 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 62 00 21 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8E 20 02 00 0E 04 04 00 2C 02 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 EE [12:51:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8E 20 02 00 0E 04 04 00 2C 02 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 [12:51:29]wFMCommunicate OK [12:51:29]SAM_PROTO_GetFieldsCounters done [12:51:29]requested_item shift.num is exist - process it [12:51:29]requested_item shift.opened is exist - process it [12:51:29]req_shift_opened [12:51:29]FM_GetShiftState [12:51:29]SAM_PROTO_GetShiftState [12:51:29]wFMCommunicate request_size=4 [12:51:29]MH_SAM_APDU [12:51:29]CAPDU: 80 13 01 00 [12:51:29]Write to MH i2c: E2 08 00 22 41 80 13 01 00 00 00 00 00 E0 [12:51:29]Write i2c OK [12:51:29]MH_I2C_Read... [12:51:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:29]Read from MH i2c: E2 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 0E 00 [12:51:29]MH_I2C_Read... [12:51:29]Read from MH i2c: E2 0E 00 22 41 00 09 00 01 86 76 21 67 00 00 00 00 90 00 70 [12:51:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:51:29]wFMCommunicate OK [12:51:29]SAM_PROTO_GetShiftState done [12:51:29]FM_GetShiftState done [12:51:29]req_shift_opened done [12:51:29]requested_item shift.open_date is exist - process it [12:51:29]req_shift_open_date [12:51:29]req_shift_open_date done [12:51:29]produce_requested_data done [12:51:29]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139406,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:51:29]process_action_free close_receipt [12:51:29]json_value_free [12:51:29]json_value_free done [12:51:29]process_json_proto returns [12:51:29]Send response to host [12:51:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139406,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:51:29]free response buf [12:51:29]execute_script done [12:51:29]execute_script returns [12:51:29]free content buf [12:51:29]Sock 9.Close socket [12:51:29]Sock 9.Thread stoped [12:51:44]accept exits with 8 [12:51:44]New connection [12:51:44]New thread 3067284836 created [12:51:44]Thread 3067141476 joined [12:51:44]Waiting for new connection... [12:51:44] Sock 8.Parse request [12:51:44]Sock 8.Check first char [12:51:44]Sock 8.First char is OK [12:51:44]request: POST /json_proto HTTP/1.0 [12:51:44]Method: POST [12:51:44]URL: /json_proto [12:51:44]Method is POST - this is cgi request [12:51:44]url: /json_proto [12:51:44]query_string will be loaded in cgi processing [12:51:44]execute_cgi json_proto POST (null) [12:51:44]execute_cgi path=json_proto method=POST [12:51:44]POST find Content-Length [12:51:44]Host: 172.17.50.196:8080 [12:51:44]Content-Length: 935 [12:51:44]Content-Type: application/json [12:51:44] [12:51:44]POST finish read [12:51:44]Found Content-Length = 935 [12:51:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335315", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:44]execute_script... [12:51: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 : (3)335315", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 105.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:51:44]POST & json_proto [12:51:44]process_json_proto [12:51:44]json parsed OK: [12:51:44]protocol is kg_v1.0 [12:51:44]action value=close_receipt [12:51:44]process_action close_receipt [12:51:44]cmd_close_receipt [12:51:44]MH_GetDate [12:51:44]Write to MH i2c: F0 00 00 23 41 53 [12:51:44]Write i2c OK [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: F0 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: F0 09 00 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: F0 09 00 23 41 00 E5 2B 22 67 72 0D 1C 67 F7 [12:51:44]GetLastDocTimeStamp 1730292690 [12:51:44]current date 1730292709 [12:51:44]FM_GetShiftState [12:51:44]SAM_PROTO_GetShiftState [12:51:44]wFMCommunicate request_size=4 [12:51:44]MH_SAM_APDU [12:51:44]CAPDU: 80 13 01 00 [12:51:44]Write to MH i2c: E2 08 00 24 41 80 13 01 00 00 00 00 00 E2 [12:51:44]Write i2c OK [12:51:44]MH_I2C_Read... [12:51:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:44]Read from MH i2c: E2 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: E2 0E 00 [12:51:44]MH_I2C_Read... [12:51:44]Read from MH i2c: E2 0E 00 24 41 00 09 00 01 86 76 21 67 00 00 00 00 90 00 72 [12:51:44]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:51:44]wFMCommunicate OK [12:51:44]SAM_PROTO_GetShiftState done [12:51:44]FM_GetShiftState done [12:51:44]opened in 1730246278 [12:51:44]opened+sec_in_day 1730332678 [12:51:44]quantity*price = 9500 [12:51:44]sum+1 = 9501 [12:51:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46231529 Mentos ПФ Арбуз 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 105.00 НСП 1% : 0.93 НДС 12% : 11.15 Наличными: 105.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 91 30.10.2024 12:51 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139407 ФПД: 10495310581888 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125149&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139407&fm=10495310581888&tin=02508201610067®Number=0000000000091631&sum=10500 0 [12:51:45]StoreToDocumentArchive [12:51:45]shift 556 fd 139407 [12:51:45]save to /storage/0556/doc_00139407 [12:51:45]save last doc name /storage/0556/doc_00139407 to /storage/kkm_last_doc_name [12:51:45]save OK [12:51:45]Clear old archive folders... [12:51:45]ProcessDocumentItem done err = 0, tmpTLVsize=401 [12:51:45]tlvbuf is 01193760 [12:51:45]SAM_PROTO_ClearQueue [12:51:45]wFMCommunicate request_size=4 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 09 00 00 [12:51:45]Write to MH i2c: E2 08 00 31 41 80 09 00 00 00 00 00 00 E4 [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 31 41 00 90 00 E6 [12:51:45]RAPDU: 90 00 [12:51:45]wFMCommunicate OK [12:51:45]SAM_PROTO_ClearQueue done [12:51:45]KKMCreateOFDPacket [12:51:45]OFDProtocolAddRootSTLVToBuf [12:51:45]FM_MakeSignedData [12:51:45]FM_MakeSignedData [12:51:45]SAM_PROTO_SignData [12:51:45]wFMCommunicate request_size=4 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 0D 01 02 [12:51:45]Write to MH i2c: E2 08 00 32 41 80 0D 01 02 00 00 00 00 EC [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 32 41 00 90 00 E7 [12:51:45]RAPDU: 90 00 [12:51:45]wFMCommunicate OK [12:51:45]wFMCommunicate request_size=255 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 [12:51:45]Write to MH i2c: E2 02 01 33 41 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 00 00 64 [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 33 41 00 90 00 E8 [12:51:45]RAPDU: 90 00 [12:51:45]wFMCommunicate OK [12:51:45]wFMCommunicate request_size=160 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 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 E5 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 20 02 00 35 04 06 00 09 8B A1 42 50 80 [12:51:45]Write to MH i2c: E2 A3 00 34 41 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 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 E5 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 20 02 00 35 04 06 00 09 8B A1 42 50 80 00 00 68 [12:51:45]Write i2c OK [12:51:45]MH_I2C_Read... [12:51:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:51:45]Read from MH i2c: E2 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 [12:51:45]MH_I2C_Read... [12:51:45]Read from MH i2c: E2 03 00 34 41 00 90 00 E9 [12:51:45]RAPDU: 90 00 [12:51:45]wFMCommunicate OK [12:51:45]wFMCommunicate request_size=4 [12:51:45]MH_SAM_APDU [12:51:45]CAPDU: 80 0D 03 02 [12:51:46]Write to MH i2c: E2 08 00 35 41 80 0D 03 02 00 00 00 00 F1 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:51:46]Read from MH i2c: E2 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 0B 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 0B 00 35 41 00 F1 D4 48 0C 81 B6 7A 5A 90 00 16 [12:51:46]RAPDU: F1 D4 48 0C 81 B6 7A 5A 90 00 [12:51:46]wFMCommunicate OK [12:51:46]SAM_PROTO_SignData done [12:51:46]FM_MakeSignedData done [12:51:46]CreateOFDProtocolMessage [12:51:46]wFMCommunicate request_size=4 [12:51:46]MH_SAM_APDU [12:51:46]CAPDU: 80 11 00 00 [12:51:46]Write to MH i2c: E2 08 00 36 41 80 11 00 00 00 00 00 00 F1 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:46]Read from MH i2c: E2 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 17 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: E2 17 00 36 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [12:51:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:51:46]wFMCommunicate OK [12:51:46]CreateOFDProtocolMessage done [12:51:46]OFDSenderStorePacket 139407 [12:51:46]StoreOFDPacket docnum=139407 [12:51:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A5 01 00 00 AA 61 9D 01 16 33 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 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 E5 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 20 02 00 35 04 06 00 09 8B A1 42 50 80 F1 D4 48 0C 81 B6 7A 5A [12:51:46]CheckFolder [12:51:46]dirname=/storage/ofd_packets [12:51:46]CheckFolder done [12:51:46]ProducePacketName [12:51:46]name=ofd_packets/00139407 [12:51:46]NVStorageSaveData ofd_packets/00139407 [12:51:46]File name is /storage/ofd_packets/00139407 [12:51:46]Write 451 bytes [12:51:46]NVStorageSaveData done [12:51:46]OFDSenderStorePacket done [12:51:46]KKMCreateOFDPacket done [12:51:46]NVStorageSaveData kkm_last_timestamp [12:51:46]File name is /storage/kkm_last_timestamp [12:51:46]Write 4 bytes [12:51:46]NVStorageSaveData done [12:51:46]ExternCall_PrintAddStr [12:51:46]wPrintStart [12:51:46]Write to MH i2c: 01 00 00 37 41 78 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 07 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 07 00 37 41 00 00 00 00 00 FF 0F 8D [12:51:46]RasterBufferAndPrint [12:51:46]line Счет N : (3)335315 [12:51:46]line ИНН: 02508201610067 [12:51:46]line Контрольно-Кассовый Чек [12:51:46]line ПРОДАЖА [12:51:46]line Товар: 4700000480302 [12:51:46]line Напиток энерг Nitro манго-клуб 0.45 ж/б [12:51:46]line 1.000 * 95.00 [12:51:46]line = 95.00 [12:51:46]line НДС 12% НСП 1% [12:51:46]line > о реализуемом товаре [12:51:46]line Товар: 46231529 [12:51:46]line Mentos ПФ Арбуз 6*100*2 [12:51:46]line 1.000 * 10.00 [12:51:46]line = 10.00 [12:51:46]line НДС 12% НСП 1% [12:51:46]line > о реализуемом товаре [12:51:46]line ИТОГО: 105.00 [12:51:46]line НСП 1% : 0.93 [12:51:46]line НДС 12% : 11.15 [12:51:46]line Наличными: 105.00 [12:51:46]line Безнал.: 0.00 [12:51:46]line Место: АЗС № 101 "Партнер Нефть" [12:51:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:51:46]line СНО: Общий режим [12:51:46]line Чек 91 30.10.2024 12:51 [12:51:46]line Смена: 556 ФФД: 1.0 [12:51:46]line ЗНМ: 0300000081 [12:51:46]line РНМ: 0000000000091631 [12:51:46]line Версия ККМ: 001 [12:51:46]line ФМ: 0000000000874669 [12:51:46]line ФД: 139407 [12:51:46]line ФПД: 10495310581888 [12:51:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125149&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139407&fm=10495310581888&tin=02508201610067®Number=0000000000091631&sum=10500 [12:51:46]line 0 [12:51:46]written 0, free lines is 4095 [12:51:46]Write to MH i2c: 01 00 00 66 41 A7 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 07 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: 01 07 00 66 41 00 00 00 00 00 A7 0C 61 [12:51:46]RasterBufferAndPrint [12:51:46]line [12:51:46]line [12:51:46]line [12:51:46]line [12:51:46]line [12:51:46]written 0, free lines is 3245 [12:51:46]MH_Cut [12:51:46]Write to MH i2c: D1 01 00 6D 41 01 80 [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: D1 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: D1 01 00 [12:51:46]MH_I2C_Read... [12:51:46]Read from MH i2c: D1 01 00 6D 41 00 7F [12:51:46]Write to MH i2c: 01 00 00 6E 41 AF [12:51:46]Write i2c OK [12:51:46]MH_I2C_Read... [12:51:47]*** Cut start [12:51:47]*** Partial cut [12:51:47]*** CUTSNS_PIN = 1 [12:51:47]*** CUTSNS_PIN = 0 [12:51:47]*** Brake cut motor [12:51:48]Read from MH i2c: 01 [12:51:48]MH_I2C_Read... [12:51:48]*** Stop cut motor [12:51:48]*** Cut end [12:51:48]Read from MH i2c: 01 07 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: 01 07 00 6E 41 00 00 00 00 00 FF 0F C4 [12:51:48]process_action close_receipt done [12:51:48]requested_data is exist [12:51:48]produce_requested_data [12:51:48]requested_item fm.sn is exist - process it [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 11 00 00 [12:51:48]Write to MH i2c: E2 08 00 6F 41 80 11 00 00 00 00 00 00 2A [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 17 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 17 00 6F 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 85 [12:51:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:51:48]wFMCommunicate OK [12:51:48]requested_item fd.num is exist - process it [12:51:48]SAM_PROTO_GetFieldsCounters [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 13 00 00 [12:51:48]Write to MH i2c: E2 08 00 70 41 80 13 00 00 00 00 00 00 2D [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 62 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 62 00 70 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8F 20 02 00 0E 04 04 00 2C 02 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 41 [12:51:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 8F 20 02 00 0E 04 04 00 2C 02 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 [12:51:48]wFMCommunicate OK [12:51:48]SAM_PROTO_GetFieldsCounters done [12:51:48]requested_item shift.num is exist - process it [12:51:48]requested_item shift.opened is exist - process it [12:51:48]req_shift_opened [12:51:48]FM_GetShiftState [12:51:48]SAM_PROTO_GetShiftState [12:51:48]wFMCommunicate request_size=4 [12:51:48]MH_SAM_APDU [12:51:48]CAPDU: 80 13 01 00 [12:51:48]Write to MH i2c: E2 08 00 71 41 80 13 01 00 00 00 00 00 2F [12:51:48]Write i2c OK [12:51:48]MH_I2C_Read... [12:51:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:51:48]Read from MH i2c: E2 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 0E 00 [12:51:48]MH_I2C_Read... [12:51:48]Read from MH i2c: E2 0E 00 71 41 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BF [12:51:48]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:51:48]wFMCommunicate OK [12:51:48]SAM_PROTO_GetShiftState done [12:51:48]FM_GetShiftState done [12:51:48]req_shift_opened done [12:51:48]requested_item shift.open_date is exist - process it [12:51:48]req_shift_open_date [12:51:48]req_shift_open_date done [12:51:48]produce_requested_data done [12:51:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139407,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:51:48]process_action_free close_receipt [12:51:48]json_value_free [12:51:48]json_value_free done [12:51:48]process_json_proto returns [12:51:48]Send response to host [12:51:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139407,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:51:48]free response buf [12:51:48]execute_script done [12:51:48]execute_script returns [12:51:48]free content buf [12:51:48]Sock 8.Close socket [12:51:48]Sock 8.Thread stoped [12:53:40]ConnectInit Can't connect to host [12:53:40]CommunicateWithHost connect error [12:53:40]CommunicateWithHost err = -1 [12:53:40]OFD Sender: Server communicate error [12:53:40]OFD Sender: Processing packet 139406 [packets to send 35, broken 33] [12:53:40]ProducePacketName [12:53:40]name=ofd_packets/00139406 [12:53:40]OFD Sender: To server: pG, [12:53:40]CommunicateWithHost lk.salyk.kg:30040 [12:53:40]ConnectInit lk.salyk.kg [12:53:40]Connected sock=8 [12:53:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 20 01 00 00 64 D5 18 01 43 32 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 34 38 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5C 44 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5A 00 00 00 F4 03 04 00 D2 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8E 20 02 00 35 04 06 00 DC FB CA 0C 69 40 BB 72 BE F6 3B 2C DD C4 [12:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C9 61 47 00 4F 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8E 20 02 00 F4 03 04 00 08 D8 21 67 B6 04 01 00 00 5F B2 13 E4 95 34 DE 88 [12:53:41]CommunicateWithHost err = 0 [12:53:41]CheckOFDResponse [12:53:41]1017 (14) - 77093643461234 [12:53:41]1041 (16) - 0000000000874669 [12:53:41]1040 (4) - 139406 [12:53:41]1012 (4) - 30.10.2024 06:54 [12:53:41]1206 (1) - 0 [12:53:41]OFD Sender: Remove packet 139406 [12:53:41]ProducePacketName [12:53:41]name=ofd_packets/00139406 [12:53:41]NVStorageDeleteData [12:53:41]OFD Sender: Processing packet 139407 [packets to send 34, broken 33] [12:53:41]ProducePacketName [12:53:41]name=ofd_packets/00139407 [12:53:41]OFD Sender: To server: pG, [12:53:41]CommunicateWithHost lk.salyk.kg:30040 [12:53:41]ConnectInit lk.salyk.kg [12:53:41]Connected sock=8 [12:53:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A5 01 00 00 AA 61 9D 01 16 33 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 04 29 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5B 04 00 00 00 00 07 04 06 00 04 29 00 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 E5 2B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 20 02 00 35 04 06 00 09 8B A1 42 50 80 F1 D4 48 0C 81 B6 7A 5A [12:53:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 17 0B 47 00 BE 74 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 8F 20 02 00 F4 03 04 00 09 D8 21 67 B6 04 01 00 00 C9 55 42 19 C3 51 7E 01 [12:53:41]CommunicateWithHost err = 0 [12:53:41]CheckOFDResponse [12:53:41]1017 (14) - 77093643461234 [12:53:41]1041 (16) - 0000000000874669 [12:53:41]1040 (4) - 139407 [12:53:41]1012 (4) - 30.10.2024 06:54 [12:53:41]1206 (1) - 0 [12:53:41]OFD Sender: Remove packet 139407 [12:53:41]ProducePacketName [12:53:41]name=ofd_packets/00139407 [12:53:41]NVStorageDeleteData [12:53:42]OFD Sender: No OFD packet to send [12:53:47]OFD Sender: No OFD packet to send [12:53:52]OFD Sender: No OFD packet to send [12:53:57]accept exits with 9 [12:53:57]New connection [12:53:57]New thread 3067141476 created [12:53:57]Thread 3067284836 joined [12:53:57]Waiting for new connection... [12:53:57] Sock 9.Parse request [12:53:57]Sock 9.Check first char [12:53:57]Sock 9.First char is OK [12:53:57]request: POST /json_proto HTTP/1.0 [12:53:57]Method: POST [12:53:57]URL: /json_proto [12:53:57]Method is POST - this is cgi request [12:53:57]url: /json_proto [12:53:57]query_string will be loaded in cgi processing [12:53:57]execute_cgi json_proto POST (null) [12:53:57]execute_cgi path=json_proto method=POST [12:53:57]POST find Content-Length [12:53:57]Host: 172.17.50.196:8080 [12:53:57]Content-Length: 688 [12:53:57]Content-Type: application/json [12:53:57] [12:53:57]POST finish read [12:53:57]Found Content-Length = 688 [12:53:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.190, "sum" : 1995.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1995.00, "total" : 1995.00, "payments": [ { "type": 0, "sum" : 1995.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:57]execute_script... [12:53: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)1094486", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 21", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.190, "sum" : 1995.68, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1995.00, "total" : 1995.00, "payments": [ { "type": 0, "sum" : 1995.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:53:57]POST & json_proto [12:53:57]process_json_proto [12:53:57]json parsed OK: [12:53:57]protocol is kg_v1.0 [12:53:57]action value=close_receipt [12:53:57]process_action close_receipt [12:53:57]cmd_close_receipt [12:53:57]MH_GetDate [12:53:57]Write to MH i2c: F0 00 00 72 41 A2 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: F0 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: F0 09 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: F0 09 00 72 41 00 6A 2C 22 67 72 0D 1C 67 CC [12:53:57]GetLastDocTimeStamp 1730292709 [12:53:57]current date 1730292842 [12:53:57]FM_GetShiftState [12:53:57]SAM_PROTO_GetShiftState [12:53:57]wFMCommunicate request_size=4 [12:53:57]MH_SAM_APDU [12:53:57]CAPDU: 80 13 01 00 [12:53:57]Write to MH i2c: E2 08 00 73 41 80 13 01 00 00 00 00 00 31 [12:53:57]Write i2c OK [12:53:57]MH_I2C_Read... [12:53:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:53:57]Read from MH i2c: E2 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 0E 00 [12:53:57]MH_I2C_Read... [12:53:57]Read from MH i2c: E2 0E 00 73 41 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C1 [12:53:57]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:53:57]wFMCommunicate OK [12:53:57]SAM_PROTO_GetShiftState done [12:53:57]FM_GetShiftState done [12:53:57]opened in 1730246278 [12:53:57]opened+sec_in_day 1730332678 [12:53:57]quantity*price = 199567 [12:53:57]sum+1 = 199569 [12:53:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.68 ИТОГО: 1995.00 Внесено: 1995.00 СДАЧА: 0.00 НСП 1% : 17.66 НДС 12% : 211.93 Наличными: 1995.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 92 30.10.2024 12:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139408 ФПД: 2796727937857 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125402&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139408&fm=2796727937857&tin=02508201610067®Number=0000000000091631&sum=199500 [12:53:58]StoreToDocumentArchive [12:53:58]shift 556 fd 139408 [12:53:58]save to /storage/0556/doc_00139408 [12:53:58]save last doc name /storage/0556/doc_00139408 to /storage/kkm_last_doc_name [12:53:58]save OK [12:53:58]Clear old archive folders... [12:53:58]ProcessDocumentItem done err = 0, tmpTLVsize=252 [12:53:58]tlvbuf is 0112F580 [12:53:58]SAM_PROTO_ClearQueue [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 09 00 00 [12:53:58]Write to MH i2c: E2 08 00 80 41 80 09 00 00 00 00 00 00 33 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 80 41 00 90 00 35 [12:53:58]RAPDU: 90 00 [12:53:58]wFMCommunicate OK [12:53:58]SAM_PROTO_ClearQueue done [12:53:58]KKMCreateOFDPacket [12:53:58]OFDProtocolAddRootSTLVToBuf [12:53:58]FM_MakeSignedData [12:53:58]FM_MakeSignedData [12:53:58]SAM_PROTO_SignData [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 0D 01 02 [12:53:58]Write to MH i2c: E2 08 00 81 41 80 0D 01 02 00 00 00 00 3B [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 81 41 00 90 00 36 [12:53:58]RAPDU: 90 00 [12:53:58]wFMCommunicate OK [12:53:58]wFMCommunicate request_size=255 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4E 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 52 00 00 00 00 07 04 06 00 4C 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 5C 00 00 00 F4 03 04 00 6A 2C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 20 02 00 35 04 06 00 [12:53:58]Write to MH i2c: E2 02 01 82 41 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4E 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 52 00 00 00 00 07 04 06 00 4C 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 5C 00 00 00 F4 03 04 00 6A 2C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 20 02 00 35 04 06 00 00 00 C9 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 82 41 00 90 00 37 [12:53:58]RAPDU: 90 00 [12:53:58]wFMCommunicate OK [12:53:58]wFMCommunicate request_size=11 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 0D 02 02 06 02 8B 29 F9 AB 41 [12:53:58]Write to MH i2c: E2 0E 00 83 41 80 0D 02 02 06 00 02 8B 29 F9 AB 41 00 00 E5 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 03 00 83 41 00 90 00 38 [12:53:58]RAPDU: 90 00 [12:53:58]wFMCommunicate OK [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 0D 03 02 [12:53:58]Write to MH i2c: E2 08 00 84 41 80 0D 03 02 00 00 00 00 40 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 0B 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 0B 00 84 41 00 A1 F7 C7 9C 40 F8 F0 62 90 00 C6 [12:53:58]RAPDU: A1 F7 C7 9C 40 F8 F0 62 90 00 [12:53:58]wFMCommunicate OK [12:53:58]SAM_PROTO_SignData done [12:53:58]FM_MakeSignedData done [12:53:58]CreateOFDProtocolMessage [12:53:58]wFMCommunicate request_size=4 [12:53:58]MH_SAM_APDU [12:53:58]CAPDU: 80 11 00 00 [12:53:58]Write to MH i2c: E2 08 00 85 41 80 11 00 00 00 00 00 00 40 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:53:58]Read from MH i2c: E2 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 17 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: E2 17 00 85 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9B [12:53:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:53:58]wFMCommunicate OK [12:53:58]CreateOFDProtocolMessage done [12:53:58]OFDSenderStorePacket 139408 [12:53:58]StoreOFDPacket docnum=139408 [12:53:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 AA 6A 08 01 74 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4E 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 52 00 00 00 00 07 04 06 00 4C 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 5C 00 00 00 F4 03 04 00 6A 2C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 20 02 00 35 04 06 00 02 8B 29 F9 AB 41 A1 F7 C7 9C 40 F8 F0 62 [12:53:58]CheckFolder [12:53:58]dirname=/storage/ofd_packets [12:53:58]CheckFolder done [12:53:58]ProducePacketName [12:53:58]name=ofd_packets/00139408 [12:53:58]NVStorageSaveData ofd_packets/00139408 [12:53:58]File name is /storage/ofd_packets/00139408 [12:53:58]Write 302 bytes [12:53:58]NVStorageSaveData done [12:53:58]OFDSenderStorePacket done [12:53:58]KKMCreateOFDPacket done [12:53:58]NVStorageSaveData kkm_last_timestamp [12:53:58]File name is /storage/kkm_last_timestamp [12:53:58]Write 4 bytes [12:53:58]NVStorageSaveData done [12:53:58]ExternCall_PrintAddStr [12:53:58]wPrintStart [12:53:58]Write to MH i2c: 01 00 00 86 41 C7 [12:53:58]Write i2c OK [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: 01 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: 01 07 00 [12:53:58]MH_I2C_Read... [12:53:58]Read from MH i2c: 01 07 00 86 41 00 00 00 00 00 FF 0F DC [12:53:58]RasterBufferAndPrint [12:53:58]line Счет N : (1)1094486 [12:53:58]line ИНН: 02508201610067 [12:53:58]line Контрольно-Кассовый Чек [12:53:58]line ПРОДАЖА [12:53:58]line ТРК (МРК, ГНК) : 21 [12:53:58]line Товар: 2710194210 [12:53:58]line ДТ(л)-К-2 [12:53:58]line 26.190 * 76.20 [12:53:58]line = 1995.68 [12:53:58]line НДС 12% НСП 1% [12:53:58]line > о реализуемом товаре [12:53:58]line ОКРУГЛЕНИЕ: -0.68 [12:53:58]line ИТОГО: 1995.00 [12:53:58]line Внесено: 1995.00 [12:53:58]line СДАЧА: 0.00 [12:53:58]line НСП 1% : 17.66 [12:53:58]line НДС 12% : 211.93 [12:53:58]line Наличными: 1995.00 [12:53:58]line Безнал.: 0.00 [12:53:58]line Место: АЗС № 101 "Партнер Нефть" [12:53:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:53:58]line СНО: Общий режим [12:53:58]line Чек 92 30.10.2024 12:54 [12:53:58]line Смена: 556 ФФД: 1.0 [12:53:58]line ЗНМ: 0300000081 [12:53:58]line РНМ: 0000000000091631 [12:53:58]line Версия ККМ: 001 [12:53:58]line ФМ: 0000000000874669 [12:53:58]line ФД: 139408 [12:53:58]line ФПД: 2796727937857 [12:53:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125402&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139408&fm=2796727937857&tin=02508201610067®Number=0000000000091631&sum=199500 [12:53:59]OFD Sender: Processing packet 139408 [packets to send 34, broken 33] [12:53:59]ProducePacketName [12:53:59]name=ofd_packets/00139408 [12:53:59]OFD Sender: To server: pG, [12:53:59]CommunicateWithHost lk.salyk.kg:30040 [12:53:59]ConnectInit lk.salyk.kg [12:53:59]written 0, free lines is 4095 [12:53:59]Connected sock=10 [12:53:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 AA 6A 08 01 74 C3 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4E 66 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 90 0B 03 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 0B 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E6 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C9 52 00 00 00 00 07 04 06 00 4C 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 5C 00 00 00 F4 03 04 00 6A 2C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 20 02 00 35 04 06 00 02 8B 29 F9 AB 41 A1 F7 C7 9C 40 F8 F0 62 [12:53:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CB 53 47 00 05 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 90 20 02 00 F4 03 04 00 1A D8 21 67 B6 04 01 00 00 7E DF C0 53 F1 B5 D6 EB [12:53:59]CommunicateWithHost err = 0 [12:53:59]CheckOFDResponse [12:53:59]1017 (14) - 77093643461234 [12:53:59]1041 (16) - 0000000000874669 [12:53:59]1040 (4) - 139408 [12:53:59]1012 (4) - 30.10.2024 06:54 [12:53:59]1206 (1) - 0 [12:53:59]OFD Sender: Remove packet 139408 [12:53:59]ProducePacketName [12:53:59]name=ofd_packets/00139408 [12:53:59]NVStorageDeleteData [12:53:59]Write to MH i2c: 01 00 00 B1 41 F2 [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 07 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: 01 07 00 B1 41 00 00 00 00 00 EC 0C F1 [12:53:59]RasterBufferAndPrint [12:53:59]line [12:53:59]line [12:53:59]line [12:53:59]line [12:53:59]line [12:53:59]written 0, free lines is 3314 [12:53:59]MH_Cut [12:53:59]Write to MH i2c: D1 01 00 B8 41 01 CB [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: D1 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: D1 01 00 [12:53:59]MH_I2C_Read... [12:53:59]Read from MH i2c: D1 01 00 B8 41 00 CA [12:53:59]Write to MH i2c: 01 00 00 B9 41 FA [12:53:59]Write i2c OK [12:53:59]MH_I2C_Read... [12:54:00]OFD Sender: No OFD packet to send [12:54:00]*** Cut start [12:54:00]*** Partial cut [12:54:00]*** CUTSNS_PIN = 1 [12:54:00]*** CUTSNS_PIN = 0 [12:54:00]*** Brake cut motor [12:54:00]Read from MH i2c: 01 [12:54:00]MH_I2C_Read... [12:54:00]*** Stop cut motor [12:54:00]*** Cut end [12:54:00]Read from MH i2c: 01 07 00 [12:54:00]MH_I2C_Read... [12:54:00]Read from MH i2c: 01 07 00 B9 41 00 00 00 00 00 FF 0F 0F [12:54:00]process_action close_receipt done [12:54:00]requested_data is exist [12:54:00]produce_requested_data [12:54:00]requested_item fm.sn is exist - process it [12:54:00]wFMCommunicate request_size=4 [12:54:00]MH_SAM_APDU [12:54:00]CAPDU: 80 11 00 00 [12:54:00]Write to MH i2c: E2 08 00 BA 41 80 11 00 00 00 00 00 00 75 [12:54:00]Write i2c OK [12:54:00]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 17 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 17 00 BA 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [12:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:54:01]wFMCommunicate OK [12:54:01]requested_item fd.num is exist - process it [12:54:01]SAM_PROTO_GetFieldsCounters [12:54:01]wFMCommunicate request_size=4 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 13 00 00 [12:54:01]Write to MH i2c: E2 08 00 BB 41 80 13 00 00 00 00 00 00 78 [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 62 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 62 00 BB 41 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 90 20 02 00 0E 04 04 00 2C 02 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 90 [12:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 90 20 02 00 0E 04 04 00 2C 02 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 [12:54:01]wFMCommunicate OK [12:54:01]SAM_PROTO_GetFieldsCounters done [12:54:01]requested_item shift.num is exist - process it [12:54:01]requested_item shift.opened is exist - process it [12:54:01]req_shift_opened [12:54:01]FM_GetShiftState [12:54:01]SAM_PROTO_GetShiftState [12:54:01]wFMCommunicate request_size=4 [12:54:01]MH_SAM_APDU [12:54:01]CAPDU: 80 13 01 00 [12:54:01]Write to MH i2c: E2 08 00 BC 41 80 13 01 00 00 00 00 00 7A [12:54:01]Write i2c OK [12:54:01]MH_I2C_Read... [12:54:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:54:01]Read from MH i2c: E2 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 0E 00 [12:54:01]MH_I2C_Read... [12:54:01]Read from MH i2c: E2 0E 00 BC 41 00 09 00 01 86 76 21 67 00 00 00 00 90 00 0A [12:54:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:54:01]wFMCommunicate OK [12:54:01]SAM_PROTO_GetShiftState done [12:54:01]FM_GetShiftState done [12:54:01]req_shift_opened done [12:54:01]requested_item shift.open_date is exist - process it [12:54:01]req_shift_open_date [12:54:01]req_shift_open_date done [12:54:01]produce_requested_data done [12:54:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139408,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:54:01]process_action_free close_receipt [12:54:01]json_value_free [12:54:01]json_value_free done [12:54:01]process_json_proto returns [12:54:01]Send response to host [12:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139408,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:54:01]free response buf [12:54:01]execute_script done [12:54:01]execute_script returns [12:54:01]free content buf [12:54:01]Sock 9.Close socket [12:54:01]Sock 9.Thread stoped [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:00]OFD Sender: No OFD packet to send [12:56:05]OFD Sender: No OFD packet to send [12:56:10]OFD Sender: No OFD packet to send [12:56:15]OFD Sender: No OFD packet to send [12:56:20]OFD Sender: No OFD packet to send [12:56:25]OFD Sender: No OFD packet to send [12:56:30]OFD Sender: No OFD packet to send [12:56:35]OFD Sender: No OFD packet to send [12:56:40]OFD Sender: No OFD packet to send [12:56:45]OFD Sender: No OFD packet to send [12:56:50]OFD Sender: No OFD packet to send [12:56:55]OFD Sender: No OFD packet to send [12:57:00]OFD Sender: No OFD packet to send [12:57:05]OFD Sender: No OFD packet to send [12:57:10]OFD Sender: No OFD packet to send [12:57:15]OFD Sender: No OFD packet to send [12:57:20]OFD Sender: No OFD packet to send [12:57:25]OFD Sender: No OFD packet to send [12:57:30]OFD Sender: No OFD packet to send [12:57:35]OFD Sender: No OFD packet to send [12:57:40]OFD Sender: No OFD packet to send [12:57:45]OFD Sender: No OFD packet to send [12:57:50]OFD Sender: No OFD packet to send [12:57:55]OFD Sender: No OFD packet to send [12:58:00]OFD Sender: No OFD packet to send [12:58:05]OFD Sender: No OFD packet to send [12:58:10]OFD Sender: No OFD packet to send [12:58:15]OFD Sender: No OFD packet to send [12:58:20]OFD Sender: No OFD packet to send [12:58:23]accept exits with 8 [12:58:23]New connection [12:58:23]New thread 3067284836 created [12:58:23]Thread 3067141476 joined [12:58:23]Waiting for new connection... [12:58:23] Sock 8.Parse request [12:58:23]Sock 8.Check first char [12:58:23]Sock 8.First char is OK [12:58:23]request: POST /json_proto HTTP/1.0 [12:58:23]Method: POST [12:58:23]URL: /json_proto [12:58:23]Method is POST - this is cgi request [12:58:23]url: /json_proto [12:58:23]query_string will be loaded in cgi processing [12:58:23]execute_cgi json_proto POST (null) [12:58:23]execute_cgi path=json_proto method=POST [12:58:23]POST find Content-Length [12:58:23]Host: 172.17.50.196:8080 [12:58:23]Content-Length: 1208 [12:58:23]Content-Type: application/json [12:58:23] [12:58:23]POST finish read [12:58:23]Found Content-Length = 1208 [12:58:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335316", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 585.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:23]execute_script... [12:58: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 : (3)335316", "tax_sys" : 0, "items" : [ { "code": "4700003150936", "name": "\u041D\u043E\u0432\u0430\u044F \u0412\u043E\u0434\u043A\u0430 Organic 40% 0,48\u043B", "price" : 560.00, "quantity" : 1.000, "sum" : 560.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000053020015", "name": "\u0411\u0443\u043C\u0430\u0436\u043D\u044B\u0435 \u0441\u0442\u0430\u043A\u0430\u043D\u044B 250\u043C\u043B 1\u0448\u0442", "price" : 7.00, "quantity" : 3.000, "sum" : 21.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 585.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:23]POST & json_proto [12:58:23]process_json_proto [12:58:23]json parsed OK: [12:58:23]protocol is kg_v1.0 [12:58:23]action value=close_receipt [12:58:23]process_action close_receipt [12:58:23]cmd_close_receipt [12:58:23]MH_GetDate [12:58:23]Write to MH i2c: F0 00 00 BD 41 ED [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: F0 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: F0 09 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: F0 09 00 BD 41 00 74 2D 22 67 72 0D 1C 67 22 [12:58:23]GetLastDocTimeStamp 1730292842 [12:58:23]current date 1730293108 [12:58:23]FM_GetShiftState [12:58:23]SAM_PROTO_GetShiftState [12:58:23]wFMCommunicate request_size=4 [12:58:23]MH_SAM_APDU [12:58:23]CAPDU: 80 13 01 00 [12:58:23]Write to MH i2c: E2 08 00 BE 41 80 13 01 00 00 00 00 00 7C [12:58:23]Write i2c OK [12:58:23]MH_I2C_Read... [12:58:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:23]Read from MH i2c: E2 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 0E 00 [12:58:23]MH_I2C_Read... [12:58:23]Read from MH i2c: E2 0E 00 BE 41 00 09 00 01 86 76 21 67 00 00 00 00 90 00 0C [12:58:23]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:58:23]wFMCommunicate OK [12:58:23]SAM_PROTO_GetShiftState done [12:58:23]FM_GetShiftState done [12:58:23]opened in 1730246278 [12:58:23]opened+sec_in_day 1730332678 [12:58:23]quantity*price = 56000 [12:58:23]sum+1 = 56001 [12:58:23]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000053020015 Бумажные стаканы 250мл 1шт 3.000 * 7.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 585.00 НСП 1% : 5.18 НДС 12% : 62.12 Наличными: 585.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 93 30.10.2024 12:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139409 ФПД: 74653749698421 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125828&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139409&fm=74653749698421&tin=02508201610067®Number=0000000000091631&sum=58500 0 [12:58:24]StoreToDocumentArchive [12:58:24]shift 556 fd 139409 [12:58:24]save to /storage/0556/doc_00139409 [12:58:24]save last doc name /storage/0556/doc_00139409 to /storage/kkm_last_doc_name [12:58:24]save OK [12:58:24]Clear old archive folders... [12:58:24]ProcessDocumentItem done err = 0, tmpTLVsize=507 [12:58:24]tlvbuf is 011E4FC0 [12:58:24]SAM_PROTO_ClearQueue [12:58:24]wFMCommunicate request_size=4 [12:58:24]MH_SAM_APDU [12:58:24]CAPDU: 80 09 00 00 [12:58:24]Write to MH i2c: E2 08 00 CB 41 80 09 00 00 00 00 00 00 7E [12:58:24]Write i2c OK [12:58:24]MH_I2C_Read... [12:58:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:24]Read from MH i2c: E2 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: E2 03 00 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: E2 03 00 CB 41 00 90 00 80 [12:58:24]RAPDU: 90 00 [12:58:24]wFMCommunicate OK [12:58:24]SAM_PROTO_ClearQueue done [12:58:24]KKMCreateOFDPacket [12:58:24]OFDProtocolAddRootSTLVToBuf [12:58:24]FM_MakeSignedData [12:58:24]FM_MakeSignedData [12:58:24]SAM_PROTO_SignData [12:58:24]wFMCommunicate request_size=4 [12:58:24]MH_SAM_APDU [12:58:24]CAPDU: 80 0D 01 02 [12:58:24]Write to MH i2c: E2 08 00 CC 41 80 0D 01 02 00 00 00 00 86 [12:58:24]Write i2c OK [12:58:24]MH_I2C_Read... [12:58:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:24]Read from MH i2c: E2 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: E2 03 00 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: E2 03 00 CC 41 00 90 00 81 [12:58:24]RAPDU: 90 00 [12:58:24]wFMCommunicate OK [12:58:24]wFMCommunicate request_size=255 [12:58:24]MH_SAM_APDU [12:58:24]CAPDU: 80 0D 02 02 FA 03 00 FB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 [12:58:24]Write to MH i2c: E2 02 01 CD 41 80 0D 02 02 FA 00 03 00 FB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 00 00 3A [12:58:24]Write i2c OK [12:58:24]MH_I2C_Read... [12:58:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:24]Read from MH i2c: E2 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: E2 03 00 [12:58:24]MH_I2C_Read... [12:58:24]Read from MH i2c: E2 03 00 CD 41 00 90 00 82 [12:58:24]RAPDU: 90 00 [12:58:24]wFMCommunicate OK [12:58:24]wFMCommunicate request_size=255 [12:58:24]MH_SAM_APDU [12:58:24]CAPDU: 80 0D 02 02 FA 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 84 E4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 74 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 91 20 02 [12:58:25]Write to MH i2c: E2 02 01 CE 41 80 0D 02 02 FA 00 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 84 E4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 74 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 91 20 02 00 00 C2 [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:25]Read from MH i2c: E2 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 03 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 03 00 CE 41 00 90 00 83 [12:58:25]RAPDU: 90 00 [12:58:25]wFMCommunicate OK [12:58:25]wFMCommunicate request_size=16 [12:58:25]MH_SAM_APDU [12:58:25]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 43 E5 AE 3B 5F 75 [12:58:25]Write to MH i2c: E2 13 00 CF 41 80 0D 02 02 0B 00 00 35 04 06 00 43 E5 AE 3B 5F 75 00 00 C4 [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]OFD Sender: No OFD packet to send [12:58:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:25]Read from MH i2c: E2 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 03 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 03 00 CF 41 00 90 00 84 [12:58:25]RAPDU: 90 00 [12:58:25]wFMCommunicate OK [12:58:25]wFMCommunicate request_size=4 [12:58:25]MH_SAM_APDU [12:58:25]CAPDU: 80 0D 03 02 [12:58:25]Write to MH i2c: E2 08 00 D0 41 80 0D 03 02 00 00 00 00 8C [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:25]Read from MH i2c: E2 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 0B 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 0B 00 D0 41 00 A8 89 57 4E 04 5A EC 9C 90 00 49 [12:58:25]RAPDU: A8 89 57 4E 04 5A EC 9C 90 00 [12:58:25]wFMCommunicate OK [12:58:25]SAM_PROTO_SignData done [12:58:25]FM_MakeSignedData done [12:58:25]CreateOFDProtocolMessage [12:58:25]wFMCommunicate request_size=4 [12:58:25]MH_SAM_APDU [12:58:25]CAPDU: 80 11 00 00 [12:58:25]Write to MH i2c: E2 08 00 D1 41 80 11 00 00 00 00 00 00 8C [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:25]Read from MH i2c: E2 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 17 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: E2 17 00 D1 41 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E7 [12:58:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:58:25]wFMCommunicate OK [12:58:25]CreateOFDProtocolMessage done [12:58:25]OFDSenderStorePacket 139409 [12:58:25]StoreOFDPacket docnum=139409 [12:58:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 02 00 00 83 21 07 02 AA 1E 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 84 E4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 74 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 91 20 02 00 35 04 06 00 43 E5 AE 3B 5F 75 A8 89 57 4E 04 5A EC 9C [12:58:25]CheckFolder [12:58:25]dirname=/storage/ofd_packets [12:58:25]CheckFolder done [12:58:25]ProducePacketName [12:58:25]name=ofd_packets/00139409 [12:58:25]NVStorageSaveData ofd_packets/00139409 [12:58:25]File name is /storage/ofd_packets/00139409 [12:58:25]Write 557 bytes [12:58:25]NVStorageSaveData done [12:58:25]OFDSenderStorePacket done [12:58:25]KKMCreateOFDPacket done [12:58:25]NVStorageSaveData kkm_last_timestamp [12:58:25]File name is /storage/kkm_last_timestamp [12:58:25]Write 4 bytes [12:58:25]NVStorageSaveData done [12:58:25]ExternCall_PrintAddStr [12:58:25]wPrintStart [12:58:25]Write to MH i2c: 01 00 00 D2 41 13 [12:58:25]Write i2c OK [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: 01 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: 01 07 00 [12:58:25]MH_I2C_Read... [12:58:25]Read from MH i2c: 01 07 00 D2 41 00 00 00 00 00 FF 0F 28 [12:58:25]RasterBufferAndPrint [12:58:25]line Счет N : (3)335316 [12:58:25]line ИНН: 02508201610067 [12:58:25]line Контрольно-Кассовый Чек [12:58:25]line ПРОДАЖА [12:58:25]line Товар: 4700003150936 [12:58:25]line Новая Водка Organic 40% 0,48л [12:58:25]line 1.000 * 560.00 [12:58:25]line = 560.00 [12:58:25]line НДС 12% НСП 1% [12:58:25]line > о реализуемом товаре [12:58:25]line Товар: 2000053020015 [12:58:25]line Бумажные стаканы 250мл 1шт [12:58:25]line 3.000 * 7.00 [12:58:25]line = 21.00 [12:58:25]line НДС 12% НСП 1% [12:58:25]line > о реализуемом товаре [12:58:25]line Товар: 2000031750019 [12:58:25]line Пакет Партнер Нефть [12:58:25]line 1.000 * 4.00 [12:58:25]line = 4.00 [12:58:25]line НДС 12% НСП 1% [12:58:25]line > о реализуемом товаре [12:58:25]line ИТОГО: 585.00 [12:58:25]line НСП 1% : 5.18 [12:58:25]line НДС 12% : 62.12 [12:58:25]line Наличными: 585.00 [12:58:25]line Безнал.: 0.00 [12:58:25]line Место: АЗС № 101 "Партнер Нефть" [12:58:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:58:25]line СНО: Общий режим [12:58:25]line Чек 93 30.10.2024 12:58 [12:58:25]line Смена: 556 ФФД: 1.0 [12:58:25]line ЗНМ: 0300000081 [12:58:25]line РНМ: 0000000000091631 [12:58:25]line Версия ККМ: 001 [12:58:25]line ФМ: 0000000000874669 [12:58:25]line ФД: 139409 [12:58:25]line ФПД: 74653749698421 [12:58:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125828&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139409&fm=74653749698421&tin=02508201610067®Number=0000000000091631&sum=58500 [12:58:25]line 0 [12:58:25]OFD Sender: Processing packet 139409 [packets to send 34, broken 33] [12:58:25]ProducePacketName [12:58:25]name=ofd_packets/00139409 [12:58:25]OFD Sender: To server: pG, [12:58:25]CommunicateWithHost lk.salyk.kg:30040 [12:58:25]ConnectInit lk.salyk.kg [12:58:25]written 0, free lines is 4095 [12:58:25]Connected sock=10 [12:58:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 02 00 00 83 21 07 02 AA 1E 5A 03 01 00 03 00 FB 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 34 37 30 30 30 30 33 31 35 30 39 33 36 06 04 28 00 D0 9D D0 BE D0 B2 D0 B0 D1 8F 20 D0 92 D0 BE D0 B4 D0 BA D0 B0 20 4F 72 67 61 6E 69 63 20 34 30 25 20 30 2C 34 38 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C0 DA 00 00 00 00 13 04 06 00 C0 DA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 32 30 30 30 30 35 33 30 32 30 30 31 35 06 04 2D 00 D0 91 D1 83 D0 BC D0 B0 D0 B6 D0 BD D1 8B D0 B5 20 D1 81 D1 82 D0 B0 D0 BA D0 B0 D0 BD D1 8B 20 32 35 30 D0 BC D0 BB 20 31 D1 88 D1 82 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 BC 02 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 E4 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 06 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 44 18 00 00 00 00 07 04 06 00 84 E4 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 5D 00 00 00 F4 03 04 00 74 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 91 20 02 00 35 04 06 00 43 E5 AE 3B 5F 75 A8 89 57 4E 04 5A EC 9C [12:58:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2A 93 47 00 27 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 38 37 34 36 36 39 10 04 04 00 91 20 02 00 F4 03 04 00 25 D9 21 67 B6 04 01 00 00 4E CF FD DA 20 59 1C 35 [12:58:26]CommunicateWithHost err = 0 [12:58:26]CheckOFDResponse [12:58:26]1017 (14) - 77093643461234 [12:58:26]1041 (16) - 0000000000874669 [12:58:26]1040 (4) - 139409 [12:58:26]1012 (4) - 30.10.2024 06:58 [12:58:26]1206 (1) - 0 [12:58:26]OFD Sender: Remove packet 139409 [12:58:26]ProducePacketName [12:58:26]name=ofd_packets/00139409 [12:58:26]NVStorageDeleteData [12:58:26]Write to MH i2c: 01 00 00 08 42 4A [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: 01 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: 01 07 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: 01 07 00 08 42 00 00 00 00 00 49 0C A6 [12:58:26]RasterBufferAndPrint [12:58:26]line [12:58:26]line [12:58:26]line [12:58:26]line [12:58:26]line [12:58:26]written 0, free lines is 3157 [12:58:26]MH_Cut [12:58:26]Write to MH i2c: D1 01 00 0F 42 01 23 [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: D1 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: D1 01 00 [12:58:26]MH_I2C_Read... [12:58:26]Read from MH i2c: D1 01 00 0F 42 00 22 [12:58:26]Write to MH i2c: 01 00 00 10 42 52 [12:58:26]Write i2c OK [12:58:26]MH_I2C_Read... [12:58:26]OFD Sender: No OFD packet to send [12:58:27]*** Cut start [12:58:27]*** Partial cut [12:58:27]*** CUTSNS_PIN = 1 [12:58:27]*** CUTSNS_PIN = 0 [12:58:27]*** Brake cut motor [12:58:27]Read from MH i2c: 01 [12:58:27]MH_I2C_Read... [12:58:27]*** Stop cut motor [12:58:27]*** Cut end [12:58:27]Read from MH i2c: 01 07 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: 01 07 00 10 42 00 00 00 00 00 FF 0F 67 [12:58:27]process_action close_receipt done [12:58:27]requested_data is exist [12:58:27]produce_requested_data [12:58:27]requested_item fm.sn is exist - process it [12:58:27]wFMCommunicate request_size=4 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 11 00 00 [12:58:27]Write to MH i2c: E2 08 00 11 42 80 11 00 00 00 00 00 00 CD [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 17 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 17 00 11 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 28 [12:58:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:58:27]wFMCommunicate OK [12:58:27]requested_item fd.num is exist - process it [12:58:27]SAM_PROTO_GetFieldsCounters [12:58:27]wFMCommunicate request_size=4 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 13 00 00 [12:58:27]Write to MH i2c: E2 08 00 12 42 80 13 00 00 00 00 00 00 D0 [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 62 00 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 62 00 12 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 91 20 02 00 0E 04 04 00 2C 02 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 EC [12:58:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 91 20 02 00 0E 04 04 00 2C 02 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 [12:58:27]wFMCommunicate OK [12:58:27]SAM_PROTO_GetFieldsCounters done [12:58:27]requested_item shift.num is exist - process it [12:58:27]requested_item shift.opened is exist - process it [12:58:27]req_shift_opened [12:58:27]FM_GetShiftState [12:58:27]SAM_PROTO_GetShiftState [12:58:27]wFMCommunicate request_size=4 [12:58:27]MH_SAM_APDU [12:58:27]CAPDU: 80 13 01 00 [12:58:27]Write to MH i2c: E2 08 00 13 42 80 13 01 00 00 00 00 00 D2 [12:58:27]Write i2c OK [12:58:27]MH_I2C_Read... [12:58:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:27]Read from MH i2c: E2 [12:58:27]MH_I2C_Read... [12:58:27]Read from MH i2c: E2 0E 00 [12:58:28]MH_I2C_Read... [12:58:28]Read from MH i2c: E2 0E 00 13 42 00 09 00 01 86 76 21 67 00 00 00 00 90 00 62 [12:58:28]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:58:28]wFMCommunicate OK [12:58:28]SAM_PROTO_GetShiftState done [12:58:28]FM_GetShiftState done [12:58:28]req_shift_opened done [12:58:28]requested_item shift.open_date is exist - process it [12:58:28]req_shift_open_date [12:58:28]req_shift_open_date done [12:58:28]produce_requested_data done [12:58:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139409,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:58:28]process_action_free close_receipt [12:58:28]json_value_free [12:58:28]json_value_free done [12:58:28]process_json_proto returns [12:58:28]Send response to host [12:58:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139409,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:58:28]free response buf [12:58:28]execute_script done [12:58:28]execute_script returns [12:58:28]free content buf [12:58:28]Sock 8.Close socket [12:58:28]Sock 8.Thread stoped [12:58:31]OFD Sender: No OFD packet to send [12:58:36]OFD Sender: No OFD packet to send [12:58:41]OFD Sender: No OFD packet to send [12:58:46]OFD Sender: No OFD packet to send [12:58:49]accept exits with 9 [12:58:49]New connection [12:58:49]New thread 3067141476 created [12:58:49]Thread 3067284836 joined [12:58:49]Waiting for new connection... [12:58:49] Sock 9.Parse request [12:58:49]Sock 9.Check first char [12:58:49]Sock 9.First char is OK [12:58:49]request: POST /json_proto HTTP/1.0 [12:58:49]Method: POST [12:58:49]URL: /json_proto [12:58:49]Method is POST - this is cgi request [12:58:49]url: /json_proto [12:58:49]query_string will be loaded in cgi processing [12:58:49]execute_cgi json_proto POST (null) [12:58:49]execute_cgi path=json_proto method=POST [12:58:49]POST find Content-Length [12:58:49]Host: 172.17.50.196:8080 [12:58:49]Content-Length: 665 [12:58:49]Content-Type: application/json [12:58:49] [12:58:49]POST finish read [12:58:49]Found Content-Length = 665 [12:58:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335317", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:49]execute_script... [12: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 : (3)335317", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:58:49]POST & json_proto [12:58:49]process_json_proto [12:58:49]json parsed OK: [12:58:49]protocol is kg_v1.0 [12:58:49]action value=close_receipt [12:58:49]process_action close_receipt [12:58:49]cmd_close_receipt [12:58:49]MH_GetDate [12:58:49]Write to MH i2c: F0 00 00 14 42 45 [12:58:49]Write i2c OK [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: F0 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: F0 09 00 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: F0 09 00 14 42 00 8E 2D 22 67 72 0D 1C 67 94 [12:58:49]GetLastDocTimeStamp 1730293108 [12:58:49]current date 1730293134 [12:58:49]FM_GetShiftState [12:58:49]SAM_PROTO_GetShiftState [12:58:49]wFMCommunicate request_size=4 [12:58:49]MH_SAM_APDU [12:58:49]CAPDU: 80 13 01 00 [12:58:49]Write to MH i2c: E2 08 00 15 42 80 13 01 00 00 00 00 00 D4 [12:58:49]Write i2c OK [12:58:49]MH_I2C_Read... [12:58:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:49]Read from MH i2c: E2 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: E2 0E 00 [12:58:49]MH_I2C_Read... [12:58:49]Read from MH i2c: E2 0E 00 15 42 00 09 00 01 86 76 21 67 00 00 00 00 90 00 64 [12:58:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:58:49]wFMCommunicate OK [12:58:49]SAM_PROTO_GetShiftState done [12:58:49]FM_GetShiftState done [12:58:49]opened in 1730246278 [12:58:49]opened+sec_in_day 1730332678 [12:58:49]quantity*price = 9500 [12:58:49]sum+1 = 9501 [12:58:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 94 30.10.2024 12:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139410 ФПД: 94063344400137 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125854&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139410&fm=94063344400137&tin=02508201610067®Number=0000000000091631&sum=9500 0 [12:58:50]StoreToDocumentArchive [12:58:50]shift 556 fd 139410 [12:58:50]save to /storage/0556/doc_00139410 [12:58:50]save last doc name /storage/0556/doc_00139410 to /storage/kkm_last_doc_name [12:58:50]save OK [12:58:50]Clear old archive folders... [12:58:50]ProcessDocumentItem done err = 0, tmpTLVsize=296 [12:58:50]tlvbuf is 0112D020 [12:58:50]SAM_PROTO_ClearQueue [12:58:50]wFMCommunicate request_size=4 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 09 00 00 [12:58:50]Write to MH i2c: E2 08 00 22 42 80 09 00 00 00 00 00 00 D6 [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 03 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 03 00 22 42 00 90 00 D8 [12:58:50]RAPDU: 90 00 [12:58:50]wFMCommunicate OK [12:58:50]SAM_PROTO_ClearQueue done [12:58:50]KKMCreateOFDPacket [12:58:50]OFDProtocolAddRootSTLVToBuf [12:58:50]FM_MakeSignedData [12:58:50]FM_MakeSignedData [12:58:50]SAM_PROTO_SignData [12:58:50]wFMCommunicate request_size=4 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 0D 01 02 [12:58:50]Write to MH i2c: E2 08 00 23 42 80 0D 01 02 00 00 00 00 DE [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 03 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 03 00 23 42 00 90 00 D9 [12:58:50]RAPDU: 90 00 [12:58:50]wFMCommunicate OK [12:58:50]wFMCommunicate request_size=255 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 5E 00 00 00 F4 03 04 00 8E 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [12:58:50]Write to MH i2c: E2 02 01 24 42 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 5E 00 00 00 F4 03 04 00 8E 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 2E [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 03 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 03 00 24 42 00 90 00 DA [12:58:50]RAPDU: 90 00 [12:58:50]wFMCommunicate OK [12:58:50]wFMCommunicate request_size=55 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 20 02 00 35 04 06 00 55 8C D4 3A B7 09 [12:58:50]Write to MH i2c: E2 3A 00 25 42 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 20 02 00 35 04 06 00 55 8C D4 3A B7 09 00 00 A0 [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 03 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 03 00 25 42 00 90 00 DB [12:58:50]RAPDU: 90 00 [12:58:50]wFMCommunicate OK [12:58:50]wFMCommunicate request_size=4 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 0D 03 02 [12:58:50]Write to MH i2c: E2 08 00 26 42 80 0D 03 02 00 00 00 00 E3 [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 0B 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 0B 00 26 42 00 96 2E BC A3 98 12 B6 91 90 00 F8 [12:58:50]RAPDU: 96 2E BC A3 98 12 B6 91 90 00 [12:58:50]wFMCommunicate OK [12:58:50]SAM_PROTO_SignData done [12:58:50]FM_MakeSignedData done [12:58:50]CreateOFDProtocolMessage [12:58:50]wFMCommunicate request_size=4 [12:58:50]MH_SAM_APDU [12:58:50]CAPDU: 80 11 00 00 [12:58:50]Write to MH i2c: E2 08 00 27 42 80 11 00 00 00 00 00 00 E3 [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:50]Read from MH i2c: E2 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 17 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: E2 17 00 27 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3E [12:58:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:58:50]wFMCommunicate OK [12:58:50]CreateOFDProtocolMessage done [12:58:50]OFDSenderStorePacket 139410 [12:58:50]StoreOFDPacket docnum=139410 [12:58:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 B6 E8 34 01 6F A9 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 5E 00 00 00 F4 03 04 00 8E 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 20 02 00 35 04 06 00 55 8C D4 3A B7 09 96 2E BC A3 98 12 B6 91 [12:58:50]CheckFolder [12:58:50]dirname=/storage/ofd_packets [12:58:50]CheckFolder done [12:58:50]ProducePacketName [12:58:50]name=ofd_packets/00139410 [12:58:50]NVStorageSaveData ofd_packets/00139410 [12:58:50]File name is /storage/ofd_packets/00139410 [12:58:50]Write 346 bytes [12:58:50]NVStorageSaveData done [12:58:50]OFDSenderStorePacket done [12:58:50]KKMCreateOFDPacket done [12:58:50]NVStorageSaveData kkm_last_timestamp [12:58:50]File name is /storage/kkm_last_timestamp [12:58:50]Write 4 bytes [12:58:50]NVStorageSaveData done [12:58:50]ExternCall_PrintAddStr [12:58:50]wPrintStart [12:58:50]Write to MH i2c: 01 00 00 28 42 6A [12:58:50]Write i2c OK [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: 01 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: 01 07 00 [12:58:50]MH_I2C_Read... [12:58:50]Read from MH i2c: 01 07 00 28 42 00 00 00 00 00 FF 0F 7F [12:58:50]RasterBufferAndPrint [12:58:50]line Счет N : (3)335317 [12:58:50]line ИНН: 02508201610067 [12:58:50]line Контрольно-Кассовый Чек [12:58:50]line ПРОДАЖА [12:58:50]line Товар: 4631150682851 [12:58:50]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [12:58:50]line 1.000 * 95.00 [12:58:50]line = 95.00 [12:58:50]line НДС 12% НСП 1% [12:58:50]line > о реализуемом товаре [12:58:50]line ИТОГО: 95.00 [12:58:50]line НСП 1% : 0.84 [12:58:50]line НДС 12% : 10.09 [12:58:50]line Наличными: 95.00 [12:58:50]line Безнал.: 0.00 [12:58:50]line Место: АЗС № 101 "Партнер Нефть" [12:58:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:58:50]line СНО: Общий режим [12:58:50]line Чек 94 30.10.2024 12:58 [12:58:50]line Смена: 556 ФФД: 1.0 [12:58:50]line ЗНМ: 0300000081 [12:58:50]line РНМ: 0000000000091631 [12:58:50]line Версия ККМ: 001 [12:58:50]line ФМ: 0000000000874669 [12:58:50]line ФД: 139410 [12:58:50]line ФПД: 94063344400137 [12:58:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125854&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139410&fm=94063344400137&tin=02508201610067®Number=0000000000091631&sum=9500 [12:58:51]line 0 [12:58:51]OFD Sender: Processing packet 139410 [packets to send 34, broken 33] [12:58:51]ProducePacketName [12:58:51]name=ofd_packets/00139410 [12:58:51]OFD Sender: To server: pG, [12:58:51]CommunicateWithHost lk.salyk.kg:30040 [12:58:51]ConnectInit lk.salyk.kg [12:58:51]written 0, free lines is 4095 [12:58:51]Connected sock=10 [12:58:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 B6 E8 34 01 6F A9 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 5E 00 00 00 F4 03 04 00 8E 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 20 02 00 35 04 06 00 55 8C D4 3A B7 09 96 2E BC A3 98 12 B6 91 [12:58:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 58 A9 47 00 35 62 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 92 20 02 00 F4 03 04 00 3E D9 21 67 B6 04 01 00 00 79 68 C7 65 64 19 E6 65 [12:58:51]CommunicateWithHost err = 0 [12:58:51]CheckOFDResponse [12:58:51]1017 (14) - 77093643461234 [12:58:51]1041 (16) - 0000000000874669 [12:58:51]1040 (4) - 139410 [12:58:51]1012 (4) - 30.10.2024 06:59 [12:58:51]1206 (1) - 0 [12:58:51]OFD Sender: Remove packet 139410 [12:58:51]ProducePacketName [12:58:51]name=ofd_packets/00139410 [12:58:51]NVStorageDeleteData [12:58:51]Write to MH i2c: 01 00 00 51 42 93 [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: 01 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: 01 07 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: 01 07 00 51 42 00 00 00 00 00 09 0D B0 [12:58:51]RasterBufferAndPrint [12:58:51]line [12:58:51]line [12:58:51]line [12:58:51]line [12:58:51]line [12:58:51]written 0, free lines is 3346 [12:58:51]MH_Cut [12:58:51]Write to MH i2c: D1 01 00 58 42 01 6C [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: D1 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: D1 01 00 [12:58:51]MH_I2C_Read... [12:58:51]Read from MH i2c: D1 01 00 58 42 00 6B [12:58:51]Write to MH i2c: 01 00 00 59 42 9B [12:58:51]Write i2c OK [12:58:51]MH_I2C_Read... [12:58:51]OFD Sender: No OFD packet to send [12:58:52]*** Cut start [12:58:52]*** Partial cut [12:58:52]*** CUTSNS_PIN = 1 [12:58:52]*** CUTSNS_PIN = 0 [12:58:52]*** Brake cut motor [12:58:52]Read from MH i2c: 01 [12:58:52]MH_I2C_Read... [12:58:52]*** Stop cut motor [12:58:52]*** Cut end [12:58:52]Read from MH i2c: 01 07 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: 01 07 00 59 42 00 00 00 00 00 FF 0F B0 [12:58:52]process_action close_receipt done [12:58:52]requested_data is exist [12:58:52]produce_requested_data [12:58:52]requested_item fm.sn is exist - process it [12:58:52]wFMCommunicate request_size=4 [12:58:52]MH_SAM_APDU [12:58:52]CAPDU: 80 11 00 00 [12:58:52]Write to MH i2c: E2 08 00 5A 42 80 11 00 00 00 00 00 00 16 [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:58:52]Read from MH i2c: E2 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 17 00 [12:58:52]MH_I2C_Read... [12:58:52]Read from MH i2c: E2 17 00 5A 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 71 [12:58:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:58:52]wFMCommunicate OK [12:58:52]requested_item fd.num is exist - process it [12:58:52]SAM_PROTO_GetFieldsCounters [12:58:52]wFMCommunicate request_size=4 [12:58:52]MH_SAM_APDU [12:58:52]CAPDU: 80 13 00 00 [12:58:52]Write to MH i2c: E2 08 00 5B 42 80 13 00 00 00 00 00 00 19 [12:58:52]Write i2c OK [12:58:52]MH_I2C_Read... [12:58:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:58:53]Read from MH i2c: E2 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: E2 62 00 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: E2 62 00 5B 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 92 20 02 00 0E 04 04 00 2C 02 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 39 [12:58:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 92 20 02 00 0E 04 04 00 2C 02 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 [12:58:53]wFMCommunicate OK [12:58:53]SAM_PROTO_GetFieldsCounters done [12:58:53]requested_item shift.num is exist - process it [12:58:53]requested_item shift.opened is exist - process it [12:58:53]req_shift_opened [12:58:53]FM_GetShiftState [12:58:53]SAM_PROTO_GetShiftState [12:58:53]wFMCommunicate request_size=4 [12:58:53]MH_SAM_APDU [12:58:53]CAPDU: 80 13 01 00 [12:58:53]Write to MH i2c: E2 08 00 5C 42 80 13 01 00 00 00 00 00 1B [12:58:53]Write i2c OK [12:58:53]MH_I2C_Read... [12:58:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:58:53]Read from MH i2c: E2 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: E2 0E 00 [12:58:53]MH_I2C_Read... [12:58:53]Read from MH i2c: E2 0E 00 5C 42 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AB [12:58:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:58:53]wFMCommunicate OK [12:58:53]SAM_PROTO_GetShiftState done [12:58:53]FM_GetShiftState done [12:58:53]req_shift_opened done [12:58:53]requested_item shift.open_date is exist - process it [12:58:53]req_shift_open_date [12:58:53]req_shift_open_date done [12:58:53]produce_requested_data done [12:58:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139410,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:58:53]process_action_free close_receipt [12:58:53]json_value_free [12:58:53]json_value_free done [12:58:53]process_json_proto returns [12:58:53]Send response to host [12:58:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139410,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:58:53]free response buf [12:58:53]execute_script done [12:58:53]execute_script returns [12:58:53]free content buf [12:58:53]Sock 9.Close socket [12:58:53]Sock 9.Thread stoped [12:58:56]OFD Sender: No OFD packet to send [12:59:01]OFD Sender: No OFD packet to send [12:59:06]OFD Sender: No OFD packet to send [12:59:11]OFD Sender: No OFD packet to send [12:59:16]OFD Sender: No OFD packet to send [12:59:21]OFD Sender: No OFD packet to send [12:59:26]OFD Sender: No OFD packet to send [12:59:31]OFD Sender: No OFD packet to send [12:59:36]OFD Sender: No OFD packet to send [12:59:37]accept exits with 8 [12:59:37]New connection [12:59:37]New thread 3067284836 created [12:59:37]Thread 3067141476 joined [12:59:37]Waiting for new connection... [12:59:37] Sock 8.Parse request [12:59:37]Sock 8.Check first char [12:59:37]Sock 8.First char is OK [12:59:37]request: POST /json_proto HTTP/1.0 [12:59:37]Method: POST [12:59:37]URL: /json_proto [12:59:37]Method is POST - this is cgi request [12:59:37]url: /json_proto [12:59:37]query_string will be loaded in cgi processing [12:59:37]execute_cgi json_proto POST (null) [12:59:37]execute_cgi path=json_proto method=POST [12:59:37]POST find Content-Length [12:59:37]Host: 172.17.50.196:8080 [12:59:37]Content-Length: 663 [12:59:37]Content-Type: application/json [12:59:37] [12:59:37]POST finish read [12:59:37]Found Content-Length = 663 [12:59:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335318", "tax_sys" : 0, "items" : [ { "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:37]execute_script... [12: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 : (3)335318", "tax_sys" : 0, "items" : [ { "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [12:59:37]POST & json_proto [12:59:37]process_json_proto [12:59:37]json parsed OK: [12:59:37]protocol is kg_v1.0 [12:59:37]action value=close_receipt [12:59:37]process_action close_receipt [12:59:37]cmd_close_receipt [12:59:37]MH_GetDate [12:59:37]Write to MH i2c: F0 00 00 5D 42 8E [12:59:37]Write i2c OK [12:59:37]MH_I2C_Read... [12:59:37]Read from MH i2c: F0 [12:59:37]MH_I2C_Read... [12:59:37]Read from MH i2c: F0 09 00 [12:59:37]MH_I2C_Read... [12:59:37]Read from MH i2c: F0 09 00 5D 42 00 BF 2D 22 67 72 0D 1C 67 0E [12:59:37]GetLastDocTimeStamp 1730293134 [12:59:37]current date 1730293183 [12:59:37]FM_GetShiftState [12:59:37]SAM_PROTO_GetShiftState [12:59:37]wFMCommunicate request_size=4 [12:59:37]MH_SAM_APDU [12:59:37]CAPDU: 80 13 01 00 [12:59:37]Write to MH i2c: E2 08 00 5E 42 80 13 01 00 00 00 00 00 1D [12:59:37]Write i2c OK [12:59:37]MH_I2C_Read... [12:59:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:37]Read from MH i2c: E2 [12:59:37]MH_I2C_Read... [12:59:37]Read from MH i2c: E2 0E 00 [12:59:37]MH_I2C_Read... [12:59:37]Read from MH i2c: E2 0E 00 5E 42 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AD [12:59:37]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:59:37]wFMCommunicate OK [12:59:37]SAM_PROTO_GetShiftState done [12:59:37]FM_GetShiftState done [12:59:37]opened in 1730246278 [12:59:37]opened+sec_in_day 1730332678 [12:59:37]quantity*price = 14900 [12:59:37]sum+1 = 14901 [12:59:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 95 30.10.2024 12:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139411 ФПД: 228043705241379 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125943&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139411&fm=228043705241379&tin=02508201610067®Number=0000000000091631&sum=14900 0 [12:59:38]StoreToDocumentArchive [12:59:38]shift 556 fd 139411 [12:59:38]save to /storage/0556/doc_00139411 [12:59:39]save last doc name /storage/0556/doc_00139411 to /storage/kkm_last_doc_name [12:59:39]save OK [12:59:39]Clear old archive folders... [12:59:39]ProcessDocumentItem done err = 0, tmpTLVsize=291 [12:59:39]tlvbuf is 0110A760 [12:59:39]SAM_PROTO_ClearQueue [12:59:39]wFMCommunicate request_size=4 [12:59:39]MH_SAM_APDU [12:59:39]CAPDU: 80 09 00 00 [12:59:39]Write to MH i2c: E2 08 00 6B 42 80 09 00 00 00 00 00 00 1F [12:59:39]Write i2c OK [12:59:39]MH_I2C_Read... [12:59:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [12:59:39]Read from MH i2c: E2 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 03 00 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 03 00 6B 42 00 90 00 21 [12:59:39]RAPDU: 90 00 [12:59:39]wFMCommunicate OK [12:59:39]SAM_PROTO_ClearQueue done [12:59:39]KKMCreateOFDPacket [12:59:39]OFDProtocolAddRootSTLVToBuf [12:59:39]FM_MakeSignedData [12:59:39]FM_MakeSignedData [12:59:39]SAM_PROTO_SignData [12:59:39]wFMCommunicate request_size=4 [12:59:39]MH_SAM_APDU [12:59:39]CAPDU: 80 0D 01 02 [12:59:39]Write to MH i2c: E2 08 00 6C 42 80 0D 01 02 00 00 00 00 27 [12:59:39]Write i2c OK [12:59:39]MH_I2C_Read... [12:59:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [12:59:39]Read from MH i2c: E2 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 03 00 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 03 00 6C 42 00 90 00 22 [12:59:39]RAPDU: 90 00 [12:59:39]wFMCommunicate OK [12:59:39]wFMCommunicate request_size=255 [12:59:39]MH_SAM_APDU [12:59:39]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 5F 00 00 00 F4 03 04 00 BF 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [12:59:39]Write to MH i2c: E2 02 01 6D 42 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 5F 00 00 00 F4 03 04 00 BF 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 C9 [12:59:39]Write i2c OK [12:59:39]MH_I2C_Read... [12:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:39]Read from MH i2c: E2 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 03 00 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 03 00 6D 42 00 90 00 23 [12:59:39]RAPDU: 90 00 [12:59:39]wFMCommunicate OK [12:59:39]wFMCommunicate request_size=50 [12:59:39]MH_SAM_APDU [12:59:39]CAPDU: 80 0D 02 02 2D 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 20 02 00 35 04 06 00 CF 67 90 0B 4F 23 [12:59:39]Write to MH i2c: E2 35 00 6E 42 80 0D 02 02 2D 00 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 20 02 00 35 04 06 00 CF 67 90 0B 4F 23 00 00 84 [12:59:39]Write i2c OK [12:59:39]MH_I2C_Read... [12:59:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [12:59:39]Read from MH i2c: E2 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 03 00 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 03 00 6E 42 00 90 00 24 [12:59:39]RAPDU: 90 00 [12:59:39]wFMCommunicate OK [12:59:39]wFMCommunicate request_size=4 [12:59:39]MH_SAM_APDU [12:59:39]CAPDU: 80 0D 03 02 [12:59:39]Write to MH i2c: E2 08 00 6F 42 80 0D 03 02 00 00 00 00 2C [12:59:39]Write i2c OK [12:59:39]MH_I2C_Read... [12:59:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [12:59:39]Read from MH i2c: E2 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 0B 00 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 0B 00 6F 42 00 10 BB 7D F9 D7 1F 47 BB 90 00 66 [12:59:39]RAPDU: 10 BB 7D F9 D7 1F 47 BB 90 00 [12:59:39]wFMCommunicate OK [12:59:39]SAM_PROTO_SignData done [12:59:39]FM_MakeSignedData done [12:59:39]CreateOFDProtocolMessage [12:59:39]wFMCommunicate request_size=4 [12:59:39]MH_SAM_APDU [12:59:39]CAPDU: 80 11 00 00 [12:59:39]Write to MH i2c: E2 08 00 70 42 80 11 00 00 00 00 00 00 2C [12:59:39]Write i2c OK [12:59:39]MH_I2C_Read... [12:59:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:39]Read from MH i2c: E2 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 17 00 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: E2 17 00 70 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [12:59:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:59:39]wFMCommunicate OK [12:59:39]CreateOFDProtocolMessage done [12:59:39]OFDSenderStorePacket 139411 [12:59:39]StoreOFDPacket docnum=139411 [12:59:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 37 01 00 00 0F 4B 2F 01 91 FD 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 5F 00 00 00 F4 03 04 00 BF 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 20 02 00 35 04 06 00 CF 67 90 0B 4F 23 10 BB 7D F9 D7 1F 47 BB [12:59:39]CheckFolder [12:59:39]dirname=/storage/ofd_packets [12:59:39]CheckFolder done [12:59:39]ProducePacketName [12:59:39]name=ofd_packets/00139411 [12:59:39]NVStorageSaveData ofd_packets/00139411 [12:59:39]File name is /storage/ofd_packets/00139411 [12:59:39]Write 341 bytes [12:59:39]NVStorageSaveData done [12:59:39]OFDSenderStorePacket done [12:59:39]KKMCreateOFDPacket done [12:59:39]NVStorageSaveData kkm_last_timestamp [12:59:39]File name is /storage/kkm_last_timestamp [12:59:39]OFD Sender: Processing packet 139411 [packets to send 34, broken 33] [12:59:39]ProducePacketName [12:59:39]name=ofd_packets/00139411 [12:59:39]OFD Sender: To server: pG, [12:59:39]CommunicateWithHost lk.salyk.kg:30040 [12:59:39]ConnectInit lk.salyk.kg [12:59:39]Write 4 bytes [12:59:39]NVStorageSaveData done [12:59:39]ExternCall_PrintAddStr [12:59:39]wPrintStart [12:59:39]Write to MH i2c: 01 00 00 71 42 B3 [12:59:39]Write i2c OK [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: 01 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: 01 07 00 [12:59:39]MH_I2C_Read... [12:59:39]Read from MH i2c: 01 07 00 71 42 00 00 00 00 00 FF 0F C8 [12:59:39]RasterBufferAndPrint [12:59:39]line Счет N : (3)335318 [12:59:39]line ИНН: 02508201610067 [12:59:39]line Контрольно-Кассовый Чек [12:59:39]line ПРОДАЖА [12:59:39]line Товар: 90456060 [12:59:39]line Напиток энерг Red Bull Sugarfree 0.25л ж [12:59:39]line 1.000 * 149.00 [12:59:39]line = 149.00 [12:59:39]line НДС 12% НСП 1% [12:59:39]line > о реализуемом товаре [12:59:39]line ИТОГО: 149.00 [12:59:39]line НСП 1% : 1.32 [12:59:39]line НДС 12% : 15.82 [12:59:39]line Наличными: 149.00 [12:59:39]line Безнал.: 0.00 [12:59:39]line Место: АЗС № 101 "Партнер Нефть" [12:59:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [12:59:39]line СНО: Общий режим [12:59:39]line Чек 95 30.10.2024 12:59 [12:59:39]line Смена: 556 ФФД: 1.0 [12:59:39]line ЗНМ: 0300000081 [12:59:39]line РНМ: 0000000000091631 [12:59:39]line Версия ККМ: 001 [12:59:39]line ФМ: 0000000000874669 [12:59:39]line ФД: 139411 [12:59:39]line ФПД: 228043705241379 [12:59:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T125943&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139411&fm=228043705241379&tin=02508201610067®Number=0000000000091631&sum=14900 [12:59:39]line 0 [12:59:39]Connected sock=11 [12:59:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 37 01 00 00 0F 4B 2F 01 91 FD 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 5F 00 00 00 F4 03 04 00 BF 2D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 20 02 00 35 04 06 00 CF 67 90 0B 4F 23 10 BB 7D F9 D7 1F 47 BB [12:59:39]written 0, free lines is 4095 [12:59:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 73 F3 47 00 61 21 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 93 20 02 00 F4 03 04 00 6F D9 21 67 B6 04 01 00 00 09 C0 67 59 6A B0 43 F4 [12:59:40]CommunicateWithHost err = 0 [12:59:40]CheckOFDResponse [12:59:40]1017 (14) - 77093643461234 [12:59:40]1041 (16) - 0000000000874669 [12:59:40]1040 (4) - 139411 [12:59:40]1012 (4) - 30.10.2024 06:59 [12:59:40]1206 (1) - 0 [12:59:40]OFD Sender: Remove packet 139411 [12:59:40]ProducePacketName [12:59:40]name=ofd_packets/00139411 [12:59:40]NVStorageDeleteData [12:59:40]Write to MH i2c: 01 00 00 9A 42 DC [12:59:40]Write i2c OK [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: 01 [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: 01 07 00 [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: 01 07 00 9A 42 00 00 00 00 00 FD 0C EC [12:59:40]RasterBufferAndPrint [12:59:40]line [12:59:40]line [12:59:40]line [12:59:40]line [12:59:40]line [12:59:40]written 0, free lines is 3333 [12:59:40]MH_Cut [12:59:40]Write to MH i2c: D1 01 00 A1 42 01 B5 [12:59:40]Write i2c OK [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: D1 [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: D1 01 00 [12:59:40]MH_I2C_Read... [12:59:40]Read from MH i2c: D1 01 00 A1 42 00 B4 [12:59:40]Write to MH i2c: 01 00 00 A2 42 E4 [12:59:40]Write i2c OK [12:59:40]MH_I2C_Read... [12:59:40]OFD Sender: No OFD packet to send [12:59:41]*** Cut start [12:59:41]*** Partial cut [12:59:41]*** CUTSNS_PIN = 1 [12:59:41]*** CUTSNS_PIN = 0 [12:59:41]*** Brake cut motor [12:59:41]Read from MH i2c: 01 [12:59:41]MH_I2C_Read... [12:59:41]*** Stop cut motor [12:59:41]*** Cut end [12:59:41]Read from MH i2c: 01 07 00 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: 01 07 00 A2 42 00 00 00 00 00 FF 0F F9 [12:59:41]process_action close_receipt done [12:59:41]requested_data is exist [12:59:41]produce_requested_data [12:59:41]requested_item fm.sn is exist - process it [12:59:41]wFMCommunicate request_size=4 [12:59:41]MH_SAM_APDU [12:59:41]CAPDU: 80 11 00 00 [12:59:41]Write to MH i2c: E2 08 00 A3 42 80 11 00 00 00 00 00 00 5F [12:59:41]Write i2c OK [12:59:41]MH_I2C_Read... [12:59:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [12:59:41]Read from MH i2c: E2 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: E2 17 00 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: E2 17 00 A3 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [12:59:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [12:59:41]wFMCommunicate OK [12:59:41]requested_item fd.num is exist - process it [12:59:41]SAM_PROTO_GetFieldsCounters [12:59:41]wFMCommunicate request_size=4 [12:59:41]MH_SAM_APDU [12:59:41]CAPDU: 80 13 00 00 [12:59:41]Write to MH i2c: E2 08 00 A4 42 80 13 00 00 00 00 00 00 62 [12:59:41]Write i2c OK [12:59:41]MH_I2C_Read... [12:59:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [12:59:41]Read from MH i2c: E2 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: E2 62 00 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: E2 62 00 A4 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 93 20 02 00 0E 04 04 00 2C 02 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 86 [12:59:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 93 20 02 00 0E 04 04 00 2C 02 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 [12:59:41]wFMCommunicate OK [12:59:41]SAM_PROTO_GetFieldsCounters done [12:59:41]requested_item shift.num is exist - process it [12:59:41]requested_item shift.opened is exist - process it [12:59:41]req_shift_opened [12:59:41]FM_GetShiftState [12:59:41]SAM_PROTO_GetShiftState [12:59:41]wFMCommunicate request_size=4 [12:59:41]MH_SAM_APDU [12:59:41]CAPDU: 80 13 01 00 [12:59:41]Write to MH i2c: E2 08 00 A5 42 80 13 01 00 00 00 00 00 64 [12:59:41]Write i2c OK [12:59:41]MH_I2C_Read... [12:59:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [12:59:41]Read from MH i2c: E2 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: E2 0E 00 [12:59:41]MH_I2C_Read... [12:59:41]Read from MH i2c: E2 0E 00 A5 42 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F4 [12:59:41]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [12:59:41]wFMCommunicate OK [12:59:41]SAM_PROTO_GetShiftState done [12:59:41]FM_GetShiftState done [12:59:41]req_shift_opened done [12:59:41]requested_item shift.open_date is exist - process it [12:59:41]req_shift_open_date [12:59:41]req_shift_open_date done [12:59:41]produce_requested_data done [12:59:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139411,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [12:59:41]process_action_free close_receipt [12:59:41]json_value_free [12:59:41]json_value_free done [12:59:41]process_json_proto returns [12:59:41]Send response to host [12:59:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139411,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [12:59:41]free response buf [12:59:41]execute_script done [12:59:41]execute_script returns [12:59:41]free content buf [12:59:41]Sock 8.Close socket [12:59:41]Sock 8.Thread stoped [12:59:45]OFD Sender: No OFD packet to send [12:59:50]OFD Sender: No OFD packet to send [12:59:55]OFD Sender: No OFD packet to send [13:00:00]OFD Sender: No OFD packet to send [13:00:05]OFD Sender: No OFD packet to send [13:00:10]OFD Sender: No OFD packet to send [13:00:15]OFD Sender: No OFD packet to send [13:00:20]OFD Sender: No OFD packet to send [13:00:25]OFD Sender: No OFD packet to send [13:00:30]OFD Sender: No OFD packet to send [13:00:35]OFD Sender: No OFD packet to send [13:00:40]OFD Sender: No OFD packet to send [13:00:45]OFD Sender: No OFD packet to send [13:00:50]OFD Sender: No OFD packet to send [13:00:55]OFD Sender: No OFD packet to send [13:01:00]OFD Sender: No OFD packet to send [13:01:04]accept exits with 9 [13:01:04]New connection [13:01:04]New thread 3067141476 created [13:01:04]Thread 3067284836 joined [13:01:04]Waiting for new connection... [13:01:04] Sock 9.Parse request [13:01:04]Sock 9.Check first char [13:01:04]Sock 9.First char is OK [13:01:04]request: POST /json_proto HTTP/1.0 [13:01:04]Method: POST [13:01:04]URL: /json_proto [13:01:04]Method is POST - this is cgi request [13:01:04]url: /json_proto [13:01:04]query_string will be loaded in cgi processing [13:01:04]execute_cgi json_proto POST (null) [13:01:04]execute_cgi path=json_proto method=POST [13:01:04]POST find Content-Length [13:01:04]Host: 172.17.50.196:8080 [13:01:04]Content-Length: 683 [13:01:04]Content-Type: application/json [13:01:04] [13:01:04]POST finish read [13:01:04]Found Content-Length = 683 [13:01:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 24.940, "sum" : 1850.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1850.00, "total" : 1850.00, "payments": [ { "type": 0, "sum" : 1850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:04]execute_script... [13:01: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)1094492", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 54", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 24.940, "sum" : 1850.55, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1850.00, "total" : 1850.00, "payments": [ { "type": 0, "sum" : 1850.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:01:04]POST & json_proto [13:01:04]process_json_proto [13:01:04]json parsed OK: [13:01:04]protocol is kg_v1.0 [13:01:04]action value=close_receipt [13:01:04]process_action close_receipt [13:01:04]cmd_close_receipt [13:01:04]MH_GetDate [13:01:04]Write to MH i2c: F0 00 00 A6 42 D7 [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: F0 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: F0 09 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: F0 09 00 A6 42 00 15 2E 22 67 72 0D 1C 67 AE [13:01:04]GetLastDocTimeStamp 1730293183 [13:01:04]current date 1730293269 [13:01:04]FM_GetShiftState [13:01:04]SAM_PROTO_GetShiftState [13:01:04]wFMCommunicate request_size=4 [13:01:04]MH_SAM_APDU [13:01:04]CAPDU: 80 13 01 00 [13:01:04]Write to MH i2c: E2 08 00 A7 42 80 13 01 00 00 00 00 00 66 [13:01:04]Write i2c OK [13:01:04]MH_I2C_Read... [13:01:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:04]Read from MH i2c: E2 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 0E 00 [13:01:04]MH_I2C_Read... [13:01:04]Read from MH i2c: E2 0E 00 A7 42 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F6 [13:01:04]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:01:04]wFMCommunicate OK [13:01:04]SAM_PROTO_GetShiftState done [13:01:04]FM_GetShiftState done [13:01:04]opened in 1730246278 [13:01:04]opened+sec_in_day 1730332678 [13:01:04]quantity*price = 185054 [13:01:04]sum+1 = 185056 [13:01:04]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.55 ИТОГО: 1850.00 Внесено: 1850.00 СДАЧА: 0.00 НСП 1% : 16.38 НДС 12% : 196.52 Наличными: 1850.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 96 30.10.2024 13:01 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139412 ФПД: 217568696739061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130109&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139412&fm=217568696739061&tin=02508201610067®Number=0000000000091631&sum=185000 [13:01:05]StoreToDocumentArchive [13:01:05]shift 556 fd 139412 [13:01:05]save to /storage/0556/doc_00139412 [13:01:05]save last doc name /storage/0556/doc_00139412 to /storage/kkm_last_doc_name [13:01:05]save OK [13:01:05]Clear old archive folders... [13:01:05]ProcessDocumentItem done err = 0, tmpTLVsize=251 [13:01:05]tlvbuf is 0110A650 [13:01:05]SAM_PROTO_ClearQueue [13:01:05]wFMCommunicate request_size=4 [13:01:05]MH_SAM_APDU [13:01:05]CAPDU: 80 09 00 00 [13:01:05]Write to MH i2c: E2 08 00 B4 42 80 09 00 00 00 00 00 00 68 [13:01:05]Write i2c OK [13:01:05]MH_I2C_Read... [13:01:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:01:05]Read from MH i2c: E2 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 03 00 [13:01:05]MH_I2C_Read... [13:01:05]Read from MH i2c: E2 03 00 B4 42 00 90 00 6A [13:01:05]RAPDU: 90 00 [13:01:05]wFMCommunicate OK [13:01:05]SAM_PROTO_ClearQueue done [13:01:05]KKMCreateOFDPacket [13:01:05]OFDProtocolAddRootSTLVToBuf [13:01:05]FM_MakeSignedData [13:01:05]FM_MakeSignedData [13:01:05]SAM_PROTO_SignData [13:01:05]wFMCommunicate request_size=4 [13:01:05]MH_SAM_APDU [13:01:05]CAPDU: 80 0D 01 02 [13:01:05]Write to MH i2c: E2 08 00 B5 42 80 0D 01 02 00 00 00 00 70 [13:01:05]Write i2c OK [13:01:05]MH_I2C_Read... [13:01:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:01:05]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 B5 42 00 90 00 6B [13:01:06]RAPDU: 90 00 [13:01:06]wFMCommunicate OK [13:01:06]wFMCommunicate request_size=255 [13:01:06]MH_SAM_APDU [13:01: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 6C 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DF D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 4C 00 00 00 00 07 04 06 00 A8 D2 02 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 15 2E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 20 02 00 35 04 06 00 C5 [13:01:06]Write to MH i2c: E2 02 01 B6 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 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 6C 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DF D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 4C 00 00 00 00 07 04 06 00 A8 D2 02 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 15 2E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 20 02 00 35 04 06 00 C5 00 00 60 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 B6 42 00 90 00 6C [13:01:06]RAPDU: 90 00 [13:01:06]wFMCommunicate OK [13:01:06]wFMCommunicate request_size=10 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 0D 02 02 05 E0 A8 E2 24 F5 [13:01:06]Write to MH i2c: E2 0D 00 B7 42 80 0D 02 02 05 00 E0 A8 E2 24 F5 00 00 00 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 03 00 B7 42 00 90 00 6D [13:01:06]RAPDU: 90 00 [13:01:06]wFMCommunicate OK [13:01:06]wFMCommunicate request_size=4 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 0D 03 02 [13:01:06]Write to MH i2c: E2 08 00 B8 42 80 0D 03 02 00 00 00 00 75 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 0B 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 0B 00 B8 42 00 15 32 BC D5 F7 1C 80 D2 90 00 B3 [13:01:06]RAPDU: 15 32 BC D5 F7 1C 80 D2 90 00 [13:01:06]wFMCommunicate OK [13:01:06]SAM_PROTO_SignData done [13:01:06]FM_MakeSignedData done [13:01:06]CreateOFDProtocolMessage [13:01:06]wFMCommunicate request_size=4 [13:01:06]MH_SAM_APDU [13:01:06]CAPDU: 80 11 00 00 [13:01:06]Write to MH i2c: E2 08 00 B9 42 80 11 00 00 00 00 00 00 75 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:06]Read from MH i2c: E2 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 17 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: E2 17 00 B9 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [13:01:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:01:06]wFMCommunicate OK [13:01:06]CreateOFDProtocolMessage done [13:01:06]OFDSenderStorePacket 139412 [13:01:06]StoreOFDPacket docnum=139412 [13:01:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 64 B7 07 01 FA 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 6C 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DF D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 4C 00 00 00 00 07 04 06 00 A8 D2 02 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 15 2E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 20 02 00 35 04 06 00 C5 E0 A8 E2 24 F5 15 32 BC D5 F7 1C 80 D2 [13:01:06]CheckFolder [13:01:06]dirname=/storage/ofd_packets [13:01:06]CheckFolder done [13:01:06]ProducePacketName [13:01:06]name=ofd_packets/00139412 [13:01:06]NVStorageSaveData ofd_packets/00139412 [13:01:06]File name is /storage/ofd_packets/00139412 [13:01:06]Write 301 bytes [13:01:06]NVStorageSaveData done [13:01:06]OFDSenderStorePacket done [13:01:06]KKMCreateOFDPacket done [13:01:06]NVStorageSaveData kkm_last_timestamp [13:01:06]File name is /storage/kkm_last_timestamp [13:01:06]Write 4 bytes [13:01:06]NVStorageSaveData done [13:01:06]ExternCall_PrintAddStr [13:01:06]wPrintStart [13:01:06]Write to MH i2c: 01 00 00 BA 42 FC [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 07 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 07 00 BA 42 00 00 00 00 00 FF 0F 11 [13:01:06]RasterBufferAndPrint [13:01:06]line Счет N : (1)1094492 [13:01:06]line ИНН: 02508201610067 [13:01:06]line Контрольно-Кассовый Чек [13:01:06]line ПРОДАЖА [13:01:06]line ТРК (МРК, ГНК) : 54 [13:01:06]line Товар: 2710124500 [13:01:06]line Аи-95-К-3 [13:01:06]line 24.940 * 74.20 [13:01:06]line = 1850.55 [13:01:06]line НДС 12% НСП 1% [13:01:06]line > о реализуемом товаре [13:01:06]line ОКРУГЛЕНИЕ: -0.55 [13:01:06]line ИТОГО: 1850.00 [13:01:06]line Внесено: 1850.00 [13:01:06]line СДАЧА: 0.00 [13:01:06]line НСП 1% : 16.38 [13:01:06]line НДС 12% : 196.52 [13:01:06]line Наличными: 1850.00 [13:01:06]line Безнал.: 0.00 [13:01:06]line Место: АЗС № 101 "Партнер Нефть" [13:01:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:01:06]line СНО: Общий режим [13:01:06]line Чек 96 30.10.2024 13:01 [13:01:06]line Смена: 556 ФФД: 1.0 [13:01:06]line ЗНМ: 0300000081 [13:01:06]line РНМ: 0000000000091631 [13:01:06]line Версия ККМ: 001 [13:01:06]line ФМ: 0000000000874669 [13:01:06]line ФД: 139412 [13:01:06]line ФПД: 217568696739061 [13:01:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T130109&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139412&fm=217568696739061&tin=02508201610067®Number=0000000000091631&sum=185000 [13:01:06]written 0, free lines is 4095 [13:01:06]OFD Sender: Processing packet 139412 [packets to send 34, broken 33] [13:01:06]ProducePacketName [13:01:06]name=ofd_packets/00139412 [13:01:06]OFD Sender: To server: pG, [13:01:06]CommunicateWithHost lk.salyk.kg:30040 [13:01:06]ConnectInit lk.salyk.kg [13:01:06]Connected sock=10 [13:01:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 64 B7 07 01 FA 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 6C 61 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 DF D2 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 D2 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 66 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 4C 00 00 00 00 07 04 06 00 A8 D2 02 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 15 2E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 94 20 02 00 35 04 06 00 C5 E0 A8 E2 24 F5 15 32 BC D5 F7 1C 80 D2 [13:01:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DC E8 47 00 73 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 38 37 34 36 36 39 10 04 04 00 94 20 02 00 F4 03 04 00 C6 D9 21 67 B6 04 01 00 00 A7 0C D8 B9 89 0F 4F 6A [13:01:06]CommunicateWithHost err = 0 [13:01:06]CheckOFDResponse [13:01:06]1017 (14) - 77093643461234 [13:01:06]1041 (16) - 0000000000874669 [13:01:06]1040 (4) - 139412 [13:01:06]1012 (4) - 30.10.2024 07:01 [13:01:06]1206 (1) - 0 [13:01:06]OFD Sender: Remove packet 139412 [13:01:06]ProducePacketName [13:01:06]name=ofd_packets/00139412 [13:01:06]NVStorageDeleteData [13:01:06]Write to MH i2c: 01 00 00 E5 42 27 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 07 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: 01 07 00 E5 42 00 00 00 00 00 F7 0C 31 [13:01:06]RasterBufferAndPrint [13:01:06]line [13:01:06]line [13:01:06]line [13:01:06]line [13:01:06]line [13:01:06]written 0, free lines is 3326 [13:01:06]MH_Cut [13:01:06]Write to MH i2c: D1 01 00 EC 42 01 00 [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: D1 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: D1 01 00 [13:01:06]MH_I2C_Read... [13:01:06]Read from MH i2c: D1 01 00 EC 42 00 FF [13:01:06]Write to MH i2c: 01 00 00 ED 42 2F [13:01:06]Write i2c OK [13:01:06]MH_I2C_Read... [13:01:07]OFD Sender: No OFD packet to send [13:01:07]*** Cut start [13:01:07]*** Partial cut [13:01:07]*** CUTSNS_PIN = 1 [13:01:07]*** CUTSNS_PIN = 0 [13:01:07]*** Brake cut motor [13:01:08]Read from MH i2c: 01 [13:01:08]MH_I2C_Read... [13:01:08]*** Stop cut motor [13:01:08]*** Cut end [13:01:08]Read from MH i2c: 01 07 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: 01 07 00 ED 42 00 00 00 00 00 FF 0F 44 [13:01:08]process_action close_receipt done [13:01:08]requested_data is exist [13:01:08]produce_requested_data [13:01:08]requested_item fm.sn is exist - process it [13:01:08]wFMCommunicate request_size=4 [13:01:08]MH_SAM_APDU [13:01:08]CAPDU: 80 11 00 00 [13:01:08]Write to MH i2c: E2 08 00 EE 42 80 11 00 00 00 00 00 00 AA [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:01:08]Read from MH i2c: E2 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 17 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 17 00 EE 42 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 05 [13:01:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:01:08]wFMCommunicate OK [13:01:08]requested_item fd.num is exist - process it [13:01:08]SAM_PROTO_GetFieldsCounters [13:01:08]wFMCommunicate request_size=4 [13:01:08]MH_SAM_APDU [13:01:08]CAPDU: 80 13 00 00 [13:01:08]Write to MH i2c: E2 08 00 EF 42 80 13 00 00 00 00 00 00 AD [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:01:08]Read from MH i2c: E2 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 62 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 62 00 EF 42 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 94 20 02 00 0E 04 04 00 2C 02 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 D5 [13:01:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 94 20 02 00 0E 04 04 00 2C 02 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 [13:01:08]wFMCommunicate OK [13:01:08]SAM_PROTO_GetFieldsCounters done [13:01:08]requested_item shift.num is exist - process it [13:01:08]requested_item shift.opened is exist - process it [13:01:08]req_shift_opened [13:01:08]FM_GetShiftState [13:01:08]SAM_PROTO_GetShiftState [13:01:08]wFMCommunicate request_size=4 [13:01:08]MH_SAM_APDU [13:01:08]CAPDU: 80 13 01 00 [13:01:08]Write to MH i2c: E2 08 00 F0 42 80 13 01 00 00 00 00 00 AF [13:01:08]Write i2c OK [13:01:08]MH_I2C_Read... [13:01:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:01:08]Read from MH i2c: E2 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 0E 00 [13:01:08]MH_I2C_Read... [13:01:08]Read from MH i2c: E2 0E 00 F0 42 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3F [13:01:08]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:01:08]wFMCommunicate OK [13:01:08]SAM_PROTO_GetShiftState done [13:01:08]FM_GetShiftState done [13:01:08]req_shift_opened done [13:01:08]requested_item shift.open_date is exist - process it [13:01:08]req_shift_open_date [13:01:08]req_shift_open_date done [13:01:08]produce_requested_data done [13:01:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139412,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [13:01:08]process_action_free close_receipt [13:01:08]json_value_free [13:01:08]json_value_free done [13:01:08]process_json_proto returns [13:01:08]Send response to host [13:01:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139412,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [13:01:08]free response buf [13:01:08]execute_script done [13:01:08]execute_script returns [13:01:08]free content buf [13:01:08]Sock 9.Close socket [13:01:08]Sock 9.Thread stoped [13:01:12]OFD Sender: No OFD packet to send [13:01:17]OFD Sender: No OFD packet to send [13:01:22]OFD Sender: No OFD packet to send [13:01:27]OFD Sender: No OFD packet to send [13:01:32]OFD Sender: No OFD packet to send [13:01:37]OFD Sender: No OFD packet to send [13:01:42]OFD Sender: No OFD packet to send [13:01:47]OFD Sender: No OFD packet to send [13:01:52]OFD Sender: No OFD packet to send [13:01:57]OFD Sender: No OFD packet to send [13:02:02]OFD Sender: No OFD packet to send [13:02:07]OFD Sender: No OFD packet to send [13:02:12]OFD Sender: No OFD packet to send [13:02:17]OFD Sender: No OFD packet to send [13:02:22]OFD Sender: No OFD packet to send [13:02:27]OFD Sender: No OFD packet to send [13:02:32]OFD Sender: No OFD packet to send [13:02:37]OFD Sender: No OFD packet to send [13:02:42]OFD Sender: No OFD packet to send [13:02:47]OFD Sender: No OFD packet to send [13:02:52]OFD Sender: No OFD packet to send [13:02:57]OFD Sender: No OFD packet to send [13:03:02]OFD Sender: No OFD packet to send [13:03:07]OFD Sender: No OFD packet to send [13:03:12]OFD Sender: No OFD packet to send [13:03:17]OFD Sender: No OFD packet to send [13:03:22]OFD Sender: No OFD packet to send [13:03:27]OFD Sender: No OFD packet to send [13:03:32]OFD Sender: No OFD packet to send [13:03:37]OFD Sender: No OFD packet to send [13:03:42]OFD Sender: No OFD packet to send [13:03:47]OFD Sender: No OFD packet to send [13:03:52]OFD Sender: No OFD packet to send [13:03:57]OFD Sender: No OFD packet to send [13:04:02]OFD Sender: No OFD packet to send [13:04:07]OFD Sender: No OFD packet to send [13:04:12]OFD Sender: No OFD packet to send [13:04:17]OFD Sender: No OFD packet to send [13:04:22]OFD Sender: No OFD packet to send [13:04:27]OFD Sender: No OFD packet to send [13:04:32]OFD Sender: No OFD packet to send [13:04:37]OFD Sender: No OFD packet to send [13:04:42]OFD Sender: No OFD packet to send [13:04:47]OFD Sender: No OFD packet to send [13:04:52]OFD Sender: No OFD packet to send [13:04:57]OFD Sender: No OFD packet to send [13:05:02]OFD Sender: No OFD packet to send [13:05:07]OFD Sender: No OFD packet to send [13:05:12]OFD Sender: No OFD packet to send [13:05:17]OFD Sender: No OFD packet to send [13:05:22]OFD Sender: No OFD packet to send [13:05:27]OFD Sender: No OFD packet to send [13:05:32]OFD Sender: No OFD packet to send [13:05:37]OFD Sender: No OFD packet to send [13:05:42]OFD Sender: No OFD packet to send [13:05:47]OFD Sender: No OFD packet to send [13:05:52]OFD Sender: No OFD packet to send [13:05:57]OFD Sender: No OFD packet to send [13:06:02]OFD Sender: No OFD packet to send [13:06:07]OFD Sender: No OFD packet to send [13:06:12]OFD Sender: No OFD packet to send [13:06:17]OFD Sender: No OFD packet to send [13:06:22]OFD Sender: No OFD packet to send [13:06:27]OFD Sender: No OFD packet to send [13:06:32]OFD Sender: No OFD packet to send [13:06:37]OFD Sender: No OFD packet to send [13:06:42]OFD Sender: No OFD packet to send [13:06:47]OFD Sender: No OFD packet to send [13:06:52]OFD Sender: No OFD packet to send [13:06:57]OFD Sender: No OFD packet to send [13:07:02]OFD Sender: No OFD packet to send [13:07:07]OFD Sender: No OFD packet to send [13:07:12]OFD Sender: No OFD packet to send [13:07:17]OFD Sender: No OFD packet to send [13:07:22]OFD Sender: No OFD packet to send [13:07:27]OFD Sender: No OFD packet to send [13:07:32]OFD Sender: No OFD packet to send [13:07:37]OFD Sender: No OFD packet to send [13:07:42]OFD Sender: No OFD packet to send [13:07:47]OFD Sender: No OFD packet to send [13:07:52]OFD Sender: No OFD packet to send [13:07:57]OFD Sender: No OFD packet to send [13:08:02]OFD Sender: No OFD packet to send [13:08:07]OFD Sender: No OFD packet to send [13:08:12]OFD Sender: No OFD packet to send [13:08:17]OFD Sender: No OFD packet to send [13:08:22]OFD Sender: No OFD packet to send [13:08:27]OFD Sender: No OFD packet to send [13:08:32]OFD Sender: No OFD packet to send [13:08:37]OFD Sender: No OFD packet to send [13:08:42]OFD Sender: No OFD packet to send [13:08:47]OFD Sender: No OFD packet to send [13:08:52]OFD Sender: No OFD packet to send [13:08:57]OFD Sender: No OFD packet to send [13:09:02]OFD Sender: No OFD packet to send [13:09:07]OFD Sender: No OFD packet to send [13:09:12]OFD Sender: No OFD packet to send [13:09:17]OFD Sender: No OFD packet to send [13:09:22]OFD Sender: No OFD packet to send [13:09:27]OFD Sender: No OFD packet to send [13:09:32]OFD Sender: No OFD packet to send [13:09:37]OFD Sender: No OFD packet to send [13:09:42]OFD Sender: No OFD packet to send [13:09:47]OFD Sender: No OFD packet to send [13:09:52]OFD Sender: No OFD packet to send [13:09:57]OFD Sender: No OFD packet to send [13:10:02]OFD Sender: No OFD packet to send [13:10:07]OFD Sender: No OFD packet to send [13:10:12]OFD Sender: No OFD packet to send [13:10:17]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [13:13:02]OFD Sender: No OFD packet to send [13:13:07]OFD Sender: No OFD packet to send [13:13:12]OFD Sender: No OFD packet to send [13:13:17]OFD Sender: No OFD packet to send [13:13:22]OFD Sender: No OFD packet to send [13:13:27]OFD Sender: No OFD packet to send [13:13:32]OFD Sender: No OFD packet to send [13:13:37]OFD Sender: No OFD packet to send [13:13:42]OFD Sender: No OFD packet to send [13:13:47]OFD Sender: No OFD packet to send [13:13:52]OFD Sender: No OFD packet to send [13:13:57]OFD Sender: No OFD packet to send [13:14:02]OFD Sender: No OFD packet to send [13:14:07]OFD Sender: No OFD packet to send [13:14:12]OFD Sender: No OFD packet to send [13:14:17]OFD Sender: No OFD packet to send [13:14:22]OFD Sender: No OFD packet to send [13:14:27]OFD Sender: No OFD packet to send [13:14:32]OFD Sender: No OFD packet to send [13:14:37]OFD Sender: No OFD packet to send [13:14:42]OFD Sender: No OFD packet to send [13:14:47]OFD Sender: No OFD packet to send [13:14:52]OFD Sender: No OFD packet to send [13:14:57]OFD Sender: No OFD packet to send [13:15:02]OFD Sender: No OFD packet to send [13:15:07]OFD Sender: No OFD packet to send [13:15:12]OFD Sender: No OFD packet to send [13:15:17]OFD Sender: No OFD packet to send [13:15:22]OFD Sender: No OFD packet to send [13:15:27]OFD Sender: No OFD packet to send [13:15:32]OFD Sender: No OFD packet to send [13:15:37]OFD Sender: No OFD packet to send [13:15:42]OFD Sender: No OFD packet to send [13:15:47]OFD Sender: No OFD packet to send [13:15:53]OFD Sender: No OFD packet to send [13:15:58]OFD Sender: No OFD packet to send [13:16:03]OFD Sender: No OFD packet to send [13:16:08]OFD Sender: No OFD packet to send [13:16:13]OFD Sender: No OFD packet to send [13:16:18]OFD Sender: No OFD packet to send [13:16:23]OFD Sender: No OFD packet to send [13:16:28]OFD Sender: No OFD packet to send [13:16:33]OFD Sender: No OFD packet to send [13:16:38]OFD Sender: No OFD packet to send [13:16:43]OFD Sender: No OFD packet to send [13:16:48]OFD Sender: No OFD packet to send [13:16:53]OFD Sender: No OFD packet to send [13:16:58]OFD Sender: No OFD packet to send [13:17:03]OFD Sender: No OFD packet to send [13:17:08]OFD Sender: No OFD packet to send [13:17:13]OFD Sender: No OFD packet to send [13:17:18]OFD Sender: No OFD packet to send [13:17:23]OFD Sender: No OFD packet to send [13:17:28]OFD Sender: No OFD packet to send [13:17:33]OFD Sender: No OFD packet to send [13:17:38]OFD Sender: No OFD packet to send [13:17:43]OFD Sender: No OFD packet to send [13:17:48]OFD Sender: No OFD packet to send [13:17:53]OFD Sender: No OFD packet to send [13:17:58]OFD Sender: No OFD packet to send [13:18:03]OFD Sender: No OFD packet to send [13:18:08]OFD Sender: No OFD packet to send [13:18:13]OFD Sender: No OFD packet to send [13:18:18]OFD Sender: No OFD packet to send [13:18:23]OFD Sender: No OFD packet to send [13:18:28]OFD Sender: No OFD packet to send [13:18:33]OFD Sender: No OFD packet to send [13:18:38]OFD Sender: No OFD packet to send [13:18:43]OFD Sender: No OFD packet to send [13:18:48]OFD Sender: No OFD packet to send [13:18:53]OFD Sender: No OFD packet to send [13:18:58]OFD Sender: No OFD packet to send [13:19:03]OFD Sender: No OFD packet to send [13:19:08]OFD Sender: No OFD packet to send [13:19:13]OFD Sender: No OFD packet to send [13:19:18]OFD Sender: No OFD packet to send [13:19:23]OFD Sender: No OFD packet to send [13:19:28]OFD Sender: No OFD packet to send [13:19:33]OFD Sender: No OFD packet to send [13:19:38]OFD Sender: No OFD packet to send [13:19:43]OFD Sender: No OFD packet to send [13:19:48]OFD Sender: No OFD packet to send [13:19:53]OFD Sender: No OFD packet to send [13:19:58]OFD Sender: No OFD packet to send [13:20:03]OFD Sender: No OFD packet to send [13:20:08]OFD Sender: No OFD packet to send [13:20:13]OFD Sender: No OFD packet to send [13:20:18]OFD Sender: No OFD packet to send [13:20:23]OFD Sender: No OFD packet to send [13:20:28]OFD Sender: No OFD packet to send [13:20:33]OFD Sender: No OFD packet to send [13:20:38]OFD Sender: No OFD packet to send [13:20:43]OFD Sender: No OFD packet to send [13:20:48]OFD Sender: No OFD packet to send [13:20:53]OFD Sender: No OFD packet to send [13:20:58]OFD Sender: No OFD packet to send [13:21:03]OFD Sender: No OFD packet to send [13:21:08]OFD Sender: No OFD packet to send [13:21:13]OFD Sender: No OFD packet to send [13:21:18]OFD Sender: No OFD packet to send [13:21:23]OFD Sender: No OFD packet to send [13:21:28]OFD Sender: No OFD packet to send [13:21:33]OFD Sender: No OFD packet to send [13:21:38]OFD Sender: No OFD packet to send [13:21:43]OFD Sender: No OFD packet to send [13:21:48]OFD Sender: No OFD packet to send [13:21:53]OFD Sender: No OFD packet to send [13:21:58]OFD Sender: No OFD packet to send [13:22:03]OFD Sender: No OFD packet to send [13:22:08]OFD Sender: No OFD packet to send [13:22:13]OFD Sender: No OFD packet to send [13:22:18]OFD Sender: No OFD packet to send [13:22:23]OFD Sender: No OFD packet to send [13:22:28]OFD Sender: No OFD packet to send [13:22:33]OFD Sender: No OFD packet to send [13:22:38]OFD Sender: No OFD packet to send [13:22:43]OFD Sender: No OFD packet to send [13:22:48]OFD Sender: No OFD packet to send [13:22:53]OFD Sender: No OFD packet to send [13:22:58]OFD Sender: No OFD packet to send [13:23:03]OFD Sender: No OFD packet to send [13:23:08]OFD Sender: No OFD packet to send [13:23:13]OFD Sender: No OFD packet to send [13:23:15]accept exits with 8 [13:23:15]New connection [13:23:15]New thread 3067284836 created [13:23:15]Thread 3067141476 joined [13:23:15]Waiting for new connection... [13:23:15] Sock 8.Parse request [13:23:15]Sock 8.Check first char [13:23:15]Sock 8.First char is OK [13:23:15]request: POST /json_proto HTTP/1.0 [13:23:15]Method: POST [13:23:15]URL: /json_proto [13:23:15]Method is POST - this is cgi request [13:23:15]url: /json_proto [13:23:15]query_string will be loaded in cgi processing [13:23:15]execute_cgi json_proto POST (null) [13:23:15]execute_cgi path=json_proto method=POST [13:23:15]POST find Content-Length [13:23:15]Host: 172.17.50.196:8080 [13:23:15]Content-Length: 919 [13:23:15]Content-Type: application/json [13:23:15] [13:23:15]POST finish read [13:23:15]Found Content-Length = 919 [13:23:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335319", "tax_sys" : 0, "items" : [ { "code": "4870209744595", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u041A\u0440\u0430\u0431 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:15]execute_script... [13: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 : (3)335319", "tax_sys" : 0, "items" : [ { "code": "4870209744595", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u041A\u0440\u0430\u0431 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 175.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:23:15]POST & json_proto [13:23:15]process_json_proto [13:23:15]json parsed OK: [13:23:15]protocol is kg_v1.0 [13:23:15]action value=close_receipt [13:23:15]process_action close_receipt [13:23:15]cmd_close_receipt [13:23:15]MH_GetDate [13:23:15]Write to MH i2c: F0 00 00 F1 42 22 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 09 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: F0 09 00 F1 42 00 48 33 22 67 72 0D 1C 67 31 [13:23:15]GetLastDocTimeStamp 1730293269 [13:23:15]current date 1730294600 [13:23:15]FM_GetShiftState [13:23:15]SAM_PROTO_GetShiftState [13:23:15]wFMCommunicate request_size=4 [13:23:15]MH_SAM_APDU [13:23:15]CAPDU: 80 13 01 00 [13:23:15]Write to MH i2c: E2 08 00 F2 42 80 13 01 00 00 00 00 00 B1 [13:23:15]Write i2c OK [13:23:15]MH_I2C_Read... [13:23:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:15]Read from MH i2c: E2 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 0E 00 [13:23:15]MH_I2C_Read... [13:23:15]Read from MH i2c: E2 0E 00 F2 42 00 09 00 01 86 76 21 67 00 00 00 00 90 00 41 [13:23:15]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:23:15]wFMCommunicate OK [13:23:15]SAM_PROTO_GetShiftState done [13:23:15]FM_GetShiftState done [13:23:15]opened in 1730246278 [13:23:15]opened+sec_in_day 1730332678 [13:23:15]quantity*price = 6000 [13:23:15]sum+1 = 6001 [13:23:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 175.00 НСП 1% : 1.55 НДС 12% : 18.58 Наличными: 175.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 97 30.10.2024 13:23 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139413 ФПД: 79692346413699 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132320&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139413&fm=79692346413699&tin=02508201610067®Number=0000000000091631&sum=17500 0 [13:23:16]StoreToDocumentArchive [13:23:16]shift 556 fd 139413 [13:23:16]save to /storage/0556/doc_00139413 [13:23:16]save last doc name /storage/0556/doc_00139413 to /storage/kkm_last_doc_name [13:23:16]save OK [13:23:16]Clear old archive folders... [13:23:16]ProcessDocumentItem done err = 0, tmpTLVsize=391 [13:23:16]tlvbuf is 0111B180 [13:23:16]SAM_PROTO_ClearQueue [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 09 00 00 [13:23:16]Write to MH i2c: E2 08 00 FF 42 80 09 00 00 00 00 00 00 B3 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 FF 42 00 90 00 B5 [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]SAM_PROTO_ClearQueue done [13:23:16]KKMCreateOFDPacket [13:23:16]OFDProtocolAddRootSTLVToBuf [13:23:16]FM_MakeSignedData [13:23:16]FM_MakeSignedData [13:23:16]SAM_PROTO_SignData [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 0D 01 02 [13:23:16]Write to MH i2c: E2 08 00 00 43 80 0D 01 02 00 00 00 00 BC [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 00 43 00 90 00 B7 [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]wFMCommunicate request_size=255 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [13:23:16]Write to MH i2c: E2 02 01 01 43 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 F6 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 01 43 00 90 00 B8 [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]wFMCommunicate request_size=150 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 48 33 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 20 02 00 35 04 06 00 48 7A D1 FF D2 83 [13:23:16]Write to MH i2c: E2 99 00 02 43 80 0D 02 02 91 00 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 48 33 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 20 02 00 35 04 06 00 48 7A D1 FF D2 83 00 00 C8 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 03 00 02 43 00 90 00 B9 [13:23:16]RAPDU: 90 00 [13:23:16]wFMCommunicate OK [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 0D 03 02 [13:23:16]Write to MH i2c: E2 08 00 03 43 80 0D 03 02 00 00 00 00 C1 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 0B 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 0B 00 03 43 00 EC 50 0F 50 82 EE 36 DB 90 00 DE [13:23:16]RAPDU: EC 50 0F 50 82 EE 36 DB 90 00 [13:23:16]wFMCommunicate OK [13:23:16]SAM_PROTO_SignData done [13:23:16]FM_MakeSignedData done [13:23:16]CreateOFDProtocolMessage [13:23:16]wFMCommunicate request_size=4 [13:23:16]MH_SAM_APDU [13:23:16]CAPDU: 80 11 00 00 [13:23:16]Write to MH i2c: E2 08 00 04 43 80 11 00 00 00 00 00 00 C1 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:16]Read from MH i2c: E2 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 17 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: E2 17 00 04 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1C [13:23:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:23:16]wFMCommunicate OK [13:23:16]CreateOFDProtocolMessage done [13:23:16]OFDSenderStorePacket 139413 [13:23:16]StoreOFDPacket docnum=139413 [13:23:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9B 01 00 00 CC EB 93 01 A9 33 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 48 33 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 20 02 00 35 04 06 00 48 7A D1 FF D2 83 EC 50 0F 50 82 EE 36 DB [13:23:16]CheckFolder [13:23:16]dirname=/storage/ofd_packets [13:23:16]CheckFolder done [13:23:16]ProducePacketName [13:23:16]name=ofd_packets/00139413 [13:23:16]NVStorageSaveData ofd_packets/00139413 [13:23:16]File name is /storage/ofd_packets/00139413 [13:23:16]Write 441 bytes [13:23:16]NVStorageSaveData done [13:23:16]OFDSenderStorePacket done [13:23:16]KKMCreateOFDPacket done [13:23:16]NVStorageSaveData kkm_last_timestamp [13:23:16]File name is /storage/kkm_last_timestamp [13:23:16]Write 4 bytes [13:23:16]NVStorageSaveData done [13:23:16]ExternCall_PrintAddStr [13:23:16]wPrintStart [13:23:16]Write to MH i2c: 01 00 00 05 43 48 [13:23:16]Write i2c OK [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: 01 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: 01 07 00 [13:23:16]MH_I2C_Read... [13:23:16]Read from MH i2c: 01 07 00 05 43 00 00 00 00 00 FF 0F 5D [13:23:16]RasterBufferAndPrint [13:23:16]line Счет N : (3)335319 [13:23:16]line ИНН: 02508201610067 [13:23:16]line Контрольно-Кассовый Чек [13:23:16]line ПРОДАЖА [13:23:16]line Товар: 4870209744595 [13:23:16]line Сухарики Флинт Краб 100 гр [13:23:16]line 1.000 * 60.00 [13:23:16]line = 60.00 [13:23:16]line НДС 12% НСП 1% [13:23:16]line > о реализуемом товаре [13:23:16]line Товар: 2000036240010 [13:23:16]line Кофе Латте (GABB TRADE) [13:23:16]line 1.000 * 115.00 [13:23:16]line = 115.00 [13:23:16]line НДС 12% НСП 1% [13:23:16]line > о реализуемом товаре [13:23:16]line ИТОГО: 175.00 [13:23:16]line НСП 1% : 1.55 [13:23:16]line НДС 12% : 18.58 [13:23:16]line Наличными: 175.00 [13:23:16]line Безнал.: 0.00 [13:23:16]line Место: АЗС № 101 "Партнер Нефть" [13:23:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:23:16]line СНО: Общий режим [13:23:16]line Чек 97 30.10.2024 13:23 [13:23:16]line Смена: 556 ФФД: 1.0 [13:23:16]line ЗНМ: 0300000081 [13:23:16]line РНМ: 0000000000091631 [13:23:16]line Версия ККМ: 001 [13:23:16]line ФМ: 0000000000874669 [13:23:16]line ФД: 139413 [13:23:16]line ФПД: 79692346413699 [13:23:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T132320&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139413&fm=79692346413699&tin=02508201610067®Number=0000000000091631&sum=17500 [13:23:16]line 0 [13:23:16]written 0, free lines is 4095 [13:23:16]OFD Sender: Processing packet 139413 [packets to send 34, broken 33] [13:23:16]ProducePacketName [13:23:16]name=ofd_packets/00139413 [13:23:16]OFD Sender: To server: pG, [13:23:16]CommunicateWithHost lk.salyk.kg:30040 [13:23:16]ConnectInit lk.salyk.kg [13:23:17]Connected sock=10 [13:23:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9B 01 00 00 CC EB 93 01 A9 33 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 44 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 42 07 00 00 00 00 07 04 06 00 5C 44 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 48 33 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 20 02 00 35 04 06 00 48 7A D1 FF D2 83 EC 50 0F 50 82 EE 36 DB [13:23:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C1 24 47 00 9B 32 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 95 20 02 00 F4 03 04 00 F8 DE 21 67 B6 04 01 00 00 A2 26 83 E2 02 43 F0 FA [13:23:17]CommunicateWithHost err = 0 [13:23:17]CheckOFDResponse [13:23:17]1017 (14) - 77093643461234 [13:23:17]1041 (16) - 0000000000874669 [13:23:17]1040 (4) - 139413 [13:23:17]1012 (4) - 30.10.2024 07:23 [13:23:17]1206 (1) - 0 [13:23:17]OFD Sender: Remove packet 139413 [13:23:17]ProducePacketName [13:23:17]name=ofd_packets/00139413 [13:23:17]NVStorageDeleteData [13:23:17]Write to MH i2c: 01 00 00 33 43 76 [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: 01 07 00 33 43 00 00 00 00 00 F4 0C 7D [13:23:17]RasterBufferAndPrint [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]line [13:23:17]written 0, free lines is 3325 [13:23:17]MH_Cut [13:23:17]Write to MH i2c: D1 01 00 3A 43 01 4F [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 01 00 [13:23:17]MH_I2C_Read... [13:23:17]Read from MH i2c: D1 01 00 3A 43 00 4E [13:23:17]Write to MH i2c: 01 00 00 3B 43 7E [13:23:17]Write i2c OK [13:23:17]MH_I2C_Read... [13:23:17]OFD Sender: No OFD packet to send [13:23:18]*** Cut start [13:23:18]*** Partial cut [13:23:18]*** CUTSNS_PIN = 1 [13:23:18]*** CUTSNS_PIN = 0 [13:23:18]*** Brake cut motor [13:23:18]Read from MH i2c: 01 [13:23:18]MH_I2C_Read... [13:23:18]*** Stop cut motor [13:23:18]*** Cut end [13:23:18]Read from MH i2c: 01 07 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: 01 07 00 3B 43 00 00 00 00 00 FF 0F 93 [13:23:18]process_action close_receipt done [13:23:18]requested_data is exist [13:23:18]produce_requested_data [13:23:18]requested_item fm.sn is exist - process it [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 11 00 00 [13:23:18]Write to MH i2c: E2 08 00 3C 43 80 11 00 00 00 00 00 00 F9 [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:23:18]Read from MH i2c: E2 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 17 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 17 00 3C 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 54 [13:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:23:18]wFMCommunicate OK [13:23:18]requested_item fd.num is exist - process it [13:23:18]SAM_PROTO_GetFieldsCounters [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 13 00 00 [13:23:18]Write to MH i2c: E2 08 00 3D 43 80 13 00 00 00 00 00 00 FC [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:23:18]Read from MH i2c: E2 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 62 00 [13:23:18]MH_I2C_Read... [13:23:18]Read from MH i2c: E2 62 00 3D 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 95 20 02 00 0E 04 04 00 2C 02 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 28 [13:23:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 95 20 02 00 0E 04 04 00 2C 02 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 [13:23:18]wFMCommunicate OK [13:23:18]SAM_PROTO_GetFieldsCounters done [13:23:18]requested_item shift.num is exist - process it [13:23:18]requested_item shift.opened is exist - process it [13:23:18]req_shift_opened [13:23:18]FM_GetShiftState [13:23:18]SAM_PROTO_GetShiftState [13:23:18]wFMCommunicate request_size=4 [13:23:18]MH_SAM_APDU [13:23:18]CAPDU: 80 13 01 00 [13:23:18]Write to MH i2c: E2 08 00 3E 43 80 13 01 00 00 00 00 00 FE [13:23:18]Write i2c OK [13:23:18]MH_I2C_Read... [13:23:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:23:19]Read from MH i2c: E2 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0E 00 [13:23:19]MH_I2C_Read... [13:23:19]Read from MH i2c: E2 0E 00 3E 43 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8E [13:23:19]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:23:19]wFMCommunicate OK [13:23:19]SAM_PROTO_GetShiftState done [13:23:19]FM_GetShiftState done [13:23:19]req_shift_opened done [13:23:19]requested_item shift.open_date is exist - process it [13:23:19]req_shift_open_date [13:23:19]req_shift_open_date done [13:23:19]produce_requested_data done [13:23:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139413,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [13:23:19]process_action_free close_receipt [13:23:19]json_value_free [13:23:19]json_value_free done [13:23:19]process_json_proto returns [13:23:19]Send response to host [13:23:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139413,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [13:23:19]free response buf [13:23:19]execute_script done [13:23:19]execute_script returns [13:23:19]free content buf [13:23:19]Sock 8.Close socket [13:23:19]Sock 8.Thread stoped [13:23:22]OFD Sender: No OFD packet to send [13:23:27]OFD Sender: No OFD packet to send [13:23:32]OFD Sender: No OFD packet to send [13:23:37]OFD Sender: No OFD packet to send [13:23:42]OFD Sender: No OFD packet to send [13:23:47]OFD Sender: No OFD packet to send [13:23:52]OFD Sender: No OFD packet to send [13:23:57]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:17]OFD Sender: No OFD packet to send [13:24:22]OFD Sender: No OFD packet to send [13:24:27]OFD Sender: No OFD packet to send [13:24:32]OFD Sender: No OFD packet to send [13:24:37]OFD Sender: No OFD packet to send [13:24:42]OFD Sender: No OFD packet to send [13:24:47]OFD Sender: No OFD packet to send [13:24:52]OFD Sender: No OFD packet to send [13:24:57]OFD Sender: No OFD packet to send [13:25:02]OFD Sender: No OFD packet to send [13:25:07]OFD Sender: No OFD packet to send [13:25:12]OFD Sender: No OFD packet to send [13:25:17]OFD Sender: No OFD packet to send [13:25:22]OFD Sender: No OFD packet to send [13:25:27]OFD Sender: No OFD packet to send [13:25:32]OFD Sender: No OFD packet to send [13:25:37]OFD Sender: No OFD packet to send [13:25:42]OFD Sender: No OFD packet to send [13:25:47]OFD Sender: No OFD packet to send [13:25:52]OFD Sender: No OFD packet to send [13:25:57]OFD Sender: No OFD packet to send [13:26:02]OFD Sender: No OFD packet to send [13:26:07]OFD Sender: No OFD packet to send [13:26:12]OFD Sender: No OFD packet to send [13:26:17]OFD Sender: No OFD packet to send [13:26:22]OFD Sender: No OFD packet to send [13:26:27]OFD Sender: No OFD packet to send [13:26:32]OFD Sender: No OFD packet to send [13:26:37]OFD Sender: No OFD packet to send [13:26:42]OFD Sender: No OFD packet to send [13:26:47]OFD Sender: No OFD packet to send [13:26:52]OFD Sender: No OFD packet to send [13:26:57]OFD Sender: No OFD packet to send [13:27:02]OFD Sender: No OFD packet to send [13:27:07]OFD Sender: No OFD packet to send [13:27:12]OFD Sender: No OFD packet to send [13:27:17]OFD Sender: No OFD packet to send [13:27:22]OFD Sender: No OFD packet to send [13:27:27]OFD Sender: No OFD packet to send [13:27:32]OFD Sender: No OFD packet to send [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:07]OFD Sender: No OFD packet to send [13:28:12]OFD Sender: No OFD packet to send [13:28:17]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:08]OFD Sender: No OFD packet to send [13:31:13]OFD Sender: No OFD packet to send [13:31:18]OFD Sender: No OFD packet to send [13:31:23]OFD Sender: No OFD packet to send [13:31:28]OFD Sender: No OFD packet to send [13:31:33]OFD Sender: No OFD packet to send [13:31:38]OFD Sender: No OFD packet to send [13:31:43]OFD Sender: No OFD packet to send [13:31:48]OFD Sender: No OFD packet to send [13:31:53]OFD Sender: No OFD packet to send [13:31:58]OFD Sender: No OFD packet to send [13:32:03]OFD Sender: No OFD packet to send [13:32:08]OFD Sender: No OFD packet to send [13:32:13]OFD Sender: No OFD packet to send [13:32:18]OFD Sender: No OFD packet to send [13:32:23]OFD Sender: No OFD packet to send [13:32:28]OFD Sender: No OFD packet to send [13:32:33]OFD Sender: No OFD packet to send [13:32:38]OFD Sender: No OFD packet to send [13:32:43]OFD Sender: No OFD packet to send [13:32:48]OFD Sender: No OFD packet to send [13:32:53]OFD Sender: No OFD packet to send [13:32:58]OFD Sender: No OFD packet to send [13:33:03]OFD Sender: No OFD packet to send [13:33:08]OFD Sender: No OFD packet to send [13:33:13]OFD Sender: No OFD packet to send [13:33:18]OFD Sender: No OFD packet to send [13:33:23]OFD Sender: No OFD packet to send [13:33:28]OFD Sender: No OFD packet to send [13:33:33]OFD Sender: No OFD packet to send [13:33:38]OFD Sender: No OFD packet to send [13:33:43]OFD Sender: No OFD packet to send [13:33:48]OFD Sender: No OFD packet to send [13:33:53]OFD Sender: No OFD packet to send [13:33:58]OFD Sender: No OFD packet to send [13:34:01]accept exits with 9 [13:34:01]New connection [13:34:01]New thread 3067141476 created [13:34:01]Thread 3067284836 joined [13:34:01]Waiting for new connection... [13:34:01] Sock 9.Parse request [13:34:01]Sock 9.Check first char [13:34:01]Sock 9.First char is OK [13:34:01]request: POST /json_proto HTTP/1.0 [13:34:01]Method: POST [13:34:01]URL: /json_proto [13:34:01]Method is POST - this is cgi request [13:34:01]url: /json_proto [13:34:01]query_string will be loaded in cgi processing [13:34:01]execute_cgi json_proto POST (null) [13:34:01]execute_cgi path=json_proto method=POST [13:34:01]POST find Content-Length [13:34:01]Host: 172.17.50.196:8080 [13:34:01]Content-Length: 747 [13:34:01]Content-Type: application/json [13:34:01] [13:34:01]POST finish read [13:34:01]Found Content-Length = 747 [13:34:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335320", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:01]execute_script... [13:34: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 : (3)335320", "tax_sys" : 0, "items" : [ { "code": "4640030091607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:34:01]POST & json_proto [13:34:01]process_json_proto [13:34:01]json parsed OK: [13:34:01]protocol is kg_v1.0 [13:34:01]action value=close_receipt [13:34:01]process_action close_receipt [13:34:01]cmd_close_receipt [13:34:01]MH_GetDate [13:34:01]Write to MH i2c: F0 00 00 3F 43 71 [13:34:01]Write i2c OK [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: F0 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: F0 09 00 [13:34:01]MH_I2C_Read... [13:34:01]Read from MH i2c: F0 09 00 3F 43 00 CF 35 22 67 72 0D 1C 67 09 [13:34:02]GetLastDocTimeStamp 1730294600 [13:34:02]current date 1730295247 [13:34:02]FM_GetShiftState [13:34:02]SAM_PROTO_GetShiftState [13:34:02]wFMCommunicate request_size=4 [13:34:02]MH_SAM_APDU [13:34:02]CAPDU: 80 13 01 00 [13:34:02]Write to MH i2c: E2 08 00 40 43 80 13 01 00 00 00 00 00 00 [13:34:02]Write i2c OK [13:34:02]MH_I2C_Read... [13:34:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:02]Read from MH i2c: E2 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: E2 0E 00 [13:34:02]MH_I2C_Read... [13:34:02]Read from MH i2c: E2 0E 00 40 43 00 09 00 01 86 76 21 67 00 00 00 00 90 00 90 [13:34:02]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:34:02]wFMCommunicate OK [13:34:02]SAM_PROTO_GetShiftState done [13:34:02]FM_GetShiftState done [13:34:02]opened in 1730246278 [13:34:02]opened+sec_in_day 1730332678 [13:34:02]quantity*price = 15900 [13:34:02]sum+1 = 15901 [13:34:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 98 30.10.2024 13:34 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139414 ФПД: 114067364420584 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T133407&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139414&fm=114067364420584&tin=02508201610067®Number=0000000000091631&sum=15900 0 [13:34:03]StoreToDocumentArchive [13:34:03]shift 556 fd 139414 [13:34:03]save to /storage/0556/doc_00139414 [13:34:03]save last doc name /storage/0556/doc_00139414 to /storage/kkm_last_doc_name [13:34:03]save OK [13:34:03]Clear old archive folders... [13:34:03]ProcessDocumentItem done err = 0, tmpTLVsize=272 [13:34:03]tlvbuf is 0110DF70 [13:34:03]SAM_PROTO_ClearQueue [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 09 00 00 [13:34:03]Write to MH i2c: E2 08 00 4D 43 80 09 00 00 00 00 00 00 02 [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 4D 43 00 90 00 04 [13:34:03]RAPDU: 90 00 [13:34:03]wFMCommunicate OK [13:34:03]SAM_PROTO_ClearQueue done [13:34:03]KKMCreateOFDPacket [13:34:03]OFDProtocolAddRootSTLVToBuf [13:34:03]FM_MakeSignedData [13:34:03]FM_MakeSignedData [13:34:03]SAM_PROTO_SignData [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 0D 01 02 [13:34:03]Write to MH i2c: E2 08 00 4E 43 80 0D 01 02 00 00 00 00 0A [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 4E 43 00 90 00 05 [13:34:03]RAPDU: 90 00 [13:34:03]wFMCommunicate OK [13:34:03]wFMCommunicate request_size=255 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CF 35 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [13:34:03]Write to MH i2c: E2 02 01 4F 43 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CF 35 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 31 [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]OFD Sender: No OFD packet to send [13:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 4F 43 00 90 00 06 [13:34:03]RAPDU: 90 00 [13:34:03]wFMCommunicate OK [13:34:03]wFMCommunicate request_size=31 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 96 20 02 00 35 04 06 00 67 BE 60 BC 9B E8 [13:34:03]Write to MH i2c: E2 22 00 50 43 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 96 20 02 00 35 04 06 00 67 BE 60 BC 9B E8 00 00 BC [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 03 00 50 43 00 90 00 07 [13:34:03]RAPDU: 90 00 [13:34:03]wFMCommunicate OK [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 0D 03 02 [13:34:03]Write to MH i2c: E2 08 00 51 43 80 0D 03 02 00 00 00 00 0F [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 0B 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 0B 00 51 43 00 C7 D2 45 D1 61 56 07 FB 90 00 78 [13:34:03]RAPDU: C7 D2 45 D1 61 56 07 FB 90 00 [13:34:03]wFMCommunicate OK [13:34:03]SAM_PROTO_SignData done [13:34:03]FM_MakeSignedData done [13:34:03]CreateOFDProtocolMessage [13:34:03]wFMCommunicate request_size=4 [13:34:03]MH_SAM_APDU [13:34:03]CAPDU: 80 11 00 00 [13:34:03]Write to MH i2c: E2 08 00 52 43 80 11 00 00 00 00 00 00 0F [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:03]Read from MH i2c: E2 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 17 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: E2 17 00 52 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6A [13:34:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:34:03]wFMCommunicate OK [13:34:03]CreateOFDProtocolMessage done [13:34:03]OFDSenderStorePacket 139414 [13:34:03]StoreOFDPacket docnum=139414 [13:34:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 57 D2 1C 01 8C C3 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CF 35 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 96 20 02 00 35 04 06 00 67 BE 60 BC 9B E8 C7 D2 45 D1 61 56 07 FB [13:34:03]CheckFolder [13:34:03]dirname=/storage/ofd_packets [13:34:03]CheckFolder done [13:34:03]ProducePacketName [13:34:03]name=ofd_packets/00139414 [13:34:03]NVStorageSaveData ofd_packets/00139414 [13:34:03]File name is /storage/ofd_packets/00139414 [13:34:03]Write 322 bytes [13:34:03]NVStorageSaveData done [13:34:03]OFDSenderStorePacket done [13:34:03]KKMCreateOFDPacket done [13:34:03]NVStorageSaveData kkm_last_timestamp [13:34:03]File name is /storage/kkm_last_timestamp [13:34:03]Write 4 bytes [13:34:03]NVStorageSaveData done [13:34:03]ExternCall_PrintAddStr [13:34:03]wPrintStart [13:34:03]Write to MH i2c: 01 00 00 53 43 96 [13:34:03]Write i2c OK [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: 01 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: 01 07 00 [13:34:03]MH_I2C_Read... [13:34:03]Read from MH i2c: 01 07 00 53 43 00 00 00 00 00 FF 0F AB [13:34:03]RasterBufferAndPrint [13:34:03]line Счет N : (3)335320 [13:34:03]line ИНН: 02508201610067 [13:34:03]line Контрольно-Кассовый Чек [13:34:03]line ПРОДАЖА [13:34:03]line Товар: 4640030091607 [13:34:03]line Сигареты ESSE Exchange [13:34:03]line 1.000 * 159.00 [13:34:03]line = 159.00 [13:34:03]line НДС 12% НСП 1% [13:34:03]line > о реализуемом товаре [13:34:03]line ИТОГО: 159.00 [13:34:03]line НСП 1% : 1.41 [13:34:03]line НДС 12% : 16.88 [13:34:03]line Наличными: 0.00 [13:34:03]line Безнал.: 159.00 [13:34:03]line Место: АЗС № 101 "Партнер Нефть" [13:34:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:34:03]line СНО: Общий режим [13:34:03]line Чек 98 30.10.2024 13:34 [13:34:03]line Смена: 556 ФФД: 1.0 [13:34:03]line ЗНМ: 0300000081 [13:34:03]line РНМ: 0000000000091631 [13:34:03]line Версия ККМ: 001 [13:34:03]line Платежная система: Mbank [13:34:03]line ФМ: 0000000000874669 [13:34:03]line ФД: 139414 [13:34:03]line ФПД: 114067364420584 [13:34:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T133407&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139414&fm=114067364420584&tin=02508201610067®Number=0000000000091631&sum=15900 [13:34:04]OFD Sender: Processing packet 139414 [packets to send 34, broken 33] [13:34:04]ProducePacketName [13:34:04]name=ofd_packets/00139414 [13:34:04]OFD Sender: To server: pG, [13:34:04]CommunicateWithHost lk.salyk.kg:30040 [13:34:04]ConnectInit lk.salyk.kg [13:34:04]line 0 [13:34:04]written 0, free lines is 4095 [13:34:04]Connected sock=10 [13:34:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 57 D2 1C 01 8C C3 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 30 37 06 04 1E 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 62 00 00 00 F4 03 04 00 CF 35 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 96 20 02 00 35 04 06 00 67 BE 60 BC 9B E8 C7 D2 45 D1 61 56 07 FB [13:34:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 BB 34 47 00 2C 78 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 96 20 02 00 F4 03 04 00 7F E1 21 67 B6 04 01 00 00 58 07 71 FB 87 E7 8B EC [13:34:04]CommunicateWithHost err = 0 [13:34:04]CheckOFDResponse [13:34:04]1017 (14) - 77093643461234 [13:34:04]1041 (16) - 0000000000874669 [13:34:04]1040 (4) - 139414 [13:34:04]1012 (4) - 30.10.2024 07:34 [13:34:04]1206 (1) - 0 [13:34:04]OFD Sender: Remove packet 139414 [13:34:04]ProducePacketName [13:34:04]name=ofd_packets/00139414 [13:34:04]NVStorageDeleteData [13:34:04]Write to MH i2c: 01 00 00 7C 43 BF [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 07 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: 01 07 00 7C 43 00 00 00 00 00 22 0D F5 [13:34:04]RasterBufferAndPrint [13:34:04]line [13:34:04]line [13:34:04]line [13:34:04]line [13:34:04]line [13:34:04]written 0, free lines is 3370 [13:34:04]MH_Cut [13:34:04]Write to MH i2c: D1 01 00 83 43 01 98 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: D1 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: D1 01 00 [13:34:04]MH_I2C_Read... [13:34:04]Read from MH i2c: D1 01 00 83 43 00 97 [13:34:04]Write to MH i2c: 01 00 00 84 43 C7 [13:34:04]Write i2c OK [13:34:04]MH_I2C_Read... [13:34:04]OFD Sender: No OFD packet to send [13:34:05]*** Cut start [13:34:05]*** Partial cut [13:34:05]*** CUTSNS_PIN = 1 [13:34:05]*** CUTSNS_PIN = 0 [13:34:05]*** Brake cut motor [13:34:05]Read from MH i2c: 01 [13:34:05]MH_I2C_Read... [13:34:05]*** Stop cut motor [13:34:05]*** Cut end [13:34:05]Read from MH i2c: 01 07 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: 01 07 00 84 43 00 00 00 00 00 FF 0F DC [13:34:05]process_action close_receipt done [13:34:05]requested_data is exist [13:34:05]produce_requested_data [13:34:05]requested_item fm.sn is exist - process it [13:34:05]wFMCommunicate request_size=4 [13:34:05]MH_SAM_APDU [13:34:05]CAPDU: 80 11 00 00 [13:34:05]Write to MH i2c: E2 08 00 85 43 80 11 00 00 00 00 00 00 42 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:34:05]Read from MH i2c: E2 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 17 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 17 00 85 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9D [13:34:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:34:05]wFMCommunicate OK [13:34:05]requested_item fd.num is exist - process it [13:34:05]SAM_PROTO_GetFieldsCounters [13:34:05]wFMCommunicate request_size=4 [13:34:05]MH_SAM_APDU [13:34:05]CAPDU: 80 13 00 00 [13:34:05]Write to MH i2c: E2 08 00 86 43 80 13 00 00 00 00 00 00 45 [13:34:05]Write i2c OK [13:34:05]MH_I2C_Read... [13:34:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:34:05]Read from MH i2c: E2 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 62 00 [13:34:05]MH_I2C_Read... [13:34:05]Read from MH i2c: E2 62 00 86 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 96 20 02 00 0E 04 04 00 2C 02 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 75 [13:34:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 96 20 02 00 0E 04 04 00 2C 02 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 [13:34:06]wFMCommunicate OK [13:34:06]SAM_PROTO_GetFieldsCounters done [13:34:06]requested_item shift.num is exist - process it [13:34:06]requested_item shift.opened is exist - process it [13:34:06]req_shift_opened [13:34:06]FM_GetShiftState [13:34:06]SAM_PROTO_GetShiftState [13:34:06]wFMCommunicate request_size=4 [13:34:06]MH_SAM_APDU [13:34:06]CAPDU: 80 13 01 00 [13:34:06]Write to MH i2c: E2 08 00 87 43 80 13 01 00 00 00 00 00 47 [13:34:06]Write i2c OK [13:34:06]MH_I2C_Read... [13:34:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:34:06]Read from MH i2c: E2 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 0E 00 [13:34:06]MH_I2C_Read... [13:34:06]Read from MH i2c: E2 0E 00 87 43 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D7 [13:34:06]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:34:06]wFMCommunicate OK [13:34:06]SAM_PROTO_GetShiftState done [13:34:06]FM_GetShiftState done [13:34:06]req_shift_opened done [13:34:06]requested_item shift.open_date is exist - process it [13:34:06]req_shift_open_date [13:34:06]req_shift_open_date done [13:34:06]produce_requested_data done [13:34:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139414,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [13:34:06]process_action_free close_receipt [13:34:06]json_value_free [13:34:06]json_value_free done [13:34:06]process_json_proto returns [13:34:06]Send response to host [13:34:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139414,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [13:34:06]free response buf [13:34:06]execute_script done [13:34:06]execute_script returns [13:34:06]free content buf [13:34:06]Sock 9.Close socket [13:34:06]Sock 9.Thread stoped [13:34:09]OFD Sender: No OFD packet to send [13:34:14]OFD Sender: No OFD packet to send [13:34:19]OFD Sender: No OFD packet to send [13:34:24]OFD Sender: No OFD packet to send [13:34:29]OFD Sender: No OFD packet to send [13:34:34]OFD Sender: No OFD packet to send [13:34:39]OFD Sender: No OFD packet to send [13:34:44]OFD Sender: No OFD packet to send [13:34:49]OFD Sender: No OFD packet to send [13:34:54]OFD Sender: No OFD packet to send [13:34:59]OFD Sender: No OFD packet to send [13:35:04]OFD Sender: No OFD packet to send [13:35:09]OFD Sender: No OFD packet to send [13:35:14]OFD Sender: No OFD packet to send [13:35:19]OFD Sender: No OFD packet to send [13:35:24]OFD Sender: No OFD packet to send [13:35:29]OFD Sender: No OFD packet to send [13:35:34]OFD Sender: No OFD packet to send [13:35:39]OFD Sender: No OFD packet to send [13:35:44]OFD Sender: No OFD packet to send [13:35:49]OFD Sender: No OFD packet to send [13:35:54]OFD Sender: No OFD packet to send [13:35:59]OFD Sender: No OFD packet to send [13:36:04]OFD Sender: No OFD packet to send [13:36:09]OFD Sender: No OFD packet to send [13:36:14]OFD Sender: No OFD packet to send [13:36:19]OFD Sender: No OFD packet to send [13:36:24]OFD Sender: No OFD packet to send [13:36:29]OFD Sender: No OFD packet to send [13:36:34]OFD Sender: No OFD packet to send [13:36:40]OFD Sender: No OFD packet to send [13:36:45]OFD Sender: No OFD packet to send [13:36:50]OFD Sender: No OFD packet to send [13:36:55]OFD Sender: No OFD packet to send [13:37:00]OFD Sender: No OFD packet to send [13:37:05]OFD Sender: No OFD packet to send [13:37:10]OFD Sender: No OFD packet to send [13:37:15]OFD Sender: No OFD packet to send [13:37:20]OFD Sender: No OFD packet to send [13:37:25]OFD Sender: No OFD packet to send [13:37:30]OFD Sender: No OFD packet to send [13:37:35]OFD Sender: No OFD packet to send [13:37:40]OFD Sender: No OFD packet to send [13:37:45]OFD Sender: No OFD packet to send [13:37:50]OFD Sender: No OFD packet to send [13:37:55]OFD Sender: No OFD packet to send [13:38:00]OFD Sender: No OFD packet to send [13:38:05]OFD Sender: No OFD packet to send [13:38:10]OFD Sender: No OFD packet to send [13:38:15]OFD Sender: No OFD packet to send [13:38:20]OFD Sender: No OFD packet to send [13:38:25]OFD Sender: No OFD packet to send [13:38:30]OFD Sender: No OFD packet to send [13:38:35]OFD Sender: No OFD packet to send [13:38:40]OFD Sender: No OFD packet to send [13:38:45]OFD Sender: No OFD packet to send [13:38:50]OFD Sender: No OFD packet to send [13:38:55]OFD Sender: No OFD packet to send [13:39:00]OFD Sender: No OFD packet to send [13:39:05]OFD Sender: No OFD packet to send [13:39:10]OFD Sender: No OFD packet to send [13:39:15]OFD Sender: No OFD packet to send [13:39:20]OFD Sender: No OFD packet to send [13:39:25]OFD Sender: No OFD packet to send [13:39:30]OFD Sender: No OFD packet to send [13:39:35]OFD Sender: No OFD packet to send [13:39:40]OFD Sender: No OFD packet to send [13:39:45]OFD Sender: No OFD packet to send [13:39:50]OFD Sender: No OFD packet to send [13:39:55]OFD Sender: No OFD packet to send [13:40:00]OFD Sender: No OFD packet to send [13:40:05]OFD Sender: No OFD packet to send [13:40:10]OFD Sender: No OFD packet to send [13:40:15]OFD Sender: No OFD packet to send [13:40:20]OFD Sender: No OFD packet to send [13:40:25]OFD Sender: No OFD packet to send [13:40:30]OFD Sender: No OFD packet to send [13:40:35]OFD Sender: No OFD packet to send [13:40:40]OFD Sender: No OFD packet to send [13:40:45]OFD Sender: No OFD packet to send [13:40:50]OFD Sender: No OFD packet to send [13:40:55]OFD Sender: No OFD packet to send [13:41:00]OFD Sender: No OFD packet to send [13:41:05]OFD Sender: No OFD packet to send [13:41:10]OFD Sender: No OFD packet to send [13:41:15]OFD Sender: No OFD packet to send [13:41:20]OFD Sender: No OFD packet to send [13:41:25]OFD Sender: No OFD packet to send [13:41:30]OFD Sender: No OFD packet to send [13:41:35]OFD Sender: No OFD packet to send [13:41:40]OFD Sender: No OFD packet to send [13:41:45]OFD Sender: No OFD packet to send [13:41:50]OFD Sender: No OFD packet to send [13:41:55]OFD Sender: No OFD packet to send [13:42:00]OFD Sender: No OFD packet to send [13:42:05]OFD Sender: No OFD packet to send [13:42:10]OFD Sender: No OFD packet to send [13:42:15]OFD Sender: No OFD packet to send [13:42:20]OFD Sender: No OFD packet to send [13:42:25]OFD Sender: No OFD packet to send [13:42:30]OFD Sender: No OFD packet to send [13:42:35]OFD Sender: No OFD packet to send [13:42:40]OFD Sender: No OFD packet to send [13:42:45]OFD Sender: No OFD packet to send [13:42:50]OFD Sender: No OFD packet to send [13:42:55]OFD Sender: No OFD packet to send [13:43:00]OFD Sender: No OFD packet to send [13:43:05]OFD Sender: No OFD packet to send [13:43:10]OFD Sender: No OFD packet to send [13:43:15]OFD Sender: No OFD packet to send [13:43:20]OFD Sender: No OFD packet to send [13:43:25]OFD Sender: No OFD packet to send [13:43:30]OFD Sender: No OFD packet to send [13:43:35]OFD Sender: No OFD packet to send [13:43:40]OFD Sender: No OFD packet to send [13:43:45]OFD Sender: No OFD packet to send [13:43:50]OFD Sender: No OFD packet to send [13:43:55]OFD Sender: No OFD packet to send [13:44:00]OFD Sender: No OFD packet to send [13:44:05]OFD Sender: No OFD packet to send [13:44:10]OFD Sender: No OFD packet to send [13:44:15]OFD Sender: No OFD packet to send [13:44:20]OFD Sender: No OFD packet to send [13:44:25]OFD Sender: No OFD packet to send [13:44:30]OFD Sender: No OFD packet to send [13:44:35]OFD Sender: No OFD packet to send [13:44:40]OFD Sender: No OFD packet to send [13:44:45]OFD Sender: No OFD packet to send [13:44:50]OFD Sender: No OFD packet to send [13:44:55]OFD Sender: No OFD packet to send [13:45:00]OFD Sender: No OFD packet to send [13:45:05]OFD Sender: No OFD packet to send [13:45:10]OFD Sender: No OFD packet to send [13:45:15]OFD Sender: No OFD packet to send [13:45:20]OFD Sender: No OFD packet to send [13:45:25]OFD Sender: No OFD packet to send [13:45:30]OFD Sender: No OFD packet to send [13:45:35]OFD Sender: No OFD packet to send [13:45:40]OFD Sender: No OFD packet to send [13:45:45]OFD Sender: No OFD packet to send [13:45:50]OFD Sender: No OFD packet to send [13:45:55]OFD Sender: No OFD packet to send [13:46:00]OFD Sender: No OFD packet to send [13:46:05]OFD Sender: No OFD packet to send [13:46:10]OFD Sender: No OFD packet to send [13:46:15]OFD Sender: No OFD packet to send [13:46:20]OFD Sender: No OFD packet to send [13:46:25]OFD Sender: No OFD packet to send [13:46:30]OFD Sender: No OFD packet to send [13:46:35]OFD Sender: No OFD packet to send [13:46:40]OFD Sender: No OFD packet to send [13:46:45]OFD Sender: No OFD packet to send [13:46:50]OFD Sender: No OFD packet to send [13:46:55]OFD Sender: No OFD packet to send [13:47:00]OFD Sender: No OFD packet to send [13:47:05]OFD Sender: No OFD packet to send [13:47:10]OFD Sender: No OFD packet to send [13:47:15]OFD Sender: No OFD packet to send [13:47:20]OFD Sender: No OFD packet to send [13:47:25]OFD Sender: No OFD packet to send [13:47:30]OFD Sender: No OFD packet to send [13:47:35]OFD Sender: No OFD packet to send [13:47:40]OFD Sender: No OFD packet to send [13:47:45]OFD Sender: No OFD packet to send [13:47:50]OFD Sender: No OFD packet to send [13:47:55]OFD Sender: No OFD packet to send [13:48:00]OFD Sender: No OFD packet to send [13:48:05]OFD Sender: No OFD packet to send [13:48:10]OFD Sender: No OFD packet to send [13:48:15]OFD Sender: No OFD packet to send [13:48:20]OFD Sender: No OFD packet to send [13:48:25]OFD Sender: No OFD packet to send [13:48:30]OFD Sender: No OFD packet to send [13:48:35]OFD Sender: No OFD packet to send [13:48:40]OFD Sender: No OFD packet to send [13:48:45]OFD Sender: No OFD packet to send [13:48:50]OFD Sender: No OFD packet to send [13:48:55]OFD Sender: No OFD packet to send [13:49:00]OFD Sender: No OFD packet to send [13:49:05]OFD Sender: No OFD packet to send [13:49:10]OFD Sender: No OFD packet to send [13:49:15]OFD Sender: No OFD packet to send [13:49:20]OFD Sender: No OFD packet to send [13:49:25]OFD Sender: No OFD packet to send [13:49:30]OFD Sender: No OFD packet to send [13:49:35]OFD Sender: No OFD packet to send [13:49:40]OFD Sender: No OFD packet to send [13:49:45]OFD Sender: No OFD packet to send [13:49:48]accept exits with 8 [13:49:48]New connection [13:49:48]New thread 3067284836 created [13:49:48]Thread 3067141476 joined [13:49:48]Waiting for new connection... [13:49:48] Sock 8.Parse request [13:49:48]Sock 8.Check first char [13:49:48]Sock 8.First char is OK [13:49:48]request: POST /json_proto HTTP/1.0 [13:49:48]Method: POST [13:49:48]URL: /json_proto [13:49:48]Method is POST - this is cgi request [13:49:48]url: /json_proto [13:49:48]query_string will be loaded in cgi processing [13:49:48]execute_cgi json_proto POST (null) [13:49:48]execute_cgi path=json_proto method=POST [13:49:48]POST find Content-Length [13:49:48]Host: 172.17.50.196:8080 [13:49:48]Content-Length: 962 [13:49:48]Content-Type: application/json [13:49:48] [13:49:48]POST finish read [13:49:48]Found Content-Length = 962 [13:49:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335321", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:48]execute_script... [13: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 : (3)335321", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681369", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u042B\u0420 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:49:48]POST & json_proto [13:49:48]process_json_proto [13:49:48]json parsed OK: [13:49:48]protocol is kg_v1.0 [13:49:48]action value=close_receipt [13:49:48]process_action close_receipt [13:49:48]cmd_close_receipt [13:49:48]MH_GetDate [13:49:48]Write to MH i2c: F0 00 00 88 43 BA [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: F0 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: F0 09 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: F0 09 00 88 43 00 81 39 22 67 72 0D 1C 67 08 [13:49:48]GetLastDocTimeStamp 1730295247 [13:49:48]current date 1730296193 [13:49:48]FM_GetShiftState [13:49:48]SAM_PROTO_GetShiftState [13:49:48]wFMCommunicate request_size=4 [13:49:48]MH_SAM_APDU [13:49:48]CAPDU: 80 13 01 00 [13:49:48]Write to MH i2c: E2 08 00 89 43 80 13 01 00 00 00 00 00 49 [13:49:48]Write i2c OK [13:49:48]MH_I2C_Read... [13:49:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:48]Read from MH i2c: E2 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 0E 00 [13:49:48]MH_I2C_Read... [13:49:48]Read from MH i2c: E2 0E 00 89 43 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D9 [13:49:48]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:49:48]wFMCommunicate OK [13:49:48]SAM_PROTO_GetShiftState done [13:49:48]FM_GetShiftState done [13:49:48]opened in 1730246278 [13:49:48]opened+sec_in_day 1730332678 [13:49:48]quantity*price = 9500 [13:49:48]sum+1 = 9501 [13:49:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681369 ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.18 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 99 30.10.2024 13:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139415 ФПД: 34298094825732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T134953&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139415&fm=34298094825732&tin=02508201610067®Number=0000000000091631&sum=19000 0 [13:49:49]StoreToDocumentArchive [13:49:49]shift 556 fd 139415 [13:49:49]save to /storage/0556/doc_00139415 [13:49:49]save last doc name /storage/0556/doc_00139415 to /storage/kkm_last_doc_name [13:49:49]save OK [13:49:49]Clear old archive folders... [13:49:49]ProcessDocumentItem done err = 0, tmpTLVsize=408 [13:49:49]tlvbuf is 011D7730 [13:49:49]SAM_PROTO_ClearQueue [13:49:49]wFMCommunicate request_size=4 [13:49:49]MH_SAM_APDU [13:49:49]CAPDU: 80 09 00 00 [13:49:49]Write to MH i2c: E2 08 00 96 43 80 09 00 00 00 00 00 00 4B [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:49:49]Read from MH i2c: E2 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 03 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 03 00 96 43 00 90 00 4D [13:49:49]RAPDU: 90 00 [13:49:49]wFMCommunicate OK [13:49:49]SAM_PROTO_ClearQueue done [13:49:49]KKMCreateOFDPacket [13:49:49]OFDProtocolAddRootSTLVToBuf [13:49:49]FM_MakeSignedData [13:49:49]FM_MakeSignedData [13:49:49]SAM_PROTO_SignData [13:49:49]wFMCommunicate request_size=4 [13:49:49]MH_SAM_APDU [13:49:49]CAPDU: 80 0D 01 02 [13:49:49]Write to MH i2c: E2 08 00 97 43 80 0D 01 02 00 00 00 00 53 [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:49:49]Read from MH i2c: E2 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 03 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 03 00 97 43 00 90 00 4E [13:49:49]RAPDU: 90 00 [13:49:49]wFMCommunicate OK [13:49:49]wFMCommunicate request_size=255 [13:49:49]MH_SAM_APDU [13:49:49]CAPDU: 80 0D 02 02 FA 03 00 98 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 [13:49:49]Write to MH i2c: E2 02 01 98 43 80 0D 02 02 FA 00 03 00 98 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 00 56 [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:49]Read from MH i2c: E2 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 03 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 03 00 98 43 00 90 00 4F [13:49:49]RAPDU: 90 00 [13:49:49]wFMCommunicate OK [13:49:49]wFMCommunicate request_size=167 [13:49:49]MH_SAM_APDU [13:49:49]CAPDU: 80 0D 02 02 A2 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 81 39 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 20 02 00 35 04 06 00 1F 31 A5 C2 31 04 [13:49:49]Write to MH i2c: E2 AA 00 99 43 80 0D 02 02 A2 00 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 81 39 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 20 02 00 35 04 06 00 1F 31 A5 C2 31 04 00 00 E8 [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:49:49]Read from MH i2c: E2 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 03 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 03 00 99 43 00 90 00 50 [13:49:49]RAPDU: 90 00 [13:49:49]wFMCommunicate OK [13:49:49]wFMCommunicate request_size=4 [13:49:49]MH_SAM_APDU [13:49:49]CAPDU: 80 0D 03 02 [13:49:49]Write to MH i2c: E2 08 00 9A 43 80 0D 03 02 00 00 00 00 58 [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:49:49]Read from MH i2c: E2 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 0B 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 0B 00 9A 43 00 38 A2 53 10 5A 20 98 D8 90 00 80 [13:49:49]RAPDU: 38 A2 53 10 5A 20 98 D8 90 00 [13:49:49]wFMCommunicate OK [13:49:49]SAM_PROTO_SignData done [13:49:49]FM_MakeSignedData done [13:49:49]CreateOFDProtocolMessage [13:49:49]wFMCommunicate request_size=4 [13:49:49]MH_SAM_APDU [13:49:49]CAPDU: 80 11 00 00 [13:49:49]Write to MH i2c: E2 08 00 9B 43 80 11 00 00 00 00 00 00 58 [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:49]Read from MH i2c: E2 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 17 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: E2 17 00 9B 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B3 [13:49:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:49:49]wFMCommunicate OK [13:49:49]CreateOFDProtocolMessage done [13:49:49]OFDSenderStorePacket 139415 [13:49:49]StoreOFDPacket docnum=139415 [13:49:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AC 01 00 00 6B A3 A4 01 7B 02 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 81 39 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 20 02 00 35 04 06 00 1F 31 A5 C2 31 04 38 A2 53 10 5A 20 98 D8 [13:49:49]CheckFolder [13:49:49]dirname=/storage/ofd_packets [13:49:49]CheckFolder done [13:49:49]ProducePacketName [13:49:49]name=ofd_packets/00139415 [13:49:49]NVStorageSaveData ofd_packets/00139415 [13:49:49]File name is /storage/ofd_packets/00139415 [13:49:49]Write 458 bytes [13:49:49]NVStorageSaveData done [13:49:49]OFDSenderStorePacket done [13:49:49]KKMCreateOFDPacket done [13:49:49]NVStorageSaveData kkm_last_timestamp [13:49:49]File name is /storage/kkm_last_timestamp [13:49:49]Write 4 bytes [13:49:49]NVStorageSaveData done [13:49:49]ExternCall_PrintAddStr [13:49:49]wPrintStart [13:49:49]Write to MH i2c: 01 00 00 9C 43 DF [13:49:49]Write i2c OK [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: 01 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: 01 07 00 [13:49:49]MH_I2C_Read... [13:49:49]Read from MH i2c: 01 07 00 9C 43 00 00 00 00 00 FF 0F F4 [13:49:49]RasterBufferAndPrint [13:49:49]line Счет N : (3)335321 [13:49:49]line ИНН: 02508201610067 [13:49:50]line Контрольно-Кассовый Чек [13:49:50]line ПРОДАЖА [13:49:50]line Товар: 4870235681376 [13:49:50]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [13:49:50]line 1.000 * 95.00 [13:49:50]line = 95.00 [13:49:50]line НДС 12% НСП 1% [13:49:50]line > о реализуемом товаре [13:49:50]line Товар: 4870235681369 [13:49:50]line ЧИПСЫ SLANG СО ВКУСОМ СЫР 60Г [13:49:50]line 1.000 * 95.00 [13:49:50]line = 95.00 [13:49:50]line НДС 12% НСП 1% [13:49:50]line > о реализуемом товаре [13:49:50]line ИТОГО: 190.00 [13:49:50]line НСП 1% : 1.68 [13:49:50]line НДС 12% : 20.18 [13:49:50]line Наличными: 190.00 [13:49:50]line Безнал.: 0.00 [13:49:50]line Место: АЗС № 101 "Партнер Нефть" [13:49:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:49:50]line СНО: Общий режим [13:49:50]line Чек 99 30.10.2024 13:49 [13:49:50]line Смена: 556 ФФД: 1.0 [13:49:50]line ЗНМ: 0300000081 [13:49:50]line РНМ: 0000000000091631 [13:49:50]line Версия ККМ: 001 [13:49:50]line ФМ: 0000000000874669 [13:49:50]line ФД: 139415 [13:49:50]line ФПД: 34298094825732 [13:49:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T134953&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139415&fm=34298094825732&tin=02508201610067®Number=0000000000091631&sum=19000 [13:49:50]OFD Sender: Processing packet 139415 [packets to send 34, broken 33] [13:49:50]ProducePacketName [13:49:50]name=ofd_packets/00139415 [13:49:50]OFD Sender: To server: pG, [13:49:50]CommunicateWithHost lk.salyk.kg:30040 [13:49:50]ConnectInit lk.salyk.kg [13:49:50]line 0 [13:49:50]written 0, free lines is 4095 [13:49:50]Connected sock=10 [13:49:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 AC 01 00 00 6B A3 A4 01 7B 02 5A 03 01 00 03 00 98 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 36 39 06 04 2E 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 AB D0 A0 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E2 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 63 00 00 00 F4 03 04 00 81 39 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 20 02 00 35 04 06 00 1F 31 A5 C2 31 04 38 A2 53 10 5A 20 98 D8 [13:49:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C8 F5 47 00 67 5D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 97 20 02 00 F4 03 04 00 32 E5 21 67 B6 04 01 00 00 D7 1F A1 D3 5B 9F 8D 9E [13:49:50]CommunicateWithHost err = 0 [13:49:50]CheckOFDResponse [13:49:50]1017 (14) - 77093643461234 [13:49:50]1041 (16) - 0000000000874669 [13:49:50]1040 (4) - 139415 [13:49:50]1012 (4) - 30.10.2024 07:50 [13:49:50]1206 (1) - 0 [13:49:50]OFD Sender: Remove packet 139415 [13:49:50]ProducePacketName [13:49:50]name=ofd_packets/00139415 [13:49:50]NVStorageDeleteData [13:49:50]Write to MH i2c: 01 00 00 CC 43 0F [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: 01 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: 01 07 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: 01 07 00 CC 43 00 00 00 00 00 B1 0C D3 [13:49:50]RasterBufferAndPrint [13:49:50]line [13:49:50]line [13:49:50]line [13:49:50]line [13:49:50]line [13:49:50]written 0, free lines is 3256 [13:49:50]MH_Cut [13:49:50]Write to MH i2c: D1 01 00 D3 43 01 E8 [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: D1 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: D1 01 00 [13:49:50]MH_I2C_Read... [13:49:50]Read from MH i2c: D1 01 00 D3 43 00 E7 [13:49:50]Write to MH i2c: 01 00 00 D4 43 17 [13:49:50]Write i2c OK [13:49:50]MH_I2C_Read... [13:49:51]OFD Sender: No OFD packet to send [13:49:51]*** Cut start [13:49:51]*** Partial cut [13:49:51]*** CUTSNS_PIN = 1 [13:49:51]*** CUTSNS_PIN = 0 [13:49:51]*** Brake cut motor [13:49:52]Read from MH i2c: 01 [13:49:52]MH_I2C_Read... [13:49:52]*** Stop cut motor [13:49:52]*** Cut end [13:49:52]Read from MH i2c: 01 07 00 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: 01 07 00 D4 43 00 00 00 00 00 FF 0F 2C [13:49:52]process_action close_receipt done [13:49:52]requested_data is exist [13:49:52]produce_requested_data [13:49:52]requested_item fm.sn is exist - process it [13:49:52]wFMCommunicate request_size=4 [13:49:52]MH_SAM_APDU [13:49:52]CAPDU: 80 11 00 00 [13:49:52]Write to MH i2c: E2 08 00 D5 43 80 11 00 00 00 00 00 00 92 [13:49:52]Write i2c OK [13:49:52]MH_I2C_Read... [13:49:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:49:52]Read from MH i2c: E2 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: E2 17 00 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: E2 17 00 D5 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 ED [13:49:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:49:52]wFMCommunicate OK [13:49:52]requested_item fd.num is exist - process it [13:49:52]SAM_PROTO_GetFieldsCounters [13:49:52]wFMCommunicate request_size=4 [13:49:52]MH_SAM_APDU [13:49:52]CAPDU: 80 13 00 00 [13:49:52]Write to MH i2c: E2 08 00 D6 43 80 13 00 00 00 00 00 00 95 [13:49:52]Write i2c OK [13:49:52]MH_I2C_Read... [13:49:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:49:52]Read from MH i2c: E2 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: E2 62 00 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: E2 62 00 D6 43 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 97 20 02 00 0E 04 04 00 2C 02 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 C9 [13:49:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 97 20 02 00 0E 04 04 00 2C 02 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 [13:49:52]wFMCommunicate OK [13:49:52]SAM_PROTO_GetFieldsCounters done [13:49:52]requested_item shift.num is exist - process it [13:49:52]requested_item shift.opened is exist - process it [13:49:52]req_shift_opened [13:49:52]FM_GetShiftState [13:49:52]SAM_PROTO_GetShiftState [13:49:52]wFMCommunicate request_size=4 [13:49:52]MH_SAM_APDU [13:49:52]CAPDU: 80 13 01 00 [13:49:52]Write to MH i2c: E2 08 00 D7 43 80 13 01 00 00 00 00 00 97 [13:49:52]Write i2c OK [13:49:52]MH_I2C_Read... [13:49:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:49:52]Read from MH i2c: E2 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: E2 0E 00 [13:49:52]MH_I2C_Read... [13:49:52]Read from MH i2c: E2 0E 00 D7 43 00 09 00 01 86 76 21 67 00 00 00 00 90 00 27 [13:49:52]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:49:52]wFMCommunicate OK [13:49:52]SAM_PROTO_GetShiftState done [13:49:52]FM_GetShiftState done [13:49:52]req_shift_opened done [13:49:52]requested_item shift.open_date is exist - process it [13:49:52]req_shift_open_date [13:49:52]req_shift_open_date done [13:49:52]produce_requested_data done [13:49:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139415,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [13:49:52]process_action_free close_receipt [13:49:52]json_value_free [13:49:52]json_value_free done [13:49:52]process_json_proto returns [13:49:52]Send response to host [13:49:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139415,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [13:49:52]free response buf [13:49:52]execute_script done [13:49:52]execute_script returns [13:49:52]free content buf [13:49:52]Sock 8.Close socket [13:49:52]Sock 8.Thread stoped [13:49:56]OFD Sender: No OFD packet to send [13:50:01]OFD Sender: No OFD packet to send [13:50:06]OFD Sender: No OFD packet to send [13:50:11]OFD Sender: No OFD packet to send [13:50:16]OFD Sender: No OFD packet to send [13:50:21]OFD Sender: No OFD packet to send [13:50:26]OFD Sender: No OFD packet to send [13:50:31]OFD Sender: No OFD packet to send [13:50:36]OFD Sender: No OFD packet to send [13:50:41]OFD Sender: No OFD packet to send [13:50:46]OFD Sender: No OFD packet to send [13:50:51]OFD Sender: No OFD packet to send [13:50:56]OFD Sender: No OFD packet to send [13:51:01]OFD Sender: No OFD packet to send [13:51:06]OFD Sender: No OFD packet to send [13:51:11]OFD Sender: No OFD packet to send [13:51:16]OFD Sender: No OFD packet to send [13:51:21]OFD Sender: No OFD packet to send [13:51:26]OFD Sender: No OFD packet to send [13:51:31]OFD Sender: No OFD packet to send [13:51:36]OFD Sender: No OFD packet to send [13:51:41]OFD Sender: No OFD packet to send [13:51:46]OFD Sender: No OFD packet to send [13:51:51]OFD Sender: No OFD packet to send [13:51:56]OFD Sender: No OFD packet to send [13:52:01]OFD Sender: No OFD packet to send [13:52:06]OFD Sender: No OFD packet to send [13:52:11]OFD Sender: No OFD packet to send [13:52:16]OFD Sender: No OFD packet to send [13:52:21]OFD Sender: No OFD packet to send [13:52:26]OFD Sender: No OFD packet to send [13:52:31]OFD Sender: No OFD packet to send [13:52:36]OFD Sender: No OFD packet to send [13:52:41]OFD Sender: No OFD packet to send [13:52:46]OFD Sender: No OFD packet to send [13:52:51]OFD Sender: No OFD packet to send [13:52:56]OFD Sender: No OFD packet to send [13:53:01]OFD Sender: No OFD packet to send [13:53:06]OFD Sender: No OFD packet to send [13:53:11]OFD Sender: No OFD packet to send [13:53:16]OFD Sender: No OFD packet to send [13:53:21]OFD Sender: No OFD packet to send [13:53:26]OFD Sender: No OFD packet to send [13:53:31]OFD Sender: No OFD packet to send [13:53:36]OFD Sender: No OFD packet to send [13:53:41]OFD Sender: No OFD packet to send [13:53:46]OFD Sender: No OFD packet to send [13:53:51]OFD Sender: No OFD packet to send [13:53:56]OFD Sender: No OFD packet to send [13:53:58]accept exits with 9 [13:53:58]New connection [13:53:58]New thread 3067141476 created [13:53:58]Thread 3067284836 joined [13:53:58]Waiting for new connection... [13:53:58] Sock 9.Parse request [13:53:58]Sock 9.Check first char [13:53:58]Sock 9.First char is OK [13:53:58]request: POST /json_proto HTTP/1.0 [13:53:58]Method: POST [13:53:58]URL: /json_proto [13:53:58]Method is POST - this is cgi request [13:53:58]url: /json_proto [13:53:58]query_string will be loaded in cgi processing [13:53:58]execute_cgi json_proto POST (null) [13:53:58]execute_cgi path=json_proto method=POST [13:53:58]POST find Content-Length [13:53:58]Host: 172.17.50.196:8080 [13:53:58]Content-Length: 646 [13:53:58]Content-Type: application/json [13:53:58] [13:53:58]POST finish read [13:53:58]Found Content-Length = 646 [13:53:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335322", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:58]execute_script... [13:53:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335322", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [13:53:58]POST & json_proto [13:53:58]process_json_proto [13:53:58]json parsed OK: [13:53:58]protocol is kg_v1.0 [13:53:58]action value=close_receipt [13:53:58]process_action close_receipt [13:53:58]cmd_close_receipt [13:53:58]MH_GetDate [13:53:58]Write to MH i2c: F0 00 00 D8 43 0A [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: F0 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: F0 09 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: F0 09 00 D8 43 00 7B 3A 22 67 72 0D 1C 67 53 [13:53:58]GetLastDocTimeStamp 1730296193 [13:53:58]current date 1730296443 [13:53:58]FM_GetShiftState [13:53:58]SAM_PROTO_GetShiftState [13:53:58]wFMCommunicate request_size=4 [13:53:58]MH_SAM_APDU [13:53:58]CAPDU: 80 13 01 00 [13:53:58]Write to MH i2c: E2 08 00 D9 43 80 13 01 00 00 00 00 00 99 [13:53:58]Write i2c OK [13:53:58]MH_I2C_Read... [13:53:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:53:58]Read from MH i2c: E2 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 0E 00 [13:53:58]MH_I2C_Read... [13:53:58]Read from MH i2c: E2 0E 00 D9 43 00 09 00 01 86 76 21 67 00 00 00 00 90 00 29 [13:53:58]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:53:58]wFMCommunicate OK [13:53:58]SAM_PROTO_GetShiftState done [13:53:58]FM_GetShiftState done [13:53:58]opened in 1730246278 [13:53:58]opened+sec_in_day 1730332678 [13:53:58]quantity*price = 13000 [13:53:58]sum+1 = 13001 [13:53:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 100 30.10.2024 13:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139416 ФПД: 8523162748043 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135403&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139416&fm=8523162748043&tin=02508201610067®Number=0000000000091631&sum=13000 0 [13:53:59]StoreToDocumentArchive [13:53:59]shift 556 fd 139416 [13:53:59]save to /storage/0556/doc_00139416 [13:53:59]save last doc name /storage/0556/doc_00139416 to /storage/kkm_last_doc_name [13:53:59]save OK [13:53:59]Clear old archive folders... [13:53:59]ProcessDocumentItem done err = 0, tmpTLVsize=282 [13:53:59]tlvbuf is 01112FF0 [13:53:59]SAM_PROTO_ClearQueue [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 09 00 00 [13:53:59]Write to MH i2c: E2 08 00 E6 43 80 09 00 00 00 00 00 00 9B [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 E6 43 00 90 00 9D [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]SAM_PROTO_ClearQueue done [13:53:59]KKMCreateOFDPacket [13:53:59]OFDProtocolAddRootSTLVToBuf [13:53:59]FM_MakeSignedData [13:53:59]FM_MakeSignedData [13:53:59]SAM_PROTO_SignData [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 01 02 [13:53:59]Write to MH i2c: E2 08 00 E7 43 80 0D 01 02 00 00 00 00 A3 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 E7 43 00 90 00 9E [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=255 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 00 00 00 F4 03 04 00 7B 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [13:53:59]Write to MH i2c: E2 02 01 E8 43 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 00 00 00 F4 03 04 00 7B 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 00 00 7D [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 E8 43 00 90 00 9F [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=41 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 20 02 00 35 04 06 00 07 C0 74 16 84 8B [13:53:59]Write to MH i2c: E2 2C 00 E9 43 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 20 02 00 35 04 06 00 07 C0 74 16 84 8B 00 00 97 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:53:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [13:53:59]Read from MH i2c: E2 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 [13:53:59]MH_I2C_Read... [13:53:59]Read from MH i2c: E2 03 00 E9 43 00 90 00 A0 [13:53:59]RAPDU: 90 00 [13:53:59]wFMCommunicate OK [13:53:59]wFMCommunicate request_size=4 [13:53:59]MH_SAM_APDU [13:53:59]CAPDU: 80 0D 03 02 [13:53:59]Write to MH i2c: E2 08 00 EA 43 80 0D 03 02 00 00 00 00 A8 [13:53:59]Write i2c OK [13:53:59]MH_I2C_Read... [13:54:00]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [13:54:00]Read from MH i2c: E2 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 0B 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 0B 00 EA 43 00 AB 3C 53 A7 5C 44 70 FE 90 00 98 [13:54:00]RAPDU: AB 3C 53 A7 5C 44 70 FE 90 00 [13:54:00]wFMCommunicate OK [13:54:00]SAM_PROTO_SignData done [13:54:00]FM_MakeSignedData done [13:54:00]CreateOFDProtocolMessage [13:54:00]wFMCommunicate request_size=4 [13:54:00]MH_SAM_APDU [13:54:00]CAPDU: 80 11 00 00 [13:54:00]Write to MH i2c: E2 08 00 EB 43 80 11 00 00 00 00 00 00 A8 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:00]Read from MH i2c: E2 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 17 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: E2 17 00 EB 43 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 03 [13:54:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:54:00]wFMCommunicate OK [13:54:00]CreateOFDProtocolMessage done [13:54:00]OFDSenderStorePacket 139416 [13:54:00]StoreOFDPacket docnum=139416 [13:54:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 A9 1A 26 01 3C 71 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 00 00 00 F4 03 04 00 7B 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 20 02 00 35 04 06 00 07 C0 74 16 84 8B AB 3C 53 A7 5C 44 70 FE [13:54:00]CheckFolder [13:54:00]dirname=/storage/ofd_packets [13:54:00]CheckFolder done [13:54:00]ProducePacketName [13:54:00]name=ofd_packets/00139416 [13:54:00]NVStorageSaveData ofd_packets/00139416 [13:54:00]File name is /storage/ofd_packets/00139416 [13:54:00]Write 332 bytes [13:54:00]NVStorageSaveData done [13:54:00]OFDSenderStorePacket done [13:54:00]KKMCreateOFDPacket done [13:54:00]NVStorageSaveData kkm_last_timestamp [13:54:00]File name is /storage/kkm_last_timestamp [13:54:00]Write 4 bytes [13:54:00]NVStorageSaveData done [13:54:00]ExternCall_PrintAddStr [13:54:00]wPrintStart [13:54:00]Write to MH i2c: 01 00 00 EC 43 2F [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 EC 43 00 00 00 00 00 FF 0F 44 [13:54:00]RasterBufferAndPrint [13:54:00]line Счет N : (3)335322 [13:54:00]line ИНН: 02508201610067 [13:54:00]line Контрольно-Кассовый Чек [13:54:00]line ПРОДАЖА [13:54:00]line Товар: 2000036220012 [13:54:00]line Кофе Капучино XL(GABB TRADE) [13:54:00]line 1.000 * 130.00 [13:54:00]line = 130.00 [13:54:00]line НДС 12% НСП 1% [13:54:00]line > о реализуемом товаре [13:54:00]line ИТОГО: 130.00 [13:54:00]line НСП 1% : 1.15 [13:54:00]line НДС 12% : 13.80 [13:54:00]line Наличными: 130.00 [13:54:00]line Безнал.: 0.00 [13:54:00]line Место: АЗС № 101 "Партнер Нефть" [13:54:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [13:54:00]line СНО: Общий режим [13:54:00]line Чек 100 30.10.2024 13:54 [13:54:00]line Смена: 556 ФФД: 1.0 [13:54:00]line ЗНМ: 0300000081 [13:54:00]line РНМ: 0000000000091631 [13:54:00]line Версия ККМ: 001 [13:54:00]line ФМ: 0000000000874669 [13:54:00]line ФД: 139416 [13:54:00]line ФПД: 8523162748043 [13:54:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T135403&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139416&fm=8523162748043&tin=02508201610067®Number=0000000000091631&sum=13000 [13:54:00]line 0 [13:54:00]OFD Sender: Processing packet 139416 [packets to send 34, broken 33] [13:54:00]ProducePacketName [13:54:00]name=ofd_packets/00139416 [13:54:00]OFD Sender: To server: pG, [13:54:00]CommunicateWithHost lk.salyk.kg:30040 [13:54:00]ConnectInit lk.salyk.kg [13:54:00]written 0, free lines is 4095 [13:54:00]Connected sock=10 [13:54:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 A9 1A 26 01 3C 71 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 00 00 00 F4 03 04 00 7B 3A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 98 20 02 00 35 04 06 00 07 C0 74 16 84 8B AB 3C 53 A7 5C 44 70 FE [13:54:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 67 F9 47 00 EA 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 38 37 34 36 36 39 10 04 04 00 98 20 02 00 F4 03 04 00 2C E6 21 67 B6 04 01 00 00 1C 7A EB D8 74 3C B0 E0 [13:54:00]CommunicateWithHost err = 0 [13:54:00]CheckOFDResponse [13:54:00]1017 (14) - 77093643461234 [13:54:00]1041 (16) - 0000000000874669 [13:54:00]1040 (4) - 139416 [13:54:00]1012 (4) - 30.10.2024 07:54 [13:54:00]1206 (1) - 0 [13:54:00]OFD Sender: Remove packet 139416 [13:54:00]ProducePacketName [13:54:00]name=ofd_packets/00139416 [13:54:00]NVStorageDeleteData [13:54:00]Write to MH i2c: 01 00 00 15 44 59 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: 01 07 00 15 44 00 00 00 00 00 01 0D 6E [13:54:00]RasterBufferAndPrint [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]line [13:54:00]written 0, free lines is 3335 [13:54:00]MH_Cut [13:54:00]Write to MH i2c: D1 01 00 1C 44 01 32 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 01 00 [13:54:00]MH_I2C_Read... [13:54:00]Read from MH i2c: D1 01 00 1C 44 00 31 [13:54:00]Write to MH i2c: 01 00 00 1D 44 61 [13:54:00]Write i2c OK [13:54:00]MH_I2C_Read... [13:54:01]OFD Sender: No OFD packet to send [13:54:01]*** Cut start [13:54:01]*** Partial cut [13:54:01]*** CUTSNS_PIN = 1 [13:54:01]*** CUTSNS_PIN = 0 [13:54:01]*** Brake cut motor [13:54:02]Read from MH i2c: 01 [13:54:02]MH_I2C_Read... [13:54:02]*** Stop cut motor [13:54:02]*** Cut end [13:54:02]Read from MH i2c: 01 07 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: 01 07 00 1D 44 00 00 00 00 00 FF 0F 76 [13:54:02]process_action close_receipt done [13:54:02]requested_data is exist [13:54:02]produce_requested_data [13:54:02]requested_item fm.sn is exist - process it [13:54:02]wFMCommunicate request_size=4 [13:54:02]MH_SAM_APDU [13:54:02]CAPDU: 80 11 00 00 [13:54:02]Write to MH i2c: E2 08 00 1E 44 80 11 00 00 00 00 00 00 DC [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [13:54:02]Read from MH i2c: E2 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 17 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 17 00 1E 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 37 [13:54:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [13:54:02]wFMCommunicate OK [13:54:02]requested_item fd.num is exist - process it [13:54:02]SAM_PROTO_GetFieldsCounters [13:54:02]wFMCommunicate request_size=4 [13:54:02]MH_SAM_APDU [13:54:02]CAPDU: 80 13 00 00 [13:54:02]Write to MH i2c: E2 08 00 1F 44 80 13 00 00 00 00 00 00 DF [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [13:54:02]Read from MH i2c: E2 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 62 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 62 00 1F 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 98 20 02 00 0E 04 04 00 2C 02 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 17 [13:54:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 98 20 02 00 0E 04 04 00 2C 02 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 [13:54:02]wFMCommunicate OK [13:54:02]SAM_PROTO_GetFieldsCounters done [13:54:02]requested_item shift.num is exist - process it [13:54:02]requested_item shift.opened is exist - process it [13:54:02]req_shift_opened [13:54:02]FM_GetShiftState [13:54:02]SAM_PROTO_GetShiftState [13:54:02]wFMCommunicate request_size=4 [13:54:02]MH_SAM_APDU [13:54:02]CAPDU: 80 13 01 00 [13:54:02]Write to MH i2c: E2 08 00 20 44 80 13 01 00 00 00 00 00 E1 [13:54:02]Write i2c OK [13:54:02]MH_I2C_Read... [13:54:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [13:54:02]Read from MH i2c: E2 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 0E 00 [13:54:02]MH_I2C_Read... [13:54:02]Read from MH i2c: E2 0E 00 20 44 00 09 00 01 86 76 21 67 00 00 00 00 90 00 71 [13:54:02]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [13:54:02]wFMCommunicate OK [13:54:02]SAM_PROTO_GetShiftState done [13:54:02]FM_GetShiftState done [13:54:02]req_shift_opened done [13:54:02]requested_item shift.open_date is exist - process it [13:54:02]req_shift_open_date [13:54:02]req_shift_open_date done [13:54:02]produce_requested_data done [13:54:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139416,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [13:54:02]process_action_free close_receipt [13:54:02]json_value_free [13:54:02]json_value_free done [13:54:02]process_json_proto returns [13:54:02]Send response to host [13:54:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139416,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [13:54:02]free response buf [13:54:02]execute_script done [13:54:02]execute_script returns [13:54:02]free content buf [13:54:02]Sock 9.Close socket [13:54:02]Sock 9.Thread stoped [13:54:06]OFD Sender: No OFD packet to send [13:54:11]OFD Sender: No OFD packet to send [13:54:16]OFD Sender: No OFD packet to send [13:54:21]OFD Sender: No OFD packet to send [13:54:26]OFD Sender: No OFD packet to send [13:54:31]OFD Sender: No OFD packet to send [13:54:36]OFD Sender: No OFD packet to send [13:54:41]OFD Sender: No OFD packet to send [13:54:46]OFD Sender: No OFD packet to send [13:54:51]OFD Sender: No OFD packet to send [13:54:56]OFD Sender: No OFD packet to send [13:55:01]OFD Sender: No OFD packet to send [13:55:06]OFD Sender: No OFD packet to send [13:55:11]OFD Sender: No OFD packet to send [13:55:16]OFD Sender: No OFD packet to send [13:55:21]OFD Sender: No OFD packet to send [13:55:26]OFD Sender: No OFD packet to send [13:55:31]OFD Sender: No OFD packet to send [13:55:36]OFD Sender: No OFD packet to send [13:55:41]OFD Sender: No OFD packet to send [13:55:46]OFD Sender: No OFD packet to send [13:55:51]OFD Sender: No OFD packet to send [13:55:56]OFD Sender: No OFD packet to send [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:26]OFD Sender: No OFD packet to send [13:56:31]OFD Sender: No OFD packet to send [13:56:36]OFD Sender: No OFD packet to send [13:56:41]OFD Sender: No OFD packet to send [13:56:46]OFD Sender: No OFD packet to send [13:56:51]OFD Sender: No OFD packet to send [13:56:56]OFD Sender: No OFD packet to send [13:57:01]OFD Sender: No OFD packet to send [13:57:06]OFD Sender: No OFD packet to send [13:57:11]OFD Sender: No OFD packet to send [13:57:16]OFD Sender: No OFD packet to send [13:57:21]OFD Sender: No OFD packet to send [13:57:26]OFD Sender: No OFD packet to send [13:57:31]OFD Sender: No OFD packet to send [13:57:36]OFD Sender: No OFD packet to send [13:57:41]OFD Sender: No OFD packet to send [13:57:46]OFD Sender: No OFD packet to send [13:57:51]OFD Sender: No OFD packet to send [13:57:56]OFD Sender: No OFD packet to send [13:58:01]OFD Sender: No OFD packet to send [13:58:06]OFD Sender: No OFD packet to send [13:58:11]OFD Sender: No OFD packet to send [13:58:16]OFD Sender: No OFD packet to send [13:58:21]OFD Sender: No OFD packet to send [13:58:26]OFD Sender: No OFD packet to send [13:58:31]OFD Sender: No OFD packet to send [13:58:36]OFD Sender: No OFD packet to send [13:58:41]OFD Sender: No OFD packet to send [13:58:46]OFD Sender: No OFD packet to send [13:58:51]OFD Sender: No OFD packet to send [13:58:56]OFD Sender: No OFD packet to send [13:59:01]OFD Sender: No OFD packet to send [13:59:06]OFD Sender: No OFD packet to send [13:59:11]OFD Sender: No OFD packet to send [13:59:16]OFD Sender: No OFD packet to send [13:59:21]OFD Sender: No OFD packet to send [13:59:26]OFD Sender: No OFD packet to send [13:59:31]OFD Sender: No OFD packet to send [13:59:36]OFD Sender: No OFD packet to send [13:59:41]OFD Sender: No OFD packet to send [13:59:46]OFD Sender: No OFD packet to send [13:59:51]OFD Sender: No OFD packet to send [13:59:56]OFD Sender: No OFD packet to send [14:00:01]OFD Sender: No OFD packet to send [14:00:06]OFD Sender: No OFD packet to send [14:00:11]OFD Sender: No OFD packet to send [14:00:16]OFD Sender: No OFD packet to send [14:00:21]OFD Sender: No OFD packet to send [14:00:26]OFD Sender: No OFD packet to send [14:00:31]OFD Sender: No OFD packet to send [14:00:36]OFD Sender: No OFD packet to send [14:00:41]OFD Sender: No OFD packet to send [14:00:46]OFD Sender: No OFD packet to send [14:00:51]OFD Sender: No OFD packet to send [14:00:56]OFD Sender: No OFD packet to send [14:01:01]OFD Sender: No OFD packet to send [14:01:06]OFD Sender: No OFD packet to send [14:01:11]OFD Sender: No OFD packet to send [14:01:16]OFD Sender: No OFD packet to send [14:01:21]OFD Sender: No OFD packet to send [14:01:26]OFD Sender: No OFD packet to send [14:01:31]OFD Sender: No OFD packet to send [14:01:36]OFD Sender: No OFD packet to send [14:01:41]OFD Sender: No OFD packet to send [14:01:46]OFD Sender: No OFD packet to send [14:01:51]OFD Sender: No OFD packet to send [14:01:56]OFD Sender: No OFD packet to send [14:02:01]OFD Sender: No OFD packet to send [14:02:06]OFD Sender: No OFD packet to send [14:02:11]OFD Sender: No OFD packet to send [14:02:16]OFD Sender: No OFD packet to send [14:02:21]OFD Sender: No OFD packet to send [14:02:26]OFD Sender: No OFD packet to send [14:02:31]OFD Sender: No OFD packet to send [14:02:36]OFD Sender: No OFD packet to send [14:02:41]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [14:05:56]OFD Sender: No OFD packet to send [14:06:01]OFD Sender: No OFD packet to send [14:06:06]OFD Sender: No OFD packet to send [14:06:11]OFD Sender: No OFD packet to send [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:29]accept exits with 8 [14:06:29]New connection [14:06:29]New thread 3067284836 created [14:06:29]Thread 3067141476 joined [14:06:29]Waiting for new connection... [14:06:29] Sock 8.Parse request [14:06:29]Sock 8.Check first char [14:06:29]Sock 8.First char is OK [14:06:29]request: POST /json_proto HTTP/1.0 [14:06:29]Method: POST [14:06:29]URL: /json_proto [14:06:29]Method is POST - this is cgi request [14:06:29]url: /json_proto [14:06:29]query_string will be loaded in cgi processing [14:06:29]execute_cgi json_proto POST (null) [14:06:29]execute_cgi path=json_proto method=POST [14:06:29]POST find Content-Length [14:06:29]Host: 172.17.50.196:8080 [14:06:29]Content-Length: 683 [14:06:29]Content-Type: application/json [14:06:29] [14:06:29]POST finish read [14:06:29]Found Content-Length = 683 [14:06:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:06:29]execute_script... [14:06: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)1094535", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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" ] } } [14:06:29]POST & json_proto [14:06:29]process_json_proto [14:06:29]json parsed OK: [14:06:29]protocol is kg_v1.0 [14:06:29]action value=close_receipt [14:06:29]process_action close_receipt [14:06:29]cmd_close_receipt [14:06:29]MH_GetDate [14:06:29]Write to MH i2c: F0 00 00 21 44 54 [14:06:29]Write i2c OK [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: F0 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: F0 09 00 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: F0 09 00 21 44 00 6A 3D 22 67 72 0D 1C 67 8F [14:06:29]GetLastDocTimeStamp 1730296443 [14:06:29]current date 1730297194 [14:06:29]FM_GetShiftState [14:06:29]SAM_PROTO_GetShiftState [14:06:29]wFMCommunicate request_size=4 [14:06:29]MH_SAM_APDU [14:06:29]CAPDU: 80 13 01 00 [14:06:29]Write to MH i2c: E2 08 00 22 44 80 13 01 00 00 00 00 00 E3 [14:06:29]Write i2c OK [14:06:29]MH_I2C_Read... [14:06:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:29]Read from MH i2c: E2 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: E2 0E 00 [14:06:29]MH_I2C_Read... [14:06:29]Read from MH i2c: E2 0E 00 22 44 00 09 00 01 86 76 21 67 00 00 00 00 90 00 73 [14:06:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:06:29]wFMCommunicate OK [14:06:29]SAM_PROTO_GetShiftState done [14:06:29]FM_GetShiftState done [14:06:29]opened in 1730246278 [14:06:29]opened+sec_in_day 1730332678 [14:06:29]quantity*price = 130053 [14:06:29]sum+1 = 130055 [14:06:29]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.54 ИТОГО: 1300.00 Внесено: 1300.00 СДАЧА: 0.00 НСП 1% : 11.51 НДС 12% : 138.11 Наличными: 1300.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 101 30.10.2024 14:06 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139417 ФПД: 200941093515322 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140634&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139417&fm=200941093515322&tin=02508201610067®Number=0000000000091631&sum=130000 [14:06:30]StoreToDocumentArchive [14:06:30]shift 556 fd 139417 [14:06:30]save to /storage/0556/doc_00139417 [14:06:30]save last doc name /storage/0556/doc_00139417 to /storage/kkm_last_doc_name [14:06:30]save OK [14:06:30]Clear old archive folders... [14:06:30]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:06:30]tlvbuf is 011FBE90 [14:06:30]SAM_PROTO_ClearQueue [14:06:30]wFMCommunicate request_size=4 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 09 00 00 [14:06:30]Write to MH i2c: E2 08 00 2F 44 80 09 00 00 00 00 00 00 E5 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 2F 44 00 90 00 E7 [14:06:30]RAPDU: 90 00 [14:06:30]wFMCommunicate OK [14:06:30]SAM_PROTO_ClearQueue done [14:06:30]KKMCreateOFDPacket [14:06:30]OFDProtocolAddRootSTLVToBuf [14:06:30]FM_MakeSignedData [14:06:30]FM_MakeSignedData [14:06:30]SAM_PROTO_SignData [14:06:30]wFMCommunicate request_size=4 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 0D 01 02 [14:06:30]Write to MH i2c: E2 08 00 30 44 80 0D 01 02 00 00 00 00 ED [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 30 44 00 90 00 E8 [14:06:30]RAPDU: 90 00 [14:06:30]wFMCommunicate OK [14:06:30]wFMCommunicate request_size=255 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 65 00 00 00 F4 03 04 00 6A 3D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 20 02 00 35 04 06 00 B6 [14:06:30]Write to MH i2c: E2 02 01 31 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 32 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 65 00 00 00 F4 03 04 00 6A 3D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 20 02 00 35 04 06 00 B6 00 00 E8 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 31 44 00 90 00 E9 [14:06:30]RAPDU: 90 00 [14:06:30]wFMCommunicate OK [14:06:30]wFMCommunicate request_size=10 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 0D 02 02 05 C1 3E 7F F0 3A [14:06:30]Write to MH i2c: E2 0D 00 32 44 80 0D 02 02 05 00 C1 3E 7F F0 3A 00 00 A2 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 03 00 32 44 00 90 00 EA [14:06:30]RAPDU: 90 00 [14:06:30]wFMCommunicate OK [14:06:30]wFMCommunicate request_size=4 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 0D 03 02 [14:06:30]Write to MH i2c: E2 08 00 33 44 80 0D 03 02 00 00 00 00 F2 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 0B 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 0B 00 33 44 00 47 05 13 8E C4 BA 7E 0E 90 00 EA [14:06:30]RAPDU: 47 05 13 8E C4 BA 7E 0E 90 00 [14:06:30]wFMCommunicate OK [14:06:30]SAM_PROTO_SignData done [14:06:30]FM_MakeSignedData done [14:06:30]CreateOFDProtocolMessage [14:06:30]wFMCommunicate request_size=4 [14:06:30]MH_SAM_APDU [14:06:30]CAPDU: 80 11 00 00 [14:06:30]Write to MH i2c: E2 08 00 34 44 80 11 00 00 00 00 00 00 F2 [14:06:30]Write i2c OK [14:06:30]MH_I2C_Read... [14:06:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:30]Read from MH i2c: E2 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 17 00 [14:06:30]MH_I2C_Read... [14:06:30]Read from MH i2c: E2 17 00 34 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4D [14:06:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:06:30]wFMCommunicate OK [14:06:30]CreateOFDProtocolMessage done [14:06:30]OFDSenderStorePacket 139417 [14:06:30]StoreOFDPacket docnum=139417 [14:06:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 0D E8 07 01 DE D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 65 00 00 00 F4 03 04 00 6A 3D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 20 02 00 35 04 06 00 B6 C1 3E 7F F0 3A 47 05 13 8E C4 BA 7E 0E [14:06:30]CheckFolder [14:06:30]dirname=/storage/ofd_packets [14:06:30]CheckFolder done [14:06:30]ProducePacketName [14:06:30]name=ofd_packets/00139417 [14:06:30]NVStorageSaveData ofd_packets/00139417 [14:06:30]File name is /storage/ofd_packets/00139417 [14:06:30]Write 301 bytes [14:06:30]NVStorageSaveData done [14:06:30]OFDSenderStorePacket done [14:06:30]KKMCreateOFDPacket done [14:06:30]NVStorageSaveData kkm_last_timestamp [14:06:30]File name is /storage/kkm_last_timestamp [14:06:30]Write 4 bytes [14:06:30]NVStorageSaveData done [14:06:30]ExternCall_PrintAddStr [14:06:30]wPrintStart [14:06:30]Write to MH i2c: 01 00 00 35 44 79 [14:06:30]OFD Sender: Processing packet 139417 [packets to send 34, broken 33] [14:06:30]ProducePacketName [14:06:30]name=ofd_packets/00139417 [14:06:30]OFD Sender: To server: pG, [14:06:31]CommunicateWithHost lk.salyk.kg:30040 [14:06:31]ConnectInit lk.salyk.kg [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: 01 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: 01 07 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: 01 07 00 35 44 00 00 00 00 00 FF 0F 8E [14:06:31]RasterBufferAndPrint [14:06:31]line Счет N : (1)1094535 [14:06:31]line ИНН: 02508201610067 [14:06:31]line Контрольно-Кассовый Чек [14:06:31]line ПРОДАЖА [14:06:31]line ТРК (МРК, ГНК) : 43 [14:06:31]line Товар: 2710124130 [14:06:31]line Аи-92-К-2 [14:06:31]line 19.440 * 66.90 [14:06:31]line = 1300.54 [14:06:31]line НДС 12% НСП 1% [14:06:31]line > о реализуемом товаре [14:06:31]line ОКРУГЛЕНИЕ: -0.54 [14:06:31]line ИТОГО: 1300.00 [14:06:31]line Внесено: 1300.00 [14:06:31]line СДАЧА: 0.00 [14:06:31]line НСП 1% : 11.51 [14:06:31]line НДС 12% : 138.11 [14:06:31]line Наличными: 1300.00 [14:06:31]line Безнал.: 0.00 [14:06:31]line Место: АЗС № 101 "Партнер Нефть" [14:06:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:06:31]line СНО: Общий режим [14:06:31]line Чек 101 30.10.2024 14:06 [14:06:31]line Смена: 556 ФФД: 1.0 [14:06:31]line ЗНМ: 0300000081 [14:06:31]line РНМ: 0000000000091631 [14:06:31]line Версия ККМ: 001 [14:06:31]line ФМ: 0000000000874669 [14:06:31]line ФД: 139417 [14:06:31]line ФПД: 200941093515322 [14:06:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T140634&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139417&fm=200941093515322&tin=02508201610067®Number=0000000000091631&sum=130000 [14:06:31]Connected sock=10 [14:06:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 0D E8 07 01 DE D1 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 65 00 00 00 F4 03 04 00 6A 3D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 20 02 00 35 04 06 00 B6 C1 3E 7F F0 3A 47 05 13 8E C4 BA 7E 0E [14:06:31]written 0, free lines is 4095 [14:06:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F0 13 47 00 52 5A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 99 20 02 00 F4 03 04 00 1B E9 21 67 B6 04 01 00 00 5F F5 AE 8C A4 52 3B C2 [14:06:31]CommunicateWithHost err = 0 [14:06:31]CheckOFDResponse [14:06:31]1017 (14) - 77093643461234 [14:06:31]1041 (16) - 0000000000874669 [14:06:31]1040 (4) - 139417 [14:06:31]1012 (4) - 30.10.2024 08:06 [14:06:31]1206 (1) - 0 [14:06:31]OFD Sender: Remove packet 139417 [14:06:31]ProducePacketName [14:06:31]name=ofd_packets/00139417 [14:06:31]NVStorageDeleteData [14:06:31]Write to MH i2c: 01 00 00 60 44 A4 [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: 01 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: 01 07 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: 01 07 00 60 44 00 00 00 00 00 F3 0C AA [14:06:31]RasterBufferAndPrint [14:06:31]line [14:06:31]line [14:06:31]line [14:06:31]line [14:06:31]line [14:06:31]written 0, free lines is 3324 [14:06:31]MH_Cut [14:06:31]Write to MH i2c: D1 01 00 67 44 01 7D [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: D1 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: D1 01 00 [14:06:31]MH_I2C_Read... [14:06:31]Read from MH i2c: D1 01 00 67 44 00 7C [14:06:31]Write to MH i2c: 01 00 00 68 44 AC [14:06:31]Write i2c OK [14:06:31]MH_I2C_Read... [14:06:32]OFD Sender: No OFD packet to send [14:06:32]*** Cut start [14:06:32]*** Partial cut [14:06:32]*** CUTSNS_PIN = 1 [14:06:32]*** CUTSNS_PIN = 0 [14:06:32]*** Brake cut motor [14:06:33]Read from MH i2c: 01 [14:06:33]MH_I2C_Read... [14:06:33]*** Stop cut motor [14:06:33]*** Cut end [14:06:33]Read from MH i2c: 01 07 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: 01 07 00 68 44 00 00 00 00 00 FF 0F C1 [14:06:33]process_action close_receipt done [14:06:33]requested_data is exist [14:06:33]produce_requested_data [14:06:33]requested_item fm.sn is exist - process it [14:06:33]wFMCommunicate request_size=4 [14:06:33]MH_SAM_APDU [14:06:33]CAPDU: 80 11 00 00 [14:06:33]Write to MH i2c: E2 08 00 69 44 80 11 00 00 00 00 00 00 27 [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:06:33]Read from MH i2c: E2 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 17 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 17 00 69 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 82 [14:06:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:06:33]wFMCommunicate OK [14:06:33]requested_item fd.num is exist - process it [14:06:33]SAM_PROTO_GetFieldsCounters [14:06:33]wFMCommunicate request_size=4 [14:06:33]MH_SAM_APDU [14:06:33]CAPDU: 80 13 00 00 [14:06:33]Write to MH i2c: E2 08 00 6A 44 80 13 00 00 00 00 00 00 2A [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:06:33]Read from MH i2c: E2 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 62 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 62 00 6A 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 99 20 02 00 0E 04 04 00 2C 02 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 66 [14:06:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 99 20 02 00 0E 04 04 00 2C 02 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 [14:06:33]wFMCommunicate OK [14:06:33]SAM_PROTO_GetFieldsCounters done [14:06:33]requested_item shift.num is exist - process it [14:06:33]requested_item shift.opened is exist - process it [14:06:33]req_shift_opened [14:06:33]FM_GetShiftState [14:06:33]SAM_PROTO_GetShiftState [14:06:33]wFMCommunicate request_size=4 [14:06:33]MH_SAM_APDU [14:06:33]CAPDU: 80 13 01 00 [14:06:33]Write to MH i2c: E2 08 00 6B 44 80 13 01 00 00 00 00 00 2C [14:06:33]Write i2c OK [14:06:33]MH_I2C_Read... [14:06:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:06:33]Read from MH i2c: E2 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 0E 00 [14:06:33]MH_I2C_Read... [14:06:33]Read from MH i2c: E2 0E 00 6B 44 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BC [14:06:33]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:06:33]wFMCommunicate OK [14:06:33]SAM_PROTO_GetShiftState done [14:06:33]FM_GetShiftState done [14:06:33]req_shift_opened done [14:06:33]requested_item shift.open_date is exist - process it [14:06:33]req_shift_open_date [14:06:33]req_shift_open_date done [14:06:33]produce_requested_data done [14:06:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139417,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:06:33]process_action_free close_receipt [14:06:33]json_value_free [14:06:33]json_value_free done [14:06:33]process_json_proto returns [14:06:33]Send response to host [14:06:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139417,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:06:33]free response buf [14:06:33]execute_script done [14:06:33]execute_script returns [14:06:33]free content buf [14:06:33]Sock 8.Close socket [14:06:33]Sock 8.Thread stoped [14:06:37]OFD Sender: No OFD packet to send [14:06:42]OFD Sender: No OFD packet to send [14:06:47]OFD Sender: No OFD packet to send [14:06:52]OFD Sender: No OFD packet to send [14:06:57]OFD Sender: No OFD packet to send [14:07:02]OFD Sender: No OFD packet to send [14:07:07]OFD Sender: No OFD packet to send [14:07:12]OFD Sender: No OFD packet to send [14:07:17]OFD Sender: No OFD packet to send [14:07:22]OFD Sender: No OFD packet to send [14:07:27]OFD Sender: No OFD packet to send [14:07:32]OFD Sender: No OFD packet to send [14:07:37]OFD Sender: No OFD packet to send [14:07:42]OFD Sender: No OFD packet to send [14:07:47]OFD Sender: No OFD packet to send [14:07:52]OFD Sender: No OFD packet to send [14:07:57]OFD Sender: No OFD packet to send [14:08:02]OFD Sender: No OFD packet to send [14:08:07]OFD Sender: No OFD packet to send [14:08:12]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:27]OFD Sender: No OFD packet to send [14:09:32]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:02]OFD Sender: No OFD packet to send [14:11:07]OFD Sender: No OFD packet to send [14:11:12]OFD Sender: No OFD packet to send [14:11:17]OFD Sender: No OFD packet to send [14:11:22]OFD Sender: No OFD packet to send [14:11:27]OFD Sender: No OFD packet to send [14:11:32]OFD Sender: No OFD packet to send [14:11:37]OFD Sender: No OFD packet to send [14:11:42]OFD Sender: No OFD packet to send [14:11:47]OFD Sender: No OFD packet to send [14:11:52]OFD Sender: No OFD packet to send [14:11:57]OFD Sender: No OFD packet to send [14:12:02]OFD Sender: No OFD packet to send [14:12:07]OFD Sender: No OFD packet to send [14:12:12]OFD Sender: No OFD packet to send [14:12:17]OFD Sender: No OFD packet to send [14:12:22]OFD Sender: No OFD packet to send [14:12:27]OFD Sender: No OFD packet to send [14:12:32]OFD Sender: No OFD packet to send [14:12:37]OFD Sender: No OFD packet to send [14:12:42]OFD Sender: No OFD packet to send [14:12:47]OFD Sender: No OFD packet to send [14:12:52]OFD Sender: No OFD packet to send [14:12:57]OFD Sender: No OFD packet to send [14:13:02]OFD Sender: No OFD packet to send [14:13:07]OFD Sender: No OFD packet to send [14:13:12]OFD Sender: No OFD packet to send [14:13:17]OFD Sender: No OFD packet to send [14:13:22]OFD Sender: No OFD packet to send [14:13:27]OFD Sender: No OFD packet to send [14:13:32]OFD Sender: No OFD packet to send [14:13:37]OFD Sender: No OFD packet to send [14:13:42]OFD Sender: No OFD packet to send [14:13:47]OFD Sender: No OFD packet to send [14:13:52]OFD Sender: No OFD packet to send [14:13:57]OFD Sender: No OFD packet to send [14:14:02]OFD Sender: No OFD packet to send [14:14:07]OFD Sender: No OFD packet to send [14:14:12]OFD Sender: No OFD packet to send [14:14:17]OFD Sender: No OFD packet to send [14:14:22]OFD Sender: No OFD packet to send [14:14:27]OFD Sender: No OFD packet to send [14:14:32]OFD Sender: No OFD packet to send [14:14:37]OFD Sender: No OFD packet to send [14:14:42]OFD Sender: No OFD packet to send [14:14:47]OFD Sender: No OFD packet to send [14:14:52]OFD Sender: No OFD packet to send [14:14:57]OFD Sender: No OFD packet to send [14:15:02]OFD Sender: No OFD packet to send [14:15:07]OFD Sender: No OFD packet to send [14:15:12]OFD Sender: No OFD packet to send [14:15:17]OFD Sender: No OFD packet to send [14:15:22]OFD Sender: No OFD packet to send [14:15:27]OFD Sender: No OFD packet to send [14:15:32]OFD Sender: No OFD packet to send [14:15:37]OFD Sender: No OFD packet to send [14:15:42]OFD Sender: No OFD packet to send [14:15:47]OFD Sender: No OFD packet to send [14:15:52]OFD Sender: No OFD packet to send [14:15:57]OFD Sender: No OFD packet to send [14:16:02]OFD Sender: No OFD packet to send [14:16:07]OFD Sender: No OFD packet to send [14:16:12]OFD Sender: No OFD packet to send [14:16:17]OFD Sender: No OFD packet to send [14:16:22]OFD Sender: No OFD packet to send [14:16:27]OFD Sender: No OFD packet to send [14:16:32]OFD Sender: No OFD packet to send [14:16:37]OFD Sender: No OFD packet to send [14:16:42]OFD Sender: No OFD packet to send [14:16:47]OFD Sender: No OFD packet to send [14:16:52]OFD Sender: No OFD packet to send [14:16:57]OFD Sender: No OFD packet to send [14:17:02]OFD Sender: No OFD packet to send [14:17:07]OFD Sender: No OFD packet to send [14:17:12]OFD Sender: No OFD packet to send [14:17:17]OFD Sender: No OFD packet to send [14:17:22]OFD Sender: No OFD packet to send [14:17:27]OFD Sender: No OFD packet to send [14:17:32]OFD Sender: No OFD packet to send [14:17:37]OFD Sender: No OFD packet to send [14:17:42]OFD Sender: No OFD packet to send [14:17:47]OFD Sender: No OFD packet to send [14:17:52]OFD Sender: No OFD packet to send [14:17:57]OFD Sender: No OFD packet to send [14:18:02]OFD Sender: No OFD packet to send [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:32]OFD Sender: No OFD packet to send [14:18:37]OFD Sender: No OFD packet to send [14:18:42]OFD Sender: No OFD packet to send [14:18:47]OFD Sender: No OFD packet to send [14:18:52]OFD Sender: No OFD packet to send [14:18:57]OFD Sender: No OFD packet to send [14:19:02]OFD Sender: No OFD packet to send [14:19:07]OFD Sender: No OFD packet to send [14:19:12]OFD Sender: No OFD packet to send [14:19:17]OFD Sender: No OFD packet to send [14:19:22]OFD Sender: No OFD packet to send [14:19:27]OFD Sender: No OFD packet to send [14:19:32]OFD Sender: No OFD packet to send [14:19:37]OFD Sender: No OFD packet to send [14:19:42]OFD Sender: No OFD packet to send [14:19:47]OFD Sender: No OFD packet to send [14:19:52]OFD Sender: No OFD packet to send [14:19:57]OFD Sender: No OFD packet to send [14:20:02]OFD Sender: No OFD packet to send [14:20:07]OFD Sender: No OFD packet to send [14:20:12]OFD Sender: No OFD packet to send [14:20:17]OFD Sender: No OFD packet to send [14:20:22]OFD Sender: No OFD packet to send [14:20:27]OFD Sender: No OFD packet to send [14:20:32]OFD Sender: No OFD packet to send [14:20:37]OFD Sender: No OFD packet to send [14:20:42]OFD Sender: No OFD packet to send [14:20:47]OFD Sender: No OFD packet to send [14:20:52]OFD Sender: No OFD packet to send [14:20:57]OFD Sender: No OFD packet to send [14:21:02]OFD Sender: No OFD packet to send [14:21:07]OFD Sender: No OFD packet to send [14:21:12]OFD Sender: No OFD packet to send [14:21:17]OFD Sender: No OFD packet to send [14:21:22]OFD Sender: No OFD packet to send [14:21:27]OFD Sender: No OFD packet to send [14:21:32]OFD Sender: No OFD packet to send [14:21:37]OFD Sender: No OFD packet to send [14:21:42]OFD Sender: No OFD packet to send [14:21:47]OFD Sender: No OFD packet to send [14:21:52]OFD Sender: No OFD packet to send [14:21:57]OFD Sender: No OFD packet to send [14:22:02]OFD Sender: No OFD packet to send [14:22:07]OFD Sender: No OFD packet to send [14:22:12]OFD Sender: No OFD packet to send [14:22:17]OFD Sender: No OFD packet to send [14:22:22]OFD Sender: No OFD packet to send [14:22:27]OFD Sender: No OFD packet to send [14:22:32]OFD Sender: No OFD packet to send [14:22:37]OFD Sender: No OFD packet to send [14:22:42]OFD Sender: No OFD packet to send [14:22:47]OFD Sender: No OFD packet to send [14:22:52]OFD Sender: No OFD packet to send [14:22:57]OFD Sender: No OFD packet to send [14:23:02]OFD Sender: No OFD packet to send [14:23:07]OFD Sender: No OFD packet to send [14:23:12]OFD Sender: No OFD packet to send [14:23:17]OFD Sender: No OFD packet to send [14:23:22]OFD Sender: No OFD packet to send [14:23:27]OFD Sender: No OFD packet to send [14:23:32]OFD Sender: No OFD packet to send [14:23:37]OFD Sender: No OFD packet to send [14:23:42]OFD Sender: No OFD packet to send [14:23:47]OFD Sender: No OFD packet to send [14:23:49]accept exits with 9 [14:23:49]New connection [14:23:49]New thread 3067141476 created [14:23:49]Thread 3067284836 joined [14:23:49]Waiting for new connection... [14:23:49] Sock 9.Parse request [14:23:49]Sock 9.Check first char [14:23:49]Sock 9.First char is OK [14:23:49]request: POST /json_proto HTTP/1.0 [14:23:49]Method: POST [14:23:49]URL: /json_proto [14:23:49]Method is POST - this is cgi request [14:23:49]url: /json_proto [14:23:49]query_string will be loaded in cgi processing [14:23:49]execute_cgi json_proto POST (null) [14:23:49]execute_cgi path=json_proto method=POST [14:23:49]POST find Content-Length [14:23:49]Host: 172.17.50.196:8080 [14:23:49]Content-Length: 683 [14:23:49]Content-Type: application/json [14:23:49] [14:23:49]POST finish read [14:23:49]Found Content-Length = 683 [14:23:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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:23:49]execute_script... [14:23: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)1094545", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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:23:49]POST & json_proto [14:23:49]process_json_proto [14:23:49]json parsed OK: [14:23:49]protocol is kg_v1.0 [14:23:49]action value=close_receipt [14:23:49]process_action close_receipt [14:23:49]cmd_close_receipt [14:23:49]MH_GetDate [14:23:49]Write to MH i2c: F0 00 00 6C 44 9F [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: F0 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: F0 09 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: F0 09 00 6C 44 00 7B 41 22 67 72 0D 1C 67 EF [14:23:49]GetLastDocTimeStamp 1730297194 [14:23:49]current date 1730298235 [14:23:49]FM_GetShiftState [14:23:49]SAM_PROTO_GetShiftState [14:23:49]wFMCommunicate request_size=4 [14:23:49]MH_SAM_APDU [14:23:49]CAPDU: 80 13 01 00 [14:23:49]Write to MH i2c: E2 08 00 6D 44 80 13 01 00 00 00 00 00 2E [14:23:49]Write i2c OK [14:23:49]MH_I2C_Read... [14:23:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:49]Read from MH i2c: E2 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 0E 00 [14:23:49]MH_I2C_Read... [14:23:49]Read from MH i2c: E2 0E 00 6D 44 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BE [14:23:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:23:49]wFMCommunicate OK [14:23:49]SAM_PROTO_GetShiftState done [14:23:49]FM_GetShiftState done [14:23:49]opened in 1730246278 [14:23:49]opened+sec_in_day 1730332678 [14:23:49]quantity*price = 150032 [14:23:49]sum+1 = 150033 [14:23:49]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1500.00 Внесено: 1500.00 СДАЧА: 0.00 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 1500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 102 30.10.2024 14:23 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139418 ФПД: 51415637108194 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142355&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139418&fm=51415637108194&tin=02508201610067®Number=0000000000091631&sum=150000 [14:23:51]StoreToDocumentArchive [14:23:51]shift 556 fd 139418 [14:23:51]save to /storage/0556/doc_00139418 [14:23:51]save last doc name /storage/0556/doc_00139418 to /storage/kkm_last_doc_name [14:23:51]save OK [14:23:51]Clear old archive folders... [14:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:23:51]tlvbuf is 01305220 [14:23:51]SAM_PROTO_ClearQueue [14:23:51]wFMCommunicate request_size=4 [14:23:51]MH_SAM_APDU [14:23:51]CAPDU: 80 09 00 00 [14:23:51]Write to MH i2c: E2 08 00 7A 44 80 09 00 00 00 00 00 00 30 [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:23:51]Read from MH i2c: E2 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 03 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 03 00 7A 44 00 90 00 32 [14:23:51]RAPDU: 90 00 [14:23:51]wFMCommunicate OK [14:23:51]SAM_PROTO_ClearQueue done [14:23:51]KKMCreateOFDPacket [14:23:51]OFDProtocolAddRootSTLVToBuf [14:23:51]FM_MakeSignedData [14:23:51]FM_MakeSignedData [14:23:51]SAM_PROTO_SignData [14:23:51]wFMCommunicate request_size=4 [14:23:51]MH_SAM_APDU [14:23:51]CAPDU: 80 0D 01 02 [14:23:51]Write to MH i2c: E2 08 00 7B 44 80 0D 01 02 00 00 00 00 38 [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:23:51]Read from MH i2c: E2 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 03 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 03 00 7B 44 00 90 00 33 [14:23:51]RAPDU: 90 00 [14:23:51]wFMCommunicate OK [14:23:51]wFMCommunicate request_size=255 [14:23:51]MH_SAM_APDU [14: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 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 66 00 00 00 F4 03 04 00 7B 41 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 20 02 00 35 04 06 00 2E [14:23:51]Write to MH i2c: E2 02 01 7C 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 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 66 00 00 00 F4 03 04 00 7B 41 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 20 02 00 35 04 06 00 2E 00 00 EE [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:51]Read from MH i2c: E2 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 03 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 03 00 7C 44 00 90 00 34 [14:23:51]RAPDU: 90 00 [14:23:51]wFMCommunicate OK [14:23:51]wFMCommunicate request_size=10 [14:23:51]MH_SAM_APDU [14:23:51]CAPDU: 80 0D 02 02 05 C3 22 C9 25 E2 [14:23:51]Write to MH i2c: E2 0D 00 7D 44 80 0D 02 02 05 00 C3 22 C9 25 E2 00 00 FA [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:23:51]Read from MH i2c: E2 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 03 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 03 00 7D 44 00 90 00 35 [14:23:51]RAPDU: 90 00 [14:23:51]wFMCommunicate OK [14:23:51]wFMCommunicate request_size=4 [14:23:51]MH_SAM_APDU [14:23:51]CAPDU: 80 0D 03 02 [14:23:51]Write to MH i2c: E2 08 00 7E 44 80 0D 03 02 00 00 00 00 3D [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:23:51]Read from MH i2c: E2 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 0B 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 0B 00 7E 44 00 5E 1D 15 CC 14 18 AE FC 90 00 70 [14:23:51]RAPDU: 5E 1D 15 CC 14 18 AE FC 90 00 [14:23:51]wFMCommunicate OK [14:23:51]SAM_PROTO_SignData done [14:23:51]FM_MakeSignedData done [14:23:51]CreateOFDProtocolMessage [14:23:51]wFMCommunicate request_size=4 [14:23:51]MH_SAM_APDU [14:23:51]CAPDU: 80 11 00 00 [14:23:51]Write to MH i2c: E2 08 00 7F 44 80 11 00 00 00 00 00 00 3D [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:51]Read from MH i2c: E2 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 17 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: E2 17 00 7F 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 98 [14:23:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:23:51]wFMCommunicate OK [14:23:51]CreateOFDProtocolMessage done [14:23:51]OFDSenderStorePacket 139418 [14:23:51]StoreOFDPacket docnum=139418 [14:23:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 0D 22 07 01 83 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 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 66 00 00 00 F4 03 04 00 7B 41 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 20 02 00 35 04 06 00 2E C3 22 C9 25 E2 5E 1D 15 CC 14 18 AE FC [14:23:51]CheckFolder [14:23:51]dirname=/storage/ofd_packets [14:23:51]CheckFolder done [14:23:51]ProducePacketName [14:23:51]name=ofd_packets/00139418 [14:23:51]NVStorageSaveData ofd_packets/00139418 [14:23:51]File name is /storage/ofd_packets/00139418 [14:23:51]Write 301 bytes [14:23:51]NVStorageSaveData done [14:23:51]OFDSenderStorePacket done [14:23:51]KKMCreateOFDPacket done [14:23:51]NVStorageSaveData kkm_last_timestamp [14:23:51]File name is /storage/kkm_last_timestamp [14:23:51]Write 4 bytes [14:23:51]NVStorageSaveData done [14:23:51]ExternCall_PrintAddStr [14:23:51]wPrintStart [14:23:51]Write to MH i2c: 01 00 00 80 44 C4 [14:23:51]Write i2c OK [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: 01 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: 01 07 00 [14:23:51]MH_I2C_Read... [14:23:51]Read from MH i2c: 01 07 00 80 44 00 00 00 00 00 FF 0F D9 [14:23:51]RasterBufferAndPrint [14:23:51]line Счет N : (1)1094545 [14:23:51]line ИНН: 02508201610067 [14:23:51]line Контрольно-Кассовый Чек [14:23:51]line ПРОДАЖА [14:23:51]line ТРК (МРК, ГНК) : 34 [14:23:51]line Товар: 2710124500 [14:23:51]line Аи-95-К-3 [14:23:51]line 20.220 * 74.20 [14:23:51]line = 1500.32 [14:23:51]line НДС 12% НСП 1% [14:23:51]line > о реализуемом товаре [14:23:51]line ОКРУГЛЕНИЕ: -0.32 [14:23:51]line ИТОГО: 1500.00 [14:23:51]line Внесено: 1500.00 [14:23:51]line СДАЧА: 0.00 [14:23:51]line НСП 1% : 13.28 [14:23:51]line НДС 12% : 159.33 [14:23:51]line Наличными: 1500.00 [14:23:51]line Безнал.: 0.00 [14:23:51]line Место: АЗС № 101 "Партнер Нефть" [14:23:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:23:51]line СНО: Общий режим [14:23:51]line Чек 102 30.10.2024 14:23 [14:23:51]line Смена: 556 ФФД: 1.0 [14:23:51]line ЗНМ: 0300000081 [14:23:51]line РНМ: 0000000000091631 [14:23:51]line Версия ККМ: 001 [14:23:51]line ФМ: 0000000000874669 [14:23:51]line ФД: 139418 [14:23:51]line ФПД: 51415637108194 [14:23:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142355&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139418&fm=51415637108194&tin=02508201610067®Number=0000000000091631&sum=150000 [14:23:51]OFD Sender: Processing packet 139418 [packets to send 34, broken 33] [14:23:51]ProducePacketName [14:23:51]name=ofd_packets/00139418 [14:23:51]OFD Sender: To server: pG, [14:23:51]CommunicateWithHost lk.salyk.kg:30040 [14:23:51]ConnectInit lk.salyk.kg [14:23:51]written 0, free lines is 4095 [14:23:52]Connected sock=10 [14:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 0D 22 07 01 83 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 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 66 00 00 00 F4 03 04 00 7B 41 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 20 02 00 35 04 06 00 2E C3 22 C9 25 E2 5E 1D 15 CC 14 18 AE FC [14:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 99 97 47 00 FD 49 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9A 20 02 00 F4 03 04 00 2B ED 21 67 B6 04 01 00 00 BB 94 C0 D2 1F 67 3E 48 [14:23:52]CommunicateWithHost err = 0 [14:23:52]CheckOFDResponse [14:23:52]1017 (14) - 77093643461234 [14:23:52]1041 (16) - 0000000000874669 [14:23:52]1040 (4) - 139418 [14:23:52]1012 (4) - 30.10.2024 08:24 [14:23:52]1206 (1) - 0 [14:23:52]OFD Sender: Remove packet 139418 [14:23:52]ProducePacketName [14:23:52]name=ofd_packets/00139418 [14:23:52]NVStorageDeleteData [14:23:52]Write to MH i2c: 01 00 00 AB 44 EF [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 AB 44 00 00 00 00 00 E4 0C E6 [14:23:52]RasterBufferAndPrint [14:23:52]line [14:23:52]line [14:23:52]line [14:23:52]line [14:23:52]line [14:23:52]written 0, free lines is 3306 [14:23:52]MH_Cut [14:23:52]Write to MH i2c: D1 01 00 B2 44 01 C8 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: D1 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: D1 01 00 [14:23:52]MH_I2C_Read... [14:23:52]Read from MH i2c: D1 01 00 B2 44 00 C7 [14:23:52]Write to MH i2c: 01 00 00 B3 44 F7 [14:23:52]Write i2c OK [14:23:52]MH_I2C_Read... [14:23:52]OFD Sender: No OFD packet to send [14:23:53]*** Cut start [14:23:53]*** Partial cut [14:23:53]*** CUTSNS_PIN = 1 [14:23:53]*** CUTSNS_PIN = 0 [14:23:53]*** Brake cut motor [14:23:53]Read from MH i2c: 01 [14:23:53]MH_I2C_Read... [14:23:53]*** Stop cut motor [14:23:53]*** Cut end [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 B3 44 00 00 00 00 00 FF 0F 0C [14:23:53]process_action close_receipt done [14:23:53]requested_data is exist [14:23:53]produce_requested_data [14:23:53]requested_item fm.sn is exist - process it [14:23:53]wFMCommunicate request_size=4 [14:23:53]MH_SAM_APDU [14:23:53]CAPDU: 80 11 00 00 [14:23:53]Write to MH i2c: E2 08 00 B4 44 80 11 00 00 00 00 00 00 72 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:23:53]Read from MH i2c: E2 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 17 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 17 00 B4 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CD [14:23:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:23:53]wFMCommunicate OK [14:23:53]requested_item fd.num is exist - process it [14:23:53]SAM_PROTO_GetFieldsCounters [14:23:53]wFMCommunicate request_size=4 [14:23:53]MH_SAM_APDU [14:23:53]CAPDU: 80 13 00 00 [14:23:53]Write to MH i2c: E2 08 00 B5 44 80 13 00 00 00 00 00 00 75 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:23:53]Read from MH i2c: E2 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 62 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 62 00 B5 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9A 20 02 00 0E 04 04 00 2C 02 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 B5 [14:23:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9A 20 02 00 0E 04 04 00 2C 02 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 [14:23:53]wFMCommunicate OK [14:23:53]SAM_PROTO_GetFieldsCounters done [14:23:53]requested_item shift.num is exist - process it [14:23:53]requested_item shift.opened is exist - process it [14:23:53]req_shift_opened [14:23:53]FM_GetShiftState [14:23:53]SAM_PROTO_GetShiftState [14:23:53]wFMCommunicate request_size=4 [14:23:53]MH_SAM_APDU [14:23:53]CAPDU: 80 13 01 00 [14:23:53]Write to MH i2c: E2 08 00 B6 44 80 13 01 00 00 00 00 00 77 [14:23:53]Write i2c OK [14:23:53]MH_I2C_Read... [14:23:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:23:53]Read from MH i2c: E2 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 0E 00 [14:23:53]MH_I2C_Read... [14:23:53]Read from MH i2c: E2 0E 00 B6 44 00 09 00 01 86 76 21 67 00 00 00 00 90 00 07 [14:23:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:23:53]wFMCommunicate OK [14:23:53]SAM_PROTO_GetShiftState done [14:23:53]FM_GetShiftState done [14:23:53]req_shift_opened done [14:23:53]requested_item shift.open_date is exist - process it [14:23:53]req_shift_open_date [14:23:53]req_shift_open_date done [14:23:53]produce_requested_data done [14:23:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139418,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:23:53]process_action_free close_receipt [14:23:53]json_value_free [14:23:53]json_value_free done [14:23:53]process_json_proto returns [14:23:53]Send response to host [14:23:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139418,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:23:53]free response buf [14:23:53]execute_script done [14:23:53]execute_script returns [14:23:53]free content buf [14:23:53]Sock 9.Close socket [14:23:53]Sock 9.Thread stoped [14:23:57]OFD Sender: No OFD packet to send [14:24:02]OFD Sender: No OFD packet to send [14:24:07]OFD Sender: No OFD packet to send [14:24:12]OFD Sender: No OFD packet to send [14:24:17]OFD Sender: No OFD packet to send [14:24:22]OFD Sender: No OFD packet to send [14:24:27]OFD Sender: No OFD packet to send [14:24:32]OFD Sender: No OFD packet to send [14:24:37]OFD Sender: No OFD packet to send [14:24:37]accept exits with 8 [14:24:37]New connection [14:24:37]New thread 3067284836 created [14:24:37]Thread 3067141476 joined [14:24:37]Waiting for new connection... [14:24:37] Sock 8.Parse request [14:24:37]Sock 8.Check first char [14:24:37]Sock 8.First char is OK [14:24:37]request: POST /json_proto HTTP/1.0 [14:24:37]Method: POST [14:24:37]URL: /json_proto [14:24:37]Method is POST - this is cgi request [14:24:37]url: /json_proto [14:24:37]query_string will be loaded in cgi processing [14:24:37]execute_cgi json_proto POST (null) [14:24:37]execute_cgi path=json_proto method=POST [14:24:37]POST find Content-Length [14:24:37]Host: 172.17.50.196:8080 [14:24:37]Content-Length: 632 [14:24:37]Content-Type: application/json [14:24:37] [14:24:37]POST finish read [14:24:37]Found Content-Length = 632 [14:24:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335323", "tax_sys" : 0, "items" : [ { "code": "5449000026583", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:37]execute_script... [14:24: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 : (3)335323", "tax_sys" : 0, "items" : [ { "code": "5449000026583", "name": "\u0412\u043E\u0434\u0430 \u0411\u043E\u043D\u0430\u043A\u0432\u0430 1\u043B", "price" : 50.00, "quantity" : 2.000, "sum" : 100.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 100.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:24:37]POST & json_proto [14:24:37]process_json_proto [14:24:37]json parsed OK: [14:24:37]protocol is kg_v1.0 [14:24:37]action value=close_receipt [14:24:37]process_action close_receipt [14:24:37]cmd_close_receipt [14:24:37]MH_GetDate [14:24:37]Write to MH i2c: F0 00 00 B7 44 EA [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: F0 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: F0 09 00 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: F0 09 00 B7 44 00 AB 41 22 67 72 0D 1C 67 6A [14:24:37]GetLastDocTimeStamp 1730298235 [14:24:37]current date 1730298283 [14:24:37]FM_GetShiftState [14:24:37]SAM_PROTO_GetShiftState [14:24:37]wFMCommunicate request_size=4 [14:24:37]MH_SAM_APDU [14:24:37]CAPDU: 80 13 01 00 [14:24:37]Write to MH i2c: E2 08 00 B8 44 80 13 01 00 00 00 00 00 79 [14:24:37]Write i2c OK [14:24:37]MH_I2C_Read... [14:24:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:37]Read from MH i2c: E2 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: E2 0E 00 [14:24:37]MH_I2C_Read... [14:24:37]Read from MH i2c: E2 0E 00 B8 44 00 09 00 01 86 76 21 67 00 00 00 00 90 00 09 [14:24:37]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:24:37]wFMCommunicate OK [14:24:37]SAM_PROTO_GetShiftState done [14:24:37]FM_GetShiftState done [14:24:37]opened in 1730246278 [14:24:37]opened+sec_in_day 1730332678 [14:24:37]quantity*price = 10000 [14:24:37]sum+1 = 10001 [14:24:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 100.00 НСП 1% : 0.88 НДС 12% : 10.62 Наличными: 100.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 103 30.10.2024 14:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139419 ФПД: 268469146191016 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142443&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139419&fm=268469146191016&tin=02508201610067®Number=0000000000091631&sum=10000 0 [14:24:38]StoreToDocumentArchive [14:24:38]shift 556 fd 139419 [14:24:38]save to /storage/0556/doc_00139419 [14:24:38]save last doc name /storage/0556/doc_00139419 to /storage/kkm_last_doc_name [14:24:38]save OK [14:24:38]Clear old archive folders... [14:24:38]ProcessDocumentItem done err = 0, tmpTLVsize=269 [14:24:38]tlvbuf is 0112D520 [14:24:38]SAM_PROTO_ClearQueue [14:24:38]wFMCommunicate request_size=4 [14:24:38]MH_SAM_APDU [14:24:38]CAPDU: 80 09 00 00 [14:24:38]Write to MH i2c: E2 08 00 C5 44 80 09 00 00 00 00 00 00 7B [14:24:38]Write i2c OK [14:24:38]MH_I2C_Read... [14:24:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 C5 44 00 90 00 7D [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]SAM_PROTO_ClearQueue done [14:24:39]KKMCreateOFDPacket [14:24:39]OFDProtocolAddRootSTLVToBuf [14:24:39]FM_MakeSignedData [14:24:39]FM_MakeSignedData [14:24:39]SAM_PROTO_SignData [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 01 02 [14:24:39]Write to MH i2c: E2 08 00 C6 44 80 0D 01 02 00 00 00 00 83 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 C6 44 00 90 00 7E [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]wFMCommunicate request_size=255 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 AB 41 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [14:24:39]Write to MH i2c: E2 02 01 C7 44 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 AB 41 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 AB [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 C7 44 00 90 00 7F [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]wFMCommunicate request_size=28 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 9B 20 02 00 35 04 06 00 F4 2B D8 17 84 A8 [14:24:39]Write to MH i2c: E2 1F 00 C8 44 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 9B 20 02 00 35 04 06 00 F4 2B D8 17 84 A8 00 00 12 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 03 00 C8 44 00 90 00 80 [14:24:39]RAPDU: 90 00 [14:24:39]wFMCommunicate OK [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 0D 03 02 [14:24:39]Write to MH i2c: E2 08 00 C9 44 80 0D 03 02 00 00 00 00 88 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 0B 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 0B 00 C9 44 00 8E 3B 82 EF 0A E7 B3 1B 90 00 82 [14:24:39]RAPDU: 8E 3B 82 EF 0A E7 B3 1B 90 00 [14:24:39]wFMCommunicate OK [14:24:39]SAM_PROTO_SignData done [14:24:39]FM_MakeSignedData done [14:24:39]CreateOFDProtocolMessage [14:24:39]wFMCommunicate request_size=4 [14:24:39]MH_SAM_APDU [14:24:39]CAPDU: 80 11 00 00 [14:24:39]Write to MH i2c: E2 08 00 CA 44 80 11 00 00 00 00 00 00 88 [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:39]Read from MH i2c: E2 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 17 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: E2 17 00 CA 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E3 [14:24:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:24:39]wFMCommunicate OK [14:24:39]CreateOFDProtocolMessage done [14:24:39]OFDSenderStorePacket 139419 [14:24:39]StoreOFDPacket docnum=139419 [14:24:39]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 23 3A 19 01 2C 48 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 AB 41 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 20 02 00 35 04 06 00 F4 2B D8 17 84 A8 8E 3B 82 EF 0A E7 B3 1B [14:24:39]CheckFolder [14:24:39]dirname=/storage/ofd_packets [14:24:39]CheckFolder done [14:24:39]ProducePacketName [14:24:39]name=ofd_packets/00139419 [14:24:39]NVStorageSaveData ofd_packets/00139419 [14:24:39]File name is /storage/ofd_packets/00139419 [14:24:39]Write 319 bytes [14:24:39]NVStorageSaveData done [14:24:39]OFDSenderStorePacket done [14:24:39]KKMCreateOFDPacket done [14:24:39]NVStorageSaveData kkm_last_timestamp [14:24:39]File name is /storage/kkm_last_timestamp [14:24:39]Write 4 bytes [14:24:39]NVStorageSaveData done [14:24:39]ExternCall_PrintAddStr [14:24:39]wPrintStart [14:24:39]Write to MH i2c: 01 00 00 CB 44 0F [14:24:39]Write i2c OK [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 07 00 [14:24:39]MH_I2C_Read... [14:24:39]Read from MH i2c: 01 07 00 CB 44 00 00 00 00 00 FF 0F 24 [14:24:39]RasterBufferAndPrint [14:24:39]line Счет N : (3)335323 [14:24:39]line ИНН: 02508201610067 [14:24:39]line Контрольно-Кассовый Чек [14:24:39]line ПРОДАЖА [14:24:39]line Товар: 5449000026583 [14:24:39]line Вода Бонаква 1л [14:24:39]line 2.000 * 50.00 [14:24:39]line = 100.00 [14:24:39]line НДС 12% НСП 1% [14:24:39]line > о реализуемом товаре [14:24:39]line ИТОГО: 100.00 [14:24:39]line НСП 1% : 0.88 [14:24:39]line НДС 12% : 10.62 [14:24:39]line Наличными: 100.00 [14:24:39]line Безнал.: 0.00 [14:24:39]line Место: АЗС № 101 "Партнер Нефть" [14:24:39]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:24:39]line СНО: Общий режим [14:24:39]line Чек 103 30.10.2024 14:24 [14:24:39]line Смена: 556 ФФД: 1.0 [14:24:39]line ЗНМ: 0300000081 [14:24:39]line РНМ: 0000000000091631 [14:24:39]line Версия ККМ: 001 [14:24:39]line ФМ: 0000000000874669 [14:24:39]line ФД: 139419 [14:24:39]line ФПД: 268469146191016 [14:24:39]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142443&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139419&fm=268469146191016&tin=02508201610067®Number=0000000000091631&sum=10000 [14:24:39]OFD Sender: Processing packet 139419 [packets to send 34, broken 33] [14:24:39]ProducePacketName [14:24:39]name=ofd_packets/00139419 [14:24:39]OFD Sender: To server: pG, [14:24:39]CommunicateWithHost lk.salyk.kg:30040 [14:24:39]ConnectInit lk.salyk.kg [14:24:39]line 0 [14:24:39]written 0, free lines is 4095 [14:24:39]Connected sock=10 [14:24:39]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 23 3A 19 01 2C 48 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 36 35 38 33 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 91 D0 BE D0 BD D0 B0 D0 BA D0 B2 D0 B0 20 31 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 10 27 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 27 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 26 04 00 00 00 00 07 04 06 00 10 27 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 67 00 00 00 F4 03 04 00 AB 41 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 20 02 00 35 04 06 00 F4 2B D8 17 84 A8 8E 3B 82 EF 0A E7 B3 1B [14:24:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B2 37 47 00 C0 E0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9B 20 02 00 F4 03 04 00 5B ED 21 67 B6 04 01 00 00 EF C6 F0 07 64 3A 50 17 [14:24:40]CommunicateWithHost err = 0 [14:24:40]CheckOFDResponse [14:24:40]1017 (14) - 77093643461234 [14:24:40]1041 (16) - 0000000000874669 [14:24:40]1040 (4) - 139419 [14:24:40]1012 (4) - 30.10.2024 08:24 [14:24:40]1206 (1) - 0 [14:24:40]OFD Sender: Remove packet 139419 [14:24:40]ProducePacketName [14:24:40]name=ofd_packets/00139419 [14:24:40]NVStorageDeleteData [14:24:40]Write to MH i2c: 01 00 00 F3 44 37 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: 01 07 00 F3 44 00 00 00 00 00 04 0D 4F [14:24:40]RasterBufferAndPrint [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]line [14:24:40]written 0, free lines is 3341 [14:24:40]MH_Cut [14:24:40]Write to MH i2c: D1 01 00 FA 44 01 10 [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 01 00 [14:24:40]MH_I2C_Read... [14:24:40]Read from MH i2c: D1 01 00 FA 44 00 0F [14:24:40]Write to MH i2c: 01 00 00 FB 44 3F [14:24:40]Write i2c OK [14:24:40]MH_I2C_Read... [14:24:40]OFD Sender: No OFD packet to send [14:24:40]*** Cut start [14:24:40]*** Partial cut [14:24:40]*** CUTSNS_PIN = 1 [14:24:40]*** CUTSNS_PIN = 0 [14:24:41]*** Brake cut motor [14:24:41]Read from MH i2c: 01 [14:24:41]MH_I2C_Read... [14:24:41]*** Stop cut motor [14:24:41]*** Cut end [14:24:41]Read from MH i2c: 01 07 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: 01 07 00 FB 44 00 00 00 00 00 FF 0F 54 [14:24:41]process_action close_receipt done [14:24:41]requested_data is exist [14:24:41]produce_requested_data [14:24:41]requested_item fm.sn is exist - process it [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 11 00 00 [14:24:41]Write to MH i2c: E2 08 00 FC 44 80 11 00 00 00 00 00 00 BA [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 17 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 17 00 FC 44 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 15 [14:24:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:24:41]wFMCommunicate OK [14:24:41]requested_item fd.num is exist - process it [14:24:41]SAM_PROTO_GetFieldsCounters [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 13 00 00 [14:24:41]Write to MH i2c: E2 08 00 FD 44 80 13 00 00 00 00 00 00 BD [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 62 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 62 00 FD 44 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9B 20 02 00 0E 04 04 00 2C 02 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 01 [14:24:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9B 20 02 00 0E 04 04 00 2C 02 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 [14:24:41]wFMCommunicate OK [14:24:41]SAM_PROTO_GetFieldsCounters done [14:24:41]requested_item shift.num is exist - process it [14:24:41]requested_item shift.opened is exist - process it [14:24:41]req_shift_opened [14:24:41]FM_GetShiftState [14:24:41]SAM_PROTO_GetShiftState [14:24:41]wFMCommunicate request_size=4 [14:24:41]MH_SAM_APDU [14:24:41]CAPDU: 80 13 01 00 [14:24:41]Write to MH i2c: E2 08 00 FE 44 80 13 01 00 00 00 00 00 BF [14:24:41]Write i2c OK [14:24:41]MH_I2C_Read... [14:24:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:24:41]Read from MH i2c: E2 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0E 00 [14:24:41]MH_I2C_Read... [14:24:41]Read from MH i2c: E2 0E 00 FE 44 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4F [14:24:41]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:24:41]wFMCommunicate OK [14:24:41]SAM_PROTO_GetShiftState done [14:24:41]FM_GetShiftState done [14:24:41]req_shift_opened done [14:24:41]requested_item shift.open_date is exist - process it [14:24:41]req_shift_open_date [14:24:41]req_shift_open_date done [14:24:41]produce_requested_data done [14:24:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139419,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:24:41]process_action_free close_receipt [14:24:41]json_value_free [14:24:41]json_value_free done [14:24:41]process_json_proto returns [14:24:41]Send response to host [14:24:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139419,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:24:41]free response buf [14:24:41]execute_script done [14:24:41]execute_script returns [14:24:41]free content buf [14:24:41]Sock 8.Close socket [14:24:41]Sock 8.Thread stoped [14:24:45]OFD Sender: No OFD packet to send [14:24:50]OFD Sender: No OFD packet to send [14:24:55]OFD Sender: No OFD packet to send [14:25:00]OFD Sender: No OFD packet to send [14:25:05]OFD Sender: No OFD packet to send [14:25:10]OFD Sender: No OFD packet to send [14:25:15]OFD Sender: No OFD packet to send [14:25:20]OFD Sender: No OFD packet to send [14:25:25]OFD Sender: No OFD packet to send [14:25:30]OFD Sender: No OFD packet to send [14:25:35]OFD Sender: No OFD packet to send [14:25:40]OFD Sender: No OFD packet to send [14:25:45]OFD Sender: No OFD packet to send [14:25:50]OFD Sender: No OFD packet to send [14:25:55]OFD Sender: No OFD packet to send [14:26:00]OFD Sender: No OFD packet to send [14:26:05]OFD Sender: No OFD packet to send [14:26:10]OFD Sender: No OFD packet to send [14:26:15]OFD Sender: No OFD packet to send [14:26:20]OFD Sender: No OFD packet to send [14:26:25]OFD Sender: No OFD packet to send [14:26:30]OFD Sender: No OFD packet to send [14:26:35]OFD Sender: No OFD packet to send [14:26:40]accept exits with 9 [14:26:40]New connection [14:26:40]New thread 3067141476 created [14:26:40]Thread 3067284836 joined [14:26:40]Waiting for new connection... [14:26:40] Sock 9.Parse request [14:26:40]Sock 9.Check first char [14:26:40]Sock 9.First char is OK [14:26:40]request: POST /json_proto HTTP/1.0 [14:26:40]Method: POST [14:26:40]URL: /json_proto [14:26:40]Method is POST - this is cgi request [14:26:40]url: /json_proto [14:26:40]query_string will be loaded in cgi processing [14:26:40]execute_cgi json_proto POST (null) [14:26:40]execute_cgi path=json_proto method=POST [14:26:40]POST find Content-Length [14:26:40]Host: 172.17.50.196:8080 [14:26:40]Content-Length: 678 [14:26:40]Content-Type: application/json [14:26:40] [14:26:40]POST finish read [14:26:40]Found Content-Length = 678 [14:26:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:40]execute_script... [14:26: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)1094548", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 600.00, "total" : 600.00, "payments": [ { "type": 0, "sum" : 600.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:26:40]POST & json_proto [14:26:40]process_json_proto [14:26:40]json parsed OK: [14:26:40]protocol is kg_v1.0 [14:26:40]action value=close_receipt [14:26:40]process_action close_receipt [14:26:40]cmd_close_receipt [14:26:40]MH_GetDate [14:26:40]Write to MH i2c: F0 00 00 FF 44 32 [14:26:40]Write i2c OK [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: F0 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: F0 09 00 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: F0 09 00 FF 44 00 26 42 22 67 72 0D 1C 67 2E [14:26:40]GetLastDocTimeStamp 1730298283 [14:26:40]current date 1730298406 [14:26:40]FM_GetShiftState [14:26:40]SAM_PROTO_GetShiftState [14:26:40]wFMCommunicate request_size=4 [14:26:40]MH_SAM_APDU [14:26:40]CAPDU: 80 13 01 00 [14:26:40]Write to MH i2c: E2 08 00 00 45 80 13 01 00 00 00 00 00 C2 [14:26:40]Write i2c OK [14:26:40]MH_I2C_Read... [14:26:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:40]Read from MH i2c: E2 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: E2 0E 00 [14:26:40]MH_I2C_Read... [14:26:40]Read from MH i2c: E2 0E 00 00 45 00 09 00 01 86 76 21 67 00 00 00 00 90 00 52 [14:26:40]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:26:40]wFMCommunicate OK [14:26:40]SAM_PROTO_GetShiftState done [14:26:40]FM_GetShiftState done [14:26:40]opened in 1730246278 [14:26:40]opened+sec_in_day 1730332678 [14:26:40]quantity*price = 60009 [14:26:40]sum+1 = 60010 [14:26:40]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.09 ИТОГО: 600.00 Внесено: 600.00 СДАЧА: 0.00 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 600.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 104 30.10.2024 14:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139420 ФПД: 131219948295762 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142646&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139420&fm=131219948295762&tin=02508201610067®Number=0000000000091631&sum=60000 [14:26:41]StoreToDocumentArchive [14:26:41]shift 556 fd 139420 [14:26:41]save to /storage/0556/doc_00139420 [14:26:41]save last doc name /storage/0556/doc_00139420 to /storage/kkm_last_doc_name [14:26:41]save OK [14:26:41]Clear old archive folders... [14:26:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:26:41]tlvbuf is 011D2710 [14:26:41]SAM_PROTO_ClearQueue [14:26:41]wFMCommunicate request_size=4 [14:26:41]MH_SAM_APDU [14:26:41]CAPDU: 80 09 00 00 [14:26:41]Write to MH i2c: E2 08 00 0D 45 80 09 00 00 00 00 00 00 C4 [14:26:41]Write i2c OK [14:26:41]MH_I2C_Read... [14:26:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:26:41]Read from MH i2c: E2 [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: E2 03 00 [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: E2 03 00 0D 45 00 90 00 C6 [14:26:41]RAPDU: 90 00 [14:26:41]wFMCommunicate OK [14:26:41]SAM_PROTO_ClearQueue done [14:26:41]KKMCreateOFDPacket [14:26:41]OFDProtocolAddRootSTLVToBuf [14:26:41]FM_MakeSignedData [14:26:41]FM_MakeSignedData [14:26:41]SAM_PROTO_SignData [14:26:41]wFMCommunicate request_size=4 [14:26:41]MH_SAM_APDU [14:26:41]CAPDU: 80 0D 01 02 [14:26:41]Write to MH i2c: E2 08 00 0E 45 80 0D 01 02 00 00 00 00 CC [14:26:41]Write i2c OK [14:26:41]MH_I2C_Read... [14:26:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:26:41]Read from MH i2c: E2 [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: E2 03 00 [14:26:41]MH_I2C_Read... [14:26:41]Read from MH i2c: E2 03 00 0E 45 00 90 00 C7 [14:26:41]RAPDU: 90 00 [14:26:41]wFMCommunicate OK [14:26:41]wFMCommunicate request_size=255 [14:26:41]MH_SAM_APDU [14:26: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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 26 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 20 02 00 35 04 06 00 77 [14:26:41]Write to MH i2c: E2 02 01 0F 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 26 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 20 02 00 35 04 06 00 77 00 00 F4 [14:26:41]Write i2c OK [14:26:41]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 03 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 03 00 0F 45 00 90 00 C8 [14:26:42]RAPDU: 90 00 [14:26:42]wFMCommunicate OK [14:26:42]wFMCommunicate request_size=10 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 0D 02 02 05 58 06 67 D6 52 [14:26:42]Write to MH i2c: E2 0D 00 10 45 80 0D 02 02 05 00 58 06 67 D6 52 00 00 C6 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 03 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 03 00 10 45 00 90 00 C9 [14:26:42]RAPDU: 90 00 [14:26:42]wFMCommunicate OK [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 0D 03 02 [14:26:42]Write to MH i2c: E2 08 00 11 45 80 0D 03 02 00 00 00 00 D1 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 0B 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 0B 00 11 45 00 55 68 93 B1 49 BA AD 13 90 00 96 [14:26:42]RAPDU: 55 68 93 B1 49 BA AD 13 90 00 [14:26:42]wFMCommunicate OK [14:26:42]SAM_PROTO_SignData done [14:26:42]FM_MakeSignedData done [14:26:42]CreateOFDProtocolMessage [14:26:42]wFMCommunicate request_size=4 [14:26:42]MH_SAM_APDU [14:26:42]CAPDU: 80 11 00 00 [14:26:42]Write to MH i2c: E2 08 00 12 45 80 11 00 00 00 00 00 00 D1 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:26:42]Read from MH i2c: E2 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 17 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: E2 17 00 12 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2C [14:26:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:26:42]wFMCommunicate OK [14:26:42]CreateOFDProtocolMessage done [14:26:42]OFDSenderStorePacket 139420 [14:26:42]StoreOFDPacket docnum=139420 [14:26:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 61 FF 07 01 6C 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 26 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 20 02 00 35 04 06 00 77 58 06 67 D6 52 55 68 93 B1 49 BA AD 13 [14:26:42]CheckFolder [14:26:42]dirname=/storage/ofd_packets [14:26:42]CheckFolder done [14:26:42]ProducePacketName [14:26:42]name=ofd_packets/00139420 [14:26:42]NVStorageSaveData ofd_packets/00139420 [14:26:42]File name is /storage/ofd_packets/00139420 [14:26:42]Write 301 bytes [14:26:42]NVStorageSaveData done [14:26:42]OFDSenderStorePacket done [14:26:42]KKMCreateOFDPacket done [14:26:42]NVStorageSaveData kkm_last_timestamp [14:26:42]File name is /storage/kkm_last_timestamp [14:26:42]Write 4 bytes [14:26:42]NVStorageSaveData done [14:26:42]ExternCall_PrintAddStr [14:26:42]wPrintStart [14:26:42]Write to MH i2c: 01 00 00 13 45 58 [14:26:42]Write i2c OK [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: 01 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: 01 07 00 [14:26:42]MH_I2C_Read... [14:26:42]Read from MH i2c: 01 07 00 13 45 00 00 00 00 00 FF 0F 6D [14:26:42]RasterBufferAndPrint [14:26:42]line Счет N : (1)1094548 [14:26:42]line ИНН: 02508201610067 [14:26:42]line Контрольно-Кассовый Чек [14:26:42]line ПРОДАЖА [14:26:42]line ТРК (МРК, ГНК) : 43 [14:26:42]line Товар: 2710124130 [14:26:42]line Аи-92-К-2 [14:26:42]line 8.970 * 66.90 [14:26:42]line = 600.09 [14:26:42]line НДС 12% НСП 1% [14:26:42]line > о реализуемом товаре [14:26:42]line ОКРУГЛЕНИЕ: -0.09 [14:26:42]line ИТОГО: 600.00 [14:26:42]line Внесено: 600.00 [14:26:42]line СДАЧА: 0.00 [14:26:42]line НСП 1% : 5.31 [14:26:42]line НДС 12% : 63.73 [14:26:42]line Наличными: 600.00 [14:26:42]line Безнал.: 0.00 [14:26:42]line Место: АЗС № 101 "Партнер Нефть" [14:26:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:26:42]line СНО: Общий режим [14:26:42]line Чек 104 30.10.2024 14:26 [14:26:42]line Смена: 556 ФФД: 1.0 [14:26:42]line ЗНМ: 0300000081 [14:26:42]line РНМ: 0000000000091631 [14:26:42]line Версия ККМ: 001 [14:26:42]line ФМ: 0000000000874669 [14:26:42]line ФД: 139420 [14:26:42]line ФПД: 131219948295762 [14:26:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142646&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139420&fm=131219948295762&tin=02508201610067®Number=0000000000091631&sum=60000 [14:26:42]OFD Sender: Processing packet 139420 [packets to send 34, broken 33] [14:26:42]ProducePacketName [14:26:42]name=ofd_packets/00139420 [14:26:42]OFD Sender: To server: pG, [14:26:42]CommunicateWithHost lk.salyk.kg:30040 [14:26:42]ConnectInit lk.salyk.kg [14:26:42]written 0, free lines is 4095 [14:26:42]Connected sock=10 [14:26:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 61 FF 07 01 6C 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 EA 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 13 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 18 00 00 00 00 07 04 06 00 60 EA 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 68 00 00 00 F4 03 04 00 26 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 20 02 00 35 04 06 00 77 58 06 67 D6 52 55 68 93 B1 49 BA AD 13 [14:26:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 95 91 47 00 A7 06 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9C 20 02 00 F4 03 04 00 D6 ED 21 67 B6 04 01 00 00 0C 4B 00 C4 CC 73 94 5B [14:26:42]CommunicateWithHost err = 0 [14:26:42]CheckOFDResponse [14:26:42]1017 (14) - 77093643461234 [14:26:42]1041 (16) - 0000000000874669 [14:26:42]1040 (4) - 139420 [14:26:42]1012 (4) - 30.10.2024 08:27 [14:26:42]1206 (1) - 0 [14:26:42]OFD Sender: Remove packet 139420 [14:26:42]ProducePacketName [14:26:42]name=ofd_packets/00139420 [14:26:42]NVStorageDeleteData [14:26:43]Write to MH i2c: 01 00 00 3E 45 83 [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 07 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: 01 07 00 3E 45 00 00 00 00 00 EF 0C 85 [14:26:43]RasterBufferAndPrint [14:26:43]line [14:26:43]line [14:26:43]line [14:26:43]line [14:26:43]line [14:26:43]written 0, free lines is 3317 [14:26:43]MH_Cut [14:26:43]Write to MH i2c: D1 01 00 45 45 01 5C [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: D1 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: D1 01 00 [14:26:43]MH_I2C_Read... [14:26:43]Read from MH i2c: D1 01 00 45 45 00 5B [14:26:43]Write to MH i2c: 01 00 00 46 45 8B [14:26:43]Write i2c OK [14:26:43]MH_I2C_Read... [14:26:43]OFD Sender: No OFD packet to send [14:26:43]*** Cut start [14:26:43]*** Partial cut [14:26:43]*** CUTSNS_PIN = 1 [14:26:43]*** CUTSNS_PIN = 0 [14:26:44]*** Brake cut motor [14:26:44]Read from MH i2c: 01 [14:26:44]MH_I2C_Read... [14:26:44]*** Stop cut motor [14:26:44]*** Cut end [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 46 45 00 00 00 00 00 FF 0F A0 [14:26:44]process_action close_receipt done [14:26:44]requested_data is exist [14:26:44]produce_requested_data [14:26:44]requested_item fm.sn is exist - process it [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 47 45 80 11 00 00 00 00 00 00 06 [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 47 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 61 [14:26:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:26:44]wFMCommunicate OK [14:26:44]requested_item fd.num is exist - process it [14:26:44]SAM_PROTO_GetFieldsCounters [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 13 00 00 [14:26:44]Write to MH i2c: E2 08 00 48 45 80 13 00 00 00 00 00 00 09 [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 62 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 62 00 48 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9C 20 02 00 0E 04 04 00 2C 02 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 51 [14:26:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9C 20 02 00 0E 04 04 00 2C 02 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 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_GetFieldsCounters done [14:26:44]requested_item shift.num is exist - process it [14:26:44]requested_item shift.opened is exist - process it [14:26:44]req_shift_opened [14:26:44]FM_GetShiftState [14:26:44]SAM_PROTO_GetShiftState [14:26:44]wFMCommunicate request_size=4 [14:26:44]MH_SAM_APDU [14:26:44]CAPDU: 80 13 01 00 [14:26:44]Write to MH i2c: E2 08 00 49 45 80 13 01 00 00 00 00 00 0B [14:26:44]Write i2c OK [14:26:44]MH_I2C_Read... [14:26:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:26:44]Read from MH i2c: E2 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0E 00 [14:26:44]MH_I2C_Read... [14:26:44]Read from MH i2c: E2 0E 00 49 45 00 09 00 01 86 76 21 67 00 00 00 00 90 00 9B [14:26:44]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:26:44]wFMCommunicate OK [14:26:44]SAM_PROTO_GetShiftState done [14:26:44]FM_GetShiftState done [14:26:44]req_shift_opened done [14:26:44]requested_item shift.open_date is exist - process it [14:26:44]req_shift_open_date [14:26:44]req_shift_open_date done [14:26:44]produce_requested_data done [14:26:44]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139420,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:26:44]process_action_free close_receipt [14:26:44]json_value_free [14:26:44]json_value_free done [14:26:44]process_json_proto returns [14:26:44]Send response to host [14:26:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139420,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:26:44]free response buf [14:26:44]execute_script done [14:26:44]execute_script returns [14:26:44]free content buf [14:26:44]Sock 9.Close socket [14:26:44]Sock 9.Thread stoped [14:26:48]OFD Sender: No OFD packet to send [14:26:53]OFD Sender: No OFD packet to send [14:26:58]OFD Sender: No OFD packet to send [14:27:03]OFD Sender: No OFD packet to send [14:27:08]OFD Sender: No OFD packet to send [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:48]OFD Sender: No OFD packet to send [14:27:53]OFD Sender: No OFD packet to send [14:27:58]OFD Sender: No OFD packet to send [14:28:03]OFD Sender: No OFD packet to send [14:28:08]OFD Sender: No OFD packet to send [14:28:13]OFD Sender: No OFD packet to send [14:28:18]OFD Sender: No OFD packet to send [14:28:23]OFD Sender: No OFD packet to send [14:28:28]OFD Sender: No OFD packet to send [14:28:33]OFD Sender: No OFD packet to send [14:28:33]accept exits with 8 [14:28:33]New connection [14:28:33]New thread 3067284836 created [14:28:33]Thread 3067141476 joined [14:28:33]Waiting for new connection... [14:28:33] Sock 8.Parse request [14:28:33]Sock 8.Check first char [14:28:33]Sock 8.First char is OK [14:28:33]request: POST /json_proto HTTP/1.0 [14:28:33]Method: POST [14:28:33]URL: /json_proto [14:28:33]Method is POST - this is cgi request [14:28:33]url: /json_proto [14:28:33]query_string will be loaded in cgi processing [14:28:33]execute_cgi json_proto POST (null) [14:28:33]execute_cgi path=json_proto method=POST [14:28:33]POST find Content-Length [14:28:33]Host: 172.17.50.196:8080 [14:28:33]Content-Length: 755 [14:28:33]Content-Type: application/json [14:28:33] [14:28:33]POST finish read [14:28:33]Found Content-Length = 755 [14:28:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A30116653", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:33]execute_script... [14:28: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)1094549", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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\u000A30116653", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:28:33]POST & json_proto [14:28:33]process_json_proto [14:28:33]json parsed OK: [14:28:33]protocol is kg_v1.0 [14:28:33]action value=close_receipt [14:28:33]process_action close_receipt [14:28:33]cmd_close_receipt [14:28:33]MH_GetDate [14:28:33]Write to MH i2c: F0 00 00 4A 45 7E [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 09 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: F0 09 00 4A 45 00 97 42 22 67 72 0D 1C 67 EB [14:28:33]GetLastDocTimeStamp 1730298406 [14:28:33]current date 1730298519 [14:28:33]FM_GetShiftState [14:28:33]SAM_PROTO_GetShiftState [14:28:33]wFMCommunicate request_size=4 [14:28:33]MH_SAM_APDU [14:28:33]CAPDU: 80 13 01 00 [14:28:33]Write to MH i2c: E2 08 00 4B 45 80 13 01 00 00 00 00 00 0D [14:28:33]Write i2c OK [14:28:33]MH_I2C_Read... [14:28:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:33]Read from MH i2c: E2 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 0E 00 [14:28:33]MH_I2C_Read... [14:28:33]Read from MH i2c: E2 0E 00 4B 45 00 09 00 01 86 76 21 67 00 00 00 00 90 00 9D [14:28:33]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:28:33]wFMCommunicate OK [14:28:33]SAM_PROTO_GetShiftState done [14:28:33]FM_GetShiftState done [14:28:33]opened in 1730246278 [14:28:33]opened+sec_in_day 1730332678 [14:28:33]quantity*price = 0 [14:28:33]sum+1 = 1 [14:28:33]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 105 30.10.2024 14:28 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: ТК ГПНА Online 30116653 ФМ: 0000000000874669 ФД: 139421 ФПД: 280314667052966 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142839&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139421&fm=280314667052966&tin=02508201610067®Number=0000000000091631&sum=0 [14:28:34]StoreToDocumentArchive [14:28:34]shift 556 fd 139421 [14:28:34]save to /storage/0556/doc_00139421 [14:28:34]save last doc name /storage/0556/doc_00139421 to /storage/kkm_last_doc_name [14:28:34]save OK [14:28:34]Clear old archive folders... [14:28:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:28:34]tlvbuf is 01109F10 [14:28:34]SAM_PROTO_ClearQueue [14:28:34]wFMCommunicate request_size=4 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 09 00 00 [14:28:34]Write to MH i2c: E2 08 00 58 45 80 09 00 00 00 00 00 00 0F [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 58 45 00 90 00 11 [14:28:34]RAPDU: 90 00 [14:28:34]wFMCommunicate OK [14:28:34]SAM_PROTO_ClearQueue done [14:28:34]KKMCreateOFDPacket [14:28:34]OFDProtocolAddRootSTLVToBuf [14:28:34]FM_MakeSignedData [14:28:34]FM_MakeSignedData [14:28:34]SAM_PROTO_SignData [14:28:34]wFMCommunicate request_size=4 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 0D 01 02 [14:28:34]Write to MH i2c: E2 08 00 59 45 80 0D 01 02 00 00 00 00 17 [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:28:34]Read from MH i2c: E2 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 [14:28:34]MH_I2C_Read... [14:28:34]Read from MH i2c: E2 03 00 59 45 00 90 00 12 [14:28:34]RAPDU: 90 00 [14:28:34]wFMCommunicate OK [14:28:34]wFMCommunicate request_size=255 [14:28:34]MH_SAM_APDU [14:28:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 69 00 00 00 F4 03 04 00 97 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9D 20 02 00 35 04 06 00 FE [14:28:34]Write to MH i2c: E2 02 01 5A 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 32 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 69 00 00 00 F4 03 04 00 97 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9D 20 02 00 35 04 06 00 FE 00 00 7C [14:28:34]Write i2c OK [14:28:34]MH_I2C_Read... [14:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:35]Read from MH i2c: E2 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 03 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 03 00 5A 45 00 90 00 13 [14:28:35]RAPDU: 90 00 [14:28:35]wFMCommunicate OK [14:28:35]wFMCommunicate request_size=10 [14:28:35]MH_SAM_APDU [14:28:35]CAPDU: 80 0D 02 02 05 F1 D8 27 AF A6 [14:28:35]Write to MH i2c: E2 0D 00 5B 45 80 0D 02 02 05 00 F1 D8 27 AF A6 00 00 69 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:28:35]Read from MH i2c: E2 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 03 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 03 00 5B 45 00 90 00 14 [14:28:35]RAPDU: 90 00 [14:28:35]wFMCommunicate OK [14:28:35]wFMCommunicate request_size=4 [14:28:35]MH_SAM_APDU [14:28:35]CAPDU: 80 0D 03 02 [14:28:35]Write to MH i2c: E2 08 00 5C 45 80 0D 03 02 00 00 00 00 1C [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:28:35]Read from MH i2c: E2 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 0B 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 0B 00 5C 45 00 1E 7E 4D 88 67 37 93 80 90 00 3F [14:28:35]RAPDU: 1E 7E 4D 88 67 37 93 80 90 00 [14:28:35]wFMCommunicate OK [14:28:35]SAM_PROTO_SignData done [14:28:35]FM_MakeSignedData done [14:28:35]CreateOFDProtocolMessage [14:28:35]wFMCommunicate request_size=4 [14:28:35]MH_SAM_APDU [14:28:35]CAPDU: 80 11 00 00 [14:28:35]Write to MH i2c: E2 08 00 5D 45 80 11 00 00 00 00 00 00 1C [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:35]Read from MH i2c: E2 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 17 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: E2 17 00 5D 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 77 [14:28:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:28:35]wFMCommunicate OK [14:28:35]CreateOFDProtocolMessage done [14:28:35]OFDSenderStorePacket 139421 [14:28:35]StoreOFDPacket docnum=139421 [14:28:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 8A E7 07 01 DE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 69 00 00 00 F4 03 04 00 97 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9D 20 02 00 35 04 06 00 FE F1 D8 27 AF A6 1E 7E 4D 88 67 37 93 80 [14:28:35]CheckFolder [14:28:35]dirname=/storage/ofd_packets [14:28:35]CheckFolder done [14:28:35]ProducePacketName [14:28:35]name=ofd_packets/00139421 [14:28:35]NVStorageSaveData ofd_packets/00139421 [14:28:35]File name is /storage/ofd_packets/00139421 [14:28:35]Write 301 bytes [14:28:35]NVStorageSaveData done [14:28:35]OFDSenderStorePacket done [14:28:35]KKMCreateOFDPacket done [14:28:35]NVStorageSaveData kkm_last_timestamp [14:28:35]File name is /storage/kkm_last_timestamp [14:28:35]Write 4 bytes [14:28:35]NVStorageSaveData done [14:28:35]ExternCall_PrintAddStr [14:28:35]wPrintStart [14:28:35]Write to MH i2c: 01 00 00 5E 45 A3 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 5E 45 00 00 00 00 00 FF 0F B8 [14:28:35]RasterBufferAndPrint [14:28:35]line Счет N : (1)1094549 [14:28:35]line ИНН: 02508201610067 [14:28:35]line Контрольно-Кассовый Чек [14:28:35]line ПРОДАЖА [14:28:35]line ТРК (МРК, ГНК) : 53 [14:28:35]line Товар: 2710124130 [14:28:35]line Аи-92-К-2 [14:28:35]line 30.000 * 0.00 [14:28:35]line = 0.00 [14:28:35]line НДС 12% НСП 1% [14:28:35]line > о реализуемом товаре [14:28:35]line ИТОГО: 0.00 [14:28:35]line НСП 1% : 0.00 [14:28:35]line НДС 12% : 0.00 [14:28:35]line Наличными: 0.00 [14:28:35]line Безнал.: 0.00 [14:28:35]line Место: АЗС № 101 "Партнер Нефть" [14:28:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:28:35]line СНО: Общий режим [14:28:35]line Чек 105 30.10.2024 14:28 [14:28:35]line Смена: 556 ФФД: 1.0 [14:28:35]line ЗНМ: 0300000081 [14:28:35]line РНМ: 0000000000091631 [14:28:35]line Версия ККМ: 001 [14:28:35]line Талоны: ТК ГПНА Online [14:28:35]line 30116653 [14:28:35]line ФМ: 0000000000874669 [14:28:35]line ФД: 139421 [14:28:35]line ФПД: 280314667052966 [14:28:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T142839&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139421&fm=280314667052966&tin=02508201610067®Number=0000000000091631&sum=0 [14:28:35]written 0, free lines is 4095 [14:28:35]OFD Sender: Processing packet 139421 [packets to send 34, broken 33] [14:28:35]ProducePacketName [14:28:35]name=ofd_packets/00139421 [14:28:35]OFD Sender: To server: pG, [14:28:35]CommunicateWithHost lk.salyk.kg:30040 [14:28:35]ConnectInit lk.salyk.kg [14:28:35]Connected sock=10 [14:28:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 8A E7 07 01 DE 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 69 00 00 00 F4 03 04 00 97 42 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9D 20 02 00 35 04 06 00 FE F1 D8 27 AF A6 1E 7E 4D 88 67 37 93 80 [14:28:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 68 72 47 00 7C 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9D 20 02 00 F4 03 04 00 47 EE 21 67 B6 04 01 00 00 41 C5 DC 7F 45 B6 15 41 [14:28:35]CommunicateWithHost err = 0 [14:28:35]CheckOFDResponse [14:28:35]1017 (14) - 77093643461234 [14:28:35]1041 (16) - 0000000000874669 [14:28:35]1040 (4) - 139421 [14:28:35]1012 (4) - 30.10.2024 08:28 [14:28:35]1206 (1) - 0 [14:28:35]OFD Sender: Remove packet 139421 [14:28:35]ProducePacketName [14:28:35]name=ofd_packets/00139421 [14:28:35]NVStorageDeleteData [14:28:35]Write to MH i2c: 01 00 00 88 45 CD [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: 01 07 00 88 45 00 00 00 00 00 02 0D E3 [14:28:35]RasterBufferAndPrint [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]line [14:28:35]written 0, free lines is 3339 [14:28:35]MH_Cut [14:28:35]Write to MH i2c: D1 01 00 8F 45 01 A6 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 01 00 [14:28:35]MH_I2C_Read... [14:28:35]Read from MH i2c: D1 01 00 8F 45 00 A5 [14:28:35]Write to MH i2c: 01 00 00 90 45 D5 [14:28:35]Write i2c OK [14:28:35]MH_I2C_Read... [14:28:36]OFD Sender: No OFD packet to send [14:28:36]*** Cut start [14:28:36]*** Partial cut [14:28:36]*** CUTSNS_PIN = 1 [14:28:36]*** CUTSNS_PIN = 0 [14:28:36]*** Brake cut motor [14:28:37]Read from MH i2c: 01 [14:28:37]MH_I2C_Read... [14:28:37]*** Stop cut motor [14:28:37]*** Cut end [14:28:37]Read from MH i2c: 01 07 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: 01 07 00 90 45 00 00 00 00 00 FF 0F EA [14:28:37]process_action close_receipt done [14:28:37]requested_data is exist [14:28:37]produce_requested_data [14:28:37]requested_item fm.sn is exist - process it [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 11 00 00 [14:28:37]Write to MH i2c: E2 08 00 91 45 80 11 00 00 00 00 00 00 50 [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 17 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 17 00 91 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AB [14:28:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:28:37]wFMCommunicate OK [14:28:37]requested_item fd.num is exist - process it [14:28:37]SAM_PROTO_GetFieldsCounters [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 13 00 00 [14:28:37]Write to MH i2c: E2 08 00 92 45 80 13 00 00 00 00 00 00 53 [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 62 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 62 00 92 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9D 20 02 00 0E 04 04 00 2C 02 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 9F [14:28:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9D 20 02 00 0E 04 04 00 2C 02 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 [14:28:37]wFMCommunicate OK [14:28:37]SAM_PROTO_GetFieldsCounters done [14:28:37]requested_item shift.num is exist - process it [14:28:37]requested_item shift.opened is exist - process it [14:28:37]req_shift_opened [14:28:37]FM_GetShiftState [14:28:37]SAM_PROTO_GetShiftState [14:28:37]wFMCommunicate request_size=4 [14:28:37]MH_SAM_APDU [14:28:37]CAPDU: 80 13 01 00 [14:28:37]Write to MH i2c: E2 08 00 93 45 80 13 01 00 00 00 00 00 55 [14:28:37]Write i2c OK [14:28:37]MH_I2C_Read... [14:28:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:28:37]Read from MH i2c: E2 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 0E 00 [14:28:37]MH_I2C_Read... [14:28:37]Read from MH i2c: E2 0E 00 93 45 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E5 [14:28:37]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:28:37]wFMCommunicate OK [14:28:37]SAM_PROTO_GetShiftState done [14:28:37]FM_GetShiftState done [14:28:37]req_shift_opened done [14:28:37]requested_item shift.open_date is exist - process it [14:28:37]req_shift_open_date [14:28:37]req_shift_open_date done [14:28:37]produce_requested_data done [14:28:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139421,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:28:37]process_action_free close_receipt [14:28:37]json_value_free [14:28:37]json_value_free done [14:28:37]process_json_proto returns [14:28:37]Send response to host [14:28:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139421,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:28:37]free response buf [14:28:37]execute_script done [14:28:37]execute_script returns [14:28:37]free content buf [14:28:37]Sock 8.Close socket [14:28:37]Sock 8.Thread stoped [14:28:41]OFD Sender: No OFD packet to send [14:28:46]OFD Sender: No OFD packet to send [14:28:51]OFD Sender: No OFD packet to send [14:28:56]OFD Sender: No OFD packet to send [14:29:01]OFD Sender: No OFD packet to send [14:29:06]OFD Sender: No OFD packet to send [14:29:11]OFD Sender: No OFD packet to send [14:29:16]OFD Sender: No OFD packet to send [14:29:21]OFD Sender: No OFD packet to send [14:29:26]OFD Sender: No OFD packet to send [14:29:31]OFD Sender: No OFD packet to send [14:29:36]OFD Sender: No OFD packet to send [14:29:41]OFD Sender: No OFD packet to send [14:29:46]OFD Sender: No OFD packet to send [14:29:51]OFD Sender: No OFD packet to send [14:29:56]OFD Sender: No OFD packet to send [14:30:01]OFD Sender: No OFD packet to send [14:30:06]OFD Sender: No OFD packet to send [14:30:11]OFD Sender: No OFD packet to send [14:30:16]OFD Sender: No OFD packet to send [14:30:21]OFD Sender: No OFD packet to send [14:30:26]OFD Sender: No OFD packet to send [14:30:31]OFD Sender: No OFD packet to send [14:30:36]OFD Sender: No OFD packet to send [14:30:41]OFD Sender: No OFD packet to send [14:30:46]OFD Sender: No OFD packet to send [14:30:51]OFD Sender: No OFD packet to send [14:30:56]OFD Sender: No OFD packet to send [14:31:01]OFD Sender: No OFD packet to send [14:31:06]OFD Sender: No OFD packet to send [14:31:11]OFD Sender: No OFD packet to send [14:31:16]OFD Sender: No OFD packet to send [14:31:21]OFD Sender: No OFD packet to send [14:31:26]OFD Sender: No OFD packet to send [14:31:31]OFD Sender: No OFD packet to send [14:31:36]OFD Sender: No OFD packet to send [14:31:41]OFD Sender: No OFD packet to send [14:31:46]OFD Sender: No OFD packet to send [14:31:51]OFD Sender: No OFD packet to send [14:31:56]OFD Sender: No OFD packet to send [14:32:01]OFD Sender: No OFD packet to send [14:32:06]OFD Sender: No OFD packet to send [14:32:11]OFD Sender: No OFD packet to send [14:32:16]OFD Sender: No OFD packet to send [14:32:21]OFD Sender: No OFD packet to send [14:32:26]OFD Sender: No OFD packet to send [14:32:31]OFD Sender: No OFD packet to send [14:32:36]OFD Sender: No OFD packet to send [14:32:41]OFD Sender: No OFD packet to send [14:32:46]OFD Sender: No OFD packet to send [14:32:51]OFD Sender: No OFD packet to send [14:32:56]OFD Sender: No OFD packet to send [14:33:01]OFD Sender: No OFD packet to send [14:33:06]OFD Sender: No OFD packet to send [14:33:11]OFD Sender: No OFD packet to send [14:33:16]OFD Sender: No OFD packet to send [14:33:21]OFD Sender: No OFD packet to send [14:33:26]OFD Sender: No OFD packet to send [14:33:31]OFD Sender: No OFD packet to send [14:33:36]OFD Sender: No OFD packet to send [14:33:41]OFD Sender: No OFD packet to send [14:33:46]OFD Sender: No OFD packet to send [14:33:51]OFD Sender: No OFD packet to send [14:33:56]OFD Sender: No OFD packet to send [14:34:01]OFD Sender: No OFD packet to send [14:34:06]OFD Sender: No OFD packet to send [14:34:11]OFD Sender: No OFD packet to send [14:34:16]OFD Sender: No OFD packet to send [14:34:21]OFD Sender: No OFD packet to send [14:34:26]OFD Sender: No OFD packet to send [14:34:31]OFD Sender: No OFD packet to send [14:34:36]OFD Sender: No OFD packet to send [14:34:41]OFD Sender: No OFD packet to send [14:34:46]OFD Sender: No OFD packet to send [14:34:51]OFD Sender: No OFD packet to send [14:34:56]OFD Sender: No OFD packet to send [14:35:01]OFD Sender: No OFD packet to send [14:35:06]OFD Sender: No OFD packet to send [14:35:11]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:37:01]OFD Sender: No OFD packet to send [14:37:06]OFD Sender: No OFD packet to send [14:37:11]OFD Sender: No OFD packet to send [14:37:16]OFD Sender: No OFD packet to send [14:37:21]OFD Sender: No OFD packet to send [14:37:26]OFD Sender: No OFD packet to send [14:37:31]OFD Sender: No OFD packet to send [14:37:36]OFD Sender: No OFD packet to send [14:37:41]OFD Sender: No OFD packet to send [14:37:46]OFD Sender: No OFD packet to send [14:37:51]OFD Sender: No OFD packet to send [14:37:56]OFD Sender: No OFD packet to send [14:38:01]OFD Sender: No OFD packet to send [14:38:06]OFD Sender: No OFD packet to send [14:38:11]OFD Sender: No OFD packet to send [14:38:16]OFD Sender: No OFD packet to send [14:38:21]OFD Sender: No OFD packet to send [14:38:26]OFD Sender: No OFD packet to send [14:38:31]OFD Sender: No OFD packet to send [14:38:36]OFD Sender: No OFD packet to send [14:38:41]OFD Sender: No OFD packet to send [14:38:46]OFD Sender: No OFD packet to send [14:38:51]OFD Sender: No OFD packet to send [14:38:56]OFD Sender: No OFD packet to send [14:39:01]OFD Sender: No OFD packet to send [14:39:06]OFD Sender: No OFD packet to send [14:39:11]OFD Sender: No OFD packet to send [14:39:16]OFD Sender: No OFD packet to send [14:39:21]OFD Sender: No OFD packet to send [14:39:26]OFD Sender: No OFD packet to send [14:39:31]OFD Sender: No OFD packet to send [14:39:36]OFD Sender: No OFD packet to send [14:39:41]OFD Sender: No OFD packet to send [14:39:46]OFD Sender: No OFD packet to send [14:39:51]OFD Sender: No OFD packet to send [14:39:56]OFD Sender: No OFD packet to send [14:40:01]OFD Sender: No OFD packet to send [14:40:06]OFD Sender: No OFD packet to send [14:40:11]OFD Sender: No OFD packet to send [14:40:16]OFD Sender: No OFD packet to send [14:40:21]OFD Sender: No OFD packet to send [14:40:26]OFD Sender: No OFD packet to send [14:40:31]OFD Sender: No OFD packet to send [14:40:36]OFD Sender: No OFD packet to send [14:40:41]OFD Sender: No OFD packet to send [14:40:46]OFD Sender: No OFD packet to send [14:40:51]OFD Sender: No OFD packet to send [14:40:56]OFD Sender: No OFD packet to send [14:41:01]OFD Sender: No OFD packet to send [14:41:06]OFD Sender: No OFD packet to send [14:41:11]OFD Sender: No OFD packet to send [14:41:16]OFD Sender: No OFD packet to send [14:41:21]OFD Sender: No OFD packet to send [14:41:26]OFD Sender: No OFD packet to send [14:41:31]OFD Sender: No OFD packet to send [14:41:36]OFD Sender: No OFD packet to send [14:41:41]OFD Sender: No OFD packet to send [14:41:46]OFD Sender: No OFD packet to send [14:41:51]OFD Sender: No OFD packet to send [14:41:56]OFD Sender: No OFD packet to send [14:42:01]OFD Sender: No OFD packet to send [14:42:06]OFD Sender: No OFD packet to send [14:42:11]OFD Sender: No OFD packet to send [14:42:16]OFD Sender: No OFD packet to send [14:42:21]OFD Sender: No OFD packet to send [14:42:26]OFD Sender: No OFD packet to send [14:42:31]OFD Sender: No OFD packet to send [14:42:36]OFD Sender: No OFD packet to send [14:42:41]OFD Sender: No OFD packet to send [14:42:46]OFD Sender: No OFD packet to send [14:42:51]OFD Sender: No OFD packet to send [14:42:56]OFD Sender: No OFD packet to send [14:43:01]OFD Sender: No OFD packet to send [14:43:06]OFD Sender: No OFD packet to send [14:43:11]OFD Sender: No OFD packet to send [14:43:16]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:42]OFD Sender: No OFD packet to send [14:43:47]OFD Sender: No OFD packet to send [14:43:52]OFD Sender: No OFD packet to send [14:43:57]OFD Sender: No OFD packet to send [14:44:02]OFD Sender: No OFD packet to send [14:44:07]OFD Sender: No OFD packet to send [14:44:12]OFD Sender: No OFD packet to send [14:44:17]OFD Sender: No OFD packet to send [14:44:22]OFD Sender: No OFD packet to send [14:44:27]OFD Sender: No OFD packet to send [14:44:32]OFD Sender: No OFD packet to send [14:44:37]OFD Sender: No OFD packet to send [14:44:42]OFD Sender: No OFD packet to send [14:44:47]OFD Sender: No OFD packet to send [14:44:52]OFD Sender: No OFD packet to send [14:44:57]OFD Sender: No OFD packet to send [14:45:02]OFD Sender: No OFD packet to send [14:45:07]OFD Sender: No OFD packet to send [14:45:12]OFD Sender: No OFD packet to send [14:45:17]OFD Sender: No OFD packet to send [14:45:22]OFD Sender: No OFD packet to send [14:45:27]OFD Sender: No OFD packet to send [14:45:32]OFD Sender: No OFD packet to send [14:45:37]OFD Sender: No OFD packet to send [14:45:42]OFD Sender: No OFD packet to send [14:45:47]OFD Sender: No OFD packet to send [14:45:52]OFD Sender: No OFD packet to send [14:45:57]OFD Sender: No OFD packet to send [14:46:02]OFD Sender: No OFD packet to send [14:46:07]OFD Sender: No OFD packet to send [14:46:12]OFD Sender: No OFD packet to send [14:46:17]OFD Sender: No OFD packet to send [14:46:22]OFD Sender: No OFD packet to send [14:46:27]OFD Sender: No OFD packet to send [14:46:32]OFD Sender: No OFD packet to send [14:46:37]OFD Sender: No OFD packet to send [14:46:42]OFD Sender: No OFD packet to send [14:46:47]OFD Sender: No OFD packet to send [14:46:52]OFD Sender: No OFD packet to send [14:46:57]OFD Sender: No OFD packet to send [14:47:02]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:52]accept exits with 9 [14:47:52]New connection [14:47:52]New thread 3067141476 created [14:47:52]Thread 3067284836 joined [14:47:52]Waiting for new connection... [14:47:52] Sock 9.Parse request [14:47:52]Sock 9.Check first char [14:47:52]Sock 9.First char is OK [14:47:52]request: POST /json_proto HTTP/1.0 [14:47:52]Method: POST [14:47:52]URL: /json_proto [14:47:52]Method is POST - this is cgi request [14:47:52]url: /json_proto [14:47:52]query_string will be loaded in cgi processing [14:47:52]execute_cgi json_proto POST (null) [14:47:52]execute_cgi path=json_proto method=POST [14:47:52]POST find Content-Length [14:47:52]Host: 172.17.50.196:8080 [14:47:52]Content-Length: 678 [14:47:52]Content-Type: application/json [14:47:52] [14:47:52]POST finish read [14:47:52]Found Content-Length = 678 [14:47:52]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:52]execute_script... [14:47: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)1094559", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:47:52]POST & json_proto [14:47:52]process_json_proto [14:47:52]json parsed OK: [14:47:52]protocol is kg_v1.0 [14:47:52]action value=close_receipt [14:47:52]process_action close_receipt [14:47:52]cmd_close_receipt [14:47:52]MH_GetDate [14:47:52]Write to MH i2c: F0 00 00 94 45 C8 [14:47:52]Write i2c OK [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: F0 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: F0 09 00 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: F0 09 00 94 45 00 1E 47 22 67 72 0D 1C 67 C1 [14:47:52]GetLastDocTimeStamp 1730298519 [14:47:52]current date 1730299678 [14:47:52]FM_GetShiftState [14:47:52]SAM_PROTO_GetShiftState [14:47:52]wFMCommunicate request_size=4 [14:47:52]MH_SAM_APDU [14:47:52]CAPDU: 80 13 01 00 [14:47:52]Write to MH i2c: E2 08 00 95 45 80 13 01 00 00 00 00 00 57 [14:47:52]Write i2c OK [14:47:52]MH_I2C_Read... [14:47:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:52]Read from MH i2c: E2 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: E2 0E 00 [14:47:52]MH_I2C_Read... [14:47:52]Read from MH i2c: E2 0E 00 95 45 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E7 [14:47:52]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:47:52]wFMCommunicate OK [14:47:52]SAM_PROTO_GetShiftState done [14:47:52]FM_GetShiftState done [14:47:52]opened in 1730246278 [14:47:52]opened+sec_in_day 1730332678 [14:47:52]quantity*price = 50041 [14:47:52]sum+1 = 50042 [14:47: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 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 106 30.10.2024 14:47 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139422 ФПД: 161692339080283 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144758&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139422&fm=161692339080283&tin=02508201610067®Number=0000000000091631&sum=50000 [14:47:54]StoreToDocumentArchive [14:47:54]shift 556 fd 139422 [14:47:54]save to /storage/0556/doc_00139422 [14:47:54]save last doc name /storage/0556/doc_00139422 to /storage/kkm_last_doc_name [14:47:54]save OK [14:47:54]Clear old archive folders... [14:47:54]ProcessDocumentItem done err = 0, tmpTLVsize=251 [14:47:54]tlvbuf is 0110A4F0 [14:47:54]SAM_PROTO_ClearQueue [14:47:54]wFMCommunicate request_size=4 [14:47:54]MH_SAM_APDU [14:47:54]CAPDU: 80 09 00 00 [14:47:54]Write to MH i2c: E2 08 00 A2 45 80 09 00 00 00 00 00 00 59 [14:47:54]Write i2c OK [14:47:54]MH_I2C_Read... [14:47:54]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:47:54]Read from MH i2c: E2 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 03 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 03 00 A2 45 00 90 00 5B [14:47:54]RAPDU: 90 00 [14:47:54]wFMCommunicate OK [14:47:54]SAM_PROTO_ClearQueue done [14:47:54]KKMCreateOFDPacket [14:47:54]OFDProtocolAddRootSTLVToBuf [14:47:54]FM_MakeSignedData [14:47:54]FM_MakeSignedData [14:47:54]SAM_PROTO_SignData [14:47:54]wFMCommunicate request_size=4 [14:47:54]MH_SAM_APDU [14:47:54]CAPDU: 80 0D 01 02 [14:47:54]Write to MH i2c: E2 08 00 A3 45 80 0D 01 02 00 00 00 00 61 [14:47:54]Write i2c OK [14:47:54]MH_I2C_Read... [14:47:54]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:47:54]Read from MH i2c: E2 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 03 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 03 00 A3 45 00 90 00 5C [14:47:54]RAPDU: 90 00 [14:47:54]wFMCommunicate OK [14:47:54]wFMCommunicate request_size=255 [14:47:54]MH_SAM_APDU [14:47: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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1E 47 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 20 02 00 35 04 06 00 93 [14:47:54]Write to MH i2c: E2 02 01 A4 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6A 00 00 00 F4 03 04 00 1E 47 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 20 02 00 35 04 06 00 93 00 00 C9 [14:47:54]Write i2c OK [14:47:54]MH_I2C_Read... [14:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:54]Read from MH i2c: E2 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 03 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 03 00 A4 45 00 90 00 5D [14:47:54]RAPDU: 90 00 [14:47:54]wFMCommunicate OK [14:47:54]wFMCommunicate request_size=10 [14:47:54]MH_SAM_APDU [14:47:54]CAPDU: 80 0D 02 02 05 0E EE 6F 0C 5B [14:47:54]Write to MH i2c: E2 0D 00 A5 45 80 0D 02 02 05 00 0E EE 6F 0C 5B 00 00 40 [14:47:54]Write i2c OK [14:47:54]MH_I2C_Read... [14:47:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:47:54]Read from MH i2c: E2 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 03 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 03 00 A5 45 00 90 00 5E [14:47:54]RAPDU: 90 00 [14:47:54]wFMCommunicate OK [14:47:54]wFMCommunicate request_size=4 [14:47:54]MH_SAM_APDU [14:47:54]CAPDU: 80 0D 03 02 [14:47:54]Write to MH i2c: E2 08 00 A6 45 80 0D 03 02 00 00 00 00 66 [14:47:54]Write i2c OK [14:47:54]MH_I2C_Read... [14:47:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:47:54]Read from MH i2c: E2 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 0B 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 0B 00 A6 45 00 82 F7 BC 8C 4E 96 51 37 90 00 94 [14:47:54]RAPDU: 82 F7 BC 8C 4E 96 51 37 90 00 [14:47:54]wFMCommunicate OK [14:47:54]SAM_PROTO_SignData done [14:47:54]FM_MakeSignedData done [14:47:54]CreateOFDProtocolMessage [14:47:54]wFMCommunicate request_size=4 [14:47:54]MH_SAM_APDU [14:47:54]CAPDU: 80 11 00 00 [14:47:54]Write to MH i2c: E2 08 00 A7 45 80 11 00 00 00 00 00 00 66 [14:47:54]Write i2c OK [14:47:54]MH_I2C_Read... [14:47:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:54]Read from MH i2c: E2 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 17 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: E2 17 00 A7 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C1 [14:47:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:47:54]wFMCommunicate OK [14:47:54]CreateOFDProtocolMessage done [14:47:54]OFDSenderStorePacket 139422 [14:47:54]StoreOFDPacket docnum=139422 [14:47:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 DC C6 07 01 65 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 1E 47 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 20 02 00 35 04 06 00 93 0E EE 6F 0C 5B 82 F7 BC 8C 4E 96 51 37 [14:47:54]CheckFolder [14:47:54]dirname=/storage/ofd_packets [14:47:54]CheckFolder done [14:47:54]ProducePacketName [14:47:54]name=ofd_packets/00139422 [14:47:54]NVStorageSaveData ofd_packets/00139422 [14:47:54]File name is /storage/ofd_packets/00139422 [14:47:54]Write 301 bytes [14:47:54]NVStorageSaveData done [14:47:54]OFDSenderStorePacket done [14:47:54]KKMCreateOFDPacket done [14:47:54]NVStorageSaveData kkm_last_timestamp [14:47:54]File name is /storage/kkm_last_timestamp [14:47:54]Write 4 bytes [14:47:54]NVStorageSaveData done [14:47:54]ExternCall_PrintAddStr [14:47:54]wPrintStart [14:47:54]Write to MH i2c: 01 00 00 A8 45 ED [14:47:54]Write i2c OK [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: 01 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: 01 07 00 [14:47:54]MH_I2C_Read... [14:47:54]Read from MH i2c: 01 07 00 A8 45 00 00 00 00 00 FF 0F 02 [14:47:54]RasterBufferAndPrint [14:47:54]line Счет N : (1)1094559 [14:47:54]line ИНН: 02508201610067 [14:47:54]line Контрольно-Кассовый Чек [14:47:54]line ПРОДАЖА [14:47:54]line ТРК (МРК, ГНК) : 53 [14:47:54]line Товар: 2710124130 [14:47:54]line Аи-92-К-2 [14:47:54]line 7.480 * 66.90 [14:47:54]line = 500.41 [14:47:54]line НДС 12% НСП 1% [14:47:54]line > о реализуемом товаре [14:47:54]line ОКРУГЛЕНИЕ: -0.41 [14:47:54]line ИТОГО: 500.00 [14:47:54]line Внесено: 500.00 [14:47:54]line СДАЧА: 0.00 [14:47:54]line НСП 1% : 4.43 [14:47:54]line НДС 12% : 53.14 [14:47:54]line Наличными: 500.00 [14:47:54]line Безнал.: 0.00 [14:47:54]line Место: АЗС № 101 "Партнер Нефть" [14:47:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:47:54]line СНО: Общий режим [14:47:54]line Чек 106 30.10.2024 14:47 [14:47:54]line Смена: 556 ФФД: 1.0 [14:47:54]line ЗНМ: 0300000081 [14:47:54]line РНМ: 0000000000091631 [14:47:54]line Версия ККМ: 001 [14:47:54]line ФМ: 0000000000874669 [14:47:54]line ФД: 139422 [14:47:54]line ФПД: 161692339080283 [14:47:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144758&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139422&fm=161692339080283&tin=02508201610067®Number=0000000000091631&sum=50000 [14:47:54]OFD Sender: Processing packet 139422 [packets to send 34, broken 33] [14:47:54]ProducePacketName [14:47:54]name=ofd_packets/00139422 [14:47:54]OFD Sender: To server: pG, [14:47:54]CommunicateWithHost lk.salyk.kg:30040 [14:47:54]ConnectInit lk.salyk.kg [14:47:54]written 0, free lines is 4095 [14:47:55]Connected sock=10 [14:47:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 DC C6 07 01 65 47 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 1E 47 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9E 20 02 00 35 04 06 00 93 0E EE 6F 0C 5B 82 F7 BC 8C 4E 96 51 37 [14:47:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 32 9F 47 00 B0 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 38 37 34 36 36 39 10 04 04 00 9E 20 02 00 F4 03 04 00 CE F2 21 67 B6 04 01 00 00 EC 6C 90 FD CC 92 3D F5 [14:47:55]CommunicateWithHost err = 0 [14:47:55]CheckOFDResponse [14:47:55]1017 (14) - 77093643461234 [14:47:55]1041 (16) - 0000000000874669 [14:47:55]1040 (4) - 139422 [14:47:55]1012 (4) - 30.10.2024 08:48 [14:47:55]1206 (1) - 0 [14:47:55]OFD Sender: Remove packet 139422 [14:47:55]ProducePacketName [14:47:55]name=ofd_packets/00139422 [14:47:55]NVStorageDeleteData [14:47:55]Write to MH i2c: 01 00 00 D3 45 18 [14:47:55]Write i2c OK [14:47:55]MH_I2C_Read... [14:47:55]Read from MH i2c: 01 [14:47:55]MH_I2C_Read... [14:47:55]Read from MH i2c: 01 07 00 [14:47:55]MH_I2C_Read... [14:47:55]Read from MH i2c: 01 07 00 D3 45 00 00 00 00 00 E5 0C 10 [14:47:55]RasterBufferAndPrint [14:47:55]line [14:47:55]line [14:47:55]line [14:47:55]line [14:47:55]line [14:47:55]written 0, free lines is 3307 [14:47:55]MH_Cut [14:47:55]Write to MH i2c: D1 01 00 DA 45 01 F1 [14:47:55]Write i2c OK [14:47:55]MH_I2C_Read... [14:47:55]Read from MH i2c: D1 [14:47:55]MH_I2C_Read... [14:47:55]Read from MH i2c: D1 01 00 [14:47:55]MH_I2C_Read... [14:47:55]Read from MH i2c: D1 01 00 DA 45 00 F0 [14:47:55]Write to MH i2c: 01 00 00 DB 45 20 [14:47:55]Write i2c OK [14:47:55]MH_I2C_Read... [14:47:55]OFD Sender: No OFD packet to send [14:47:56]*** Cut start [14:47:56]*** Partial cut [14:47:56]*** CUTSNS_PIN = 1 [14:47:56]*** CUTSNS_PIN = 0 [14:47:56]*** Brake cut motor [14:47:56]Read from MH i2c: 01 [14:47:56]MH_I2C_Read... [14:47:56]*** Stop cut motor [14:47:56]*** Cut end [14:47:56]Read from MH i2c: 01 07 00 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: 01 07 00 DB 45 00 00 00 00 00 FF 0F 35 [14:47:56]process_action close_receipt done [14:47:56]requested_data is exist [14:47:56]produce_requested_data [14:47:56]requested_item fm.sn is exist - process it [14:47:56]wFMCommunicate request_size=4 [14:47:56]MH_SAM_APDU [14:47:56]CAPDU: 80 11 00 00 [14:47:56]Write to MH i2c: E2 08 00 DC 45 80 11 00 00 00 00 00 00 9B [14:47:56]Write i2c OK [14:47:56]MH_I2C_Read... [14:47:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:47:56]Read from MH i2c: E2 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: E2 17 00 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: E2 17 00 DC 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F6 [14:47:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:47:56]wFMCommunicate OK [14:47:56]requested_item fd.num is exist - process it [14:47:56]SAM_PROTO_GetFieldsCounters [14:47:56]wFMCommunicate request_size=4 [14:47:56]MH_SAM_APDU [14:47:56]CAPDU: 80 13 00 00 [14:47:56]Write to MH i2c: E2 08 00 DD 45 80 13 00 00 00 00 00 00 9E [14:47:56]Write i2c OK [14:47:56]MH_I2C_Read... [14:47:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:47:56]Read from MH i2c: E2 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: E2 62 00 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: E2 62 00 DD 45 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9E 20 02 00 0E 04 04 00 2C 02 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 EE [14:47:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9E 20 02 00 0E 04 04 00 2C 02 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 [14:47:56]wFMCommunicate OK [14:47:56]SAM_PROTO_GetFieldsCounters done [14:47:56]requested_item shift.num is exist - process it [14:47:56]requested_item shift.opened is exist - process it [14:47:56]req_shift_opened [14:47:56]FM_GetShiftState [14:47:56]SAM_PROTO_GetShiftState [14:47:56]wFMCommunicate request_size=4 [14:47:56]MH_SAM_APDU [14:47:56]CAPDU: 80 13 01 00 [14:47:56]Write to MH i2c: E2 08 00 DE 45 80 13 01 00 00 00 00 00 A0 [14:47:56]Write i2c OK [14:47:56]MH_I2C_Read... [14:47:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:47:56]Read from MH i2c: E2 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: E2 0E 00 [14:47:56]MH_I2C_Read... [14:47:56]Read from MH i2c: E2 0E 00 DE 45 00 09 00 01 86 76 21 67 00 00 00 00 90 00 30 [14:47:56]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:47:56]wFMCommunicate OK [14:47:56]SAM_PROTO_GetShiftState done [14:47:56]FM_GetShiftState done [14:47:56]req_shift_opened done [14:47:56]requested_item shift.open_date is exist - process it [14:47:56]req_shift_open_date [14:47:56]req_shift_open_date done [14:47:56]produce_requested_data done [14:47:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139422,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:47:56]process_action_free close_receipt [14:47:56]json_value_free [14:47:56]json_value_free done [14:47:56]process_json_proto returns [14:47:56]Send response to host [14:47:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139422,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:47:56]free response buf [14:47:56]execute_script done [14:47:56]execute_script returns [14:47:56]free content buf [14:47:56]Sock 9.Close socket [14:47:56]Sock 9.Thread stoped [14:48:00]OFD Sender: No OFD packet to send [14:48:05]OFD Sender: No OFD packet to send [14:48:10]OFD Sender: No OFD packet to send [14:48:15]OFD Sender: No OFD packet to send [14:48:20]OFD Sender: No OFD packet to send [14:48:25]OFD Sender: No OFD packet to send [14:48:30]OFD Sender: No OFD packet to send [14:48:35]OFD Sender: No OFD packet to send [14:48:40]OFD Sender: No OFD packet to send [14:48:45]OFD Sender: No OFD packet to send [14:48:50]OFD Sender: No OFD packet to send [14:48:55]OFD Sender: No OFD packet to send [14:49:00]OFD Sender: No OFD packet to send [14:49:05]OFD Sender: No OFD packet to send [14:49:10]OFD Sender: No OFD packet to send [14:49:15]OFD Sender: No OFD packet to send [14:49:20]OFD Sender: No OFD packet to send [14:49:25]OFD Sender: No OFD packet to send [14:49:30]OFD Sender: No OFD packet to send [14:49:35]OFD Sender: No OFD packet to send [14:49:40]OFD Sender: No OFD packet to send [14:49:45]OFD Sender: No OFD packet to send [14:49:49]accept exits with 8 [14:49:49]New connection [14:49:49]New thread 3067284836 created [14:49:49]Thread 3067141476 joined [14:49:49]Waiting for new connection... [14:49:49] Sock 8.Parse request [14:49:49]Sock 8.Check first char [14:49:49]Sock 8.First char is OK [14:49:49]request: POST /json_proto HTTP/1.0 [14:49:49]Method: POST [14:49:49]URL: /json_proto [14:49:49]Method is POST - this is cgi request [14:49:49]url: /json_proto [14:49:49]query_string will be loaded in cgi processing [14:49:49]execute_cgi json_proto POST (null) [14:49:49]execute_cgi path=json_proto method=POST [14:49:49]POST find Content-Length [14:49:49]Host: 172.17.50.196:8080 [14:49:49]Content-Length: 659 [14:49:49]Content-Type: application/json [14:49:49] [14:49:49]POST finish read [14:49:49]Found Content-Length = 659 [14:49:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335324", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:49]execute_script... [14:49: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 : (3)335324", "tax_sys" : 0, "items" : [ { "code": "4870001154059", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 0,5\u043B \u0437\u0435\u043B \u0447\u0430\u0439", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:49:49]POST & json_proto [14:49:49]process_json_proto [14:49:49]json parsed OK: [14:49:49]protocol is kg_v1.0 [14:49:49]action value=close_receipt [14:49:49]process_action close_receipt [14:49:49]cmd_close_receipt [14:49:49]MH_GetDate [14:49:49]Write to MH i2c: F0 00 00 DF 45 13 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: F0 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: F0 09 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: F0 09 00 DF 45 00 93 47 22 67 72 0D 1C 67 81 [14:49:49]GetLastDocTimeStamp 1730299678 [14:49:49]current date 1730299795 [14:49:49]FM_GetShiftState [14:49:49]SAM_PROTO_GetShiftState [14:49:49]wFMCommunicate request_size=4 [14:49:49]MH_SAM_APDU [14:49:49]CAPDU: 80 13 01 00 [14:49:49]Write to MH i2c: E2 08 00 E0 45 80 13 01 00 00 00 00 00 A2 [14:49:49]Write i2c OK [14:49:49]MH_I2C_Read... [14:49:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:49]Read from MH i2c: E2 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 0E 00 [14:49:49]MH_I2C_Read... [14:49:49]Read from MH i2c: E2 0E 00 E0 45 00 09 00 01 86 76 21 67 00 00 00 00 90 00 32 [14:49:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:49:49]wFMCommunicate OK [14:49:49]SAM_PROTO_GetShiftState done [14:49:49]FM_GetShiftState done [14:49:49]opened in 1730246278 [14:49:49]opened+sec_in_day 1730332678 [14:49:49]quantity*price = 7500 [14:49:49]sum+1 = 7501 [14:49:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 107 30.10.2024 14:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139423 ФПД: 80603109331002 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144955&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139423&fm=80603109331002&tin=02508201610067®Number=0000000000091631&sum=7500 0 [14:49:50]StoreToDocumentArchive [14:49:50]shift 556 fd 139423 [14:49:50]save to /storage/0556/doc_00139423 [14:49:50]save last doc name /storage/0556/doc_00139423 to /storage/kkm_last_doc_name [14:49:50]save OK [14:49:50]Clear old archive folders... [14:49:50]OFD Sender: No OFD packet to send [14:49:50]ProcessDocumentItem done err = 0, tmpTLVsize=290 [14:49:50]tlvbuf is 0111CEC0 [14:49:50]SAM_PROTO_ClearQueue [14:49:50]wFMCommunicate request_size=4 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 09 00 00 [14:49:50]Write to MH i2c: E2 08 00 ED 45 80 09 00 00 00 00 00 00 A4 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 03 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 03 00 ED 45 00 90 00 A6 [14:49:50]RAPDU: 90 00 [14:49:50]wFMCommunicate OK [14:49:50]SAM_PROTO_ClearQueue done [14:49:50]KKMCreateOFDPacket [14:49:50]OFDProtocolAddRootSTLVToBuf [14:49:50]FM_MakeSignedData [14:49:50]FM_MakeSignedData [14:49:50]SAM_PROTO_SignData [14:49:50]wFMCommunicate request_size=4 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 0D 01 02 [14:49:50]Write to MH i2c: E2 08 00 EE 45 80 0D 01 02 00 00 00 00 AC [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:49:50]Read from MH i2c: E2 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 03 00 [14:49:50]MH_I2C_Read... [14:49:50]Read from MH i2c: E2 03 00 EE 45 00 90 00 A7 [14:49:50]RAPDU: 90 00 [14:49:50]wFMCommunicate OK [14:49:50]wFMCommunicate request_size=255 [14:49:50]MH_SAM_APDU [14:49:50]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 93 47 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [14:49:50]Write to MH i2c: E2 02 01 EF 45 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 93 47 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 35 [14:49:50]Write i2c OK [14:49:50]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 EF 45 00 90 00 A8 [14:49:51]RAPDU: 90 00 [14:49:51]wFMCommunicate OK [14:49:51]wFMCommunicate request_size=49 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 0D 02 02 2C 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 20 02 00 35 04 06 00 49 4E DF B3 10 3A [14:49:51]Write to MH i2c: E2 34 00 F0 45 80 0D 02 02 2C 00 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 20 02 00 35 04 06 00 49 4E DF B3 10 3A 00 00 13 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:49:51]Read from MH i2c: E2 03 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 03 00 F0 45 00 90 00 A9 [14:49:51]RAPDU: 90 00 [14:49:51]wFMCommunicate OK [14:49:51]wFMCommunicate request_size=4 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 0D 03 02 [14:49:51]Write to MH i2c: E2 08 00 F1 45 80 0D 03 02 00 00 00 00 B1 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 0B 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 0B 00 F1 45 00 9D 7C 30 C9 27 66 74 55 90 00 1A [14:49:51]RAPDU: 9D 7C 30 C9 27 66 74 55 90 00 [14:49:51]wFMCommunicate OK [14:49:51]SAM_PROTO_SignData done [14:49:51]FM_MakeSignedData done [14:49:51]CreateOFDProtocolMessage [14:49:51]wFMCommunicate request_size=4 [14:49:51]MH_SAM_APDU [14:49:51]CAPDU: 80 11 00 00 [14:49:51]Write to MH i2c: E2 08 00 F2 45 80 11 00 00 00 00 00 00 B1 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:51]Read from MH i2c: E2 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 17 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: E2 17 00 F2 45 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0C [14:49:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:49:51]wFMCommunicate OK [14:49:51]CreateOFDProtocolMessage done [14:49:51]OFDSenderStorePacket 139423 [14:49:51]StoreOFDPacket docnum=139423 [14:49:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 38 D8 2E 01 7E 82 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 93 47 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 20 02 00 35 04 06 00 49 4E DF B3 10 3A 9D 7C 30 C9 27 66 74 55 [14:49:51]CheckFolder [14:49:51]dirname=/storage/ofd_packets [14:49:51]CheckFolder done [14:49:51]ProducePacketName [14:49:51]name=ofd_packets/00139423 [14:49:51]NVStorageSaveData ofd_packets/00139423 [14:49:51]File name is /storage/ofd_packets/00139423 [14:49:51]Write 340 bytes [14:49:51]NVStorageSaveData done [14:49:51]OFDSenderStorePacket done [14:49:51]KKMCreateOFDPacket done [14:49:51]NVStorageSaveData kkm_last_timestamp [14:49:51]File name is /storage/kkm_last_timestamp [14:49:51]Write 4 bytes [14:49:51]NVStorageSaveData done [14:49:51]ExternCall_PrintAddStr [14:49:51]wPrintStart [14:49:51]Write to MH i2c: 01 00 00 F3 45 38 [14:49:51]Write i2c OK [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: 01 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: 01 07 00 [14:49:51]MH_I2C_Read... [14:49:51]Read from MH i2c: 01 07 00 F3 45 00 00 00 00 00 FF 0F 4D [14:49:51]RasterBufferAndPrint [14:49:51]line Счет N : (3)335324 [14:49:51]line ИНН: 02508201610067 [14:49:51]line Контрольно-Кассовый Чек [14:49:51]line ПРОДАЖА [14:49:51]line Товар: 4870001154059 [14:49:51]line Напиток Lipton IceTea 0,5л зел чай [14:49:51]line 1.000 * 75.00 [14:49:51]line = 75.00 [14:49:51]line НДС 12% НСП 1% [14:49:51]line > о реализуемом товаре [14:49:51]line ИТОГО: 75.00 [14:49:51]line НСП 1% : 0.66 [14:49:51]line НДС 12% : 7.96 [14:49:51]line Наличными: 75.00 [14:49:51]line Безнал.: 0.00 [14:49:51]line Место: АЗС № 101 "Партнер Нефть" [14:49:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:49:51]line СНО: Общий режим [14:49:51]line Чек 107 30.10.2024 14:49 [14:49:51]line Смена: 556 ФФД: 1.0 [14:49:51]line ЗНМ: 0300000081 [14:49:51]line РНМ: 0000000000091631 [14:49:51]line Версия ККМ: 001 [14:49:51]line ФМ: 0000000000874669 [14:49:51]line ФД: 139423 [14:49:51]line ФПД: 80603109331002 [14:49:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T144955&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139423&fm=80603109331002&tin=02508201610067®Number=0000000000091631&sum=7500 [14:49:51]line 0 [14:49:51]OFD Sender: Processing packet 139423 [packets to send 34, broken 33] [14:49:51]ProducePacketName [14:49:51]name=ofd_packets/00139423 [14:49:51]OFD Sender: To server: pG, [14:49:51]CommunicateWithHost lk.salyk.kg:30040 [14:49:51]ConnectInit lk.salyk.kg [14:49:51]written 0, free lines is 4095 [14:49:51]Connected sock=10 [14:49:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 38 D8 2E 01 7E 82 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 34 30 35 39 06 04 30 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 30 2C 35 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6B 00 00 00 F4 03 04 00 93 47 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 20 02 00 35 04 06 00 49 4E DF B3 10 3A 9D 7C 30 C9 27 66 74 55 [14:49:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 60 10 47 00 5B 15 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 9F 20 02 00 F4 03 04 00 43 F3 21 67 B6 04 01 00 00 29 89 9A E8 64 8A DD 9B [14:49:51]CommunicateWithHost err = 0 [14:49:51]CheckOFDResponse [14:49:51]1017 (14) - 77093643461234 [14:49:51]1041 (16) - 0000000000874669 [14:49:51]1040 (4) - 139423 [14:49:51]1012 (4) - 30.10.2024 08:50 [14:49:51]1206 (1) - 0 [14:49:51]OFD Sender: Remove packet 139423 [14:49:51]ProducePacketName [14:49:51]name=ofd_packets/00139423 [14:49:51]NVStorageDeleteData [14:49:52]Write to MH i2c: 01 00 00 1C 46 62 [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: 01 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: 01 07 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: 01 07 00 1C 46 00 00 00 00 00 E9 0C 5E [14:49:52]RasterBufferAndPrint [14:49:52]line [14:49:52]line [14:49:52]line [14:49:52]line [14:49:52]line [14:49:52]written 0, free lines is 3311 [14:49:52]MH_Cut [14:49:52]Write to MH i2c: D1 01 00 23 46 01 3B [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: D1 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: D1 01 00 [14:49:52]MH_I2C_Read... [14:49:52]Read from MH i2c: D1 01 00 23 46 00 3A [14:49:52]Write to MH i2c: 01 00 00 24 46 6A [14:49:52]Write i2c OK [14:49:52]MH_I2C_Read... [14:49:52]OFD Sender: No OFD packet to send [14:49:52]*** Cut start [14:49:52]*** Partial cut [14:49:52]*** CUTSNS_PIN = 1 [14:49:52]*** CUTSNS_PIN = 0 [14:49:53]*** Brake cut motor [14:49:53]Read from MH i2c: 01 [14:49:53]MH_I2C_Read... [14:49:53]*** Stop cut motor [14:49:53]*** Cut end [14:49:53]Read from MH i2c: 01 07 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: 01 07 00 24 46 00 00 00 00 00 FF 0F 7F [14:49:53]process_action close_receipt done [14:49:53]requested_data is exist [14:49:53]produce_requested_data [14:49:53]requested_item fm.sn is exist - process it [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 11 00 00 [14:49:53]Write to MH i2c: E2 08 00 25 46 80 11 00 00 00 00 00 00 E5 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 17 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 17 00 25 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 40 [14:49:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:49:53]wFMCommunicate OK [14:49:53]requested_item fd.num is exist - process it [14:49:53]SAM_PROTO_GetFieldsCounters [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 13 00 00 [14:49:53]Write to MH i2c: E2 08 00 26 46 80 13 00 00 00 00 00 00 E8 [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 62 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 62 00 26 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9F 20 02 00 0E 04 04 00 2C 02 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 3C [14:49:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 9F 20 02 00 0E 04 04 00 2C 02 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 [14:49:53]wFMCommunicate OK [14:49:53]SAM_PROTO_GetFieldsCounters done [14:49:53]requested_item shift.num is exist - process it [14:49:53]requested_item shift.opened is exist - process it [14:49:53]req_shift_opened [14:49:53]FM_GetShiftState [14:49:53]SAM_PROTO_GetShiftState [14:49:53]wFMCommunicate request_size=4 [14:49:53]MH_SAM_APDU [14:49:53]CAPDU: 80 13 01 00 [14:49:53]Write to MH i2c: E2 08 00 27 46 80 13 01 00 00 00 00 00 EA [14:49:53]Write i2c OK [14:49:53]MH_I2C_Read... [14:49:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:49:53]Read from MH i2c: E2 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 0E 00 [14:49:53]MH_I2C_Read... [14:49:53]Read from MH i2c: E2 0E 00 27 46 00 09 00 01 86 76 21 67 00 00 00 00 90 00 7A [14:49:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:49:53]wFMCommunicate OK [14:49:53]SAM_PROTO_GetShiftState done [14:49:53]FM_GetShiftState done [14:49:53]req_shift_opened done [14:49:53]requested_item shift.open_date is exist - process it [14:49:53]req_shift_open_date [14:49:53]req_shift_open_date done [14:49:53]produce_requested_data done [14:49:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139423,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:49:53]process_action_free close_receipt [14:49:53]json_value_free [14:49:53]json_value_free done [14:49:53]process_json_proto returns [14:49:53]Send response to host [14:49:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139423,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:49:53]free response buf [14:49:53]execute_script done [14:49:53]execute_script returns [14:49:53]free content buf [14:49:53]Sock 8.Close socket [14:49:53]Sock 8.Thread stoped [14:49:57]OFD Sender: No OFD packet to send [14:50:02]OFD Sender: No OFD packet to send [14:50:07]OFD Sender: No OFD packet to send [14:50:12]OFD Sender: No OFD packet to send [14:50:17]OFD Sender: No OFD packet to send [14:50:22]OFD Sender: No OFD packet to send [14:50:27]OFD Sender: No OFD packet to send [14:50:32]OFD Sender: No OFD packet to send [14:50:37]OFD Sender: No OFD packet to send [14:50:42]OFD Sender: No OFD packet to send [14:50:47]OFD Sender: No OFD packet to send [14:50:52]OFD Sender: No OFD packet to send [14:50:57]OFD Sender: No OFD packet to send [14:51:02]OFD Sender: No OFD packet to send [14:51:07]OFD Sender: No OFD packet to send [14:51:12]OFD Sender: No OFD packet to send [14:51:17]OFD Sender: No OFD packet to send [14:51:22]OFD Sender: No OFD packet to send [14:51:27]OFD Sender: No OFD packet to send [14:51:32]OFD Sender: No OFD packet to send [14:51:37]OFD Sender: No OFD packet to send [14:51:42]OFD Sender: No OFD packet to send [14:51:47]OFD Sender: No OFD packet to send [14:51:52]OFD Sender: No OFD packet to send [14:51:57]OFD Sender: No OFD packet to send [14:52:02]OFD Sender: No OFD packet to send [14:52:07]OFD Sender: No OFD packet to send [14:52:12]OFD Sender: No OFD packet to send [14:52:17]OFD Sender: No OFD packet to send [14:52:22]OFD Sender: No OFD packet to send [14:52:27]OFD Sender: No OFD packet to send [14:52:32]OFD Sender: No OFD packet to send [14:52:37]OFD Sender: No OFD packet to send [14:52:42]OFD Sender: No OFD packet to send [14:52:47]OFD Sender: No OFD packet to send [14:52:52]OFD Sender: No OFD packet to send [14:52:57]OFD Sender: No OFD packet to send [14:53:02]OFD Sender: No OFD packet to send [14:53:07]OFD Sender: No OFD packet to send [14:53:12]OFD Sender: No OFD packet to send [14:53:17]OFD Sender: No OFD packet to send [14:53:22]OFD Sender: No OFD packet to send [14:53:27]OFD Sender: No OFD packet to send [14:53:32]OFD Sender: No OFD packet to send [14:53:37]OFD Sender: No OFD packet to send [14:53:42]OFD Sender: No OFD packet to send [14:53:46]accept exits with 9 [14:53:46]New connection [14:53:46]New thread 3067141476 created [14:53:46]Thread 3067284836 joined [14:53:46]Waiting for new connection... [14:53:46] Sock 9.Parse request [14:53:46]Sock 9.Check first char [14:53:46]Sock 9.First char is OK [14:53:46]request: POST /json_proto HTTP/1.0 [14:53:46]Method: POST [14:53:46]URL: /json_proto [14:53:46]Method is POST - this is cgi request [14:53:46]url: /json_proto [14:53:46]query_string will be loaded in cgi processing [14:53:46]execute_cgi json_proto POST (null) [14:53:46]execute_cgi path=json_proto method=POST [14:53:46]POST find Content-Length [14:53:46]Host: 172.17.50.196:8080 [14:53:46]Content-Length: 1286 [14:53:46]Content-Type: application/json [14:53:46] [14:53:46]POST finish read [14:53:46]Found Content-Length = 1286 [14:53:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335325", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:46]execute_script... [14:53:46]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335325", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870235681383", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u0421\u041C\u0415\u0422\u0410\u041D\u0410/\u0417\u0415\u041B\u0415\u041D\u042C 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 1.000, "sum" : 40.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 255.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:53:46]POST & json_proto [14:53:46]process_json_proto [14:53:46]json parsed OK: [14:53:46]protocol is kg_v1.0 [14:53:46]action value=close_receipt [14:53:46]process_action close_receipt [14:53:46]cmd_close_receipt [14:53:46]MH_GetDate [14:53:46]Write to MH i2c: F0 00 00 28 46 5D [14:53:46]Write i2c OK [14:53:46]MH_I2C_Read... [14:53:46]Read from MH i2c: F0 [14:53:46]MH_I2C_Read... [14:53:46]Read from MH i2c: F0 09 00 [14:53:46]MH_I2C_Read... [14:53:46]Read from MH i2c: F0 09 00 28 46 00 7F 48 22 67 72 0D 1C 67 B8 [14:53:46]GetLastDocTimeStamp 1730299795 [14:53:46]current date 1730300031 [14:53:46]FM_GetShiftState [14:53:46]SAM_PROTO_GetShiftState [14:53:46]wFMCommunicate request_size=4 [14:53:46]MH_SAM_APDU [14:53:46]CAPDU: 80 13 01 00 [14:53:46]Write to MH i2c: E2 08 00 29 46 80 13 01 00 00 00 00 00 EC [14:53:46]Write i2c OK [14:53:46]MH_I2C_Read... [14:53:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:46]Read from MH i2c: E2 [14:53:46]MH_I2C_Read... [14:53:46]Read from MH i2c: E2 0E 00 [14:53:46]MH_I2C_Read... [14:53:46]Read from MH i2c: E2 0E 00 29 46 00 09 00 01 86 76 21 67 00 00 00 00 90 00 7C [14:53:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:53:46]wFMCommunicate OK [14:53:46]SAM_PROTO_GetShiftState done [14:53:46]FM_GetShiftState done [14:53:46]opened in 1730246278 [14:53:46]opened+sec_in_day 1730332678 [14:53:46]quantity*price = 12000 [14:53:46]sum+1 = 12001 [14:53:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870235681383 ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г 1.000 * 95.00 = 95.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160211 Вода Легенда 0,5л 1.000 * 40.00 = 40.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 255.00 НСП 1% : 2.25 НДС 12% : 27.08 Наличными: 255.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 108 30.10.2024 14:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139424 ФПД: 181624388034255 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T145352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139424&fm=181624388034255&tin=02508201610067®Number=0000000000091631&sum=25500 0 [14:53:47]StoreToDocumentArchive [14:53:47]shift 556 fd 139424 [14:53:47]save to /storage/0556/doc_00139424 [14:53:47]save last doc name /storage/0556/doc_00139424 to /storage/kkm_last_doc_name [14:53:47]save OK [14:53:47]Clear old archive folders... [14:53:47]ProcessDocumentItem done err = 0, tmpTLVsize=530 [14:53:47]tlvbuf is 0110E1B0 [14:53:47]SAM_PROTO_ClearQueue [14:53:47]wFMCommunicate request_size=4 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 09 00 00 [14:53:47]Write to MH i2c: E2 08 00 36 46 80 09 00 00 00 00 00 00 EE [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 03 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 03 00 36 46 00 90 00 F0 [14:53:47]RAPDU: 90 00 [14:53:47]wFMCommunicate OK [14:53:47]SAM_PROTO_ClearQueue done [14:53:47]KKMCreateOFDPacket [14:53:47]OFDProtocolAddRootSTLVToBuf [14:53:47]FM_MakeSignedData [14:53:47]FM_MakeSignedData [14:53:47]SAM_PROTO_SignData [14:53:47]wFMCommunicate request_size=4 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 0D 01 02 [14:53:47]Write to MH i2c: E2 08 00 37 46 80 0D 01 02 00 00 00 00 F6 [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 03 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 03 00 37 46 00 90 00 F1 [14:53:47]RAPDU: 90 00 [14:53:47]wFMCommunicate OK [14:53:47]wFMCommunicate request_size=255 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 0D 02 02 FA 03 00 12 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 [14:53:47]Write to MH i2c: E2 02 01 38 46 80 0D 02 02 FA 00 03 00 12 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 59 [14:53:47]OFD Sender: No OFD packet to send [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:47]Read from MH i2c: E2 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 03 00 [14:53:47]MH_I2C_Read... [14:53:47]Read from MH i2c: E2 03 00 38 46 00 90 00 F2 [14:53:47]RAPDU: 90 00 [14:53:47]wFMCommunicate OK [14:53:47]wFMCommunicate request_size=255 [14:53:47]MH_SAM_APDU [14:53:47]CAPDU: 80 0D 02 02 FA 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 80 48 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [14:53:47]Write to MH i2c: E2 02 01 39 46 80 0D 02 02 FA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 80 48 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 00 E1 [14:53:47]Write i2c OK [14:53:47]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 39 46 00 90 00 F3 [14:53:48]RAPDU: 90 00 [14:53:48]wFMCommunicate OK [14:53:48]wFMCommunicate request_size=39 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 20 02 00 35 04 06 00 A5 2F B9 21 9E CF [14:53:48]Write to MH i2c: E2 2A 00 3A 46 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 20 02 00 35 04 06 00 A5 2F B9 21 9E CF 00 00 9A [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 03 00 3A 46 00 90 00 F4 [14:53:48]RAPDU: 90 00 [14:53:48]wFMCommunicate OK [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 0D 03 02 [14:53:48]Write to MH i2c: E2 08 00 3B 46 80 0D 03 02 00 00 00 00 FC [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 0B 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 0B 00 3B 46 00 D5 D1 AC DD 59 C1 2F 6F 90 00 E4 [14:53:48]RAPDU: D5 D1 AC DD 59 C1 2F 6F 90 00 [14:53:48]wFMCommunicate OK [14:53:48]SAM_PROTO_SignData done [14:53:48]FM_MakeSignedData done [14:53:48]CreateOFDProtocolMessage [14:53:48]wFMCommunicate request_size=4 [14:53:48]MH_SAM_APDU [14:53:48]CAPDU: 80 11 00 00 [14:53:48]Write to MH i2c: E2 08 00 3C 46 80 11 00 00 00 00 00 00 FC [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:48]Read from MH i2c: E2 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 17 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: E2 17 00 3C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 57 [14:53:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:53:48]wFMCommunicate OK [14:53:48]CreateOFDProtocolMessage done [14:53:48]OFDSenderStorePacket 139424 [14:53:48]StoreOFDPacket docnum=139424 [14:53:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 02 00 00 4E 24 1E 02 2F 3E 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 80 48 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 20 02 00 35 04 06 00 A5 2F B9 21 9E CF D5 D1 AC DD 59 C1 2F 6F [14:53:48]CheckFolder [14:53:48]dirname=/storage/ofd_packets [14:53:48]CheckFolder done [14:53:48]ProducePacketName [14:53:48]name=ofd_packets/00139424 [14:53:48]NVStorageSaveData ofd_packets/00139424 [14:53:48]File name is /storage/ofd_packets/00139424 [14:53:48]Write 580 bytes [14:53:48]NVStorageSaveData done [14:53:48]OFDSenderStorePacket done [14:53:48]KKMCreateOFDPacket done [14:53:48]NVStorageSaveData kkm_last_timestamp [14:53:48]File name is /storage/kkm_last_timestamp [14:53:48]Write 4 bytes [14:53:48]NVStorageSaveData done [14:53:48]ExternCall_PrintAddStr [14:53:48]wPrintStart [14:53:48]Write to MH i2c: 01 00 00 3D 46 83 [14:53:48]Write i2c OK [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: 01 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: 01 07 00 [14:53:48]MH_I2C_Read... [14:53:48]Read from MH i2c: 01 07 00 3D 46 00 00 00 00 00 FF 0F 98 [14:53:48]RasterBufferAndPrint [14:53:48]line Счет N : (3)335325 [14:53:48]line ИНН: 02508201610067 [14:53:48]line Контрольно-Кассовый Чек [14:53:48]line ПРОДАЖА [14:53:48]line Товар: 4630007400990 [14:53:48]line Семечки ДЖИНН Великан 100гр [14:53:48]line 1.000 * 120.00 [14:53:48]line = 120.00 [14:53:48]line НДС 12% НСП 1% [14:53:48]line > о реализуемом товаре [14:53:48]line Товар: 4870235681383 [14:53:48]line ЧИПСЫ SLANG СО ВКУСОМ СМЕТАНА/ЗЕЛЕНЬ 60Г [14:53:48]line 1.000 * 95.00 [14:53:48]line = 95.00 [14:53:48]line НДС 12% НСП 1% [14:53:48]line > о реализуемом товаре [14:53:48]line Товар: 4700000160211 [14:53:48]line Вода Легенда 0,5л [14:53:48]line 1.000 * 40.00 [14:53:48]line = 40.00 [14:53:48]line НДС 12% НСП 1% [14:53:48]line > о реализуемом товаре [14:53:48]line ИТОГО: 255.00 [14:53:48]line НСП 1% : 2.25 [14:53:48]line НДС 12% : 27.08 [14:53:48]line Наличными: 255.00 [14:53:48]line Безнал.: 0.00 [14:53:48]line Место: АЗС № 101 "Партнер Нефть" [14:53:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:53:48]line СНО: Общий режим [14:53:48]line Чек 108 30.10.2024 14:53 [14:53:48]line Смена: 556 ФФД: 1.0 [14:53:48]line ЗНМ: 0300000081 [14:53:48]line РНМ: 0000000000091631 [14:53:48]line Версия ККМ: 001 [14:53:48]line ФМ: 0000000000874669 [14:53:48]line ФД: 139424 [14:53:48]line ФПД: 181624388034255 [14:53:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T145352&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139424&fm=181624388034255&tin=02508201610067®Number=0000000000091631&sum=25500 [14:53:48]line 0 [14:53:48]OFD Sender: Processing packet 139424 [packets to send 34, broken 33] [14:53:48]ProducePacketName [14:53:48]name=ofd_packets/00139424 [14:53:48]OFD Sender: To server: pG, [14:53:48]CommunicateWithHost lk.salyk.kg:30040 [14:53:48]ConnectInit lk.salyk.kg [14:53:48]written 0, free lines is 4095 [14:53:48]Connected sock=8 [14:53:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 02 00 00 4E 24 1E 02 2F 3E 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 38 33 06 04 43 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 A1 D0 9C D0 95 D0 A2 D0 90 D0 9D D0 90 2F D0 97 D0 95 D0 9B D0 95 D0 9D D0 AC 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 A0 0F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 63 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 94 0A 00 00 00 00 07 04 06 00 9C 63 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6C 00 00 00 F4 03 04 00 80 48 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 20 02 00 35 04 06 00 A5 2F B9 21 9E CF D5 D1 AC DD 59 C1 2F 6F [14:53:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 11 A8 47 00 6A 22 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A0 20 02 00 F4 03 04 00 30 F4 21 67 B6 04 01 00 00 7B 93 16 67 77 00 03 6D [14:53:49]CommunicateWithHost err = 0 [14:53:49]CheckOFDResponse [14:53:49]1017 (14) - 77093643461234 [14:53:49]1041 (16) - 0000000000874669 [14:53:49]1040 (4) - 139424 [14:53:49]1012 (4) - 30.10.2024 08:54 [14:53:49]1206 (1) - 0 [14:53:49]OFD Sender: Remove packet 139424 [14:53:49]ProducePacketName [14:53:49]name=ofd_packets/00139424 [14:53:49]NVStorageDeleteData [14:53:49]Write to MH i2c: 01 00 00 73 46 B9 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 07 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: 01 07 00 73 46 00 00 00 00 00 66 0C 32 [14:53:49]RasterBufferAndPrint [14:53:49]line [14:53:49]line [14:53:49]line [14:53:49]line [14:53:49]line [14:53:49]written 0, free lines is 3183 [14:53:49]MH_Cut [14:53:49]Write to MH i2c: D1 01 00 7A 46 01 92 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: D1 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: D1 01 00 [14:53:49]MH_I2C_Read... [14:53:49]Read from MH i2c: D1 01 00 7A 46 00 91 [14:53:49]Write to MH i2c: 01 00 00 7B 46 C1 [14:53:49]Write i2c OK [14:53:49]MH_I2C_Read... [14:53:49]OFD Sender: No OFD packet to send [14:53:50]*** Cut start [14:53:50]*** Partial cut [14:53:50]*** CUTSNS_PIN = 1 [14:53:50]*** CUTSNS_PIN = 0 [14:53:50]*** Brake cut motor [14:53:50]Read from MH i2c: 01 [14:53:50]MH_I2C_Read... [14:53:50]*** Stop cut motor [14:53:50]*** Cut end [14:53:50]Read from MH i2c: 01 07 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: 01 07 00 7B 46 00 00 00 00 00 FF 0F D6 [14:53:50]process_action close_receipt done [14:53:50]requested_data is exist [14:53:50]produce_requested_data [14:53:50]requested_item fm.sn is exist - process it [14:53:50]wFMCommunicate request_size=4 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 11 00 00 [14:53:50]Write to MH i2c: E2 08 00 7C 46 80 11 00 00 00 00 00 00 3C [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 17 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 17 00 7C 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 97 [14:53:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:53:50]wFMCommunicate OK [14:53:50]requested_item fd.num is exist - process it [14:53:50]SAM_PROTO_GetFieldsCounters [14:53:50]wFMCommunicate request_size=4 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 13 00 00 [14:53:50]Write to MH i2c: E2 08 00 7D 46 80 13 00 00 00 00 00 00 3F [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 62 00 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 62 00 7D 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A0 20 02 00 0E 04 04 00 2C 02 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 97 [14:53:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A0 20 02 00 0E 04 04 00 2C 02 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 [14:53:50]wFMCommunicate OK [14:53:50]SAM_PROTO_GetFieldsCounters done [14:53:50]requested_item shift.num is exist - process it [14:53:50]requested_item shift.opened is exist - process it [14:53:50]req_shift_opened [14:53:50]FM_GetShiftState [14:53:50]SAM_PROTO_GetShiftState [14:53:50]wFMCommunicate request_size=4 [14:53:50]MH_SAM_APDU [14:53:50]CAPDU: 80 13 01 00 [14:53:50]Write to MH i2c: E2 08 00 7E 46 80 13 01 00 00 00 00 00 41 [14:53:50]Write i2c OK [14:53:50]MH_I2C_Read... [14:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:53:50]Read from MH i2c: E2 [14:53:50]MH_I2C_Read... [14:53:50]Read from MH i2c: E2 0E 00 [14:53:51]MH_I2C_Read... [14:53:51]Read from MH i2c: E2 0E 00 7E 46 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D1 [14:53:51]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:53:51]wFMCommunicate OK [14:53:51]SAM_PROTO_GetShiftState done [14:53:51]FM_GetShiftState done [14:53:51]req_shift_opened done [14:53:51]requested_item shift.open_date is exist - process it [14:53:51]req_shift_open_date [14:53:51]req_shift_open_date done [14:53:51]produce_requested_data done [14:53:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139424,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:53:51]process_action_free close_receipt [14:53:51]json_value_free [14:53:51]json_value_free done [14:53:51]process_json_proto returns [14:53:51]Send response to host [14:53:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139424,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:53:51]free response buf [14:53:51]execute_script done [14:53:51]execute_script returns [14:53:51]free content buf [14:53:51]Sock 9.Close socket [14:53:51]Sock 9.Thread stoped [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:19]OFD Sender: No OFD packet to send [14:54:24]OFD Sender: No OFD packet to send [14:54:29]OFD Sender: No OFD packet to send [14:54:34]OFD Sender: No OFD packet to send [14:54:39]OFD Sender: No OFD packet to send [14:54:42]accept exits with 10 [14:54:42]New connection [14:54:42]New thread 3067284836 created [14:54:42]Thread 3067141476 joined [14:54:42]Waiting for new connection... [14:54:42] Sock 10.Parse request [14:54:42]Sock 10.Check first char [14:54:42]Sock 10.First char is OK [14:54:42]request: POST /json_proto HTTP/1.0 [14:54:42]Method: POST [14:54:42]URL: /json_proto [14:54:42]Method is POST - this is cgi request [14:54:42]url: /json_proto [14:54:42]query_string will be loaded in cgi processing [14:54:42]execute_cgi json_proto POST (null) [14:54:42]execute_cgi path=json_proto method=POST [14:54:42]POST find Content-Length [14:54:42]Host: 172.17.50.196:8080 [14:54:42]Content-Length: 656 [14:54:42]Content-Type: application/json [14:54:42] [14:54:42]POST finish read [14:54:42]Found Content-Length = 656 [14:54:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335326", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:42]execute_script... [14:54: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 : (3)335326", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 2.000, "sum" : 8.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 8.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:54:42]POST & json_proto [14:54:42]process_json_proto [14:54:42]json parsed OK: [14:54:42]protocol is kg_v1.0 [14:54:42]action value=close_receipt [14:54:42]process_action close_receipt [14:54:42]cmd_close_receipt [14:54:42]MH_GetDate [14:54:42]Write to MH i2c: F0 00 00 7F 46 B4 [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 09 00 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: F0 09 00 7F 46 00 B8 48 22 67 72 0D 1C 67 48 [14:54:42]GetLastDocTimeStamp 1730300032 [14:54:42]current date 1730300088 [14:54:42]FM_GetShiftState [14:54:42]SAM_PROTO_GetShiftState [14:54:42]wFMCommunicate request_size=4 [14:54:42]MH_SAM_APDU [14:54:42]CAPDU: 80 13 01 00 [14:54:42]Write to MH i2c: E2 08 00 80 46 80 13 01 00 00 00 00 00 43 [14:54:42]Write i2c OK [14:54:42]MH_I2C_Read... [14:54:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:42]Read from MH i2c: E2 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 0E 00 [14:54:42]MH_I2C_Read... [14:54:42]Read from MH i2c: E2 0E 00 80 46 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D3 [14:54:42]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:54:42]wFMCommunicate OK [14:54:42]SAM_PROTO_GetShiftState done [14:54:42]FM_GetShiftState done [14:54:42]opened in 1730246278 [14:54:42]opened+sec_in_day 1730332678 [14:54:42]quantity*price = 800 [14:54:42]sum+1 = 801 [14:54:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 8.00 НСП 1% : 0.07 НДС 12% : 0.85 Наличными: 8.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 109 30.10.2024 14:54 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139425 ФПД: 144941389333751 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T145448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139425&fm=144941389333751&tin=02508201610067®Number=0000000000091631&sum=800 0 [14:54:43]StoreToDocumentArchive [14:54:43]shift 556 fd 139425 [14:54:43]save to /storage/0556/doc_00139425 [14:54:43]save last doc name /storage/0556/doc_00139425 to /storage/kkm_last_doc_name [14:54:43]save OK [14:54:43]Clear old archive folders... [14:54:43]ProcessDocumentItem done err = 0, tmpTLVsize=278 [14:54:43]tlvbuf is 0111CFC0 [14:54:43]SAM_PROTO_ClearQueue [14:54:43]wFMCommunicate request_size=4 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 09 00 00 [14:54:43]Write to MH i2c: E2 08 00 8D 46 80 09 00 00 00 00 00 00 45 [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:54:43]Read from MH i2c: E2 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 8D 46 00 90 00 47 [14:54:43]RAPDU: 90 00 [14:54:43]wFMCommunicate OK [14:54:43]SAM_PROTO_ClearQueue done [14:54:43]KKMCreateOFDPacket [14:54:43]OFDProtocolAddRootSTLVToBuf [14:54:43]FM_MakeSignedData [14:54:43]FM_MakeSignedData [14:54:43]SAM_PROTO_SignData [14:54:43]wFMCommunicate request_size=4 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 0D 01 02 [14:54:43]Write to MH i2c: E2 08 00 8E 46 80 0D 01 02 00 00 00 00 4D [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:54:43]Read from MH i2c: E2 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 [14:54:43]MH_I2C_Read... [14:54:43]Read from MH i2c: E2 03 00 8E 46 00 90 00 48 [14:54:43]RAPDU: 90 00 [14:54:43]wFMCommunicate OK [14:54:43]wFMCommunicate request_size=255 [14:54:43]MH_SAM_APDU [14:54:43]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 00 00 00 00 00 07 04 06 00 20 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B8 48 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [14:54:43]Write to MH i2c: E2 02 01 8F 46 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 00 00 00 00 00 07 04 06 00 20 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B8 48 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 7A [14:54:43]Write i2c OK [14:54:43]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 8F 46 00 90 00 49 [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=37 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 20 02 00 35 04 06 00 83 D2 CC 06 44 F7 [14:54:44]Write to MH i2c: E2 28 00 90 46 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 20 02 00 35 04 06 00 83 D2 CC 06 44 F7 00 00 D4 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 03 00 90 46 00 90 00 4A [14:54:44]RAPDU: 90 00 [14:54:44]wFMCommunicate OK [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 0D 03 02 [14:54:44]Write to MH i2c: E2 08 00 91 46 80 0D 03 02 00 00 00 00 52 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 0B 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 0B 00 91 46 00 98 5F 31 1C 9E 1E 5D 9E 90 00 4E [14:54:44]RAPDU: 98 5F 31 1C 9E 1E 5D 9E 90 00 [14:54:44]wFMCommunicate OK [14:54:44]SAM_PROTO_SignData done [14:54:44]FM_MakeSignedData done [14:54:44]CreateOFDProtocolMessage [14:54:44]wFMCommunicate request_size=4 [14:54:44]MH_SAM_APDU [14:54:44]CAPDU: 80 11 00 00 [14:54:44]Write to MH i2c: E2 08 00 92 46 80 11 00 00 00 00 00 00 52 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:44]Read from MH i2c: E2 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 17 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: E2 17 00 92 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AD [14:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:54:44]wFMCommunicate OK [14:54:44]CreateOFDProtocolMessage done [14:54:44]OFDSenderStorePacket 139425 [14:54:44]StoreOFDPacket docnum=139425 [14:54:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 94 A8 22 01 F6 5C 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 00 00 00 00 00 07 04 06 00 20 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B8 48 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 20 02 00 35 04 06 00 83 D2 CC 06 44 F7 98 5F 31 1C 9E 1E 5D 9E [14:54:44]CheckFolder [14:54:44]dirname=/storage/ofd_packets [14:54:44]CheckFolder done [14:54:44]ProducePacketName [14:54:44]name=ofd_packets/00139425 [14:54:44]NVStorageSaveData ofd_packets/00139425 [14:54:44]File name is /storage/ofd_packets/00139425 [14:54:44]Write 328 bytes [14:54:44]NVStorageSaveData done [14:54:44]OFDSenderStorePacket done [14:54:44]KKMCreateOFDPacket done [14:54:44]NVStorageSaveData kkm_last_timestamp [14:54:44]File name is /storage/kkm_last_timestamp [14:54:44]Write 4 bytes [14:54:44]NVStorageSaveData done [14:54:44]ExternCall_PrintAddStr [14:54:44]wPrintStart [14:54:44]Write to MH i2c: 01 00 00 93 46 D9 [14:54:44]Write i2c OK [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 07 00 [14:54:44]MH_I2C_Read... [14:54:44]Read from MH i2c: 01 07 00 93 46 00 00 00 00 00 FF 0F EE [14:54:44]RasterBufferAndPrint [14:54:44]line Счет N : (3)335326 [14:54:44]line ИНН: 02508201610067 [14:54:44]line Контрольно-Кассовый Чек [14:54:44]line ПРОДАЖА [14:54:44]line Товар: 2000031750019 [14:54:44]line Пакет Партнер Нефть [14:54:44]line 2.000 * 4.00 [14:54:44]line = 8.00 [14:54:44]line НДС 12% НСП 1% [14:54:44]line > о реализуемом товаре [14:54:44]line ИТОГО: 8.00 [14:54:44]line НСП 1% : 0.07 [14:54:44]line НДС 12% : 0.85 [14:54:44]line Наличными: 8.00 [14:54:44]line Безнал.: 0.00 [14:54:44]line Место: АЗС № 101 "Партнер Нефть" [14:54:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:54:44]line СНО: Общий режим [14:54:44]line Чек 109 30.10.2024 14:54 [14:54:44]line Смена: 556 ФФД: 1.0 [14:54:44]line ЗНМ: 0300000081 [14:54:44]line РНМ: 0000000000091631 [14:54:44]line Версия ККМ: 001 [14:54:44]line ФМ: 0000000000874669 [14:54:44]line ФД: 139425 [14:54:44]line ФПД: 144941389333751 [14:54:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T145448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139425&fm=144941389333751&tin=02508201610067®Number=0000000000091631&sum=800 [14:54:44]line 0 [14:54:44]OFD Sender: Processing packet 139425 [packets to send 34, broken 33] [14:54:44]ProducePacketName [14:54:44]name=ofd_packets/00139425 [14:54:44]OFD Sender: To server: pG, [14:54:44]CommunicateWithHost lk.salyk.kg:30040 [14:54:44]ConnectInit lk.salyk.kg [14:54:44]written 0, free lines is 4095 [14:54:44]Connected sock=9 [14:54:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 94 A8 22 01 F6 5C 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 20 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 55 00 00 00 00 00 07 04 06 00 20 03 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6D 00 00 00 F4 03 04 00 B8 48 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 20 02 00 35 04 06 00 83 D2 CC 06 44 F7 98 5F 31 1C 9E 1E 5D 9E [14:54:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E4 1A 47 00 2D AC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A1 20 02 00 F4 03 04 00 68 F4 21 67 B6 04 01 00 00 F1 39 7E 68 D7 CF 7E AD [14:54:44]CommunicateWithHost err = 0 [14:54:44]CheckOFDResponse [14:54:44]1017 (14) - 77093643461234 [14:54:44]1041 (16) - 0000000000874669 [14:54:44]1040 (4) - 139425 [14:54:44]1012 (4) - 30.10.2024 08:55 [14:54:44]1206 (1) - 0 [14:54:44]OFD Sender: Remove packet 139425 [14:54:44]ProducePacketName [14:54:44]name=ofd_packets/00139425 [14:54:44]NVStorageDeleteData [14:54:45]Write to MH i2c: 01 00 00 BB 46 01 [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: 01 07 00 BB 46 00 00 00 00 00 02 0D 17 [14:54:45]RasterBufferAndPrint [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]line [14:54:45]written 0, free lines is 3336 [14:54:45]MH_Cut [14:54:45]Write to MH i2c: D1 01 00 C2 46 01 DA [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 01 00 [14:54:45]MH_I2C_Read... [14:54:45]Read from MH i2c: D1 01 00 C2 46 00 D9 [14:54:45]Write to MH i2c: 01 00 00 C3 46 09 [14:54:45]Write i2c OK [14:54:45]MH_I2C_Read... [14:54:45]OFD Sender: No OFD packet to send [14:54:45]*** Cut start [14:54:45]*** Partial cut [14:54:45]*** CUTSNS_PIN = 1 [14:54:45]*** CUTSNS_PIN = 0 [14:54:45]*** Brake cut motor [14:54:46]Read from MH i2c: 01 [14:54:46]MH_I2C_Read... [14:54:46]*** Stop cut motor [14:54:46]*** Cut end [14:54:46]Read from MH i2c: 01 07 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: 01 07 00 C3 46 00 00 00 00 00 FF 0F 1E [14:54:46]process_action close_receipt done [14:54:46]requested_data is exist [14:54:46]produce_requested_data [14:54:46]requested_item fm.sn is exist - process it [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 11 00 00 [14:54:46]Write to MH i2c: E2 08 00 C4 46 80 11 00 00 00 00 00 00 84 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:54:46]Read from MH i2c: E2 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 17 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 17 00 C4 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DF [14:54:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:54:46]wFMCommunicate OK [14:54:46]requested_item fd.num is exist - process it [14:54:46]SAM_PROTO_GetFieldsCounters [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 13 00 00 [14:54:46]Write to MH i2c: E2 08 00 C5 46 80 13 00 00 00 00 00 00 87 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:54:46]Read from MH i2c: E2 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 62 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 62 00 C5 46 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A1 20 02 00 0E 04 04 00 2C 02 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 E3 [14:54:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A1 20 02 00 0E 04 04 00 2C 02 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 [14:54:46]wFMCommunicate OK [14:54:46]SAM_PROTO_GetFieldsCounters done [14:54:46]requested_item shift.num is exist - process it [14:54:46]requested_item shift.opened is exist - process it [14:54:46]req_shift_opened [14:54:46]FM_GetShiftState [14:54:46]SAM_PROTO_GetShiftState [14:54:46]wFMCommunicate request_size=4 [14:54:46]MH_SAM_APDU [14:54:46]CAPDU: 80 13 01 00 [14:54:46]Write to MH i2c: E2 08 00 C6 46 80 13 01 00 00 00 00 00 89 [14:54:46]Write i2c OK [14:54:46]MH_I2C_Read... [14:54:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:54:46]Read from MH i2c: E2 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 0E 00 [14:54:46]MH_I2C_Read... [14:54:46]Read from MH i2c: E2 0E 00 C6 46 00 09 00 01 86 76 21 67 00 00 00 00 90 00 19 [14:54:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:54:46]wFMCommunicate OK [14:54:46]SAM_PROTO_GetShiftState done [14:54:46]FM_GetShiftState done [14:54:46]req_shift_opened done [14:54:46]requested_item shift.open_date is exist - process it [14:54:46]req_shift_open_date [14:54:46]req_shift_open_date done [14:54:46]produce_requested_data done [14:54:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139425,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:54:46]process_action_free close_receipt [14:54:46]json_value_free [14:54:46]json_value_free done [14:54:46]process_json_proto returns [14:54:46]Send response to host [14:54:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139425,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:54:46]free response buf [14:54:46]execute_script done [14:54:46]execute_script returns [14:54:46]free content buf [14:54:46]Sock 10.Close socket [14:54:46]Sock 10.Thread stoped [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:56:00]OFD Sender: No OFD packet to send [14:56:05]OFD Sender: No OFD packet to send [14:56:10]OFD Sender: No OFD packet to send [14:56:15]OFD Sender: No OFD packet to send [14:56:20]OFD Sender: No OFD packet to send [14:56:25]OFD Sender: No OFD packet to send [14:56:30]OFD Sender: No OFD packet to send [14:56:35]OFD Sender: No OFD packet to send [14:56:40]OFD Sender: No OFD packet to send [14:56:45]OFD Sender: No OFD packet to send [14:56:50]OFD Sender: No OFD packet to send [14:56:55]OFD Sender: No OFD packet to send [14:57:00]OFD Sender: No OFD packet to send [14:57:05]OFD Sender: No OFD packet to send [14:57:10]OFD Sender: No OFD packet to send [14:57:15]OFD Sender: No OFD packet to send [14:57:20]OFD Sender: No OFD packet to send [14:57:25]OFD Sender: No OFD packet to send [14:57:30]OFD Sender: No OFD packet to send [14:57:35]OFD Sender: No OFD packet to send [14:57:40]OFD Sender: No OFD packet to send [14:57:45]accept exits with 8 [14:57:45]New connection [14:57:45]New thread 3067141476 created [14:57:45]Thread 3067284836 joined [14:57:45]Waiting for new connection... [14:57:45] Sock 8.Parse request [14:57:45]Sock 8.Check first char [14:57:45]Sock 8.First char is OK [14:57:45]request: POST /json_proto HTTP/1.0 [14:57:45]Method: POST [14:57:45]URL: /json_proto [14:57:45]Method is POST - this is cgi request [14:57:45]url: /json_proto [14:57:45]query_string will be loaded in cgi processing [14:57:45]execute_cgi json_proto POST (null) [14:57:45]execute_cgi path=json_proto method=POST [14:57:45]POST find Content-Length [14:57:45]Host: 172.17.50.196:8080 [14:57:45]Content-Length: 1183 [14:57:45]Content-Type: application/json [14:57:45] [14:57:45]POST finish read [14:57:45]Found Content-Length = 1183 [14:57:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335327", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:45]execute_script... [14:57: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 : (3)335327", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [14:57:45]POST & json_proto [14:57:45]process_json_proto [14:57:45]json parsed OK: [14:57:45]protocol is kg_v1.0 [14:57:45]action value=close_receipt [14:57:45]process_action close_receipt [14:57:45]cmd_close_receipt [14:57:45]MH_GetDate [14:57:45]Write to MH i2c: F0 00 00 C7 46 FC [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: F0 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: F0 09 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: F0 09 00 C7 46 00 6E 49 22 67 72 0D 1C 67 47 [14:57:45]GetLastDocTimeStamp 1730300088 [14:57:45]current date 1730300270 [14:57:45]FM_GetShiftState [14:57:45]SAM_PROTO_GetShiftState [14:57:45]wFMCommunicate request_size=4 [14:57:45]MH_SAM_APDU [14:57:45]CAPDU: 80 13 01 00 [14:57:45]Write to MH i2c: E2 08 00 C8 46 80 13 01 00 00 00 00 00 8B [14:57:45]Write i2c OK [14:57:45]MH_I2C_Read... [14:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:45]Read from MH i2c: E2 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 0E 00 [14:57:45]MH_I2C_Read... [14:57:45]Read from MH i2c: E2 0E 00 C8 46 00 09 00 01 86 76 21 67 00 00 00 00 90 00 1B [14:57:45]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:57:45]wFMCommunicate OK [14:57:45]SAM_PROTO_GetShiftState done [14:57:45]FM_GetShiftState done [14:57:45]opened in 1730246278 [14:57:45]opened+sec_in_day 1730332678 [14:57:45]quantity*price = 8500 [14:57:45]sum+1 = 8501 [14:57:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46227720 Р/ж mentos pure fresh виноград ролл 15,5 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 184.00 НСП 1% : 1.62 НДС 12% : 19.54 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 110 30.10.2024 14:57 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139426 ФПД: 173162185592219 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T145750&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139426&fm=173162185592219&tin=02508201610067®Number=0000000000091631&sum=18400 0 [14:57:46]StoreToDocumentArchive [14:57:46]shift 556 fd 139426 [14:57:46]save to /storage/0556/doc_00139426 [14:57:46]save last doc name /storage/0556/doc_00139426 to /storage/kkm_last_doc_name [14:57:46]save OK [14:57:46]Clear old archive folders... [14:57:46]ProcessDocumentItem done err = 0, tmpTLVsize=501 [14:57:46]tlvbuf is 011A96E0 [14:57:46]SAM_PROTO_ClearQueue [14:57:46]wFMCommunicate request_size=4 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 09 00 00 [14:57:46]Write to MH i2c: E2 08 00 D5 46 80 09 00 00 00 00 00 00 8D [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [14:57:46]Read from MH i2c: E2 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 03 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 03 00 D5 46 00 90 00 8F [14:57:46]RAPDU: 90 00 [14:57:46]wFMCommunicate OK [14:57:46]SAM_PROTO_ClearQueue done [14:57:46]KKMCreateOFDPacket [14:57:46]OFDProtocolAddRootSTLVToBuf [14:57:46]FM_MakeSignedData [14:57:46]FM_MakeSignedData [14:57:46]SAM_PROTO_SignData [14:57:46]wFMCommunicate request_size=4 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 0D 01 02 [14:57:46]Write to MH i2c: E2 08 00 D6 46 80 0D 01 02 00 00 00 00 95 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [14:57:46]Read from MH i2c: E2 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 03 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 03 00 D6 46 00 90 00 90 [14:57:46]RAPDU: 90 00 [14:57:46]wFMCommunicate OK [14:57:46]wFMCommunicate request_size=255 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 0D 02 02 FA 03 00 F5 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F [14:57:46]Write to MH i2c: E2 02 01 D7 46 80 0D 02 02 FA 00 03 00 F5 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 00 00 90 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:46]Read from MH i2c: E2 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 03 00 [14:57:46]MH_I2C_Read... [14:57:46]Read from MH i2c: E2 03 00 D7 46 00 90 00 91 [14:57:46]RAPDU: 90 00 [14:57:46]wFMCommunicate OK [14:57:46]wFMCommunicate request_size=255 [14:57:46]MH_SAM_APDU [14:57:46]CAPDU: 80 0D 02 02 FA 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6E 49 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A2 20 02 00 35 04 06 00 9D [14:57:46]Write to MH i2c: E2 02 01 D8 46 80 0D 02 02 FA 00 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6E 49 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A2 20 02 00 35 04 06 00 9D 00 00 C0 [14:57:46]Write i2c OK [14:57:46]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 D8 46 00 90 00 92 [14:57:47]RAPDU: 90 00 [14:57:47]wFMCommunicate OK [14:57:47]wFMCommunicate request_size=10 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 0D 02 02 05 7D 76 8F 8D 9B [14:57:47]Write to MH i2c: E2 0D 00 D9 46 80 0D 02 02 05 00 7D 76 8F 8D 9B 00 00 4D [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 03 00 D9 46 00 90 00 93 [14:57:47]RAPDU: 90 00 [14:57:47]wFMCommunicate OK [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 0D 03 02 [14:57:47]Write to MH i2c: E2 08 00 DA 46 80 0D 03 02 00 00 00 00 9B [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0B 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 0B 00 DA 46 00 DB 8D 3E EC A9 56 F9 59 90 00 7F [14:57:47]RAPDU: DB 8D 3E EC A9 56 F9 59 90 00 [14:57:47]wFMCommunicate OK [14:57:47]SAM_PROTO_SignData done [14:57:47]FM_MakeSignedData done [14:57:47]CreateOFDProtocolMessage [14:57:47]wFMCommunicate request_size=4 [14:57:47]MH_SAM_APDU [14:57:47]CAPDU: 80 11 00 00 [14:57:47]Write to MH i2c: E2 08 00 DB 46 80 11 00 00 00 00 00 00 9B [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:47]Read from MH i2c: E2 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 17 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: E2 17 00 DB 46 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F6 [14:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:57:47]wFMCommunicate OK [14:57:47]CreateOFDProtocolMessage done [14:57:47]OFDSenderStorePacket 139426 [14:57:47]StoreOFDPacket docnum=139426 [14:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 09 02 00 00 F4 B7 01 02 6F 7A 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6E 49 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A2 20 02 00 35 04 06 00 9D 7D 76 8F 8D 9B DB 8D 3E EC A9 56 F9 59 [14:57:47]CheckFolder [14:57:47]dirname=/storage/ofd_packets [14:57:47]CheckFolder done [14:57:47]ProducePacketName [14:57:47]name=ofd_packets/00139426 [14:57:47]NVStorageSaveData ofd_packets/00139426 [14:57:47]File name is /storage/ofd_packets/00139426 [14:57:47]Write 551 bytes [14:57:47]NVStorageSaveData done [14:57:47]OFDSenderStorePacket done [14:57:47]KKMCreateOFDPacket done [14:57:47]NVStorageSaveData kkm_last_timestamp [14:57:47]File name is /storage/kkm_last_timestamp [14:57:47]Write 4 bytes [14:57:47]NVStorageSaveData done [14:57:47]ExternCall_PrintAddStr [14:57:47]wPrintStart [14:57:47]Write to MH i2c: 01 00 00 DC 46 22 [14:57:47]Write i2c OK [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: 01 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: 01 07 00 [14:57:47]MH_I2C_Read... [14:57:47]Read from MH i2c: 01 07 00 DC 46 00 00 00 00 00 FF 0F 37 [14:57:47]RasterBufferAndPrint [14:57:47]line Счет N : (3)335327 [14:57:47]line ИНН: 02508201610067 [14:57:47]line Контрольно-Кассовый Чек [14:57:47]line ПРОДАЖА [14:57:47]line Товар: 5449000000996 [14:57:47]line Напиток Кока-Кола 0,33л [14:57:47]line 1.000 * 85.00 [14:57:47]line = 85.00 [14:57:47]line НДС 12% НСП 1% [14:57:47]line > о реализуемом товаре [14:57:47]line Товар: 4700000160358 [14:57:47]line Вода Легенда 1л [14:57:47]line 1.000 * 50.00 [14:57:47]line = 50.00 [14:57:47]line НДС 12% НСП 1% [14:57:47]line > о реализуемом товаре [14:57:47]line Товар: 46227720 [14:57:47]line Р/ж mentos pure fresh виноград ролл 15,5 [14:57:47]line 1.000 * 49.00 [14:57:47]line = 49.00 [14:57:47]line НДС 12% НСП 1% [14:57:47]line > о реализуемом товаре [14:57:47]line ИТОГО: 184.00 [14:57:47]line НСП 1% : 1.62 [14:57:47]line НДС 12% : 19.54 [14:57:47]line Наличными: 184.00 [14:57:47]line Безнал.: 0.00 [14:57:47]line Место: АЗС № 101 "Партнер Нефть" [14:57:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [14:57:47]line СНО: Общий режим [14:57:47]line Чек 110 30.10.2024 14:57 [14:57:47]line Смена: 556 ФФД: 1.0 [14:57:47]line ЗНМ: 0300000081 [14:57:47]line РНМ: 0000000000091631 [14:57:47]line Версия ККМ: 001 [14:57:47]line ФМ: 0000000000874669 [14:57:47]line ФД: 139426 [14:57:47]line ФПД: 173162185592219 [14:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T145750&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139426&fm=173162185592219&tin=02508201610067®Number=0000000000091631&sum=18400 [14:57:47]line 0 [14:57:47]OFD Sender: Processing packet 139426 [packets to send 34, broken 33] [14:57:47]ProducePacketName [14:57:47]name=ofd_packets/00139426 [14:57:47]OFD Sender: To server: pG, [14:57:47]CommunicateWithHost lk.salyk.kg:30040 [14:57:47]ConnectInit lk.salyk.kg [14:57:47]written 0, free lines is 4095 [14:57:47]Connected sock=10 [14:57:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 09 02 00 00 F4 B7 01 02 6F 7A 5A 03 01 00 03 00 F5 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A2 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 6E 00 00 00 F4 03 04 00 6E 49 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A2 20 02 00 35 04 06 00 9D 7D 76 8F 8D 9B DB 8D 3E EC A9 56 F9 59 [14:57:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FE B2 47 00 3F 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A2 20 02 00 F4 03 04 00 1F F5 21 67 B6 04 01 00 00 20 D7 CD 18 DC 70 1B 3E [14:57:47]CommunicateWithHost err = 0 [14:57:47]CheckOFDResponse [14:57:47]1017 (14) - 77093643461234 [14:57:47]1041 (16) - 0000000000874669 [14:57:47]1040 (4) - 139426 [14:57:47]1012 (4) - 30.10.2024 08:58 [14:57:47]1206 (1) - 0 [14:57:47]OFD Sender: Remove packet 139426 [14:57:47]ProducePacketName [14:57:47]name=ofd_packets/00139426 [14:57:47]NVStorageDeleteData [14:57:48]Write to MH i2c: 01 00 00 11 47 58 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: 01 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: 01 07 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: 01 07 00 11 47 00 00 00 00 00 60 0C CB [14:57:48]RasterBufferAndPrint [14:57:48]line [14:57:48]line [14:57:48]line [14:57:48]line [14:57:48]line [14:57:48]written 0, free lines is 3177 [14:57:48]MH_Cut [14:57:48]Write to MH i2c: D1 01 00 18 47 01 31 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: D1 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: D1 01 00 [14:57:48]MH_I2C_Read... [14:57:48]Read from MH i2c: D1 01 00 18 47 00 30 [14:57:48]Write to MH i2c: 01 00 00 19 47 60 [14:57:48]Write i2c OK [14:57:48]MH_I2C_Read... [14:57:48]OFD Sender: No OFD packet to send [14:57:48]*** Cut start [14:57:48]*** Partial cut [14:57:48]*** CUTSNS_PIN = 1 [14:57:49]*** CUTSNS_PIN = 0 [14:57:49]*** Brake cut motor [14:57:49]Read from MH i2c: 01 [14:57:49]MH_I2C_Read... [14:57:49]*** Stop cut motor [14:57:49]*** Cut end [14:57:49]Read from MH i2c: 01 07 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: 01 07 00 19 47 00 00 00 00 00 FF 0F 75 [14:57:49]process_action close_receipt done [14:57:49]requested_data is exist [14:57:49]produce_requested_data [14:57:49]requested_item fm.sn is exist - process it [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 11 00 00 [14:57:49]Write to MH i2c: E2 08 00 1A 47 80 11 00 00 00 00 00 00 DB [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 17 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 17 00 1A 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [14:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [14:57:49]wFMCommunicate OK [14:57:49]requested_item fd.num is exist - process it [14:57:49]SAM_PROTO_GetFieldsCounters [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 13 00 00 [14:57:49]Write to MH i2c: E2 08 00 1B 47 80 13 00 00 00 00 00 00 DE [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 62 00 [14:57:49]MH_I2C_Read... [14:57:49]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 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A2 20 02 00 0E 04 04 00 2C 02 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 3E [14:57:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A2 20 02 00 0E 04 04 00 2C 02 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 [14:57:49]wFMCommunicate OK [14:57:49]SAM_PROTO_GetFieldsCounters done [14:57:49]requested_item shift.num is exist - process it [14:57:49]requested_item shift.opened is exist - process it [14:57:49]req_shift_opened [14:57:49]FM_GetShiftState [14:57:49]SAM_PROTO_GetShiftState [14:57:49]wFMCommunicate request_size=4 [14:57:49]MH_SAM_APDU [14:57:49]CAPDU: 80 13 01 00 [14:57:49]Write to MH i2c: E2 08 00 1C 47 80 13 01 00 00 00 00 00 E0 [14:57:49]Write i2c OK [14:57:49]MH_I2C_Read... [14:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [14:57:49]Read from MH i2c: E2 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 0E 00 [14:57:49]MH_I2C_Read... [14:57:49]Read from MH i2c: E2 0E 00 1C 47 00 09 00 01 86 76 21 67 00 00 00 00 90 00 70 [14:57:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [14:57:49]wFMCommunicate OK [14:57:49]SAM_PROTO_GetShiftState done [14:57:49]FM_GetShiftState done [14:57:49]req_shift_opened done [14:57:49]requested_item shift.open_date is exist - process it [14:57:49]req_shift_open_date [14:57:49]req_shift_open_date done [14:57:49]produce_requested_data done [14:57:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139426,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [14:57:49]process_action_free close_receipt [14:57:49]json_value_free [14:57:49]json_value_free done [14:57:49]process_json_proto returns [14:57:49]Send response to host [14:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139426,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [14:57:49]free response buf [14:57:49]execute_script done [14:57:49]execute_script returns [14:57:49]free content buf [14:57:49]Sock 8.Close socket [14:57:49]Sock 8.Thread stoped [14:57:53]OFD Sender: No OFD packet to send [14:57:58]OFD Sender: No OFD packet to send [14:58:03]OFD Sender: No OFD packet to send [14:58:08]OFD Sender: No OFD packet to send [14:58:13]OFD Sender: No OFD packet to send [14:58:18]OFD Sender: No OFD packet to send [14:58:23]OFD Sender: No OFD packet to send [14:58:28]OFD Sender: No OFD packet to send [14:58:33]OFD Sender: No OFD packet to send [14:58:38]OFD Sender: No OFD packet to send [14:58:43]OFD Sender: No OFD packet to send [14:58:48]OFD Sender: No OFD packet to send [14:58:53]OFD Sender: No OFD packet to send [14:58:58]OFD Sender: No OFD packet to send [14:59:03]OFD Sender: No OFD packet to send [14:59:08]OFD Sender: No OFD packet to send [14:59:13]OFD Sender: No OFD packet to send [14:59:18]OFD Sender: No OFD packet to send [14:59:23]OFD Sender: No OFD packet to send [14:59:28]OFD Sender: No OFD packet to send [14:59:33]OFD Sender: No OFD packet to send [14:59:38]OFD Sender: No OFD packet to send [14:59:43]OFD Sender: No OFD packet to send [14:59:48]OFD Sender: No OFD packet to send [14:59:53]OFD Sender: No OFD packet to send [14:59:58]OFD Sender: No OFD packet to send [15:00:03]OFD Sender: No OFD packet to send [15:00:08]OFD Sender: No OFD packet to send [15:00:13]OFD Sender: No OFD packet to send [15:00:18]OFD Sender: No OFD packet to send [15:00:23]OFD Sender: No OFD packet to send [15:00:28]OFD Sender: No OFD packet to send [15:00:33]OFD Sender: No OFD packet to send [15:00:38]OFD Sender: No OFD packet to send [15:00:43]OFD Sender: No OFD packet to send [15:00:48]OFD Sender: No OFD packet to send [15:00:53]OFD Sender: No OFD packet to send [15:00:58]OFD Sender: No OFD packet to send [15:01:03]OFD Sender: No OFD packet to send [15:01:08]OFD Sender: No OFD packet to send [15:01:13]OFD Sender: No OFD packet to send [15:01:18]OFD Sender: No OFD packet to send [15:01:23]OFD Sender: No OFD packet to send [15:01:28]OFD Sender: No OFD packet to send [15:01:33]OFD Sender: No OFD packet to send [15:01:38]OFD Sender: No OFD packet to send [15:01:43]OFD Sender: No OFD packet to send [15:01:48]OFD Sender: No OFD packet to send [15:01:53]OFD Sender: No OFD packet to send [15:01:58]OFD Sender: No OFD packet to send [15:02:03]OFD Sender: No OFD packet to send [15:02:08]OFD Sender: No OFD packet to send [15:02:13]OFD Sender: No OFD packet to send [15:02:18]OFD Sender: No OFD packet to send [15:02:23]OFD Sender: No OFD packet to send [15:02:28]OFD Sender: No OFD packet to send [15:02:33]OFD Sender: No OFD packet to send [15:02:38]OFD Sender: No OFD packet to send [15:02:43]OFD Sender: No OFD packet to send [15:02:48]OFD Sender: No OFD packet to send [15:02:53]OFD Sender: No OFD packet to send [15:02:58]OFD Sender: No OFD packet to send [15:03:03]OFD Sender: No OFD packet to send [15:03:08]OFD Sender: No OFD packet to send [15:03:13]OFD Sender: No OFD packet to send [15:03:18]OFD Sender: No OFD packet to send [15:03:23]OFD Sender: No OFD packet to send [15:03:28]OFD Sender: No OFD packet to send [15:03:33]OFD Sender: No OFD packet to send [15:03:38]OFD Sender: No OFD packet to send [15:03:43]OFD Sender: No OFD packet to send [15:03:48]OFD Sender: No OFD packet to send [15:03:53]OFD Sender: No OFD packet to send [15:03:58]OFD Sender: No OFD packet to send [15:04:03]OFD Sender: No OFD packet to send [15:04:08]OFD Sender: No OFD packet to send [15:04:13]OFD Sender: No OFD packet to send [15:04:18]OFD Sender: No OFD packet to send [15:04:23]OFD Sender: No OFD packet to send [15:04:28]OFD Sender: No OFD packet to send [15:04:33]OFD Sender: No OFD packet to send [15:04:38]OFD Sender: No OFD packet to send [15:04:43]OFD Sender: No OFD packet to send [15:04:48]OFD Sender: No OFD packet to send [15:04:53]OFD Sender: No OFD packet to send [15:04:58]OFD Sender: No OFD packet to send [15:05:03]OFD Sender: No OFD packet to send [15:05:08]OFD Sender: No OFD packet to send [15:05:13]OFD Sender: No OFD packet to send [15:05:18]OFD Sender: No OFD packet to send [15:05:23]OFD Sender: No OFD packet to send [15:05:28]OFD Sender: No OFD packet to send [15:05:33]OFD Sender: No OFD packet to send [15:05:38]OFD Sender: No OFD packet to send [15:05:43]OFD Sender: No OFD packet to send [15:05:48]OFD Sender: No OFD packet to send [15:05:53]OFD Sender: No OFD packet to send [15:05:58]OFD Sender: No OFD packet to send [15:06:03]OFD Sender: No OFD packet to send [15:06:08]OFD Sender: No OFD packet to send [15:06:13]OFD Sender: No OFD packet to send [15:06:18]OFD Sender: No OFD packet to send [15:06:23]OFD Sender: No OFD packet to send [15:06:28]OFD Sender: No OFD packet to send [15:06:33]OFD Sender: No OFD packet to send [15:06:38]OFD Sender: No OFD packet to send [15:06:43]OFD Sender: No OFD packet to send [15:06:48]OFD Sender: No OFD packet to send [15:06:53]OFD Sender: No OFD packet to send [15:06:58]OFD Sender: No OFD packet to send [15:07:03]OFD Sender: No OFD packet to send [15:07:08]OFD Sender: No OFD packet to send [15:07:13]OFD Sender: No OFD packet to send [15:07:18]OFD Sender: No OFD packet to send [15:07:23]OFD Sender: No OFD packet to send [15:07:28]OFD Sender: No OFD packet to send [15:07:33]OFD Sender: No OFD packet to send [15:07:38]OFD Sender: No OFD packet to send [15:07:43]OFD Sender: No OFD packet to send [15:07:48]OFD Sender: No OFD packet to send [15:07:53]OFD Sender: No OFD packet to send [15:07:58]OFD Sender: No OFD packet to send [15:08:03]OFD Sender: No OFD packet to send [15:08:08]OFD Sender: No OFD packet to send [15:08:14]OFD Sender: No OFD packet to send [15:08:19]OFD Sender: No OFD packet to send [15:08:24]OFD Sender: No OFD packet to send [15:08:29]OFD Sender: No OFD packet to send [15:08:34]OFD Sender: No OFD packet to send [15:08:39]OFD Sender: No OFD packet to send [15:08:44]OFD Sender: No OFD packet to send [15:08:49]OFD Sender: No OFD packet to send [15:08:54]OFD Sender: No OFD packet to send [15:08:59]OFD Sender: No OFD packet to send [15:09:04]OFD Sender: No OFD packet to send [15:09:09]OFD Sender: No OFD packet to send [15:09:14]OFD Sender: No OFD packet to send [15:09:19]OFD Sender: No OFD packet to send [15:09:24]OFD Sender: No OFD packet to send [15:09:29]OFD Sender: No OFD packet to send [15:09:34]OFD Sender: No OFD packet to send [15:09:39]OFD Sender: No OFD packet to send [15:09:44]OFD Sender: No OFD packet to send [15:09:49]OFD Sender: No OFD packet to send [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:39]OFD Sender: No OFD packet to send [15:11:44]OFD Sender: No OFD packet to send [15:11:49]OFD Sender: No OFD packet to send [15:11:54]OFD Sender: No OFD packet to send [15:11:59]OFD Sender: No OFD packet to send [15:12:04]OFD Sender: No OFD packet to send [15:12:09]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:24]OFD Sender: No OFD packet to send [15:12:29]OFD Sender: No OFD packet to send [15:12:34]OFD Sender: No OFD packet to send [15:12:39]OFD Sender: No OFD packet to send [15:12:44]OFD Sender: No OFD packet to send [15:12:49]OFD Sender: No OFD packet to send [15:12:54]OFD Sender: No OFD packet to send [15:12:59]OFD Sender: No OFD packet to send [15:13:04]OFD Sender: No OFD packet to send [15:13:09]OFD Sender: No OFD packet to send [15:13:14]OFD Sender: No OFD packet to send [15:13:19]OFD Sender: No OFD packet to send [15:13:24]OFD Sender: No OFD packet to send [15:13:29]OFD Sender: No OFD packet to send [15:13:34]OFD Sender: No OFD packet to send [15:13:39]OFD Sender: No OFD packet to send [15:13:44]OFD Sender: No OFD packet to send [15:13:49]OFD Sender: No OFD packet to send [15:13:54]OFD Sender: No OFD packet to send [15:13:59]OFD Sender: No OFD packet to send [15:14:04]OFD Sender: No OFD packet to send [15:14:09]OFD Sender: No OFD packet to send [15:14:14]OFD Sender: No OFD packet to send [15:14:19]OFD Sender: No OFD packet to send [15:14:24]OFD Sender: No OFD packet to send [15:14:29]OFD Sender: No OFD packet to send [15:14:34]OFD Sender: No OFD packet to send [15:14:39]OFD Sender: No OFD packet to send [15:14:44]OFD Sender: No OFD packet to send [15:14:49]OFD Sender: No OFD packet to send [15:14:54]OFD Sender: No OFD packet to send [15:14:59]OFD Sender: No OFD packet to send [15:15:04]OFD Sender: No OFD packet to send [15:15:09]OFD Sender: No OFD packet to send [15:15:14]OFD Sender: No OFD packet to send [15:15:19]OFD Sender: No OFD packet to send [15:15:24]OFD Sender: No OFD packet to send [15:15:29]OFD Sender: No OFD packet to send [15:15:34]OFD Sender: No OFD packet to send [15:15:39]OFD Sender: No OFD packet to send [15:15:44]OFD Sender: No OFD packet to send [15:15:49]OFD Sender: No OFD packet to send [15:15:54]OFD Sender: No OFD packet to send [15:15:59]OFD Sender: No OFD packet to send [15:16:04]OFD Sender: No OFD packet to send [15:16:09]OFD Sender: No OFD packet to send [15:16:14]OFD Sender: No OFD packet to send [15:16:19]OFD Sender: No OFD packet to send [15:16:24]OFD Sender: No OFD packet to send [15:16:29]OFD Sender: No OFD packet to send [15:16:34]OFD Sender: No OFD packet to send [15:16:39]OFD Sender: No OFD packet to send [15:16:44]OFD Sender: No OFD packet to send [15:16:49]OFD Sender: No OFD packet to send [15:16:54]OFD Sender: No OFD packet to send [15:16:59]OFD Sender: No OFD packet to send [15:17:04]OFD Sender: No OFD packet to send [15:17:09]OFD Sender: No OFD packet to send [15:17:14]OFD Sender: No OFD packet to send [15:17:19]OFD Sender: No OFD packet to send [15:17:24]OFD Sender: No OFD packet to send [15:17:29]OFD Sender: No OFD packet to send [15:17:34]OFD Sender: No OFD packet to send [15:17:39]OFD Sender: No OFD packet to send [15:17:44]OFD Sender: No OFD packet to send [15:17:49]OFD Sender: No OFD packet to send [15:17:54]OFD Sender: No OFD packet to send [15:17:59]OFD Sender: No OFD packet to send [15:18:04]OFD Sender: No OFD packet to send [15:18:09]OFD Sender: No OFD packet to send [15:18:14]OFD Sender: No OFD packet to send [15:18:19]OFD Sender: No OFD packet to send [15:18:24]OFD Sender: No OFD packet to send [15:18:29]OFD Sender: No OFD packet to send [15:18:34]OFD Sender: No OFD packet to send [15:18:39]OFD Sender: No OFD packet to send [15:18:44]OFD Sender: No OFD packet to send [15:18:49]OFD Sender: No OFD packet to send [15:18:54]OFD Sender: No OFD packet to send [15:18:59]OFD Sender: No OFD packet to send [15:19:04]OFD Sender: No OFD packet to send [15:19:09]OFD Sender: No OFD packet to send [15:19:14]OFD Sender: No OFD packet to send [15:19:19]OFD Sender: No OFD packet to send [15:19:24]OFD Sender: No OFD packet to send [15:19:29]OFD Sender: No OFD packet to send [15:19:34]OFD Sender: No OFD packet to send [15:19:39]OFD Sender: No OFD packet to send [15:19:44]OFD Sender: No OFD packet to send [15:19:49]OFD Sender: No OFD packet to send [15:19:54]OFD Sender: No OFD packet to send [15:19:59]OFD Sender: No OFD packet to send [15:20:04]OFD Sender: No OFD packet to send [15:20:09]OFD Sender: No OFD packet to send [15:20:14]OFD Sender: No OFD packet to send [15:20:19]OFD Sender: No OFD packet to send [15:20:24]OFD Sender: No OFD packet to send [15:20:29]OFD Sender: No OFD packet to send [15:20:34]OFD Sender: No OFD packet to send [15:20:39]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [15:21:29]OFD Sender: No OFD packet to send [15:21:34]OFD Sender: No OFD packet to send [15:21:39]OFD Sender: No OFD packet to send [15:21:44]OFD Sender: No OFD packet to send [15:21:49]OFD Sender: No OFD packet to send [15:21:54]OFD Sender: No OFD packet to send [15:21:59]OFD Sender: No OFD packet to send [15:22:01]accept exits with 9 [15:22:01]New connection [15:22:01]New thread 3067284836 created [15:22:01]Thread 3067141476 joined [15:22:01]Waiting for new connection... [15:22:01] Sock 9.Parse request [15:22:01]Sock 9.Check first char [15:22:01]Sock 9.First char is OK [15:22:01]request: POST /json_proto HTTP/1.0 [15:22:01]Method: POST [15:22:01]URL: /json_proto [15:22:01]Method is POST - this is cgi request [15:22:01]url: /json_proto [15:22:01]query_string will be loaded in cgi processing [15:22:01]execute_cgi json_proto POST (null) [15:22:01]execute_cgi path=json_proto method=POST [15:22:01]POST find Content-Length [15:22:01]Host: 172.17.50.196:8080 [15:22:01]Content-Length: 628 [15:22:01]Content-Type: application/json [15:22:01] [15:22:01]POST finish read [15:22:01]Found Content-Length = 628 [15:22:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335328", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:01]execute_script... [15:22: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 : (3)335328", "tax_sys" : 0, "items" : [ { "code": "48741231", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Super Slims Silver", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:01]POST & json_proto [15:22:01]process_json_proto [15:22:01]json parsed OK: [15:22:01]protocol is kg_v1.0 [15:22:01]action value=close_receipt [15:22:01]process_action close_receipt [15:22:01]cmd_close_receipt [15:22:01]MH_GetDate [15:22:01]Write to MH i2c: F0 00 00 1D 47 53 [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: F0 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: F0 09 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: F0 09 00 1D 47 00 1F 4F 22 67 72 0D 1C 67 55 [15:22:01]GetLastDocTimeStamp 1730300270 [15:22:01]current date 1730301727 [15:22:01]FM_GetShiftState [15:22:01]SAM_PROTO_GetShiftState [15:22:01]wFMCommunicate request_size=4 [15:22:01]MH_SAM_APDU [15:22:01]CAPDU: 80 13 01 00 [15:22:01]Write to MH i2c: E2 08 00 1E 47 80 13 01 00 00 00 00 00 E2 [15:22:01]Write i2c OK [15:22:01]MH_I2C_Read... [15:22:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:01]Read from MH i2c: E2 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 0E 00 [15:22:01]MH_I2C_Read... [15:22:01]Read from MH i2c: E2 0E 00 1E 47 00 09 00 01 86 76 21 67 00 00 00 00 90 00 72 [15:22:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [15:22:01]wFMCommunicate OK [15:22:01]SAM_PROTO_GetShiftState done [15:22:01]FM_GetShiftState done [15:22:01]opened in 1730246278 [15:22:01]opened+sec_in_day 1730332678 [15:22:01]quantity*price = 13900 [15:22:01]sum+1 = 13901 [15:22:01]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 111 30.10.2024 15:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139427 ФПД: 222477048635603 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T152207&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139427&fm=222477048635603&tin=02508201610067®Number=0000000000091631&sum=13900 0 [15:22:02]StoreToDocumentArchive [15:22:02]shift 556 fd 139427 [15:22:02]save to /storage/0556/doc_00139427 [15:22:02]save last doc name /storage/0556/doc_00139427 to /storage/kkm_last_doc_name [15:22:02]save OK [15:22:02]Clear old archive folders... [15:22:02]ProcessDocumentItem done err = 0, tmpTLVsize=280 [15:22:02]tlvbuf is 012DDF50 [15:22:02]SAM_PROTO_ClearQueue [15:22:02]wFMCommunicate request_size=4 [15:22:02]MH_SAM_APDU [15:22:02]CAPDU: 80 09 00 00 [15:22:02]Write to MH i2c: E2 08 00 2B 47 80 09 00 00 00 00 00 00 E4 [15:22:02]Write i2c OK [15:22:02]MH_I2C_Read... [15:22:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:02]Read from MH i2c: E2 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: E2 03 00 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: E2 03 00 2B 47 00 90 00 E6 [15:22:02]RAPDU: 90 00 [15:22:02]wFMCommunicate OK [15:22:02]SAM_PROTO_ClearQueue done [15:22:02]KKMCreateOFDPacket [15:22:02]OFDProtocolAddRootSTLVToBuf [15:22:02]FM_MakeSignedData [15:22:02]FM_MakeSignedData [15:22:02]SAM_PROTO_SignData [15:22:02]wFMCommunicate request_size=4 [15:22:02]MH_SAM_APDU [15:22:02]CAPDU: 80 0D 01 02 [15:22:02]Write to MH i2c: E2 08 00 2C 47 80 0D 01 02 00 00 00 00 EC [15:22:02]Write i2c OK [15:22:02]MH_I2C_Read... [15:22:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:02]Read from MH i2c: E2 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: E2 03 00 [15:22:02]MH_I2C_Read... [15:22:02]Read from MH i2c: E2 03 00 2C 47 00 90 00 E7 [15:22:02]RAPDU: 90 00 [15:22:02]wFMCommunicate OK [15:22:02]wFMCommunicate request_size=255 [15:22:02]MH_SAM_APDU [15:22:02]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 6F 00 00 00 F4 03 04 00 1F 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [15:22:02]Write to MH i2c: E2 02 01 2D 47 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 6F 00 00 00 F4 03 04 00 1F 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 00 4C [15:22:02]Write i2c OK [15:22:02]MH_I2C_Read... [15:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:03]Read from MH i2c: E2 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: E2 03 00 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: E2 03 00 2D 47 00 90 00 E8 [15:22:03]RAPDU: 90 00 [15:22:03]wFMCommunicate OK [15:22:03]wFMCommunicate request_size=39 [15:22:03]MH_SAM_APDU [15:22:03]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A3 20 02 00 35 04 06 00 CA 57 79 74 60 D3 [15:22:03]Write to MH i2c: E2 2A 00 2E 47 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A3 20 02 00 35 04 06 00 CA 57 79 74 60 D3 00 00 B8 [15:22:03]Write i2c OK [15:22:03]MH_I2C_Read... [15:22:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:03]Read from MH i2c: E2 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: E2 03 00 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: E2 03 00 2E 47 00 90 00 E9 [15:22:03]RAPDU: 90 00 [15:22:03]wFMCommunicate OK [15:22:03]wFMCommunicate request_size=4 [15:22:03]MH_SAM_APDU [15:22:03]CAPDU: 80 0D 03 02 [15:22:03]Write to MH i2c: E2 08 00 2F 47 80 0D 03 02 00 00 00 00 F1 [15:22:03]Write i2c OK [15:22:03]MH_I2C_Read... [15:22:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:03]Read from MH i2c: E2 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: E2 0B 00 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: E2 0B 00 2F 47 00 64 49 C0 39 D0 CE F8 AD 90 00 DB [15:22:03]RAPDU: 64 49 C0 39 D0 CE F8 AD 90 00 [15:22:03]wFMCommunicate OK [15:22:03]SAM_PROTO_SignData done [15:22:03]FM_MakeSignedData done [15:22:03]CreateOFDProtocolMessage [15:22:03]wFMCommunicate request_size=4 [15:22:03]MH_SAM_APDU [15:22:03]CAPDU: 80 11 00 00 [15:22:03]Write to MH i2c: E2 08 00 30 47 80 11 00 00 00 00 00 00 F1 [15:22:03]Write i2c OK [15:22:03]MH_I2C_Read... [15:22:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:03]Read from MH i2c: E2 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: E2 17 00 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: E2 17 00 30 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [15:22:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:22:03]wFMCommunicate OK [15:22:03]CreateOFDProtocolMessage done [15:22:03]OFDSenderStorePacket 139427 [15:22:03]StoreOFDPacket docnum=139427 [15:22:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 8A 89 24 01 0A 54 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 6F 00 00 00 F4 03 04 00 1F 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A3 20 02 00 35 04 06 00 CA 57 79 74 60 D3 64 49 C0 39 D0 CE F8 AD [15:22:03]CheckFolder [15:22:03]dirname=/storage/ofd_packets [15:22:03]CheckFolder done [15:22:03]ProducePacketName [15:22:03]name=ofd_packets/00139427 [15:22:03]NVStorageSaveData ofd_packets/00139427 [15:22:03]File name is /storage/ofd_packets/00139427 [15:22:03]Write 330 bytes [15:22:03]NVStorageSaveData done [15:22:03]OFDSenderStorePacket done [15:22:03]KKMCreateOFDPacket done [15:22:03]NVStorageSaveData kkm_last_timestamp [15:22:03]File name is /storage/kkm_last_timestamp [15:22:03]Write 4 bytes [15:22:03]NVStorageSaveData done [15:22:03]ExternCall_PrintAddStr [15:22:03]wPrintStart [15:22:03]Write to MH i2c: 01 00 00 31 47 78 [15:22:03]Write i2c OK [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: 01 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: 01 07 00 [15:22:03]MH_I2C_Read... [15:22:03]Read from MH i2c: 01 07 00 31 47 00 00 00 00 00 FF 0F 8D [15:22:03]RasterBufferAndPrint [15:22:03]line Счет N : (3)335328 [15:22:03]line ИНН: 02508201610067 [15:22:03]line Контрольно-Кассовый Чек [15:22:03]line ПРОДАЖА [15:22:03]line Товар: 48741231 [15:22:03]line Сигареты Winston Super Slims Silver [15:22:03]line 1.000 * 139.00 [15:22:03]line = 139.00 [15:22:03]line НДС 12% НСП 1% [15:22:03]line > о реализуемом товаре [15:22:03]line ИТОГО: 139.00 [15:22:03]line НСП 1% : 1.23 [15:22:03]line НДС 12% : 14.76 [15:22:03]line Наличными: 139.00 [15:22:03]line Безнал.: 0.00 [15:22:03]line Место: АЗС № 101 "Партнер Нефть" [15:22:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:22:03]line СНО: Общий режим [15:22:03]line Чек 111 30.10.2024 15:22 [15:22:03]line Смена: 556 ФФД: 1.0 [15:22:03]line ЗНМ: 0300000081 [15:22:03]line РНМ: 0000000000091631 [15:22:03]line Версия ККМ: 001 [15:22:03]line ФМ: 0000000000874669 [15:22:03]line ФД: 139427 [15:22:03]line ФПД: 222477048635603 [15:22:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T152207&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139427&fm=222477048635603&tin=02508201610067®Number=0000000000091631&sum=13900 [15:22:03]line 0 [15:22:03]OFD Sender: Processing packet 139427 [packets to send 34, broken 33] [15:22:03]ProducePacketName [15:22:03]name=ofd_packets/00139427 [15:22:03]OFD Sender: To server: pG, [15:22:03]CommunicateWithHost lk.salyk.kg:30040 [15:22:03]ConnectInit lk.salyk.kg [15:22:03]written 0, free lines is 4095 [15:22:03]Connected sock=10 [15:22:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 8A 89 24 01 0A 54 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 08 00 34 38 37 34 31 32 33 31 06 04 2B 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 53 75 70 65 72 20 53 6C 69 6D 73 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 6F 00 00 00 F4 03 04 00 1F 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A3 20 02 00 35 04 06 00 CA 57 79 74 60 D3 64 49 C0 39 D0 CE F8 AD [15:22:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D7 E9 47 00 9A 6C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A3 20 02 00 F4 03 04 00 CF FA 21 67 B6 04 01 00 00 99 8B 2B 84 B6 1A 97 C1 [15:22:03]CommunicateWithHost err = 0 [15:22:03]CheckOFDResponse [15:22:03]1017 (14) - 77093643461234 [15:22:03]1041 (16) - 0000000000874669 [15:22:03]1040 (4) - 139427 [15:22:03]1012 (4) - 30.10.2024 09:22 [15:22:03]1206 (1) - 0 [15:22:03]OFD Sender: Remove packet 139427 [15:22:03]ProducePacketName [15:22:03]name=ofd_packets/00139427 [15:22:03]NVStorageDeleteData [15:22:04]Write to MH i2c: 01 00 00 5A 47 A1 [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: 01 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: 01 07 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: 01 07 00 5A 47 00 00 00 00 00 EA 0C 9E [15:22:04]RasterBufferAndPrint [15:22:04]line [15:22:04]line [15:22:04]line [15:22:04]line [15:22:04]line [15:22:04]written 0, free lines is 3312 [15:22:04]MH_Cut [15:22:04]Write to MH i2c: D1 01 00 61 47 01 7A [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: D1 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: D1 01 00 [15:22:04]MH_I2C_Read... [15:22:04]Read from MH i2c: D1 01 00 61 47 00 79 [15:22:04]Write to MH i2c: 01 00 00 62 47 A9 [15:22:04]Write i2c OK [15:22:04]MH_I2C_Read... [15:22:04]OFD Sender: No OFD packet to send [15:22:04]*** Cut start [15:22:04]*** Partial cut [15:22:04]*** CUTSNS_PIN = 1 [15:22:04]*** CUTSNS_PIN = 0 [15:22:05]*** Brake cut motor [15:22:05]Read from MH i2c: 01 [15:22:05]MH_I2C_Read... [15:22:05]*** Stop cut motor [15:22:05]*** Cut end [15:22:05]Read from MH i2c: 01 07 00 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: 01 07 00 62 47 00 00 00 00 00 FF 0F BE [15:22:05]process_action close_receipt done [15:22:05]requested_data is exist [15:22:05]produce_requested_data [15:22:05]requested_item fm.sn is exist - process it [15:22:05]wFMCommunicate request_size=4 [15:22:05]MH_SAM_APDU [15:22:05]CAPDU: 80 11 00 00 [15:22:05]Write to MH i2c: E2 08 00 63 47 80 11 00 00 00 00 00 00 24 [15:22:05]Write i2c OK [15:22:05]MH_I2C_Read... [15:22:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:05]Read from MH i2c: E2 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: E2 17 00 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: E2 17 00 63 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7F [15:22:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:22:05]wFMCommunicate OK [15:22:05]requested_item fd.num is exist - process it [15:22:05]SAM_PROTO_GetFieldsCounters [15:22:05]wFMCommunicate request_size=4 [15:22:05]MH_SAM_APDU [15:22:05]CAPDU: 80 13 00 00 [15:22:05]Write to MH i2c: E2 08 00 64 47 80 13 00 00 00 00 00 00 27 [15:22:05]Write i2c OK [15:22:05]MH_I2C_Read... [15:22:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:05]Read from MH i2c: E2 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: E2 62 00 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: E2 62 00 64 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A3 20 02 00 0E 04 04 00 2C 02 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 8B [15:22:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A3 20 02 00 0E 04 04 00 2C 02 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 [15:22:05]wFMCommunicate OK [15:22:05]SAM_PROTO_GetFieldsCounters done [15:22:05]requested_item shift.num is exist - process it [15:22:05]requested_item shift.opened is exist - process it [15:22:05]req_shift_opened [15:22:05]FM_GetShiftState [15:22:05]SAM_PROTO_GetShiftState [15:22:05]wFMCommunicate request_size=4 [15:22:05]MH_SAM_APDU [15:22:05]CAPDU: 80 13 01 00 [15:22:05]Write to MH i2c: E2 08 00 65 47 80 13 01 00 00 00 00 00 29 [15:22:05]Write i2c OK [15:22:05]MH_I2C_Read... [15:22:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:05]Read from MH i2c: E2 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: E2 0E 00 [15:22:05]MH_I2C_Read... [15:22:05]Read from MH i2c: E2 0E 00 65 47 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B9 [15:22:05]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [15:22:05]wFMCommunicate OK [15:22:05]SAM_PROTO_GetShiftState done [15:22:05]FM_GetShiftState done [15:22:05]req_shift_opened done [15:22:05]requested_item shift.open_date is exist - process it [15:22:05]req_shift_open_date [15:22:05]req_shift_open_date done [15:22:05]produce_requested_data done [15:22:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139427,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [15:22:05]process_action_free close_receipt [15:22:05]json_value_free [15:22:05]json_value_free done [15:22:05]process_json_proto returns [15:22:05]Send response to host [15:22:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139427,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [15:22:05]free response buf [15:22:05]execute_script done [15:22:05]execute_script returns [15:22:05]free content buf [15:22:05]Sock 9.Close socket [15:22:05]Sock 9.Thread stoped [15:22:07]accept exits with 8 [15:22:07]New connection [15:22:07]New thread 3067141476 created [15:22:07]Thread 3067284836 joined [15:22:07]Waiting for new connection... [15:22:07] Sock 8.Parse request [15:22:07]Sock 8.Check first char [15:22:07]Sock 8.First char is OK [15:22:07]request: POST /json_proto HTTP/1.0 [15:22:07]Method: POST [15:22:07]URL: /json_proto [15:22:07]Method is POST - this is cgi request [15:22:07]url: /json_proto [15:22:07]query_string will be loaded in cgi processing [15:22:07]execute_cgi json_proto POST (null) [15:22:07]execute_cgi path=json_proto method=POST [15:22:07]POST find Content-Length [15:22:07]Host: 172.17.50.196:8080 [15:22:07]Content-Length: 658 [15:22:07]Content-Type: application/json [15:22:07] [15:22:07]POST finish read [15:22:07]Found Content-Length = 658 [15:22:07]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335332", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:07]execute_script... [15:22: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 : (3)335332", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:22:07]POST & json_proto [15:22:07]process_json_proto [15:22:07]json parsed OK: [15:22:07]protocol is kg_v1.0 [15:22:07]action value=close_receipt [15:22:07]process_action close_receipt [15:22:07]cmd_close_receipt [15:22:07]MH_GetDate [15:22:07]Write to MH i2c: F0 00 00 66 47 9C [15:22:07]Write i2c OK [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: F0 [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: F0 09 00 [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: F0 09 00 66 47 00 25 4F 22 67 72 0D 1C 67 A4 [15:22:07]GetLastDocTimeStamp 1730301727 [15:22:07]current date 1730301733 [15:22:07]FM_GetShiftState [15:22:07]SAM_PROTO_GetShiftState [15:22:07]wFMCommunicate request_size=4 [15:22:07]MH_SAM_APDU [15:22:07]CAPDU: 80 13 01 00 [15:22:07]Write to MH i2c: E2 08 00 67 47 80 13 01 00 00 00 00 00 2B [15:22:07]Write i2c OK [15:22:07]MH_I2C_Read... [15:22:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:07]Read from MH i2c: E2 [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: E2 0E 00 [15:22:07]MH_I2C_Read... [15:22:07]Read from MH i2c: E2 0E 00 67 47 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BB [15:22:07]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [15:22:07]wFMCommunicate OK [15:22:07]SAM_PROTO_GetShiftState done [15:22:07]FM_GetShiftState done [15:22:07]opened in 1730246278 [15:22:07]opened+sec_in_day 1730332678 [15:22:07]quantity*price = 8500 [15:22:07]sum+1 = 8501 [15:22:07]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 112 30.10.2024 15:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139428 ФПД: 275564528378198 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T152213&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139428&fm=275564528378198&tin=02508201610067®Number=0000000000091631&sum=8500 0 [15:22:08]StoreToDocumentArchive [15:22:08]shift 556 fd 139428 [15:22:08]save to /storage/0556/doc_00139428 [15:22:08]save last doc name /storage/0556/doc_00139428 to /storage/kkm_last_doc_name [15:22:08]save OK [15:22:08]Clear old archive folders... [15:22:08]ProcessDocumentItem done err = 0, tmpTLVsize=281 [15:22:08]tlvbuf is 011ADBE0 [15:22:08]SAM_PROTO_ClearQueue [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 09 00 00 [15:22:08]Write to MH i2c: E2 08 00 74 47 80 09 00 00 00 00 00 00 2D [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 74 47 00 90 00 2F [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]SAM_PROTO_ClearQueue done [15:22:08]KKMCreateOFDPacket [15:22:08]OFDProtocolAddRootSTLVToBuf [15:22:08]FM_MakeSignedData [15:22:08]FM_MakeSignedData [15:22:08]SAM_PROTO_SignData [15:22:08]wFMCommunicate request_size=4 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 0D 01 02 [15:22:08]Write to MH i2c: E2 08 00 75 47 80 0D 01 02 00 00 00 00 35 [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:22:08]Read from MH i2c: E2 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 [15:22:08]MH_I2C_Read... [15:22:08]Read from MH i2c: E2 03 00 75 47 00 90 00 30 [15:22:08]RAPDU: 90 00 [15:22:08]wFMCommunicate OK [15:22:08]wFMCommunicate request_size=255 [15:22:08]MH_SAM_APDU [15:22:08]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 25 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 [15:22:08]Write to MH i2c: E2 02 01 76 47 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 25 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 2B [15:22:08]Write i2c OK [15:22:08]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 76 47 00 90 00 31 [15:22:09]RAPDU: 90 00 [15:22:09]wFMCommunicate OK [15:22:09]wFMCommunicate request_size=40 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 20 02 00 35 04 06 00 FA 9F DD D3 A1 56 [15:22:09]Write to MH i2c: E2 2B 00 77 47 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 20 02 00 35 04 06 00 FA 9F DD D3 A1 56 00 00 03 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 03 00 77 47 00 90 00 32 [15:22:09]RAPDU: 90 00 [15:22:09]wFMCommunicate OK [15:22:09]wFMCommunicate request_size=4 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 0D 03 02 [15:22:09]Write to MH i2c: E2 08 00 78 47 80 0D 03 02 00 00 00 00 3A [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 0B 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 0B 00 78 47 00 82 5A 7B 7D C6 26 A6 15 90 00 B6 [15:22:09]RAPDU: 82 5A 7B 7D C6 26 A6 15 90 00 [15:22:09]wFMCommunicate OK [15:22:09]SAM_PROTO_SignData done [15:22:09]FM_MakeSignedData done [15:22:09]CreateOFDProtocolMessage [15:22:09]wFMCommunicate request_size=4 [15:22:09]MH_SAM_APDU [15:22:09]CAPDU: 80 11 00 00 [15:22:09]Write to MH i2c: E2 08 00 79 47 80 11 00 00 00 00 00 00 3A [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:09]Read from MH i2c: E2 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 17 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: E2 17 00 79 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 95 [15:22:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:22:09]wFMCommunicate OK [15:22:09]CreateOFDProtocolMessage done [15:22:09]OFDSenderStorePacket 139428 [15:22:09]StoreOFDPacket docnum=139428 [15:22:09]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2D 01 00 00 9F D9 25 01 96 AD 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 25 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 20 02 00 35 04 06 00 FA 9F DD D3 A1 56 82 5A 7B 7D C6 26 A6 15 [15:22:09]CheckFolder [15:22:09]dirname=/storage/ofd_packets [15:22:09]CheckFolder done [15:22:09]ProducePacketName [15:22:09]name=ofd_packets/00139428 [15:22:09]NVStorageSaveData ofd_packets/00139428 [15:22:09]File name is /storage/ofd_packets/00139428 [15:22:09]Write 331 bytes [15:22:09]NVStorageSaveData done [15:22:09]OFDSenderStorePacket done [15:22:09]KKMCreateOFDPacket done [15:22:09]NVStorageSaveData kkm_last_timestamp [15:22:09]File name is /storage/kkm_last_timestamp [15:22:09]Write 4 bytes [15:22:09]NVStorageSaveData done [15:22:09]ExternCall_PrintAddStr [15:22:09]wPrintStart [15:22:09]Write to MH i2c: 01 00 00 7A 47 C1 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 07 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 07 00 7A 47 00 00 00 00 00 FF 0F D6 [15:22:09]RasterBufferAndPrint [15:22:09]line Счет N : (3)335332 [15:22:09]line ИНН: 02508201610067 [15:22:09]line Контрольно-Кассовый Чек [15:22:09]line ПРОДАЖА [15:22:09]line Товар: 5449000000996 [15:22:09]line Напиток Кока-Кола 0,33л [15:22:09]line 1.000 * 85.00 [15:22:09]line = 85.00 [15:22:09]line НДС 12% НСП 1% [15:22:09]line > о реализуемом товаре [15:22:09]line ИТОГО: 85.00 [15:22:09]line НСП 1% : 0.75 [15:22:09]line НДС 12% : 9.03 [15:22:09]line Наличными: 85.00 [15:22:09]line Безнал.: 0.00 [15:22:09]line Место: АЗС № 101 "Партнер Нефть" [15:22:09]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:22:09]line СНО: Общий режим [15:22:09]line Чек 112 30.10.2024 15:22 [15:22:09]line Смена: 556 ФФД: 1.0 [15:22:09]line ЗНМ: 0300000081 [15:22:09]line РНМ: 0000000000091631 [15:22:09]line Версия ККМ: 001 [15:22:09]line ФМ: 0000000000874669 [15:22:09]line ФД: 139428 [15:22:09]line ФПД: 275564528378198 [15:22:09]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T152213&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139428&fm=275564528378198&tin=02508201610067®Number=0000000000091631&sum=8500 [15:22:09]line 0 [15:22:09]written 0, free lines is 4095 [15:22:09]OFD Sender: Processing packet 139428 [packets to send 34, broken 33] [15:22:09]ProducePacketName [15:22:09]name=ofd_packets/00139428 [15:22:09]OFD Sender: To server: pG, [15:22:09]CommunicateWithHost lk.salyk.kg:30040 [15:22:09]ConnectInit lk.salyk.kg [15:22:09]Connected sock=11 [15:22:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2D 01 00 00 9F D9 25 01 96 AD 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 70 00 00 00 F4 03 04 00 25 4F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A4 20 02 00 35 04 06 00 FA 9F DD D3 A1 56 82 5A 7B 7D C6 26 A6 15 [15:22:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CB 74 47 00 F6 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 38 37 34 36 36 39 10 04 04 00 A4 20 02 00 F4 03 04 00 D5 FA 21 67 B6 04 01 00 00 1C 43 4C D5 9D 63 C7 56 [15:22:09]CommunicateWithHost err = 0 [15:22:09]CheckOFDResponse [15:22:09]1017 (14) - 77093643461234 [15:22:09]1041 (16) - 0000000000874669 [15:22:09]1040 (4) - 139428 [15:22:09]1012 (4) - 30.10.2024 09:22 [15:22:09]1206 (1) - 0 [15:22:09]OFD Sender: Remove packet 139428 [15:22:09]ProducePacketName [15:22:09]name=ofd_packets/00139428 [15:22:09]NVStorageDeleteData [15:22:09]Write to MH i2c: 01 00 00 A2 47 E9 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 07 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: 01 07 00 A2 47 00 00 00 00 00 1D 0D 1A [15:22:09]RasterBufferAndPrint [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]line [15:22:09]written 0, free lines is 3368 [15:22:09]MH_Cut [15:22:09]Write to MH i2c: D1 01 00 A9 47 01 C2 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 01 00 [15:22:09]MH_I2C_Read... [15:22:09]Read from MH i2c: D1 01 00 A9 47 00 C1 [15:22:09]Write to MH i2c: 01 00 00 AA 47 F1 [15:22:09]Write i2c OK [15:22:09]MH_I2C_Read... [15:22:10]OFD Sender: No OFD packet to send [15:22:10]*** Cut start [15:22:10]*** Partial cut [15:22:10]*** CUTSNS_PIN = 1 [15:22:10]*** CUTSNS_PIN = 0 [15:22:10]*** Brake cut motor [15:22:11]Read from MH i2c: 01 [15:22:11]MH_I2C_Read... [15:22:11]*** Stop cut motor [15:22:11]*** Cut end [15:22:11]Read from MH i2c: 01 07 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: 01 07 00 AA 47 00 00 00 00 00 FF 0F 06 [15:22:11]process_action close_receipt done [15:22:11]requested_data is exist [15:22:11]produce_requested_data [15:22:11]requested_item fm.sn is exist - process it [15:22:11]wFMCommunicate request_size=4 [15:22:11]MH_SAM_APDU [15:22:11]CAPDU: 80 11 00 00 [15:22:11]Write to MH i2c: E2 08 00 AB 47 80 11 00 00 00 00 00 00 6C [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:22:11]Read from MH i2c: E2 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 17 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 17 00 AB 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C7 [15:22:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:22:11]wFMCommunicate OK [15:22:11]requested_item fd.num is exist - process it [15:22:11]SAM_PROTO_GetFieldsCounters [15:22:11]wFMCommunicate request_size=4 [15:22:11]MH_SAM_APDU [15:22:11]CAPDU: 80 13 00 00 [15:22:11]Write to MH i2c: E2 08 00 AC 47 80 13 00 00 00 00 00 00 6F [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:22:11]Read from MH i2c: E2 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 62 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 62 00 AC 47 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A4 20 02 00 0E 04 04 00 2C 02 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 D7 [15:22:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A4 20 02 00 0E 04 04 00 2C 02 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 [15:22:11]wFMCommunicate OK [15:22:11]SAM_PROTO_GetFieldsCounters done [15:22:11]requested_item shift.num is exist - process it [15:22:11]requested_item shift.opened is exist - process it [15:22:11]req_shift_opened [15:22:11]FM_GetShiftState [15:22:11]SAM_PROTO_GetShiftState [15:22:11]wFMCommunicate request_size=4 [15:22:11]MH_SAM_APDU [15:22:11]CAPDU: 80 13 01 00 [15:22:11]Write to MH i2c: E2 08 00 AD 47 80 13 01 00 00 00 00 00 71 [15:22:11]Write i2c OK [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 [15:22:11]MH_I2C_Read... [15:22:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:22:11]Read from MH i2c: E2 0E 00 [15:22:11]MH_I2C_Read... [15:22:11]Read from MH i2c: E2 0E 00 AD 47 00 09 00 01 86 76 21 67 00 00 00 00 90 00 01 [15:22:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [15:22:11]wFMCommunicate OK [15:22:11]SAM_PROTO_GetShiftState done [15:22:11]FM_GetShiftState done [15:22:11]req_shift_opened done [15:22:11]requested_item shift.open_date is exist - process it [15:22:11]req_shift_open_date [15:22:11]req_shift_open_date done [15:22:11]produce_requested_data done [15:22:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139428,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [15:22:11]process_action_free close_receipt [15:22:11]json_value_free [15:22:11]json_value_free done [15:22:11]process_json_proto returns [15:22:11]Send response to host [15:22:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139428,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [15:22:11]free response buf [15:22:11]execute_script done [15:22:11]execute_script returns [15:22:11]free content buf [15:22:11]Sock 8.Close socket [15:22:11]Sock 8.Thread stoped [15:22:15]OFD Sender: No OFD packet to send [15:22:20]OFD Sender: No OFD packet to send [15:22:25]OFD Sender: No OFD packet to send [15:22:30]OFD Sender: No OFD packet to send [15:22:35]OFD Sender: No OFD packet to send [15:22:40]OFD Sender: No OFD packet to send [15:22:45]OFD Sender: No OFD packet to send [15:22:50]OFD Sender: No OFD packet to send [15:22:55]OFD Sender: No OFD packet to send [15:23:00]OFD Sender: No OFD packet to send [15:23:05]OFD Sender: No OFD packet to send [15:23:10]OFD Sender: No OFD packet to send [15:23:15]OFD Sender: No OFD packet to send [15:23:20]OFD Sender: No OFD packet to send [15:23:25]OFD Sender: No OFD packet to send [15:23:30]OFD Sender: No OFD packet to send [15:23:35]OFD Sender: No OFD packet to send [15:23:40]OFD Sender: No OFD packet to send [15:23:45]OFD Sender: No OFD packet to send [15:23:50]OFD Sender: No OFD packet to send [15:23:55]OFD Sender: No OFD packet to send [15:24:00]OFD Sender: No OFD packet to send [15:24:05]OFD Sender: No OFD packet to send [15:24:10]OFD Sender: No OFD packet to send [15:24:15]OFD Sender: No OFD packet to send [15:24:20]OFD Sender: No OFD packet to send [15:24:25]OFD Sender: No OFD packet to send [15:24:30]OFD Sender: No OFD packet to send [15:24:35]OFD Sender: No OFD packet to send [15:24:40]OFD Sender: No OFD packet to send [15:24:45]OFD Sender: No OFD packet to send [15:24:50]OFD Sender: No OFD packet to send [15:24:55]OFD Sender: No OFD packet to send [15:25:00]OFD Sender: No OFD packet to send [15:25:05]OFD Sender: No OFD packet to send [15:25:10]OFD Sender: No OFD packet to send [15:25:15]OFD Sender: No OFD packet to send [15:25:20]OFD Sender: No OFD packet to send [15:25:25]OFD Sender: No OFD packet to send [15:25:30]OFD Sender: No OFD packet to send [15:25:35]OFD Sender: No OFD packet to send [15:25:40]OFD Sender: No OFD packet to send [15:25:45]OFD Sender: No OFD packet to send [15:25:50]OFD Sender: No OFD packet to send [15:25:55]OFD Sender: No OFD packet to send [15:26:00]OFD Sender: No OFD packet to send [15:26:05]OFD Sender: No OFD packet to send [15:26:10]OFD Sender: No OFD packet to send [15:26:15]OFD Sender: No OFD packet to send [15:26:20]OFD Sender: No OFD packet to send [15:26:25]OFD Sender: No OFD packet to send [15:26:30]OFD Sender: No OFD packet to send [15:26:35]OFD Sender: No OFD packet to send [15:26:40]OFD Sender: No OFD packet to send [15:26:45]OFD Sender: No OFD packet to send [15:26:50]OFD Sender: No OFD packet to send [15:26:55]OFD Sender: No OFD packet to send [15:27:00]OFD Sender: No OFD packet to send [15:27:05]OFD Sender: No OFD packet to send [15:27:10]OFD Sender: No OFD packet to send [15:27:15]OFD Sender: No OFD packet to send [15:27:20]OFD Sender: No OFD packet to send [15:27:25]OFD Sender: No OFD packet to send [15:27:30]OFD Sender: No OFD packet to send [15:27:35]OFD Sender: No OFD packet to send [15:27:40]OFD Sender: No OFD packet to send [15:27:45]OFD Sender: No OFD packet to send [15:27:50]OFD Sender: No OFD packet to send [15:27:55]OFD Sender: No OFD packet to send [15:28:00]OFD Sender: No OFD packet to send [15:28:05]OFD Sender: No OFD packet to send [15:28:10]OFD Sender: No OFD packet to send [15:28:15]OFD Sender: No OFD packet to send [15:28:20]OFD Sender: No OFD packet to send [15:28:25]OFD Sender: No OFD packet to send [15:28:30]OFD Sender: No OFD packet to send [15:28:35]OFD Sender: No OFD packet to send [15:28:40]OFD Sender: No OFD packet to send [15:28:45]OFD Sender: No OFD packet to send [15:28:50]OFD Sender: No OFD packet to send [15:28:55]OFD Sender: No OFD packet to send [15:29:00]OFD Sender: No OFD packet to send [15:29:05]OFD Sender: No OFD packet to send [15:29:10]OFD Sender: No OFD packet to send [15:29:15]OFD Sender: No OFD packet to send [15:29:20]OFD Sender: No OFD packet to send [15:29:25]OFD Sender: No OFD packet to send [15:29:30]OFD Sender: No OFD packet to send [15:29:35]OFD Sender: No OFD packet to send [15:29:40]OFD Sender: No OFD packet to send [15:29:45]OFD Sender: No OFD packet to send [15:29:50]OFD Sender: No OFD packet to send [15:29:55]OFD Sender: No OFD packet to send [15:30:00]OFD Sender: No OFD packet to send [15:30:05]OFD Sender: No OFD packet to send [15:30:10]OFD Sender: No OFD packet to send [15:30:15]OFD Sender: No OFD packet to send [15:30:20]OFD Sender: No OFD packet to send [15:30:25]OFD Sender: No OFD packet to send [15:30:30]OFD Sender: No OFD packet to send [15:30:35]OFD Sender: No OFD packet to send [15:30:40]OFD Sender: No OFD packet to send [15:30:45]OFD Sender: No OFD packet to send [15:30:50]OFD Sender: No OFD packet to send [15:30:55]OFD Sender: No OFD packet to send [15:31:00]OFD Sender: No OFD packet to send [15:31:05]OFD Sender: No OFD packet to send [15:31:10]OFD Sender: No OFD packet to send [15:31:15]OFD Sender: No OFD packet to send [15:31:20]OFD Sender: No OFD packet to send [15:31:25]OFD Sender: No OFD packet to send [15:31:30]OFD Sender: No OFD packet to send [15:31:35]OFD Sender: No OFD packet to send [15:31:40]OFD Sender: No OFD packet to send [15:31:45]OFD Sender: No OFD packet to send [15:31:50]OFD Sender: No OFD packet to send [15:31:55]OFD Sender: No OFD packet to send [15:32:00]OFD Sender: No OFD packet to send [15:32:05]OFD Sender: No OFD packet to send [15:32:10]OFD Sender: No OFD packet to send [15:32:15]OFD Sender: No OFD packet to send [15:32:20]OFD Sender: No OFD packet to send [15:32:25]OFD Sender: No OFD packet to send [15:32:30]OFD Sender: No OFD packet to send [15:32:35]OFD Sender: No OFD packet to send [15:32:40]OFD Sender: No OFD packet to send [15:32:45]OFD Sender: No OFD packet to send [15:32:50]OFD Sender: No OFD packet to send [15:32:55]OFD Sender: No OFD packet to send [15:33:00]OFD Sender: No OFD packet to send [15:33:05]OFD Sender: No OFD packet to send [15:33:10]OFD Sender: No OFD packet to send [15:33:15]OFD Sender: No OFD packet to send [15:33:20]OFD Sender: No OFD packet to send [15:33:25]OFD Sender: No OFD packet to send [15:33:30]OFD Sender: No OFD packet to send [15:33:35]OFD Sender: No OFD packet to send [15:33:40]OFD Sender: No OFD packet to send [15:33:45]OFD Sender: No OFD packet to send [15:33:50]OFD Sender: No OFD packet to send [15:33:55]OFD Sender: No OFD packet to send [15:34:00]OFD Sender: No OFD packet to send [15:34:05]OFD Sender: No OFD packet to send [15:34:10]OFD Sender: No OFD packet to send [15:34:15]OFD Sender: No OFD packet to send [15:34:20]OFD Sender: No OFD packet to send [15:34:25]OFD Sender: No OFD packet to send [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:29]accept exits with 9 [15:35:29]New connection [15:35:29]New thread 3067284836 created [15:35:29]Thread 3067141476 joined [15:35:29]Waiting for new connection... [15:35:29] Sock 9.Parse request [15:35:29]Sock 9.Check first char [15:35:29]Sock 9.First char is OK [15:35:29]request: POST /json_proto HTTP/1.0 [15:35:29]Method: POST [15:35:29]URL: /json_proto [15:35:29]Method is POST - this is cgi request [15:35:29]url: /json_proto [15:35:29]query_string will be loaded in cgi processing [15:35:29]execute_cgi json_proto POST (null) [15:35:29]execute_cgi path=json_proto method=POST [15:35:29]POST find Content-Length [15:35:29]Host: 172.17.50.196:8080 [15:35:29]Content-Length: 1628 [15:35:29]Content-Type: application/json [15:35:29] [15:35:29]POST finish read [15:35:29]Found Content-Length = 1628 [15:35:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335333", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209743574", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0412\u044F\u043B\u0435\u043D\u0430\u044F \u043A\u043E\u043D\u0438\u043D\u0430 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209745486", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209743581", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0410\u0434\u0436\u0438\u043A\u0430 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:29]execute_script... [15: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 : (3)335333", "tax_sys" : 0, "items" : [ { "code": "4630007400655", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433 \u0441\u0438\u043D\u0438\u0439", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209743574", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0412\u044F\u043B\u0435\u043D\u0430\u044F \u043A\u043E\u043D\u0438\u043D\u0430 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209745486", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0421\u044B\u0440 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209743581", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 BIG BOB \u0410\u0434\u0436\u0438\u043A\u0430 50 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.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" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [15:35:29]POST & json_proto [15:35:29]process_json_proto [15:35:29]json parsed OK: [15:35:29]protocol is kg_v1.0 [15:35:29]action value=close_receipt [15:35:29]process_action close_receipt [15:35:29]cmd_close_receipt [15:35:29]MH_GetDate [15:35:29]Write to MH i2c: F0 00 00 AE 47 E4 [15:35:29]Write i2c OK [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: F0 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: F0 09 00 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: F0 09 00 AE 47 00 47 52 22 67 72 0D 1C 67 11 [15:35:29]GetLastDocTimeStamp 1730301733 [15:35:29]current date 1730302535 [15:35:29]FM_GetShiftState [15:35:29]SAM_PROTO_GetShiftState [15:35:29]wFMCommunicate request_size=4 [15:35:29]MH_SAM_APDU [15:35:29]CAPDU: 80 13 01 00 [15:35:29]Write to MH i2c: E2 08 00 AF 47 80 13 01 00 00 00 00 00 73 [15:35:29]Write i2c OK [15:35:29]MH_I2C_Read... [15:35:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:29]Read from MH i2c: E2 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: E2 0E 00 [15:35:29]MH_I2C_Read... [15:35:29]Read from MH i2c: E2 0E 00 AF 47 00 09 00 01 86 76 21 67 00 00 00 00 90 00 03 [15:35:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [15:35:29]wFMCommunicate OK [15:35:29]SAM_PROTO_GetShiftState done [15:35:29]FM_GetShiftState done [15:35:29]opened in 1730246278 [15:35:29]opened+sec_in_day 1730332678 [15:35:29]quantity*price = 7000 [15:35:29]sum+1 = 7001 [15:35:29]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870209743574 Арахис BIG BOB Вяленая конина 50 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209745486 Арахис BIG BOB Сыр 50 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870209743581 Арахис BIG BOB Аджика 50 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.54 Наличными: 0.00 Безнал.: 250.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 113 30.10.2024 15:35 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139429 ФПД: 169084455920500 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153535&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139429&fm=169084455920500&tin=02508201610067®Number=0000000000091631&sum=25000 0 [15:35:30]StoreToDocumentArchive [15:35:30]shift 556 fd 139429 [15:35:30]save to /storage/0556/doc_00139429 [15:35:30]save last doc name /storage/0556/doc_00139429 to /storage/kkm_last_doc_name [15:35:30]save OK [15:35:30]Clear old archive folders... [15:35:30]ProcessDocumentItem done err = 0, tmpTLVsize=631 [15:35:30]tlvbuf is 01158810 [15:35:30]SAM_PROTO_ClearQueue [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 09 00 00 [15:35:30]Write to MH i2c: E2 08 00 BC 47 80 09 00 00 00 00 00 00 75 [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 BC 47 00 90 00 77 [15:35:30]RAPDU: 90 00 [15:35:30]wFMCommunicate OK [15:35:30]SAM_PROTO_ClearQueue done [15:35:30]KKMCreateOFDPacket [15:35:30]OFDProtocolAddRootSTLVToBuf [15:35:30]FM_MakeSignedData [15:35:30]FM_MakeSignedData [15:35:30]SAM_PROTO_SignData [15:35:30]wFMCommunicate request_size=4 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 0D 01 02 [15:35:30]Write to MH i2c: E2 08 00 BD 47 80 0D 01 02 00 00 00 00 7D [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [15:35:30]Read from MH i2c: E2 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 [15:35:30]MH_I2C_Read... [15:35:30]Read from MH i2c: E2 03 00 BD 47 00 90 00 78 [15:35:30]RAPDU: 90 00 [15:35:30]wFMCommunicate OK [15:35:30]wFMCommunicate request_size=255 [15:35:30]MH_SAM_APDU [15:35:30]CAPDU: 80 0D 02 02 FA 03 00 77 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 [15:35:30]Write to MH i2c: E2 02 01 BE 47 80 0D 02 02 FA 00 03 00 77 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 00 00 F9 [15:35:30]Write i2c OK [15:35:30]MH_I2C_Read... [15:35:30]OFD Sender: No OFD packet to send [15:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 BE 47 00 90 00 79 [15:35:31]RAPDU: 90 00 [15:35:31]wFMCommunicate OK [15:35:31]wFMCommunicate request_size=255 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 0D 02 02 FA 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 38 31 06 04 29 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 90 D0 B4 D0 B6 D0 B8 D0 BA D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 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 [15:35:31]Write to MH i2c: E2 02 01 BF 47 80 0D 02 02 FA 00 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 38 31 06 04 29 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 90 D0 B4 D0 B6 D0 B8 D0 BA D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 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 8A [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 BF 47 00 90 00 7A [15:35:31]RAPDU: 90 00 [15:35:31]wFMCommunicate OK [15:35:31]wFMCommunicate request_size=140 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 47 52 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 20 02 00 35 04 06 00 99 C8 0A EE A3 74 [15:35:31]Write to MH i2c: E2 8F 00 C0 47 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 47 52 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 20 02 00 35 04 06 00 99 C8 0A EE A3 74 00 00 28 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 03 00 C0 47 00 90 00 7B [15:35:31]RAPDU: 90 00 [15:35:31]wFMCommunicate OK [15:35:31]wFMCommunicate request_size=4 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 0D 03 02 [15:35:31]Write to MH i2c: E2 08 00 C1 47 80 0D 03 02 00 00 00 00 83 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 0B 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 0B 00 C1 47 00 13 ED 2E 14 DC 05 61 55 90 00 5D [15:35:31]RAPDU: 13 ED 2E 14 DC 05 61 55 90 00 [15:35:31]wFMCommunicate OK [15:35:31]SAM_PROTO_SignData done [15:35:31]FM_MakeSignedData done [15:35:31]CreateOFDProtocolMessage [15:35:31]wFMCommunicate request_size=4 [15:35:31]MH_SAM_APDU [15:35:31]CAPDU: 80 11 00 00 [15:35:31]Write to MH i2c: E2 08 00 C2 47 80 11 00 00 00 00 00 00 83 [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:31]Read from MH i2c: E2 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 17 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: E2 17 00 C2 47 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DE [15:35:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:35:31]wFMCommunicate OK [15:35:31]CreateOFDProtocolMessage done [15:35:31]OFDSenderStorePacket 139429 [15:35:31]StoreOFDPacket docnum=139429 [15:35:31]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8B 02 00 00 DD 91 83 02 C3 7A 5A 03 01 00 03 00 77 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 38 31 06 04 29 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 90 D0 B4 D0 B6 D0 B8 D0 BA D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 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 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 47 52 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 20 02 00 35 04 06 00 99 C8 0A EE A3 74 13 ED 2E 14 DC 05 61 55 [15:35:31]CheckFolder [15:35:31]dirname=/storage/ofd_packets [15:35:31]CheckFolder done [15:35:31]ProducePacketName [15:35:31]name=ofd_packets/00139429 [15:35:31]NVStorageSaveData ofd_packets/00139429 [15:35:31]File name is /storage/ofd_packets/00139429 [15:35:31]Write 681 bytes [15:35:31]NVStorageSaveData done [15:35:31]OFDSenderStorePacket done [15:35:31]KKMCreateOFDPacket done [15:35:31]NVStorageSaveData kkm_last_timestamp [15:35:31]File name is /storage/kkm_last_timestamp [15:35:31]Write 4 bytes [15:35:31]NVStorageSaveData done [15:35:31]ExternCall_PrintAddStr [15:35:31]wPrintStart [15:35:31]Write to MH i2c: 01 00 00 C3 47 0A [15:35:31]Write i2c OK [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: 01 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: 01 07 00 [15:35:31]MH_I2C_Read... [15:35:31]Read from MH i2c: 01 07 00 C3 47 00 00 00 00 00 FF 0F 1F [15:35:31]RasterBufferAndPrint [15:35:31]line Счет N : (3)335333 [15:35:31]line ИНН: 02508201610067 [15:35:31]line Контрольно-Кассовый Чек [15:35:31]line ПРОДАЖА [15:35:31]line Товар: 4630007400655 [15:35:31]line Семечки ДЖИНН 70г синий [15:35:31]line 1.000 * 70.00 [15:35:31]line = 70.00 [15:35:31]line НДС 12% НСП 1% [15:35:31]line > о реализуемом товаре [15:35:31]line Товар: 4870209743574 [15:35:31]line Арахис BIG BOB Вяленая конина 50 гр [15:35:31]line 1.000 * 60.00 [15:35:31]line = 60.00 [15:35:31]line НДС 12% НСП 1% [15:35:31]line > о реализуемом товаре [15:35:31]line Товар: 4870209745486 [15:35:31]line Арахис BIG BOB Сыр 50 гр [15:35:31]line 1.000 * 60.00 [15:35:31]line = 60.00 [15:35:31]line НДС 12% НСП 1% [15:35:31]line > о реализуемом товаре [15:35:31]line Товар: 4870209743581 [15:35:31]line Арахис BIG BOB Аджика 50 гр [15:35:31]line 1.000 * 60.00 [15:35:31]line = 60.00 [15:35:31]line НДС 12% НСП 1% [15:35:31]line > о реализуемом товаре [15:35:31]line ИТОГО: 250.00 [15:35:31]line НСП 1% : 2.21 [15:35:31]line НДС 12% : 26.54 [15:35:31]line Наличными: 0.00 [15:35:31]line Безнал.: 250.00 [15:35:31]line Место: АЗС № 101 "Партнер Нефть" [15:35:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [15:35:31]line СНО: Общий режим [15:35:31]line Чек 113 30.10.2024 15:35 [15:35:31]line Смена: 556 ФФД: 1.0 [15:35:31]line ЗНМ: 0300000081 [15:35:31]line РНМ: 0000000000091631 [15:35:31]line Версия ККМ: 001 [15:35:31]line Платежная система: Mbank [15:35:31]line ФМ: 0000000000874669 [15:35:31]line ФД: 139429 [15:35:31]line ФПД: 169084455920500 [15:35:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T153535&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139429&fm=169084455920500&tin=02508201610067®Number=0000000000091631&sum=25000 [15:35:31]OFD Sender: Processing packet 139429 [packets to send 34, broken 33] [15:35:31]ProducePacketName [15:35:31]name=ofd_packets/00139429 [15:35:31]OFD Sender: To server: pG, [15:35:31]CommunicateWithHost lk.salyk.kg:30040 [15:35:31]ConnectInit lk.salyk.kg [15:35:31]line 0 [15:35:31]written 0, free lines is 4095 [15:35:32]Connected sock=10 [15:35:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8B 02 00 00 DD 91 83 02 C3 7A 5A 03 01 00 03 00 77 02 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 36 35 35 06 04 29 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 20 D1 81 D0 B8 D0 BD D0 B8 D0 B9 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7C 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 37 34 06 04 38 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 92 D1 8F D0 BB D0 B5 D0 BD D0 B0 D1 8F 20 D0 BA D0 BE D0 BD D0 B8 D0 BD D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 67 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 35 34 38 36 06 04 23 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 A1 D1 8B D1 80 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 33 35 38 31 06 04 29 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 42 49 47 20 42 4F 42 20 D0 90 D0 B4 D0 B6 D0 B8 D0 BA D0 B0 20 35 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 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 5E 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 A8 61 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 71 00 00 00 F4 03 04 00 47 52 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A5 20 02 00 35 04 06 00 99 C8 0A EE A3 74 13 ED 2E 14 DC 05 61 55 [15:35:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 4D 58 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 38 37 34 36 36 39 10 04 04 00 A5 20 02 00 F4 03 04 00 F7 FD 21 67 B6 04 01 00 00 6D 74 CF 41 FF A4 53 01 [15:35:32]CommunicateWithHost err = 0 [15:35:32]CheckOFDResponse [15:35:32]1017 (14) - 77093643461234 [15:35:32]1041 (16) - 0000000000874669 [15:35:32]1040 (4) - 139429 [15:35:32]1012 (4) - 30.10.2024 09:35 [15:35:32]1206 (1) - 0 [15:35:32]OFD Sender: Remove packet 139429 [15:35:32]ProducePacketName [15:35:32]name=ofd_packets/00139429 [15:35:32]NVStorageDeleteData [15:35:32]Write to MH i2c: 01 00 00 FF 47 46 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: 01 07 00 FF 47 00 00 00 00 00 19 0C 72 [15:35:32]RasterBufferAndPrint [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]line [15:35:32]written 0, free lines is 3105 [15:35:32]MH_Cut [15:35:32]Write to MH i2c: D1 01 00 06 48 01 20 [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 01 00 [15:35:32]MH_I2C_Read... [15:35:32]Read from MH i2c: D1 01 00 06 48 00 1F [15:35:32]Write to MH i2c: 01 00 00 07 48 4F [15:35:32]Write i2c OK [15:35:32]MH_I2C_Read... [15:35:32]OFD Sender: No OFD packet to send [15:35:33]*** Cut start [15:35:33]*** Partial cut [15:35:33]*** CUTSNS_PIN = 1 [15:35:33]*** CUTSNS_PIN = 0 [15:35:33]*** Brake cut motor [15:35:34]Read from MH i2c: 01 [15:35:34]MH_I2C_Read... [15:35:34]*** Stop cut motor [15:35:34]*** Cut end [15:35:34]Read from MH i2c: 01 07 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: 01 07 00 07 48 00 00 00 00 00 FF 0F 64 [15:35:34]process_action close_receipt done [15:35:34]requested_data is exist [15:35:34]produce_requested_data [15:35:34]requested_item fm.sn is exist - process it [15:35:34]wFMCommunicate request_size=4 [15:35:34]MH_SAM_APDU [15:35:34]CAPDU: 80 11 00 00 [15:35:34]Write to MH i2c: E2 08 00 08 48 80 11 00 00 00 00 00 00 CA [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [15:35:34]Read from MH i2c: E2 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 17 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 17 00 08 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 25 [15:35:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [15:35:34]wFMCommunicate OK [15:35:34]requested_item fd.num is exist - process it [15:35:34]SAM_PROTO_GetFieldsCounters [15:35:34]wFMCommunicate request_size=4 [15:35:34]MH_SAM_APDU [15:35:34]CAPDU: 80 13 00 00 [15:35:34]Write to MH i2c: E2 08 00 09 48 80 13 00 00 00 00 00 00 CD [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [15:35:34]Read from MH i2c: E2 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 62 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 62 00 09 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A5 20 02 00 0E 04 04 00 2C 02 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 39 [15:35:34]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A5 20 02 00 0E 04 04 00 2C 02 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 [15:35:34]wFMCommunicate OK [15:35:34]SAM_PROTO_GetFieldsCounters done [15:35:34]requested_item shift.num is exist - process it [15:35:34]requested_item shift.opened is exist - process it [15:35:34]req_shift_opened [15:35:34]FM_GetShiftState [15:35:34]SAM_PROTO_GetShiftState [15:35:34]wFMCommunicate request_size=4 [15:35:34]MH_SAM_APDU [15:35:34]CAPDU: 80 13 01 00 [15:35:34]Write to MH i2c: E2 08 00 0A 48 80 13 01 00 00 00 00 00 CF [15:35:34]Write i2c OK [15:35:34]MH_I2C_Read... [15:35:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [15:35:34]Read from MH i2c: E2 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 0E 00 [15:35:34]MH_I2C_Read... [15:35:34]Read from MH i2c: E2 0E 00 0A 48 00 09 00 01 86 76 21 67 00 00 00 00 90 00 5F [15:35:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [15:35:34]wFMCommunicate OK [15:35:34]SAM_PROTO_GetShiftState done [15:35:34]FM_GetShiftState done [15:35:34]req_shift_opened done [15:35:34]requested_item shift.open_date is exist - process it [15:35:34]req_shift_open_date [15:35:34]req_shift_open_date done [15:35:34]produce_requested_data done [15:35:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139429,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [15:35:34]process_action_free close_receipt [15:35:34]json_value_free [15:35:34]json_value_free done [15:35:34]process_json_proto returns [15:35:34]Send response to host [15:35:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139429,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [15:35:34]free response buf [15:35:34]execute_script done [15:35:34]execute_script returns [15:35:34]free content buf [15:35:34]Sock 9.Close socket [15:35:34]Sock 9.Thread stoped [15:35:37]OFD Sender: No OFD packet to send [15:35:42]OFD Sender: No OFD packet to send [15:35:47]OFD Sender: No OFD packet to send [15:35:52]OFD Sender: No OFD packet to send [15:35:57]OFD Sender: No OFD packet to send [15:36:02]OFD Sender: No OFD packet to send [15:36:07]OFD Sender: No OFD packet to send [15:36:12]OFD Sender: No OFD packet to send [15:36:17]OFD Sender: No OFD packet to send [15:36:22]OFD Sender: No OFD packet to send [15:36:27]OFD Sender: No OFD packet to send [15:36:32]OFD Sender: No OFD packet to send [15:36:37]OFD Sender: No OFD packet to send [15:36:42]OFD Sender: No OFD packet to send [15:36:47]OFD Sender: No OFD packet to send [15:36:52]OFD Sender: No OFD packet to send [15:36:57]OFD Sender: No OFD packet to send [15:37:02]OFD Sender: No OFD packet to send [15:37:07]OFD Sender: No OFD packet to send [15:37:12]OFD Sender: No OFD packet to send [15:37:17]OFD Sender: No OFD packet to send [15:37:22]OFD Sender: No OFD packet to send [15:37:27]OFD Sender: No OFD packet to send [15:37:32]OFD Sender: No OFD packet to send [15:37:37]OFD Sender: No OFD packet to send [15:37:42]OFD Sender: No OFD packet to send [15:37:47]OFD Sender: No OFD packet to send [15:37:52]OFD Sender: No OFD packet to send [15:37:57]OFD Sender: No OFD packet to send [15:38:02]OFD Sender: No OFD packet to send [15:38:07]OFD Sender: No OFD packet to send [15:38:12]OFD Sender: No OFD packet to send [15:38:17]OFD Sender: No OFD packet to send [15:38:22]OFD Sender: No OFD packet to send [15:38:27]OFD Sender: No OFD packet to send [15:38:32]OFD Sender: No OFD packet to send [15:38:37]OFD Sender: No OFD packet to send [15:38:42]OFD Sender: No OFD packet to send [15:38:47]OFD Sender: No OFD packet to send [15:38:52]OFD Sender: No OFD packet to send [15:38:57]OFD Sender: No OFD packet to send [15:39:02]OFD Sender: No OFD packet to send [15:39:07]OFD Sender: No OFD packet to send [15:39:12]OFD Sender: No OFD packet to send [15:39:17]OFD Sender: No OFD packet to send [15:39:22]OFD Sender: No OFD packet to send [15:39:27]OFD Sender: No OFD packet to send [15:39:32]OFD Sender: No OFD packet to send [15:39:37]OFD Sender: No OFD packet to send [15:39:42]OFD Sender: No OFD packet to send [15:39:47]OFD Sender: No OFD packet to send [15:39:52]OFD Sender: No OFD packet to send [15:39:57]OFD Sender: No OFD packet to send [15:40:02]OFD Sender: No OFD packet to send [15:40:07]OFD Sender: No OFD packet to send [15:40:12]OFD Sender: No OFD packet to send [15:40:17]OFD Sender: No OFD packet to send [15:40:23]OFD Sender: No OFD packet to send [15:40:28]OFD Sender: No OFD packet to send [15:40:33]OFD Sender: No OFD packet to send [15:40:38]OFD Sender: No OFD packet to send [15:40:43]OFD Sender: No OFD packet to send [15:40:48]OFD Sender: No OFD packet to send [15:40:53]OFD Sender: No OFD packet to send [15:40:58]OFD Sender: No OFD packet to send [15:41:03]OFD Sender: No OFD packet to send [15:41:08]OFD Sender: No OFD packet to send [15:41:13]OFD Sender: No OFD packet to send [15:41:18]OFD Sender: No OFD packet to send [15:41:23]OFD Sender: No OFD packet to send [15:41:28]OFD Sender: No OFD packet to send [15:41:33]OFD Sender: No OFD packet to send [15:41:38]OFD Sender: No OFD packet to send [15:41:43]OFD Sender: No OFD packet to send [15:41:48]OFD Sender: No OFD packet to send [15:41:53]OFD Sender: No OFD packet to send [15:41:58]OFD Sender: No OFD packet to send [15:42:03]OFD Sender: No OFD packet to send [15:42:08]OFD Sender: No OFD packet to send [15:42:13]OFD Sender: No OFD packet to send [15:42:18]OFD Sender: No OFD packet to send [15:42:23]OFD Sender: No OFD packet to send [15:42:28]OFD Sender: No OFD packet to send [15:42:33]OFD Sender: No OFD packet to send [15:42:38]OFD Sender: No OFD packet to send [15:42:43]OFD Sender: No OFD packet to send [15:42:48]OFD Sender: No OFD packet to send [15:42:53]OFD Sender: No OFD packet to send [15:42:58]OFD Sender: No OFD packet to send [15:43:03]OFD Sender: No OFD packet to send [15:43:08]OFD Sender: No OFD packet to send [15:43:13]OFD Sender: No OFD packet to send [15:43:18]OFD Sender: No OFD packet to send [15:43:23]OFD Sender: No OFD packet to send [15:43:28]OFD Sender: No OFD packet to send [15:43:33]OFD Sender: No OFD packet to send [15:43:38]OFD Sender: No OFD packet to send [15:43:43]OFD Sender: No OFD packet to send [15:43:48]OFD Sender: No OFD packet to send [15:43:53]OFD Sender: No OFD packet to send [15:43:58]OFD Sender: No OFD packet to send [15:44:03]OFD Sender: No OFD packet to send [15:44:08]OFD Sender: No OFD packet to send [15:44:13]OFD Sender: No OFD packet to send [15:44:18]OFD Sender: No OFD packet to send [15:44:23]OFD Sender: No OFD packet to send [15:44:28]OFD Sender: No OFD packet to send [15:44:33]OFD Sender: No OFD packet to send [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:18]OFD Sender: No OFD packet to send [15:46:23]OFD Sender: No OFD packet to send [15:46:28]OFD Sender: No OFD packet to send [15:46:33]OFD Sender: No OFD packet to send [15:46:38]OFD Sender: No OFD packet to send [15:46:43]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [15:47:48]OFD Sender: No OFD packet to send [15:47:53]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [15:49:38]OFD Sender: No OFD packet to send [15:49:43]OFD Sender: No OFD packet to send [15:49:48]OFD Sender: No OFD packet to send [15:49:53]OFD Sender: No OFD packet to send [15:49:58]OFD Sender: No OFD packet to send [15:50:03]OFD Sender: No OFD packet to send [15:50:08]OFD Sender: No OFD packet to send [15:50:13]OFD Sender: No OFD packet to send [15:50:18]OFD Sender: No OFD packet to send [15:50:23]OFD Sender: No OFD packet to send [15:50:28]OFD Sender: No OFD packet to send [15:50:33]OFD Sender: No OFD packet to send [15:50:38]OFD Sender: No OFD packet to send [15:50:43]OFD Sender: No OFD packet to send [15:50:48]OFD Sender: No OFD packet to send [15:50:53]OFD Sender: No OFD packet to send [15:50:58]OFD Sender: No OFD packet to send [15:51:03]OFD Sender: No OFD packet to send [15:51:08]OFD Sender: No OFD packet to send [15:51:13]OFD Sender: No OFD packet to send [15:51:18]OFD Sender: No OFD packet to send [15:51:23]OFD Sender: No OFD packet to send [15:51:28]OFD Sender: No OFD packet to send [15:51:33]OFD Sender: No OFD packet to send [15:51:38]OFD Sender: No OFD packet to send [15:51:43]OFD Sender: No OFD packet to send [15:51:48]OFD Sender: No OFD packet to send [15:51:53]OFD Sender: No OFD packet to send [15:51:58]OFD Sender: No OFD packet to send [15:52:03]OFD Sender: No OFD packet to send [15:52:08]OFD Sender: No OFD packet to send [15:52:13]OFD Sender: No OFD packet to send [15:52:18]OFD Sender: No OFD packet to send [15:52:23]OFD Sender: No OFD packet to send [15:52:28]OFD Sender: No OFD packet to send [15:52:33]OFD Sender: No OFD packet to send [15:52:38]OFD Sender: No OFD packet to send [15:52:43]OFD Sender: No OFD packet to send [15:52:48]OFD Sender: No OFD packet to send [15:52:53]OFD Sender: No OFD packet to send [15:52:58]OFD Sender: No OFD packet to send [15:53:03]OFD Sender: No OFD packet to send [15:53:08]OFD Sender: No OFD packet to send [15:53:13]OFD Sender: No OFD packet to send [15:53:18]OFD Sender: No OFD packet to send [15:53:23]OFD Sender: No OFD packet to send [15:53:28]OFD Sender: No OFD packet to send [15:53:33]OFD Sender: No OFD packet to send [15:53:38]OFD Sender: No OFD packet to send [15:53:43]OFD Sender: No OFD packet to send [15:53:48]OFD Sender: No OFD packet to send [15:53:53]OFD Sender: No OFD packet to send [15:53:58]OFD Sender: No OFD packet to send [15:54:03]OFD Sender: No OFD packet to send [15:54:08]OFD Sender: No OFD packet to send [15:54:13]OFD Sender: No OFD packet to send [15:54:18]OFD Sender: No OFD packet to send [15:54:23]OFD Sender: No OFD packet to send [15:54:28]OFD Sender: No OFD packet to send [15:54:33]OFD Sender: No OFD packet to send [15:54:38]OFD Sender: No OFD packet to send [15:54:43]OFD Sender: No OFD packet to send [15:54:48]OFD Sender: No OFD packet to send [15:54:53]OFD Sender: No OFD packet to send [15:54:58]OFD Sender: No OFD packet to send [15:55:03]OFD Sender: No OFD packet to send [15:55:08]OFD Sender: No OFD packet to send [15:55:13]OFD Sender: No OFD packet to send [15:55:18]OFD Sender: No OFD packet to send [15:55:23]OFD Sender: No OFD packet to send [15:55:28]OFD Sender: No OFD packet to send [15:55:33]OFD Sender: No OFD packet to send [15:55:38]OFD Sender: No OFD packet to send [15:55:43]OFD Sender: No OFD packet to send [15:55:48]OFD Sender: No OFD packet to send [15:55:53]OFD Sender: No OFD packet to send [15:55:58]OFD Sender: No OFD packet to send [15:56:03]OFD Sender: No OFD packet to send [15:56:08]OFD Sender: No OFD packet to send [15:56:13]OFD Sender: No OFD packet to send [15:56:18]OFD Sender: No OFD packet to send [15:56:23]OFD Sender: No OFD packet to send [15:56:28]OFD Sender: No OFD packet to send [15:56:33]OFD Sender: No OFD packet to send [15:56:38]OFD Sender: No OFD packet to send [15:56:43]OFD Sender: No OFD packet to send [15:56:48]OFD Sender: No OFD packet to send [15:56:53]OFD Sender: No OFD packet to send [15:56:58]OFD Sender: No OFD packet to send [15:57:03]OFD Sender: No OFD packet to send [15:57:08]OFD Sender: No OFD packet to send [15:57:13]OFD Sender: No OFD packet to send [15:57:18]OFD Sender: No OFD packet to send [15:57:23]OFD Sender: No OFD packet to send [15:57:28]OFD Sender: No OFD packet to send [15:57:33]OFD Sender: No OFD packet to send [15:57:38]OFD Sender: No OFD packet to send [15:57:43]OFD Sender: No OFD packet to send [15:57:48]OFD Sender: No OFD packet to send [15:57:53]OFD Sender: No OFD packet to send [15:57:58]OFD Sender: No OFD packet to send [15:58:03]OFD Sender: No OFD packet to send [15:58:08]OFD Sender: No OFD packet to send [15:58:13]OFD Sender: No OFD packet to send [15:58:18]OFD Sender: No OFD packet to send [15:58:23]OFD Sender: No OFD packet to send [15:58:28]OFD Sender: No OFD packet to send [15:58:33]OFD Sender: No OFD packet to send [15:58:38]OFD Sender: No OFD packet to send [15:58:43]OFD Sender: No OFD packet to send [15:58:48]OFD Sender: No OFD packet to send [15:58:53]OFD Sender: No OFD packet to send [15:58:58]OFD Sender: No OFD packet to send [15:59:03]OFD Sender: No OFD packet to send [15:59:08]OFD Sender: No OFD packet to send [15:59:13]OFD Sender: No OFD packet to send [15:59:18]OFD Sender: No OFD packet to send [15:59:23]OFD Sender: No OFD packet to send [15:59:28]OFD Sender: No OFD packet to send [15:59:33]OFD Sender: No OFD packet to send [15:59:38]OFD Sender: No OFD packet to send [15:59:43]OFD Sender: No OFD packet to send [15:59:48]OFD Sender: No OFD packet to send [15:59:54]OFD Sender: No OFD packet to send [15:59:59]OFD Sender: No OFD packet to send [16:00:04]OFD Sender: No OFD packet to send [16:00:09]OFD Sender: No OFD packet to send [16:00:14]OFD Sender: No OFD packet to send [16:00:19]OFD Sender: No OFD packet to send [16:00:24]OFD Sender: No OFD packet to send [16:00:29]OFD Sender: No OFD packet to send [16:00:34]OFD Sender: No OFD packet to send [16:00:39]OFD Sender: No OFD packet to send [16:00:44]OFD Sender: No OFD packet to send [16:00:49]OFD Sender: No OFD packet to send [16:00:54]OFD Sender: No OFD packet to send [16:00:59]OFD Sender: No OFD packet to send [16:01:04]OFD Sender: No OFD packet to send [16:01:09]OFD Sender: No OFD packet to send [16:01:14]OFD Sender: No OFD packet to send [16:01:19]OFD Sender: No OFD packet to send [16:01:24]OFD Sender: No OFD packet to send [16:01:29]OFD Sender: No OFD packet to send [16:01:34]OFD Sender: No OFD packet to send [16:01:39]OFD Sender: No OFD packet to send [16:01:44]OFD Sender: No OFD packet to send [16:01:49]OFD Sender: No OFD packet to send [16:01:54]OFD Sender: No OFD packet to send [16:01:59]OFD Sender: No OFD packet to send [16:02:04]OFD Sender: No OFD packet to send [16:02:09]OFD Sender: No OFD packet to send [16:02:14]OFD Sender: No OFD packet to send [16:02:19]OFD Sender: No OFD packet to send [16:02:24]OFD Sender: No OFD packet to send [16:02:29]OFD Sender: No OFD packet to send [16:02:34]OFD Sender: No OFD packet to send [16:02:39]OFD Sender: No OFD packet to send [16:02:44]OFD Sender: No OFD packet to send [16:02:49]OFD Sender: No OFD packet to send [16:02:54]OFD Sender: No OFD packet to send [16:02:59]OFD Sender: No OFD packet to send [16:03:04]OFD Sender: No OFD packet to send [16:03:09]OFD Sender: No OFD packet to send [16:03:14]OFD Sender: No OFD packet to send [16:03:19]OFD Sender: No OFD packet to send [16:03:24]OFD Sender: No OFD packet to send [16:03:29]OFD Sender: No OFD packet to send [16:03:34]OFD Sender: No OFD packet to send [16:03:39]OFD Sender: No OFD packet to send [16:03:44]OFD Sender: No OFD packet to send [16:03:49]OFD Sender: No OFD packet to send [16:03:54]OFD Sender: No OFD packet to send [16:03:59]OFD Sender: No OFD packet to send [16:04:04]OFD Sender: No OFD packet to send [16:04:09]OFD Sender: No OFD packet to send [16:04:14]OFD Sender: No OFD packet to send [16:04:19]OFD Sender: No OFD packet to send [16:04:24]OFD Sender: No OFD packet to send [16:04:29]OFD Sender: No OFD packet to send [16:04:34]OFD Sender: No OFD packet to send [16:04:39]OFD Sender: No OFD packet to send [16:04:42]accept exits with 8 [16:04:42]New connection [16:04:42]New thread 3067141476 created [16:04:42]Thread 3067284836 joined [16:04:42]Waiting for new connection... [16:04:42] Sock 8.Parse request [16:04:42]Sock 8.Check first char [16:04:42]Sock 8.First char is OK [16:04:42]request: POST /json_proto HTTP/1.0 [16:04:42]Method: POST [16:04:42]URL: /json_proto [16:04:42]Method is POST - this is cgi request [16:04:42]url: /json_proto [16:04:42]query_string will be loaded in cgi processing [16:04:42]execute_cgi json_proto POST (null) [16:04:42]execute_cgi path=json_proto method=POST [16:04:42]POST find Content-Length [16:04:42]Host: 172.17.50.196:8080 [16:04:42]Content-Length: 897 [16:04:42]Content-Type: application/json [16:04:42] [16:04:42]POST finish read [16:04:42]Found Content-Length = 897 [16:04:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335334", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 344.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:42]execute_script... [16:04: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 : (3)335334", "tax_sys" : 0, "items" : [ { "code": "46230614", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Red Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 2.000, "sum" : 190.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 344.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:04:42]POST & json_proto [16:04:42]process_json_proto [16:04:42]json parsed OK: [16:04:42]protocol is kg_v1.0 [16:04:42]action value=close_receipt [16:04:42]process_action close_receipt [16:04:42]cmd_close_receipt [16:04:42]MH_GetDate [16:04:42]Write to MH i2c: F0 00 00 0B 48 42 [16:04:42]Write i2c OK [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: F0 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: F0 09 00 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: F0 09 00 0B 48 00 20 59 22 67 72 0D 1C 67 4F [16:04:42]GetLastDocTimeStamp 1730302535 [16:04:42]current date 1730304288 [16:04:42]FM_GetShiftState [16:04:42]SAM_PROTO_GetShiftState [16:04:42]wFMCommunicate request_size=4 [16:04:42]MH_SAM_APDU [16:04:42]CAPDU: 80 13 01 00 [16:04:42]Write to MH i2c: E2 08 00 0C 48 80 13 01 00 00 00 00 00 D1 [16:04:42]Write i2c OK [16:04:42]MH_I2C_Read... [16:04:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:42]Read from MH i2c: E2 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: E2 0E 00 [16:04:42]MH_I2C_Read... [16:04:42]Read from MH i2c: E2 0E 00 0C 48 00 09 00 01 86 76 21 67 00 00 00 00 90 00 61 [16:04:42]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:04:42]wFMCommunicate OK [16:04:42]SAM_PROTO_GetShiftState done [16:04:42]FM_GetShiftState done [16:04:42]opened in 1730246278 [16:04:42]opened+sec_in_day 1730332678 [16:04:42]quantity*price = 15400 [16:04:42]sum+1 = 15401 [16:04:42]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000481453 Напиток энерг Nitro Max 0,45 ж/б 2.000 * 95.00 = 190.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 344.00 НСП 1% : 3.04 НДС 12% : 36.53 Наличными: 344.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 114 30.10.2024 16:04 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139430 ФПД: 14803105898654 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T160448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139430&fm=14803105898654&tin=02508201610067®Number=0000000000091631&sum=34400 0 [16:04:43]StoreToDocumentArchive [16:04:43]shift 556 fd 139430 [16:04:43]save to /storage/0556/doc_00139430 [16:04:43]save last doc name /storage/0556/doc_00139430 to /storage/kkm_last_doc_name [16:04:43]save OK [16:04:43]Clear old archive folders... [16:04:43]ProcessDocumentItem done err = 0, tmpTLVsize=392 [16:04:43]tlvbuf is 011E4FE0 [16:04:43]SAM_PROTO_ClearQueue [16:04:43]wFMCommunicate request_size=4 [16:04:43]MH_SAM_APDU [16:04:43]CAPDU: 80 09 00 00 [16:04:43]Write to MH i2c: E2 08 00 19 48 80 09 00 00 00 00 00 00 D3 [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:04:43]Read from MH i2c: E2 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 03 00 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 03 00 19 48 00 90 00 D5 [16:04:43]RAPDU: 90 00 [16:04:43]wFMCommunicate OK [16:04:43]SAM_PROTO_ClearQueue done [16:04:43]KKMCreateOFDPacket [16:04:43]OFDProtocolAddRootSTLVToBuf [16:04:43]FM_MakeSignedData [16:04:43]FM_MakeSignedData [16:04:43]SAM_PROTO_SignData [16:04:43]wFMCommunicate request_size=4 [16:04:43]MH_SAM_APDU [16:04:43]CAPDU: 80 0D 01 02 [16:04:43]Write to MH i2c: E2 08 00 1A 48 80 0D 01 02 00 00 00 00 DB [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:04:43]Read from MH i2c: E2 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 03 00 [16:04:43]MH_I2C_Read... [16:04:43]Read from MH i2c: E2 03 00 1A 48 00 90 00 D6 [16:04:43]RAPDU: 90 00 [16:04:43]wFMCommunicate OK [16:04:43]wFMCommunicate request_size=255 [16:04:43]MH_SAM_APDU [16:04:43]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [16:04:43]Write to MH i2c: E2 02 01 1B 48 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 69 [16:04:43]Write i2c OK [16:04:43]MH_I2C_Read... [16:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:44]Read from MH i2c: E2 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 03 00 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 03 00 1B 48 00 90 00 D7 [16:04:44]RAPDU: 90 00 [16:04:44]wFMCommunicate OK [16:04:44]wFMCommunicate request_size=151 [16:04:44]MH_SAM_APDU [16:04:44]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 60 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 20 59 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 20 02 00 35 04 06 00 0D 76 9D DE 60 9E [16:04:44]Write to MH i2c: E2 9A 00 1C 48 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 60 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 20 59 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 20 02 00 35 04 06 00 0D 76 9D DE 60 9E 00 00 07 [16:04:44]Write i2c OK [16:04:44]MH_I2C_Read... [16:04:44]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:04:44]Read from MH i2c: E2 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 03 00 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 03 00 1C 48 00 90 00 D8 [16:04:44]RAPDU: 90 00 [16:04:44]wFMCommunicate OK [16:04:44]wFMCommunicate request_size=4 [16:04:44]MH_SAM_APDU [16:04:44]CAPDU: 80 0D 03 02 [16:04:44]Write to MH i2c: E2 08 00 1D 48 80 0D 03 02 00 00 00 00 E0 [16:04:44]Write i2c OK [16:04:44]MH_I2C_Read... [16:04:44]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:04:44]Read from MH i2c: E2 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 0B 00 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 0B 00 1D 48 00 71 30 CC 19 23 A8 59 BB 90 00 46 [16:04:44]RAPDU: 71 30 CC 19 23 A8 59 BB 90 00 [16:04:44]wFMCommunicate OK [16:04:44]SAM_PROTO_SignData done [16:04:44]FM_MakeSignedData done [16:04:44]CreateOFDProtocolMessage [16:04:44]wFMCommunicate request_size=4 [16:04:44]MH_SAM_APDU [16:04:44]CAPDU: 80 11 00 00 [16:04:44]Write to MH i2c: E2 08 00 1E 48 80 11 00 00 00 00 00 00 E0 [16:04:44]OFD Sender: No OFD packet to send [16:04:44]Write i2c OK [16:04:44]MH_I2C_Read... [16:04:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:44]Read from MH i2c: E2 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 17 00 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: E2 17 00 1E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3B [16:04:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:04:44]wFMCommunicate OK [16:04:44]CreateOFDProtocolMessage done [16:04:44]OFDSenderStorePacket 139430 [16:04:44]StoreOFDPacket docnum=139430 [16:04:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9C 01 00 00 F3 DA 94 01 9E 80 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 60 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 20 59 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 20 02 00 35 04 06 00 0D 76 9D DE 60 9E 71 30 CC 19 23 A8 59 BB [16:04:44]CheckFolder [16:04:44]dirname=/storage/ofd_packets [16:04:44]CheckFolder done [16:04:44]ProducePacketName [16:04:44]name=ofd_packets/00139430 [16:04:44]NVStorageSaveData ofd_packets/00139430 [16:04:44]File name is /storage/ofd_packets/00139430 [16:04:44]Write 442 bytes [16:04:44]NVStorageSaveData done [16:04:44]OFDSenderStorePacket done [16:04:44]KKMCreateOFDPacket done [16:04:44]NVStorageSaveData kkm_last_timestamp [16:04:44]File name is /storage/kkm_last_timestamp [16:04:44]Write 4 bytes [16:04:44]NVStorageSaveData done [16:04:44]ExternCall_PrintAddStr [16:04:44]wPrintStart [16:04:44]Write to MH i2c: 01 00 00 1F 48 67 [16:04:44]Write i2c OK [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: 01 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: 01 07 00 [16:04:44]MH_I2C_Read... [16:04:44]Read from MH i2c: 01 07 00 1F 48 00 00 00 00 00 FF 0F 7C [16:04:44]RasterBufferAndPrint [16:04:44]line Счет N : (3)335334 [16:04:44]line ИНН: 02508201610067 [16:04:44]line Контрольно-Кассовый Чек [16:04:44]line ПРОДАЖА [16:04:44]line Товар: 46230614 [16:04:44]line Сигареты Richmond Red Edition [16:04:44]line 1.000 * 154.00 [16:04:44]line = 154.00 [16:04:44]line НДС 12% НСП 1% [16:04:44]line > о реализуемом товаре [16:04:44]line Товар: 4700000481453 [16:04:44]line Напиток энерг Nitro Max 0,45 ж/б [16:04:44]line 2.000 * 95.00 [16:04:44]line = 190.00 [16:04:44]line НДС 12% НСП 1% [16:04:44]line > о реализуемом товаре [16:04:44]line ИТОГО: 344.00 [16:04:44]line НСП 1% : 3.04 [16:04:44]line НДС 12% : 36.53 [16:04:44]line Наличными: 344.00 [16:04:44]line Безнал.: 0.00 [16:04:44]line Место: АЗС № 101 "Партнер Нефть" [16:04:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:04:44]line СНО: Общий режим [16:04:44]line Чек 114 30.10.2024 16:04 [16:04:44]line Смена: 556 ФФД: 1.0 [16:04:44]line ЗНМ: 0300000081 [16:04:44]line РНМ: 0000000000091631 [16:04:44]line Версия ККМ: 001 [16:04:44]line ФМ: 0000000000874669 [16:04:44]line ФД: 139430 [16:04:44]line ФПД: 14803105898654 [16:04:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T160448&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139430&fm=14803105898654&tin=02508201610067®Number=0000000000091631&sum=34400 [16:04:44]OFD Sender: Processing packet 139430 [packets to send 34, broken 33] [16:04:44]ProducePacketName [16:04:44]name=ofd_packets/00139430 [16:04:44]OFD Sender: To server: pG, [16:04:44]CommunicateWithHost lk.salyk.kg:30040 [16:04:44]ConnectInit lk.salyk.kg [16:04:44]line 0 [16:04:44]written 0, free lines is 4095 [16:04:44]Connected sock=10 [16:04:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9C 01 00 00 F3 DA 94 01 9E 80 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 32 33 30 36 31 34 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 52 65 64 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 38 4A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 86 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 30 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 45 0E 00 00 00 00 07 04 06 00 60 86 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 72 00 00 00 F4 03 04 00 20 59 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 20 02 00 35 04 06 00 0D 76 9D DE 60 9E 71 30 CC 19 23 A8 59 BB [16:04:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 55 10 47 00 CA B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A6 20 02 00 F4 03 04 00 D0 04 22 67 B6 04 01 00 00 FB 95 AB 9F ED 4D DA 3A [16:04:44]CommunicateWithHost err = 0 [16:04:44]CheckOFDResponse [16:04:44]1017 (14) - 77093643461234 [16:04:44]1041 (16) - 0000000000874669 [16:04:44]1040 (4) - 139430 [16:04:44]1012 (4) - 30.10.2024 10:05 [16:04:44]1206 (1) - 0 [16:04:44]OFD Sender: Remove packet 139430 [16:04:44]ProducePacketName [16:04:44]name=ofd_packets/00139430 [16:04:44]NVStorageDeleteData [16:04:45]Write to MH i2c: 01 00 00 4F 48 97 [16:04:45]Write i2c OK [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: 01 [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: 01 07 00 [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: 01 07 00 4F 48 00 00 00 00 00 8C 0C 36 [16:04:45]RasterBufferAndPrint [16:04:45]line [16:04:45]line [16:04:45]line [16:04:45]line [16:04:45]line [16:04:45]written 0, free lines is 3218 [16:04:45]MH_Cut [16:04:45]Write to MH i2c: D1 01 00 56 48 01 70 [16:04:45]Write i2c OK [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: D1 [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: D1 01 00 [16:04:45]MH_I2C_Read... [16:04:45]Read from MH i2c: D1 01 00 56 48 00 6F [16:04:45]Write to MH i2c: 01 00 00 57 48 9F [16:04:45]Write i2c OK [16:04:45]MH_I2C_Read... [16:04:45]OFD Sender: No OFD packet to send [16:04:45]*** Cut start [16:04:45]*** Partial cut [16:04:45]*** CUTSNS_PIN = 1 [16:04:45]*** CUTSNS_PIN = 0 [16:04:46]*** Brake cut motor [16:04:46]Read from MH i2c: 01 [16:04:46]MH_I2C_Read... [16:04:46]*** Stop cut motor [16:04:46]*** Cut end [16:04:46]Read from MH i2c: 01 07 00 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: 01 07 00 57 48 00 00 00 00 00 FF 0F B4 [16:04:46]process_action close_receipt done [16:04:46]requested_data is exist [16:04:46]produce_requested_data [16:04:46]requested_item fm.sn is exist - process it [16:04:46]wFMCommunicate request_size=4 [16:04:46]MH_SAM_APDU [16:04:46]CAPDU: 80 11 00 00 [16:04:46]Write to MH i2c: E2 08 00 58 48 80 11 00 00 00 00 00 00 1A [16:04:46]Write i2c OK [16:04:46]MH_I2C_Read... [16:04:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:04:46]Read from MH i2c: E2 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 17 00 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 17 00 58 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 75 [16:04:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:04:46]wFMCommunicate OK [16:04:46]requested_item fd.num is exist - process it [16:04:46]SAM_PROTO_GetFieldsCounters [16:04:46]wFMCommunicate request_size=4 [16:04:46]MH_SAM_APDU [16:04:46]CAPDU: 80 13 00 00 [16:04:46]Write to MH i2c: E2 08 00 59 48 80 13 00 00 00 00 00 00 1D [16:04:46]Write i2c OK [16:04:46]MH_I2C_Read... [16:04:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:04:46]Read from MH i2c: E2 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 62 00 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 62 00 59 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A6 20 02 00 0E 04 04 00 2C 02 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 8D [16:04:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A6 20 02 00 0E 04 04 00 2C 02 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 [16:04:46]wFMCommunicate OK [16:04:46]SAM_PROTO_GetFieldsCounters done [16:04:46]requested_item shift.num is exist - process it [16:04:46]requested_item shift.opened is exist - process it [16:04:46]req_shift_opened [16:04:46]FM_GetShiftState [16:04:46]SAM_PROTO_GetShiftState [16:04:46]wFMCommunicate request_size=4 [16:04:46]MH_SAM_APDU [16:04:46]CAPDU: 80 13 01 00 [16:04:46]Write to MH i2c: E2 08 00 5A 48 80 13 01 00 00 00 00 00 1F [16:04:46]Write i2c OK [16:04:46]MH_I2C_Read... [16:04:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:04:46]Read from MH i2c: E2 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 0E 00 [16:04:46]MH_I2C_Read... [16:04:46]Read from MH i2c: E2 0E 00 5A 48 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AF [16:04:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:04:46]wFMCommunicate OK [16:04:46]SAM_PROTO_GetShiftState done [16:04:46]FM_GetShiftState done [16:04:46]req_shift_opened done [16:04:46]requested_item shift.open_date is exist - process it [16:04:46]req_shift_open_date [16:04:46]req_shift_open_date done [16:04:46]produce_requested_data done [16:04:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139430,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:04:46]process_action_free close_receipt [16:04:46]json_value_free [16:04:46]json_value_free done [16:04:46]process_json_proto returns [16:04:46]Send response to host [16:04:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139430,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:04:46]free response buf [16:04:46]execute_script done [16:04:46]execute_script returns [16:04:46]free content buf [16:04:46]Sock 8.Close socket [16:04:46]Sock 8.Thread stoped [16:04:50]OFD Sender: No OFD packet to send [16:04:55]OFD Sender: No OFD packet to send [16:05:00]OFD Sender: No OFD packet to send [16:05:05]OFD Sender: No OFD packet to send [16:05:10]OFD Sender: No OFD packet to send [16:05:15]OFD Sender: No OFD packet to send [16:05:20]OFD Sender: No OFD packet to send [16:05:25]OFD Sender: No OFD packet to send [16:05:30]OFD Sender: No OFD packet to send [16:05:35]OFD Sender: No OFD packet to send [16:05:40]OFD Sender: No OFD packet to send [16:05: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 [16:07:25]OFD Sender: No OFD packet to send [16:07:30]OFD Sender: No OFD packet to send [16:07:35]OFD Sender: No OFD packet to send [16:07:40]OFD Sender: No OFD packet to send [16:07:45]OFD Sender: No OFD packet to send [16:07:50]OFD Sender: No OFD packet to send [16:07:55]OFD Sender: No OFD packet to send [16:08:00]OFD Sender: No OFD packet to send [16:08:05]OFD Sender: No OFD packet to send [16:08:10]OFD Sender: No OFD packet to send [16:08:15]OFD Sender: No OFD packet to send [16:08:20]OFD Sender: No OFD packet to send [16:08:25]OFD Sender: No OFD packet to send [16:08:30]OFD Sender: No OFD packet to send [16:08:35]OFD Sender: No OFD packet to send [16:08:40]OFD Sender: No OFD packet to send [16:08:45]OFD Sender: No OFD packet to send [16:08:50]OFD Sender: No OFD packet to send [16:08:55]OFD Sender: No OFD packet to send [16:09:00]OFD Sender: No OFD packet to send [16:09:05]OFD Sender: No OFD packet to send [16:09:10]OFD Sender: No OFD packet to send [16:09:15]OFD Sender: No OFD packet to send [16:09:20]OFD Sender: No OFD packet to send [16:09:25]OFD Sender: No OFD packet to send [16:09:30]OFD Sender: No OFD packet to send [16:09:35]OFD Sender: No OFD packet to send [16:09:40]OFD Sender: No OFD packet to send [16:09:45]OFD Sender: No OFD packet to send [16:09:50]OFD Sender: No OFD packet to send [16:09:55]OFD Sender: No OFD packet to send [16:10:00]OFD Sender: No OFD packet to send [16:10:05]OFD Sender: No OFD packet to send [16:10:10]OFD Sender: No OFD packet to send [16:10:15]OFD Sender: No OFD packet to send [16:10:20]OFD Sender: No OFD packet to send [16:10:25]OFD Sender: No OFD packet to send [16:10:30]OFD Sender: No OFD packet to send [16:10:35]OFD Sender: No OFD packet to send [16:10:40]OFD Sender: No OFD packet to send [16:10:45]OFD Sender: No OFD packet to send [16:10:50]OFD Sender: No OFD packet to send [16:10:55]OFD Sender: No OFD packet to send [16:11:00]OFD Sender: No OFD packet to send [16:11:05]OFD Sender: No OFD packet to send [16:11:10]OFD Sender: No OFD packet to send [16:11:15]OFD Sender: No OFD packet to send [16:11:20]OFD Sender: No OFD packet to send [16:11:25]OFD Sender: No OFD packet to send [16:11:30]OFD Sender: No OFD packet to send [16:11:35]OFD Sender: No OFD packet to send [16:11:40]OFD Sender: No OFD packet to send [16:11:45]OFD Sender: No OFD packet to send [16:11:50]OFD Sender: No OFD packet to send [16:11:55]OFD Sender: No OFD packet to send [16:12:00]OFD Sender: No OFD packet to send [16:12:05]OFD Sender: No OFD packet to send [16:12:10]OFD Sender: No OFD packet to send [16:12:15]OFD Sender: No OFD packet to send [16:12:20]OFD Sender: No OFD packet to send [16:12:25]OFD Sender: No OFD packet to send [16:12:30]OFD Sender: No OFD packet to send [16:12:35]OFD Sender: No OFD packet to send [16:12:40]OFD Sender: No OFD packet to send [16:12:45]OFD Sender: No OFD packet to send [16:12:50]OFD Sender: No OFD packet to send [16:12:55]OFD Sender: No OFD packet to send [16:13:00]OFD Sender: No OFD packet to send [16:13:05]OFD Sender: No OFD packet to send [16:13:10]OFD Sender: No OFD packet to send [16:13:15]OFD Sender: No OFD packet to send [16:13:20]OFD Sender: No OFD packet to send [16:13:25]OFD Sender: No OFD packet to send [16:13:30]OFD Sender: No OFD packet to send [16:13:35]OFD Sender: No OFD packet to send [16:13:40]OFD Sender: No OFD packet to send [16:13:45]OFD Sender: No OFD packet to send [16:13:50]OFD Sender: No OFD packet to send [16:13:55]OFD Sender: No OFD packet to send [16:14:00]OFD Sender: No OFD packet to send [16:14:05]OFD Sender: No OFD packet to send [16:14:10]OFD Sender: No OFD packet to send [16:14:15]OFD Sender: No OFD packet to send [16:14:20]OFD Sender: No OFD packet to send [16:14:25]OFD Sender: No OFD packet to send [16:14:30]OFD Sender: No OFD packet to send [16:14:35]OFD Sender: No OFD packet to send [16:14:40]OFD Sender: No OFD packet to send [16:14:44]accept exits with 9 [16:14:44]New connection [16:14:44]New thread 3067284836 created [16:14:44]Thread 3067141476 joined [16:14:44]Waiting for new connection... [16:14:44] Sock 9.Parse request [16:14:44]Sock 9.Check first char [16:14:44]Sock 9.First char is OK [16:14:44]request: POST /json_proto HTTP/1.0 [16:14:44]Method: POST [16:14:44]URL: /json_proto [16:14:44]Method is POST - this is cgi request [16:14:44]url: /json_proto [16:14:44]query_string will be loaded in cgi processing [16:14:44]execute_cgi json_proto POST (null) [16:14:44]execute_cgi path=json_proto method=POST [16:14:44]POST find Content-Length [16:14:44]Host: 172.17.50.196:8080 [16:14:44]Content-Length: 678 [16:14:44]Content-Type: application/json [16:14:44] [16:14:44]POST finish read [16:14:44]Found Content-Length = 678 [16:14:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:44]execute_script... [16:14: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)1094610", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 400.00, "total" : 400.00, "payments": [ { "type": 0, "sum" : 400.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:14:44]POST & json_proto [16:14:44]process_json_proto [16:14:44]json parsed OK: [16:14:44]protocol is kg_v1.0 [16:14:44]action value=close_receipt [16:14:44]process_action close_receipt [16:14:44]cmd_close_receipt [16:14:44]MH_GetDate [16:14:44]Write to MH i2c: F0 00 00 5B 48 92 [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: F0 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: F0 09 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: F0 09 00 5B 48 00 7A 5B 22 67 72 0D 1C 67 FB [16:14:44]GetLastDocTimeStamp 1730304288 [16:14:44]current date 1730304890 [16:14:44]FM_GetShiftState [16:14:44]SAM_PROTO_GetShiftState [16:14:44]wFMCommunicate request_size=4 [16:14:44]MH_SAM_APDU [16:14:44]CAPDU: 80 13 01 00 [16:14:44]Write to MH i2c: E2 08 00 5C 48 80 13 01 00 00 00 00 00 21 [16:14:44]Write i2c OK [16:14:44]MH_I2C_Read... [16:14:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:44]Read from MH i2c: E2 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 0E 00 [16:14:44]MH_I2C_Read... [16:14:44]Read from MH i2c: E2 0E 00 5C 48 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B1 [16:14:44]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:14:44]wFMCommunicate OK [16:14:44]SAM_PROTO_GetShiftState done [16:14:44]FM_GetShiftState done [16:14:44]opened in 1730246278 [16:14:44]opened+sec_in_day 1730332678 [16:14:44]quantity*price = 40006 [16:14:44]sum+1 = 40007 [16:14:44]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.06 ИТОГО: 400.00 Внесено: 400.00 СДАЧА: 0.00 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 400.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 115 30.10.2024 16:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139431 ФПД: 183107653211648 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161450&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139431&fm=183107653211648&tin=02508201610067®Number=0000000000091631&sum=40000 [16:14:45]StoreToDocumentArchive [16:14:45]shift 556 fd 139431 [16:14:45]save to /storage/0556/doc_00139431 [16:14:45]save last doc name /storage/0556/doc_00139431 to /storage/kkm_last_doc_name [16:14:45]save OK [16:14:45]Clear old archive folders... [16:14:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:14:45]tlvbuf is 0115A8E0 [16:14:45]SAM_PROTO_ClearQueue [16:14:45]wFMCommunicate request_size=4 [16:14:45]MH_SAM_APDU [16:14:45]CAPDU: 80 09 00 00 [16:14:45]Write to MH i2c: E2 08 00 69 48 80 09 00 00 00 00 00 00 23 [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 03 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 03 00 69 48 00 90 00 25 [16:14:45]RAPDU: 90 00 [16:14:45]wFMCommunicate OK [16:14:45]SAM_PROTO_ClearQueue done [16:14:45]KKMCreateOFDPacket [16:14:45]OFDProtocolAddRootSTLVToBuf [16:14:45]FM_MakeSignedData [16:14:45]FM_MakeSignedData [16:14:45]SAM_PROTO_SignData [16:14:45]wFMCommunicate request_size=4 [16:14:45]MH_SAM_APDU [16:14:45]CAPDU: 80 0D 01 02 [16:14:45]Write to MH i2c: E2 08 00 6A 48 80 0D 01 02 00 00 00 00 2B [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 03 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 03 00 6A 48 00 90 00 26 [16:14:45]RAPDU: 90 00 [16:14:45]wFMCommunicate OK [16:14:45]wFMCommunicate request_size=255 [16:14:45]MH_SAM_APDU [16:14: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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7A 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 20 02 00 35 04 06 00 A6 [16:14:45]Write to MH i2c: E2 02 01 6B 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7A 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 20 02 00 35 04 06 00 A6 00 00 F7 [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 03 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 03 00 6B 48 00 90 00 27 [16:14:45]RAPDU: 90 00 [16:14:45]wFMCommunicate OK [16:14:45]wFMCommunicate request_size=10 [16:14:45]MH_SAM_APDU [16:14:45]CAPDU: 80 0D 02 02 05 89 12 A0 16 00 [16:14:45]Write to MH i2c: E2 0D 00 6C 48 80 0D 02 02 05 00 89 12 A0 16 00 00 00 89 [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 03 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 03 00 6C 48 00 90 00 28 [16:14:45]RAPDU: 90 00 [16:14:45]wFMCommunicate OK [16:14:45]wFMCommunicate request_size=4 [16:14:45]MH_SAM_APDU [16:14:45]CAPDU: 80 0D 03 02 [16:14:45]Write to MH i2c: E2 08 00 6D 48 80 0D 03 02 00 00 00 00 30 [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 0B 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 0B 00 6D 48 00 70 68 72 13 4B A5 05 EB 90 00 6E [16:14:45]RAPDU: 70 68 72 13 4B A5 05 EB 90 00 [16:14:45]wFMCommunicate OK [16:14:45]SAM_PROTO_SignData done [16:14:45]FM_MakeSignedData done [16:14:45]CreateOFDProtocolMessage [16:14:45]wFMCommunicate request_size=4 [16:14:45]MH_SAM_APDU [16:14:45]CAPDU: 80 11 00 00 [16:14:45]Write to MH i2c: E2 08 00 6E 48 80 11 00 00 00 00 00 00 30 [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:45]Read from MH i2c: E2 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 17 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: E2 17 00 6E 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8B [16:14:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:14:45]wFMCommunicate OK [16:14:45]CreateOFDProtocolMessage done [16:14:45]OFDSenderStorePacket 139431 [16:14:45]StoreOFDPacket docnum=139431 [16:14:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 1F 14 07 01 BE 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7A 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 20 02 00 35 04 06 00 A6 89 12 A0 16 00 70 68 72 13 4B A5 05 EB [16:14:45]CheckFolder [16:14:45]dirname=/storage/ofd_packets [16:14:45]CheckFolder done [16:14:45]ProducePacketName [16:14:45]name=ofd_packets/00139431 [16:14:45]NVStorageSaveData ofd_packets/00139431 [16:14:45]File name is /storage/ofd_packets/00139431 [16:14:45]Write 301 bytes [16:14:45]NVStorageSaveData done [16:14:45]OFDSenderStorePacket done [16:14:45]KKMCreateOFDPacket done [16:14:45]NVStorageSaveData kkm_last_timestamp [16:14:45]File name is /storage/kkm_last_timestamp [16:14:45]Write 4 bytes [16:14:45]NVStorageSaveData done [16:14:45]ExternCall_PrintAddStr [16:14:45]wPrintStart [16:14:45]Write to MH i2c: 01 00 00 6F 48 B7 [16:14:45]Write i2c OK [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: 01 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: 01 07 00 [16:14:45]MH_I2C_Read... [16:14:45]Read from MH i2c: 01 07 00 6F 48 00 00 00 00 00 FF 0F CC [16:14:45]RasterBufferAndPrint [16:14:45]line Счет N : (1)1094610 [16:14:45]line ИНН: 02508201610067 [16:14:45]line Контрольно-Кассовый Чек [16:14:45]line ПРОДАЖА [16:14:45]line ТРК (МРК, ГНК) : 33 [16:14:45]line Товар: 2710124130 [16:14:45]line Аи-92-К-2 [16:14:45]line 5.980 * 66.90 [16:14:45]line = 400.06 [16:14:45]line НДС 12% НСП 1% [16:14:45]line > о реализуемом товаре [16:14:45]line ОКРУГЛЕНИЕ: -0.06 [16:14:45]line ИТОГО: 400.00 [16:14:45]line Внесено: 400.00 [16:14:45]line СДАЧА: 0.00 [16:14:45]line НСП 1% : 3.54 [16:14:45]line НДС 12% : 42.48 [16:14:45]line Наличными: 400.00 [16:14:45]line Безнал.: 0.00 [16:14:45]line Место: АЗС № 101 "Партнер Нефть" [16:14:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:14:45]line СНО: Общий режим [16:14:45]line Чек 115 30.10.2024 16:14 [16:14:45]line Смена: 556 ФФД: 1.0 [16:14:45]line ЗНМ: 0300000081 [16:14:45]line РНМ: 0000000000091631 [16:14:45]line Версия ККМ: 001 [16:14:45]line ФМ: 0000000000874669 [16:14:45]line ФД: 139431 [16:14:45]line ФПД: 183107653211648 [16:14:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161450&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139431&fm=183107653211648&tin=02508201610067®Number=0000000000091631&sum=40000 [16:14:46]written 0, free lines is 4095 [16:14:46]OFD Sender: Processing packet 139431 [packets to send 34, broken 33] [16:14:46]ProducePacketName [16:14:46]name=ofd_packets/00139431 [16:14:46]OFD Sender: To server: pG, [16:14:46]CommunicateWithHost lk.salyk.kg:30040 [16:14:46]ConnectInit lk.salyk.kg [16:14:46]Connected sock=10 [16:14:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 1F 14 07 01 BE 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 40 9C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 73 00 00 00 F4 03 04 00 7A 5B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 20 02 00 35 04 06 00 A6 89 12 A0 16 00 70 68 72 13 4B A5 05 EB [16:14:46]Write to MH i2c: 01 00 00 9A 48 E2 [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: 01 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: 01 07 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: 01 07 00 9A 48 00 00 00 00 00 EE 0C E3 [16:14:46]RasterBufferAndPrint [16:14:46]line [16:14:46]line [16:14:46]line [16:14:46]line [16:14:46]line [16:14:46]written 0, free lines is 3316 [16:14:46]MH_Cut [16:14:46]Write to MH i2c: D1 01 00 A1 48 01 BB [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: D1 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: D1 01 00 [16:14:46]MH_I2C_Read... [16:14:46]Read from MH i2c: D1 01 00 A1 48 00 BA [16:14:46]Write to MH i2c: 01 00 00 A2 48 EA [16:14:46]Write i2c OK [16:14:46]MH_I2C_Read... [16:14:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 3C A4 47 00 09 EA A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A7 20 02 00 F4 03 04 00 2A 07 22 67 B6 04 01 00 00 A0 53 7E E8 7A 53 1D 16 [16:14:46]CommunicateWithHost err = 0 [16:14:46]CheckOFDResponse [16:14:46]1017 (14) - 77093643461234 [16:14:46]1041 (16) - 0000000000874669 [16:14:46]1040 (4) - 139431 [16:14:46]1012 (4) - 30.10.2024 10:15 [16:14:46]1206 (1) - 0 [16:14:46]OFD Sender: Remove packet 139431 [16:14:46]ProducePacketName [16:14:46]name=ofd_packets/00139431 [16:14:46]NVStorageDeleteData [16:14:47]OFD Sender: No OFD packet to send [16:14:47]*** Cut start [16:14:47]*** Partial cut [16:14:47]*** CUTSNS_PIN = 1 [16:14:47]*** CUTSNS_PIN = 0 [16:14:47]*** Brake cut motor [16:14:47]Read from MH i2c: 01 [16:14:47]MH_I2C_Read... [16:14:47]*** Stop cut motor [16:14:47]*** Cut end [16:14:47]Read from MH i2c: 01 07 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: 01 07 00 A2 48 00 00 00 00 00 FF 0F FF [16:14:47]process_action close_receipt done [16:14:47]requested_data is exist [16:14:47]produce_requested_data [16:14:47]requested_item fm.sn is exist - process it [16:14:47]wFMCommunicate request_size=4 [16:14:47]MH_SAM_APDU [16:14:47]CAPDU: 80 11 00 00 [16:14:47]Write to MH i2c: E2 08 00 A3 48 80 11 00 00 00 00 00 00 65 [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:14:47]Read from MH i2c: E2 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 17 00 [16:14:47]MH_I2C_Read... [16:14: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 38 37 34 36 36 39 90 00 C0 [16:14:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:14:47]wFMCommunicate OK [16:14:47]requested_item fd.num is exist - process it [16:14:47]SAM_PROTO_GetFieldsCounters [16:14:47]wFMCommunicate request_size=4 [16:14:47]MH_SAM_APDU [16:14:47]CAPDU: 80 13 00 00 [16:14:47]Write to MH i2c: E2 08 00 A4 48 80 13 00 00 00 00 00 00 68 [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:14:47]Read from MH i2c: E2 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 62 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 62 00 A4 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A7 20 02 00 0E 04 04 00 2C 02 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 DC [16:14:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A7 20 02 00 0E 04 04 00 2C 02 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 [16:14:47]wFMCommunicate OK [16:14:47]SAM_PROTO_GetFieldsCounters done [16:14:47]requested_item shift.num is exist - process it [16:14:47]requested_item shift.opened is exist - process it [16:14:47]req_shift_opened [16:14:47]FM_GetShiftState [16:14:47]SAM_PROTO_GetShiftState [16:14:47]wFMCommunicate request_size=4 [16:14:47]MH_SAM_APDU [16:14:47]CAPDU: 80 13 01 00 [16:14:47]Write to MH i2c: E2 08 00 A5 48 80 13 01 00 00 00 00 00 6A [16:14:47]Write i2c OK [16:14:47]MH_I2C_Read... [16:14:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:14:47]Read from MH i2c: E2 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 0E 00 [16:14:47]MH_I2C_Read... [16:14:47]Read from MH i2c: E2 0E 00 A5 48 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FA [16:14:47]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:14:47]wFMCommunicate OK [16:14:47]SAM_PROTO_GetShiftState done [16:14:47]FM_GetShiftState done [16:14:47]req_shift_opened done [16:14:47]requested_item shift.open_date is exist - process it [16:14:47]req_shift_open_date [16:14:47]req_shift_open_date done [16:14:47]produce_requested_data done [16:14:47]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139431,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:14:47]process_action_free close_receipt [16:14:47]json_value_free [16:14:47]json_value_free done [16:14:47]process_json_proto returns [16:14:47]Send response to host [16:14:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139431,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:14:47]free response buf [16:14:47]execute_script done [16:14:47]execute_script returns [16:14:47]free content buf [16:14:47]Sock 9.Close socket [16:14:47]Sock 9.Thread stoped [16:14:52]OFD Sender: No OFD packet to send [16:14:57]OFD Sender: No OFD packet to send [16:15:02]OFD Sender: No OFD packet to send [16:15:07]OFD Sender: No OFD packet to send [16:15:12]OFD Sender: No OFD packet to send [16:15:17]OFD Sender: No OFD packet to send [16:15:22]OFD Sender: No OFD packet to send [16:15:27]OFD Sender: No OFD packet to send [16:15:32]OFD Sender: No OFD packet to send [16:15:37]OFD Sender: No OFD packet to send [16:15:42]OFD Sender: No OFD packet to send [16:15:47]OFD Sender: No OFD packet to send [16:15:52]OFD Sender: No OFD packet to send [16:15:57]OFD Sender: No OFD packet to send [16:16:02]OFD Sender: No OFD packet to send [16:16:07]OFD Sender: No OFD packet to send [16:16:12]OFD Sender: No OFD packet to send [16:16:17]OFD Sender: No OFD packet to send [16:16:22]OFD Sender: No OFD packet to send [16:16:27]OFD Sender: No OFD packet to send [16:16:32]OFD Sender: No OFD packet to send [16:16:37]OFD Sender: No OFD packet to send [16:16:42]OFD Sender: No OFD packet to send [16:16:47]OFD Sender: No OFD packet to send [16:16:52]OFD Sender: No OFD packet to send [16:16:57]OFD Sender: No OFD packet to send [16:17:02]OFD Sender: No OFD packet to send [16:17:07]OFD Sender: No OFD packet to send [16:17:12]OFD Sender: No OFD packet to send [16:17:17]OFD Sender: No OFD packet to send [16:17:22]OFD Sender: No OFD packet to send [16:17:27]OFD Sender: No OFD packet to send [16:17:32]OFD Sender: No OFD packet to send [16:17:37]OFD Sender: No OFD packet to send [16:17:42]OFD Sender: No OFD packet to send [16:17:47]OFD Sender: No OFD packet to send [16:17:52]OFD Sender: No OFD packet to send [16:17:57]OFD Sender: No OFD packet to send [16:18:02]OFD Sender: No OFD packet to send [16:18:07]OFD Sender: No OFD packet to send [16:18:12]OFD Sender: No OFD packet to send [16:18:17]OFD Sender: No OFD packet to send [16:18:22]OFD Sender: No OFD packet to send [16:18:27]OFD Sender: No OFD packet to send [16:18:32]OFD Sender: No OFD packet to send [16:18:37]OFD Sender: No OFD packet to send [16:18:42]OFD Sender: No OFD packet to send [16:18:47]OFD Sender: No OFD packet to send [16:18:52]OFD Sender: No OFD packet to send [16:18:55]accept exits with 8 [16:18:55]New connection [16:18:55]New thread 3067141476 created [16:18:55]Thread 3067284836 joined [16:18:55]Waiting for new connection... [16:18:55] Sock 8.Parse request [16:18:55]Sock 8.Check first char [16:18:55]Sock 8.First char is OK [16:18:55]request: POST /json_proto HTTP/1.0 [16:18:55]Method: POST [16:18:55]URL: /json_proto [16:18:55]Method is POST - this is cgi request [16:18:55]url: /json_proto [16:18:55]query_string will be loaded in cgi processing [16:18:55]execute_cgi json_proto POST (null) [16:18:55]execute_cgi path=json_proto method=POST [16:18:55]POST find Content-Length [16:18:55]Host: 172.17.50.196:8080 [16:18:55]Content-Length: 775 [16:18:55]Content-Type: application/json [16:18:55] [16:18:55]POST finish read [16:18:55]Found Content-Length = 775 [16:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:55]execute_script... [16:18: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)1094613", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:18:55]POST & json_proto [16:18:55]process_json_proto [16:18:55]json parsed OK: [16:18:55]protocol is kg_v1.0 [16:18:55]action value=close_receipt [16:18:55]process_action close_receipt [16:18:55]cmd_close_receipt [16:18:55]MH_GetDate [16:18:55]Write to MH i2c: F0 00 00 A6 48 DD [16:18:55]Write i2c OK [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: F0 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: F0 09 00 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: F0 09 00 A6 48 00 75 5C 22 67 72 0D 1C 67 42 [16:18:55]GetLastDocTimeStamp 1730304890 [16:18:55]current date 1730305141 [16:18:55]FM_GetShiftState [16:18:55]SAM_PROTO_GetShiftState [16:18:55]wFMCommunicate request_size=4 [16:18:55]MH_SAM_APDU [16:18:55]CAPDU: 80 13 01 00 [16:18:55]Write to MH i2c: E2 08 00 A7 48 80 13 01 00 00 00 00 00 6C [16:18:55]Write i2c OK [16:18:55]MH_I2C_Read... [16:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:55]Read from MH i2c: E2 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: E2 0E 00 [16:18:55]MH_I2C_Read... [16:18:55]Read from MH i2c: E2 0E 00 A7 48 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FC [16:18:55]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:18:55]wFMCommunicate OK [16:18:55]SAM_PROTO_GetShiftState done [16:18:55]FM_GetShiftState done [16:18:55]opened in 1730246278 [16:18:55]opened+sec_in_day 1730332678 [16:18:55]quantity*price = 200025 [16:18:55]sum+1 = 200026 [16:18:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 116 30.10.2024 16:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139432 ФПД: 197049195385705 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161901&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139432&fm=197049195385705&tin=02508201610067®Number=0000000000091631&sum=200025 [16:18:56]StoreToDocumentArchive [16:18:56]shift 556 fd 139432 [16:18:56]save to /storage/0556/doc_00139432 [16:18:56]save last doc name /storage/0556/doc_00139432 to /storage/kkm_last_doc_name [16:18:56]save OK [16:18:56]Clear old archive folders... [16:18:56]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:18:56]tlvbuf is B6F2B950 [16:18:56]SAM_PROTO_ClearQueue [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 09 00 00 [16:18:56]Write to MH i2c: E2 08 00 B4 48 80 09 00 00 00 00 00 00 6E [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 B4 48 00 90 00 70 [16:18:56]RAPDU: 90 00 [16:18:56]wFMCommunicate OK [16:18:56]SAM_PROTO_ClearQueue done [16:18:56]KKMCreateOFDPacket [16:18:56]OFDProtocolAddRootSTLVToBuf [16:18:56]FM_MakeSignedData [16:18:56]FM_MakeSignedData [16:18:56]SAM_PROTO_SignData [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 0D 01 02 [16:18:56]Write to MH i2c: E2 08 00 B5 48 80 0D 01 02 00 00 00 00 76 [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 B5 48 00 90 00 71 [16:18:56]RAPDU: 90 00 [16:18:56]wFMCommunicate OK [16:18:56]wFMCommunicate request_size=255 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 75 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 20 02 00 35 04 06 00 [16:18:56]Write to MH i2c: E2 02 01 B6 48 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 75 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 20 02 00 35 04 06 00 00 00 C9 [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 B6 48 00 90 00 72 [16:18:56]RAPDU: 90 00 [16:18:56]wFMCommunicate OK [16:18:56]wFMCommunicate request_size=11 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 0D 02 02 06 B3 37 17 4B 53 69 [16:18:56]Write to MH i2c: E2 0E 00 B7 48 80 0D 02 02 06 00 B3 37 17 4B 53 69 00 00 8D [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 03 00 B7 48 00 90 00 73 [16:18:56]RAPDU: 90 00 [16:18:56]wFMCommunicate OK [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 0D 03 02 [16:18:56]Write to MH i2c: E2 08 00 B8 48 80 0D 03 02 00 00 00 00 7B [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 0B 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 0B 00 B8 48 00 E6 86 F1 6E A3 C4 0C E6 90 00 A0 [16:18:56]RAPDU: E6 86 F1 6E A3 C4 0C E6 90 00 [16:18:56]wFMCommunicate OK [16:18:56]SAM_PROTO_SignData done [16:18:56]FM_MakeSignedData done [16:18:56]CreateOFDProtocolMessage [16:18:56]wFMCommunicate request_size=4 [16:18:56]MH_SAM_APDU [16:18:56]CAPDU: 80 11 00 00 [16:18:56]Write to MH i2c: E2 08 00 B9 48 80 11 00 00 00 00 00 00 7B [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:56]Read from MH i2c: E2 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 17 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: E2 17 00 B9 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [16:18:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:18:56]wFMCommunicate OK [16:18:56]CreateOFDProtocolMessage done [16:18:56]OFDSenderStorePacket 139432 [16:18:56]StoreOFDPacket docnum=139432 [16:18:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 73 0B 08 01 81 EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 75 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 20 02 00 35 04 06 00 B3 37 17 4B 53 69 E6 86 F1 6E A3 C4 0C E6 [16:18:56]CheckFolder [16:18:56]dirname=/storage/ofd_packets [16:18:56]CheckFolder done [16:18:56]ProducePacketName [16:18:56]name=ofd_packets/00139432 [16:18:56]NVStorageSaveData ofd_packets/00139432 [16:18:56]File name is /storage/ofd_packets/00139432 [16:18:56]Write 302 bytes [16:18:56]NVStorageSaveData done [16:18:56]OFDSenderStorePacket done [16:18:56]KKMCreateOFDPacket done [16:18:56]NVStorageSaveData kkm_last_timestamp [16:18:56]File name is /storage/kkm_last_timestamp [16:18:56]Write 4 bytes [16:18:56]NVStorageSaveData done [16:18:56]ExternCall_PrintAddStr [16:18:56]wPrintStart [16:18:56]Write to MH i2c: 01 00 00 BA 48 02 [16:18:56]Write i2c OK [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: 01 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: 01 07 00 [16:18:56]MH_I2C_Read... [16:18:56]Read from MH i2c: 01 07 00 BA 48 00 00 00 00 00 FF 0F 17 [16:18:56]RasterBufferAndPrint [16:18:56]line Счет N : (1)1094613 [16:18:56]line ИНН: 02508201610067 [16:18:56]line Контрольно-Кассовый Чек [16:18:56]line ПРОДАЖА [16:18:56]line ТРК (МРК, ГНК) : 11 [16:18:56]line Товар: 2710194210 [16:18:56]line ДТ(л)-К-2 [16:18:56]line 26.250 * 76.20 [16:18:56]line = 2000.25 [16:18:56]line НДС 12% НСП 1% [16:18:56]line > о реализуемом товаре [16:18:56]line ИТОГО: 2000.25 [16:18:56]line НСП 1% : 17.70 [16:18:56]line НДС 12% : 212.42 [16:18:56]line Наличными: 0.00 [16:18:56]line Безнал.: 2000.25 [16:18:56]line Место: АЗС № 101 "Партнер Нефть" [16:18:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:18:56]line СНО: Общий режим [16:18:56]line Чек 116 30.10.2024 16:19 [16:18:56]line Смена: 556 ФФД: 1.0 [16:18:56]line ЗНМ: 0300000081 [16:18:56]line РНМ: 0000000000091631 [16:18:56]line Версия ККМ: 001 [16:18:56]line Платежная система: Mbank [16:18:56]line ФМ: 0000000000874669 [16:18:56]line ФД: 139432 [16:18:56]line ФПД: 197049195385705 [16:18:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T161901&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139432&fm=197049195385705&tin=02508201610067®Number=0000000000091631&sum=200025 [16:18:57]OFD Sender: Processing packet 139432 [packets to send 34, broken 33] [16:18:57]ProducePacketName [16:18:57]name=ofd_packets/00139432 [16:18:57]OFD Sender: To server: pG, [16:18:57]CommunicateWithHost lk.salyk.kg:30040 [16:18:57]ConnectInit lk.salyk.kg [16:18:57]written 0, free lines is 4095 [16:18:57]Connected sock=10 [16:18:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 73 0B 08 01 81 EA 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 74 00 00 00 F4 03 04 00 75 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 20 02 00 35 04 06 00 B3 37 17 4B 53 69 E6 86 F1 6E A3 C4 0C E6 [16:18:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9C 10 47 00 CC D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A8 20 02 00 F4 03 04 00 25 08 22 67 B6 04 01 00 00 82 2B 16 2D D3 BC D1 17 [16:18:57]CommunicateWithHost err = 0 [16:18:57]CheckOFDResponse [16:18:57]1017 (14) - 77093643461234 [16:18:57]1041 (16) - 0000000000874669 [16:18:57]1040 (4) - 139432 [16:18:57]1012 (4) - 30.10.2024 10:19 [16:18:57]1206 (1) - 0 [16:18:57]OFD Sender: Remove packet 139432 [16:18:57]ProducePacketName [16:18:57]name=ofd_packets/00139432 [16:18:57]NVStorageDeleteData [16:18:57]Write to MH i2c: 01 00 00 E3 48 2B [16:18:57]Write i2c OK [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: 01 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: 01 07 00 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: 01 07 00 E3 48 00 00 00 00 00 1D 0D 5C [16:18:57]RasterBufferAndPrint [16:18:57]line [16:18:57]line [16:18:57]line [16:18:57]line [16:18:57]line [16:18:57]written 0, free lines is 3363 [16:18:57]MH_Cut [16:18:57]Write to MH i2c: D1 01 00 EA 48 01 04 [16:18:57]Write i2c OK [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: D1 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: D1 01 00 [16:18:57]MH_I2C_Read... [16:18:57]Read from MH i2c: D1 01 00 EA 48 00 03 [16:18:57]Write to MH i2c: 01 00 00 EB 48 33 [16:18:57]Write i2c OK [16:18:57]MH_I2C_Read... [16:18:57]OFD Sender: No OFD packet to send [16:18:58]*** Cut start [16:18:58]*** Partial cut [16:18:58]*** CUTSNS_PIN = 1 [16:18:58]*** CUTSNS_PIN = 0 [16:18:58]*** Brake cut motor [16:18:58]Read from MH i2c: 01 [16:18:58]MH_I2C_Read... [16:18:58]*** Stop cut motor [16:18:58]*** Cut end [16:18:58]Read from MH i2c: 01 07 00 [16:18:58]MH_I2C_Read... [16:18:58]Read from MH i2c: 01 07 00 EB 48 00 00 00 00 00 FF 0F 48 [16:18:58]process_action close_receipt done [16:18:58]requested_data is exist [16:18:58]produce_requested_data [16:18:58]requested_item fm.sn is exist - process it [16:18:58]wFMCommunicate request_size=4 [16:18:58]MH_SAM_APDU [16:18:58]CAPDU: 80 11 00 00 [16:18:58]Write to MH i2c: E2 08 00 EC 48 80 11 00 00 00 00 00 00 AE [16:18:58]Write i2c OK [16:18:58]MH_I2C_Read... [16:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:18:59]Read from MH i2c: E2 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 17 00 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 17 00 EC 48 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 09 [16:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:18:59]wFMCommunicate OK [16:18:59]requested_item fd.num is exist - process it [16:18:59]SAM_PROTO_GetFieldsCounters [16:18:59]wFMCommunicate request_size=4 [16:18:59]MH_SAM_APDU [16:18:59]CAPDU: 80 13 00 00 [16:18:59]Write to MH i2c: E2 08 00 ED 48 80 13 00 00 00 00 00 00 B1 [16:18:59]Write i2c OK [16:18:59]MH_I2C_Read... [16:18:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:18:59]Read from MH i2c: E2 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 62 00 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 62 00 ED 48 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A8 20 02 00 0E 04 04 00 2C 02 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 29 [16:18:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A8 20 02 00 0E 04 04 00 2C 02 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 [16:18:59]wFMCommunicate OK [16:18:59]SAM_PROTO_GetFieldsCounters done [16:18:59]requested_item shift.num is exist - process it [16:18:59]requested_item shift.opened is exist - process it [16:18:59]req_shift_opened [16:18:59]FM_GetShiftState [16:18:59]SAM_PROTO_GetShiftState [16:18:59]wFMCommunicate request_size=4 [16:18:59]MH_SAM_APDU [16:18:59]CAPDU: 80 13 01 00 [16:18:59]Write to MH i2c: E2 08 00 EE 48 80 13 01 00 00 00 00 00 B3 [16:18:59]Write i2c OK [16:18:59]MH_I2C_Read... [16:18:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:18:59]Read from MH i2c: E2 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 0E 00 [16:18:59]MH_I2C_Read... [16:18:59]Read from MH i2c: E2 0E 00 EE 48 00 09 00 01 86 76 21 67 00 00 00 00 90 00 43 [16:18:59]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:18:59]wFMCommunicate OK [16:18:59]SAM_PROTO_GetShiftState done [16:18:59]FM_GetShiftState done [16:18:59]req_shift_opened done [16:18:59]requested_item shift.open_date is exist - process it [16:18:59]req_shift_open_date [16:18:59]req_shift_open_date done [16:18:59]produce_requested_data done [16:18:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139432,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:18:59]process_action_free close_receipt [16:18:59]json_value_free [16:18:59]json_value_free done [16:18:59]process_json_proto returns [16:18:59]Send response to host [16:18:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139432,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:18:59]free response buf [16:18:59]execute_script done [16:18:59]execute_script returns [16:18:59]free content buf [16:18:59]Sock 8.Close socket [16:18:59]Sock 8.Thread stoped [16:19:02]OFD Sender: No OFD packet to send [16:19:08]OFD Sender: No OFD packet to send [16:19:13]OFD Sender: No OFD packet to send [16:19:18]OFD Sender: No OFD packet to send [16:19:23]OFD Sender: No OFD packet to send [16:19:28]OFD Sender: No OFD packet to send [16:19:33]OFD Sender: No OFD packet to send [16:19:38]OFD Sender: No OFD packet to send [16:19:43]OFD Sender: No OFD packet to send [16:19:48]OFD Sender: No OFD packet to send [16:19:53]OFD Sender: No OFD packet to send [16:19:58]OFD Sender: No OFD packet to send [16:20:03]OFD Sender: No OFD packet to send [16:20:08]OFD Sender: No OFD packet to send [16:20:13]OFD Sender: No OFD packet to send [16:20:18]OFD Sender: No OFD packet to send [16:20:23]OFD Sender: No OFD packet to send [16:20:28]OFD Sender: No OFD packet to send [16:20:33]OFD Sender: No OFD packet to send [16:20:34]accept exits with 9 [16:20:34]New connection [16:20:34]New thread 3067284836 created [16:20:34]Thread 3067141476 joined [16:20:34]Waiting for new connection... [16:20:34] Sock 9.Parse request [16:20:34]Sock 9.Check first char [16:20:34]Sock 9.First char is OK [16:20:34]request: POST /json_proto HTTP/1.0 [16:20:34]Method: POST [16:20:34]URL: /json_proto [16:20:34]Method is POST - this is cgi request [16:20:34]url: /json_proto [16:20:34]query_string will be loaded in cgi processing [16:20:34]execute_cgi json_proto POST (null) [16:20:34]execute_cgi path=json_proto method=POST [16:20:34]POST find Content-Length [16:20:34]Host: 172.17.50.196:8080 [16:20:34]Content-Length: 686 [16:20:34]Content-Type: application/json [16:20:34] [16:20:34]POST finish read [16:20:34]Found Content-Length = 686 [16:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 44.390, "sum" : 1700.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:34]execute_script... [16:20: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)1094611", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 44.390, "sum" : 1700.14, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 5000.00, "total" : 1700.00, "payments": [ { "type": 0, "sum" : 1700.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:20:34]POST & json_proto [16:20:34]process_json_proto [16:20:34]json parsed OK: [16:20:34]protocol is kg_v1.0 [16:20:34]action value=close_receipt [16:20:34]process_action close_receipt [16:20:34]cmd_close_receipt [16:20:34]MH_GetDate [16:20:34]Write to MH i2c: F0 00 00 EF 48 26 [16:20:34]Write i2c OK [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: F0 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: F0 09 00 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: F0 09 00 EF 48 00 D8 5C 22 67 72 0D 1C 67 EE [16:20:34]GetLastDocTimeStamp 1730305141 [16:20:34]current date 1730305240 [16:20:34]FM_GetShiftState [16:20:34]SAM_PROTO_GetShiftState [16:20:34]wFMCommunicate request_size=4 [16:20:34]MH_SAM_APDU [16:20:34]CAPDU: 80 13 01 00 [16:20:34]Write to MH i2c: E2 08 00 F0 48 80 13 01 00 00 00 00 00 B5 [16:20:34]Write i2c OK [16:20:34]MH_I2C_Read... [16:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:34]Read from MH i2c: E2 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 0E 00 [16:20:34]MH_I2C_Read... [16:20:34]Read from MH i2c: E2 0E 00 F0 48 00 09 00 01 86 76 21 67 00 00 00 00 90 00 45 [16:20:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:20:34]wFMCommunicate OK [16:20:34]SAM_PROTO_GetShiftState done [16:20:34]FM_GetShiftState done [16:20:34]opened in 1730246278 [16:20:34]opened+sec_in_day 1730332678 [16:20:34]quantity*price = 170013 [16:20:34]sum+1 = 170015 [16:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.14 ИТОГО: 1700.00 Внесено: 5000.00 СДАЧА: 3300.00 НСП 1% : 15.04 НДС 12% : 180.55 Наличными: 1700.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 117 30.10.2024 16:20 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139433 ФПД: 233948289870708 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162040&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139433&fm=233948289870708&tin=02508201610067®Number=0000000000091631&sum=170000 [16:20:35]StoreToDocumentArchive [16:20:35]shift 556 fd 139433 [16:20:35]save to /storage/0556/doc_00139433 [16:20:35]save last doc name /storage/0556/doc_00139433 to /storage/kkm_last_doc_name [16:20:35]save OK [16:20:35]Clear old archive folders... [16:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=250 [16:20:35]tlvbuf is 011245C0 [16:20:35]SAM_PROTO_ClearQueue [16:20:35]wFMCommunicate request_size=4 [16:20:35]MH_SAM_APDU [16:20:35]CAPDU: 80 09 00 00 [16:20:35]Write to MH i2c: E2 08 00 FD 48 80 09 00 00 00 00 00 00 B7 [16:20:35]Write i2c OK [16:20:35]MH_I2C_Read... [16:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:20:35]Read from MH i2c: E2 [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: E2 03 00 [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: E2 03 00 FD 48 00 90 00 B9 [16:20:35]RAPDU: 90 00 [16:20:35]wFMCommunicate OK [16:20:35]SAM_PROTO_ClearQueue done [16:20:35]KKMCreateOFDPacket [16:20:35]OFDProtocolAddRootSTLVToBuf [16:20:35]FM_MakeSignedData [16:20:35]FM_MakeSignedData [16:20:35]SAM_PROTO_SignData [16:20:35]wFMCommunicate request_size=4 [16:20:35]MH_SAM_APDU [16:20:35]CAPDU: 80 0D 01 02 [16:20:35]Write to MH i2c: E2 08 00 FE 48 80 0D 01 02 00 00 00 00 BF [16:20:35]Write i2c OK [16:20:35]MH_I2C_Read... [16:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:20:35]Read from MH i2c: E2 [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: E2 03 00 [16:20:35]MH_I2C_Read... [16:20:35]Read from MH i2c: E2 03 00 FE 48 00 90 00 BA [16:20:35]RAPDU: 90 00 [16:20:35]wFMCommunicate OK [16:20:35]wFMCommunicate request_size=255 [16:20:35]MH_SAM_APDU [16:20:35]CAPDU: 80 0D 02 02 FA 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 AD 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 1E 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D8 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 20 02 00 35 04 06 00 D4 C6 [16:20:35]Write to MH i2c: E2 02 01 FF 48 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 AD 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 1E 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D8 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 20 02 00 35 04 06 00 D4 C6 00 00 0D [16:20:36]Write i2c OK [16:20:36]MH_I2C_Read... [16:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:36]Read from MH i2c: E2 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 03 00 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 03 00 FF 48 00 90 00 BB [16:20:36]RAPDU: 90 00 [16:20:36]wFMCommunicate OK [16:20:36]wFMCommunicate request_size=9 [16:20:36]MH_SAM_APDU [16:20:36]CAPDU: 80 0D 02 02 04 54 B6 AB 74 [16:20:36]Write to MH i2c: E2 0C 00 00 49 80 0D 02 02 04 00 54 B6 AB 74 00 00 F4 [16:20:36]Write i2c OK [16:20:36]MH_I2C_Read... [16:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:20:36]Read from MH i2c: E2 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 03 00 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 03 00 00 49 00 90 00 BD [16:20:36]RAPDU: 90 00 [16:20:36]wFMCommunicate OK [16:20:36]wFMCommunicate request_size=4 [16:20:36]MH_SAM_APDU [16:20:36]CAPDU: 80 0D 03 02 [16:20:36]Write to MH i2c: E2 08 00 01 49 80 0D 03 02 00 00 00 00 C5 [16:20:36]Write i2c OK [16:20:36]MH_I2C_Read... [16:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:20:36]Read from MH i2c: E2 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 0B 00 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 0B 00 01 49 00 B3 59 6C 56 F2 1B A0 87 90 00 C8 [16:20:36]RAPDU: B3 59 6C 56 F2 1B A0 87 90 00 [16:20:36]wFMCommunicate OK [16:20:36]SAM_PROTO_SignData done [16:20:36]FM_MakeSignedData done [16:20:36]CreateOFDProtocolMessage [16:20:36]wFMCommunicate request_size=4 [16:20:36]MH_SAM_APDU [16:20:36]CAPDU: 80 11 00 00 [16:20:36]Write to MH i2c: E2 08 00 02 49 80 11 00 00 00 00 00 00 C5 [16:20:36]Write i2c OK [16:20:36]MH_I2C_Read... [16:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:36]Read from MH i2c: E2 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 17 00 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: E2 17 00 02 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 20 [16:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:20:36]wFMCommunicate OK [16:20:36]CreateOFDProtocolMessage done [16:20:36]OFDSenderStorePacket 139433 [16:20:36]StoreOFDPacket docnum=139433 [16:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 48 C0 06 01 23 84 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 AD 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 1E 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D8 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 20 02 00 35 04 06 00 D4 C6 54 B6 AB 74 B3 59 6C 56 F2 1B A0 87 [16:20:36]CheckFolder [16:20:36]dirname=/storage/ofd_packets [16:20:36]CheckFolder done [16:20:36]ProducePacketName [16:20:36]name=ofd_packets/00139433 [16:20:36]NVStorageSaveData ofd_packets/00139433 [16:20:36]File name is /storage/ofd_packets/00139433 [16:20:36]Write 300 bytes [16:20:36]NVStorageSaveData done [16:20:36]OFDSenderStorePacket done [16:20:36]KKMCreateOFDPacket done [16:20:36]NVStorageSaveData kkm_last_timestamp [16:20:36]File name is /storage/kkm_last_timestamp [16:20:36]Write 4 bytes [16:20:36]NVStorageSaveData done [16:20:36]OFD Sender: Processing packet 139433 [packets to send 34, broken 33] [16:20:36]ProducePacketName [16:20:36]name=ofd_packets/00139433 [16:20:36]OFD Sender: To server: pG, [16:20:36]CommunicateWithHost lk.salyk.kg:30040 [16:20:36]ConnectInit lk.salyk.kg [16:20:36]ExternCall_PrintAddStr [16:20:36]wPrintStart [16:20:36]Write to MH i2c: 01 00 00 03 49 4C [16:20:36]Write i2c OK [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: 01 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: 01 07 00 [16:20:36]MH_I2C_Read... [16:20:36]Read from MH i2c: 01 07 00 03 49 00 00 00 00 00 FF 0F 61 [16:20:36]RasterBufferAndPrint [16:20:36]line Счет N : (1)1094611 [16:20:36]line ИНН: 02508201610067 [16:20:36]line Контрольно-Кассовый Чек [16:20:36]line ПРОДАЖА [16:20:36]line ТРК (МРК, ГНК) : 71 [16:20:36]line Товар: 2711190000 [16:20:36]line ГАЗ-К-5 [16:20:36]line 44.390 * 38.30 [16:20:36]line = 1700.14 [16:20:36]line НДС 12% НСП 1% [16:20:36]line > о реализуемом товаре [16:20:36]line ОКРУГЛЕНИЕ: -0.14 [16:20:36]line ИТОГО: 1700.00 [16:20:36]line Внесено: 5000.00 [16:20:36]line СДАЧА: 3300.00 [16:20:36]line НСП 1% : 15.04 [16:20:36]line НДС 12% : 180.55 [16:20:36]line Наличными: 1700.00 [16:20:36]line Безнал.: 0.00 [16:20:36]line Место: АЗС № 101 "Партнер Нефть" [16:20:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:20:36]line СНО: Общий режим [16:20:36]line Чек 117 30.10.2024 16:20 [16:20:36]line Смена: 556 ФФД: 1.0 [16:20:36]line ЗНМ: 0300000081 [16:20:36]line РНМ: 0000000000091631 [16:20:36]line Версия ККМ: 001 [16:20:36]line ФМ: 0000000000874669 [16:20:36]line ФД: 139433 [16:20:36]line ФПД: 233948289870708 [16:20:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T162040&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139433&fm=233948289870708&tin=02508201610067®Number=0000000000091631&sum=170000 [16:20:36]Connected sock=11 [16:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 48 C0 06 01 23 84 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 66 AD 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 1E 98 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 98 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E0 05 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 46 00 00 00 00 07 04 06 00 10 98 02 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 75 00 00 00 F4 03 04 00 D8 5C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 20 02 00 35 04 06 00 D4 C6 54 B6 AB 74 B3 59 6C 56 F2 1B A0 87 [16:20:36]written 0, free lines is 4095 [16:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C3 3D 47 00 1A DD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 A9 20 02 00 F4 03 04 00 88 08 22 67 B6 04 01 00 00 15 8D 55 B2 4A C5 69 36 [16:20:36]CommunicateWithHost err = 0 [16:20:36]CheckOFDResponse [16:20:36]1017 (14) - 77093643461234 [16:20:36]1041 (16) - 0000000000874669 [16:20:36]1040 (4) - 139433 [16:20:36]1012 (4) - 30.10.2024 10:20 [16:20:36]1206 (1) - 0 [16:20:36]OFD Sender: Remove packet 139433 [16:20:36]ProducePacketName [16:20:36]name=ofd_packets/00139433 [16:20:36]NVStorageDeleteData [16:20:37]Write to MH i2c: 01 00 00 2E 49 77 [16:20:37]Write i2c OK [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: 01 [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: 01 07 00 [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: 01 07 00 2E 49 00 00 00 00 00 EE 0C 78 [16:20:37]RasterBufferAndPrint [16:20:37]line [16:20:37]line [16:20:37]line [16:20:37]line [16:20:37]line [16:20:37]written 0, free lines is 3316 [16:20:37]MH_Cut [16:20:37]Write to MH i2c: D1 01 00 35 49 01 50 [16:20:37]Write i2c OK [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: D1 [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: D1 01 00 [16:20:37]MH_I2C_Read... [16:20:37]Read from MH i2c: D1 01 00 35 49 00 4F [16:20:37]Write to MH i2c: 01 00 00 36 49 7F [16:20:37]Write i2c OK [16:20:37]MH_I2C_Read... [16:20:37]OFD Sender: No OFD packet to send [16:20:37]*** Cut start [16:20:37]*** Partial cut [16:20:37]*** CUTSNS_PIN = 1 [16:20:37]*** CUTSNS_PIN = 0 [16:20:38]*** Brake cut motor [16:20:38]Read from MH i2c: 01 [16:20:38]MH_I2C_Read... [16:20:38]*** Stop cut motor [16:20:38]*** Cut end [16:20:38]Read from MH i2c: 01 07 00 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: 01 07 00 36 49 00 00 00 00 00 FF 0F 94 [16:20:38]process_action close_receipt done [16:20:38]requested_data is exist [16:20:38]produce_requested_data [16:20:38]requested_item fm.sn is exist - process it [16:20:38]wFMCommunicate request_size=4 [16:20:38]MH_SAM_APDU [16:20:38]CAPDU: 80 11 00 00 [16:20:38]Write to MH i2c: E2 08 00 37 49 80 11 00 00 00 00 00 00 FA [16:20:38]Write i2c OK [16:20:38]MH_I2C_Read... [16:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:20:38]Read from MH i2c: E2 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: E2 17 00 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: E2 17 00 37 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 55 [16:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:20:38]wFMCommunicate OK [16:20:38]requested_item fd.num is exist - process it [16:20:38]SAM_PROTO_GetFieldsCounters [16:20:38]wFMCommunicate request_size=4 [16:20:38]MH_SAM_APDU [16:20:38]CAPDU: 80 13 00 00 [16:20:38]Write to MH i2c: E2 08 00 38 49 80 13 00 00 00 00 00 00 FD [16:20:38]Write i2c OK [16:20:38]MH_I2C_Read... [16:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:20:38]Read from MH i2c: E2 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: E2 62 00 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: E2 62 00 38 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A9 20 02 00 0E 04 04 00 2C 02 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 79 [16:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 A9 20 02 00 0E 04 04 00 2C 02 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 [16:20:38]wFMCommunicate OK [16:20:38]SAM_PROTO_GetFieldsCounters done [16:20:38]requested_item shift.num is exist - process it [16:20:38]requested_item shift.opened is exist - process it [16:20:38]req_shift_opened [16:20:38]FM_GetShiftState [16:20:38]SAM_PROTO_GetShiftState [16:20:38]wFMCommunicate request_size=4 [16:20:38]MH_SAM_APDU [16:20:38]CAPDU: 80 13 01 00 [16:20:38]Write to MH i2c: E2 08 00 39 49 80 13 01 00 00 00 00 00 FF [16:20:38]Write i2c OK [16:20:38]MH_I2C_Read... [16:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:20:38]Read from MH i2c: E2 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: E2 0E 00 [16:20:38]MH_I2C_Read... [16:20:38]Read from MH i2c: E2 0E 00 39 49 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8F [16:20:38]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:20:38]wFMCommunicate OK [16:20:38]SAM_PROTO_GetShiftState done [16:20:38]FM_GetShiftState done [16:20:38]req_shift_opened done [16:20:38]requested_item shift.open_date is exist - process it [16:20:38]req_shift_open_date [16:20:38]req_shift_open_date done [16:20:38]produce_requested_data done [16:20:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139433,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:20:38]process_action_free close_receipt [16:20:38]json_value_free [16:20:38]json_value_free done [16:20:38]process_json_proto returns [16:20:38]Send response to host [16:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139433,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:20:38]free response buf [16:20:38]execute_script done [16:20:38]execute_script returns [16:20:38]free content buf [16:20:38]Sock 9.Close socket [16:20:38]Sock 9.Thread stoped [16:20:42]OFD Sender: No OFD packet to send [16:20:47]OFD Sender: No OFD packet to send [16:20:52]OFD Sender: No OFD packet to send [16:20:57]OFD Sender: No OFD packet to send [16:21:02]OFD Sender: No OFD packet to send [16:21:07]OFD Sender: No OFD packet to send [16:21:12]OFD Sender: No OFD packet to send [16:21:17]OFD Sender: No OFD packet to send [16:21:22]OFD Sender: No OFD packet to send [16:21:27]OFD Sender: No OFD packet to send [16:21:32]OFD Sender: No OFD packet to send [16:21:37]OFD Sender: No OFD packet to send [16:21:42]OFD Sender: No OFD packet to send [16:21:47]OFD Sender: No OFD packet to send [16:21:52]OFD Sender: No OFD packet to send [16:21:57]OFD Sender: No OFD packet to send [16:22:02]OFD Sender: No OFD packet to send [16:22:07]OFD Sender: No OFD packet to send [16:22:12]OFD Sender: No OFD packet to send [16:22:17]OFD Sender: No OFD packet to send [16:22:22]OFD Sender: No OFD packet to send [16:22:27]OFD Sender: No OFD packet to send [16:22:32]OFD Sender: No OFD packet to send [16:22:37]OFD Sender: No OFD packet to send [16:22:42]OFD Sender: No OFD packet to send [16:22:47]OFD Sender: No OFD packet to send [16:22:52]OFD Sender: No OFD packet to send [16:22:57]OFD Sender: No OFD packet to send [16:23:02]OFD Sender: No OFD packet to send [16:23:07]OFD Sender: No OFD packet to send [16:23:12]OFD Sender: No OFD packet to send [16:23:17]OFD Sender: No OFD packet to send [16:23:22]OFD Sender: No OFD packet to send [16:23:27]OFD Sender: No OFD packet to send [16:23:32]OFD Sender: No OFD packet to send [16:23:37]OFD Sender: No OFD packet to send [16:23:42]OFD Sender: No OFD packet to send [16:23:47]OFD Sender: No OFD packet to send [16:23:52]OFD Sender: No OFD packet to send [16:23:57]OFD Sender: No OFD packet to send [16:24:02]OFD Sender: No OFD packet to send [16:24:07]OFD Sender: No OFD packet to send [16:24:12]OFD Sender: No OFD packet to send [16:24:17]OFD Sender: No OFD packet to send [16:24:22]OFD Sender: No OFD packet to send [16:24:27]OFD Sender: No OFD packet to send [16:24:32]OFD Sender: No OFD packet to send [16:24:37]OFD Sender: No OFD packet to send [16:24:42]OFD Sender: No OFD packet to send [16:24:47]OFD Sender: No OFD packet to send [16:24:52]OFD Sender: No OFD packet to send [16:24:57]OFD Sender: No OFD packet to send [16:25:02]OFD Sender: No OFD packet to send [16:25:07]OFD Sender: No OFD packet to send [16:25:12]OFD Sender: No OFD packet to send [16:25:17]OFD Sender: No OFD packet to send [16:25:22]OFD Sender: No OFD packet to send [16:25:27]OFD Sender: No OFD packet to send [16:25:32]OFD Sender: No OFD packet to send [16:25:37]OFD Sender: No OFD packet to send [16:25:42]OFD Sender: No OFD packet to send [16:25:47]OFD Sender: No OFD packet to send [16:25:52]OFD Sender: No OFD packet to send [16:25:57]OFD Sender: No OFD packet to send [16:26:02]OFD Sender: No OFD packet to send [16:26:07]OFD Sender: No OFD packet to send [16:26:12]OFD Sender: No OFD packet to send [16:26:17]OFD Sender: No OFD packet to send [16:26:22]OFD Sender: No OFD packet to send [16:26:27]OFD Sender: No OFD packet to send [16:26:32]OFD Sender: No OFD packet to send [16:26:37]OFD Sender: No OFD packet to send [16:26:42]OFD Sender: No OFD packet to send [16:26:47]OFD Sender: No OFD packet to send [16:26:52]OFD Sender: No OFD packet to send [16:26:57]OFD Sender: No OFD packet to send [16:27:02]OFD Sender: No OFD packet to send [16:27:07]OFD Sender: No OFD packet to send [16:27:12]OFD Sender: No OFD packet to send [16:27:17]OFD Sender: No OFD packet to send [16:27:22]OFD Sender: No OFD packet to send [16:27:27]OFD Sender: No OFD packet to send [16:27:32]OFD Sender: No OFD packet to send [16:27:37]OFD Sender: No OFD packet to send [16:27:42]OFD Sender: No OFD packet to send [16:27:47]OFD Sender: No OFD packet to send [16:27:52]OFD Sender: No OFD packet to send [16:27:57]OFD Sender: No OFD packet to send [16:28:02]OFD Sender: No OFD packet to send [16:28:07]OFD Sender: No OFD packet to send [16:28:12]OFD Sender: No OFD packet to send [16:28:17]OFD Sender: No OFD packet to send [16:28:22]OFD Sender: No OFD packet to send [16:28:27]OFD Sender: No OFD packet to send [16:28:32]OFD Sender: No OFD packet to send [16:28:37]OFD Sender: No OFD packet to send [16:28:42]OFD Sender: No OFD packet to send [16:28:47]OFD Sender: No OFD packet to send [16:28:52]OFD Sender: No OFD packet to send [16:28:57]OFD Sender: No OFD packet to send [16:29:02]OFD Sender: No OFD packet to send [16:29:07]OFD Sender: No OFD packet to send [16:29:12]OFD Sender: No OFD packet to send [16:29:17]OFD Sender: No OFD packet to send [16:29:22]OFD Sender: No OFD packet to send [16:29:27]OFD Sender: No OFD packet to send [16:29:32]OFD Sender: No OFD packet to send [16:29:37]OFD Sender: No OFD packet to send [16:29:42]OFD Sender: No OFD packet to send [16:29:47]OFD Sender: No OFD packet to send [16:29:52]OFD Sender: No OFD packet to send [16:29:57]OFD Sender: No OFD packet to send [16:30:02]OFD Sender: No OFD packet to send [16:30:07]OFD Sender: No OFD packet to send [16:30:12]OFD Sender: No OFD packet to send [16:30:17]OFD Sender: No OFD packet to send [16:30:22]OFD Sender: No OFD packet to send [16:30:27]OFD Sender: No OFD packet to send [16:30:32]OFD Sender: No OFD packet to send [16:30:37]OFD Sender: No OFD packet to send [16:30:42]OFD Sender: No OFD packet to send [16:30:47]OFD Sender: No OFD packet to send [16:30:52]OFD Sender: No OFD packet to send [16:30:57]OFD Sender: No OFD packet to send [16:31:02]OFD Sender: No OFD packet to send [16:31:07]OFD Sender: No OFD packet to send [16:31:12]OFD Sender: No OFD packet to send [16:31:17]OFD Sender: No OFD packet to send [16:31:22]OFD Sender: No OFD packet to send [16:31:27]OFD Sender: No OFD packet to send [16:31:32]OFD Sender: No OFD packet to send [16:31:37]OFD Sender: No OFD packet to send [16:31:42]OFD Sender: No OFD packet to send [16:31:47]OFD Sender: No OFD packet to send [16:31:52]OFD Sender: No OFD packet to send [16:31:58]OFD Sender: No OFD packet to send [16:32:03]OFD Sender: No OFD packet to send [16:32:08]OFD Sender: No OFD packet to send [16:32:13]OFD Sender: No OFD packet to send [16:32:18]OFD Sender: No OFD packet to send [16:32:23]OFD Sender: No OFD packet to send [16:32:28]OFD Sender: No OFD packet to send [16:32:33]OFD Sender: No OFD packet to send [16:32:38]OFD Sender: No OFD packet to send [16:32:40]accept exits with 8 [16:32:40]New connection [16:32:40]New thread 3067141476 created [16:32:40]Thread 3067284836 joined [16:32:40]Waiting for new connection... [16:32:40] Sock 8.Parse request [16:32:40]Sock 8.Check first char [16:32:40]Sock 8.First char is OK [16:32:40]request: POST /json_proto HTTP/1.0 [16:32:40]Method: POST [16:32:40]URL: /json_proto [16:32:40]Method is POST - this is cgi request [16:32:40]url: /json_proto [16:32:40]query_string will be loaded in cgi processing [16:32:40]execute_cgi json_proto POST (null) [16:32:40]execute_cgi path=json_proto method=POST [16:32:40]POST find Content-Length [16:32:40]Host: 172.17.50.196:8080 [16:32:40]Content-Length: 630 [16:32:40]Content-Type: application/json [16:32:40] [16:32:40]POST finish read [16:32:40]Found Content-Length = 630 [16:32:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335335", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:40]execute_script... [16:32: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 : (3)335335", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 50.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:32:40]POST & json_proto [16:32:40]process_json_proto [16:32:40]json parsed OK: [16:32:40]protocol is kg_v1.0 [16:32:40]action value=close_receipt [16:32:40]process_action close_receipt [16:32:40]cmd_close_receipt [16:32:40]MH_GetDate [16:32:40]Write to MH i2c: F0 00 00 3A 49 72 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: F0 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: F0 09 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: F0 09 00 3A 49 00 AE 5F 22 67 72 0D 1C 67 13 [16:32:40]GetLastDocTimeStamp 1730305240 [16:32:40]current date 1730305966 [16:32:40]FM_GetShiftState [16:32:40]SAM_PROTO_GetShiftState [16:32:40]wFMCommunicate request_size=4 [16:32:40]MH_SAM_APDU [16:32:40]CAPDU: 80 13 01 00 [16:32:40]Write to MH i2c: E2 08 00 3B 49 80 13 01 00 00 00 00 00 01 [16:32:40]Write i2c OK [16:32:40]MH_I2C_Read... [16:32:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:40]Read from MH i2c: E2 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 0E 00 [16:32:40]MH_I2C_Read... [16:32:40]Read from MH i2c: E2 0E 00 3B 49 00 09 00 01 86 76 21 67 00 00 00 00 90 00 91 [16:32:40]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:32:40]wFMCommunicate OK [16:32:40]SAM_PROTO_GetShiftState done [16:32:40]FM_GetShiftState done [16:32:40]opened in 1730246278 [16:32:40]opened+sec_in_day 1730332678 [16:32:40]quantity*price = 5000 [16:32:40]sum+1 = 5001 [16:32:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 50.00 НСП 1% : 0.44 НДС 12% : 5.31 Наличными: 50.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 118 30.10.2024 16:32 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139434 ФПД: 271006222125144 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163246&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139434&fm=271006222125144&tin=02508201610067®Number=0000000000091631&sum=5000 0 [16:32:41]StoreToDocumentArchive [16:32:41]shift 556 fd 139434 [16:32:41]save to /storage/0556/doc_00139434 [16:32:41]save last doc name /storage/0556/doc_00139434 to /storage/kkm_last_doc_name [16:32:41]save OK [16:32:41]Clear old archive folders... [16:32:41]ProcessDocumentItem done err = 0, tmpTLVsize=269 [16:32:41]tlvbuf is B6FA6390 [16:32:41]SAM_PROTO_ClearQueue [16:32:41]wFMCommunicate request_size=4 [16:32:41]MH_SAM_APDU [16:32:41]CAPDU: 80 09 00 00 [16:32:41]Write to MH i2c: E2 08 00 48 49 80 09 00 00 00 00 00 00 03 [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:32:41]Read from MH i2c: E2 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 03 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 03 00 48 49 00 90 00 05 [16:32:41]RAPDU: 90 00 [16:32:41]wFMCommunicate OK [16:32:41]SAM_PROTO_ClearQueue done [16:32:41]KKMCreateOFDPacket [16:32:41]OFDProtocolAddRootSTLVToBuf [16:32:41]FM_MakeSignedData [16:32:41]FM_MakeSignedData [16:32:41]SAM_PROTO_SignData [16:32:41]wFMCommunicate request_size=4 [16:32:41]MH_SAM_APDU [16:32:41]CAPDU: 80 0D 01 02 [16:32:41]Write to MH i2c: E2 08 00 49 49 80 0D 01 02 00 00 00 00 0B [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:32:41]Read from MH i2c: E2 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 03 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 03 00 49 49 00 90 00 06 [16:32:41]RAPDU: 90 00 [16:32:41]wFMCommunicate OK [16:32:41]wFMCommunicate request_size=255 [16:32:41]MH_SAM_APDU [16:32:41]CAPDU: 80 0D 02 02 FA 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 00 00 00 F4 03 04 00 AE 5F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 [16:32:41]Write to MH i2c: E2 02 01 4A 49 80 0D 02 02 FA 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 00 00 00 F4 03 04 00 AE 5F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 00 00 57 [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:41]Read from MH i2c: E2 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 03 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 03 00 4A 49 00 90 00 07 [16:32:41]RAPDU: 90 00 [16:32:41]wFMCommunicate OK [16:32:41]wFMCommunicate request_size=28 [16:32:41]MH_SAM_APDU [16:32:41]CAPDU: 80 0D 02 02 17 37 34 36 36 39 10 04 04 00 AA 20 02 00 35 04 06 00 F6 7A 8D 9A 08 58 [16:32:41]Write to MH i2c: E2 1F 00 4B 49 80 0D 02 02 17 00 37 34 36 36 39 10 04 04 00 AA 20 02 00 35 04 06 00 F6 7A 8D 9A 08 58 00 00 66 [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:32:41]Read from MH i2c: E2 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 03 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 03 00 4B 49 00 90 00 08 [16:32:41]RAPDU: 90 00 [16:32:41]wFMCommunicate OK [16:32:41]wFMCommunicate request_size=4 [16:32:41]MH_SAM_APDU [16:32:41]CAPDU: 80 0D 03 02 [16:32:41]Write to MH i2c: E2 08 00 4C 49 80 0D 03 02 00 00 00 00 10 [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:32:41]Read from MH i2c: E2 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 0B 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 0B 00 4C 49 00 9A 27 95 9C 52 C6 94 0B 90 00 BA [16:32:41]RAPDU: 9A 27 95 9C 52 C6 94 0B 90 00 [16:32:41]wFMCommunicate OK [16:32:41]SAM_PROTO_SignData done [16:32:41]FM_MakeSignedData done [16:32:41]CreateOFDProtocolMessage [16:32:41]wFMCommunicate request_size=4 [16:32:41]MH_SAM_APDU [16:32:41]CAPDU: 80 11 00 00 [16:32:41]Write to MH i2c: E2 08 00 4D 49 80 11 00 00 00 00 00 00 10 [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:41]Read from MH i2c: E2 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 17 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: E2 17 00 4D 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6B [16:32:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:32:41]wFMCommunicate OK [16:32:41]CreateOFDProtocolMessage done [16:32:41]OFDSenderStorePacket 139434 [16:32:41]StoreOFDPacket docnum=139434 [16:32:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 AF 54 19 01 0A 48 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 00 00 00 F4 03 04 00 AE 5F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AA 20 02 00 35 04 06 00 F6 7A 8D 9A 08 58 9A 27 95 9C 52 C6 94 0B [16:32:41]CheckFolder [16:32:41]dirname=/storage/ofd_packets [16:32:41]CheckFolder done [16:32:41]ProducePacketName [16:32:41]name=ofd_packets/00139434 [16:32:41]NVStorageSaveData ofd_packets/00139434 [16:32:41]File name is /storage/ofd_packets/00139434 [16:32:41]Write 319 bytes [16:32:41]NVStorageSaveData done [16:32:41]OFDSenderStorePacket done [16:32:41]KKMCreateOFDPacket done [16:32:41]NVStorageSaveData kkm_last_timestamp [16:32:41]File name is /storage/kkm_last_timestamp [16:32:41]Write 4 bytes [16:32:41]NVStorageSaveData done [16:32:41]ExternCall_PrintAddStr [16:32:41]wPrintStart [16:32:41]Write to MH i2c: 01 00 00 4E 49 97 [16:32:41]Write i2c OK [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: 01 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: 01 07 00 [16:32:41]MH_I2C_Read... [16:32:41]Read from MH i2c: 01 07 00 4E 49 00 00 00 00 00 FF 0F AC [16:32:41]RasterBufferAndPrint [16:32:41]line Счет N : (3)335335 [16:32:41]line ИНН: 02508201610067 [16:32:41]line Контрольно-Кассовый Чек [16:32:41]line ПРОДАЖА [16:32:41]line Товар: 4700000160358 [16:32:41]line Вода Легенда 1л [16:32:41]line 1.000 * 50.00 [16:32:41]line = 50.00 [16:32:41]line НДС 12% НСП 1% [16:32:41]line > о реализуемом товаре [16:32:41]line ИТОГО: 50.00 [16:32:41]line НСП 1% : 0.44 [16:32:41]line НДС 12% : 5.31 [16:32:41]line Наличными: 50.00 [16:32:41]line Безнал.: 0.00 [16:32:41]line Место: АЗС № 101 "Партнер Нефть" [16:32:41]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:32:41]line СНО: Общий режим [16:32:41]line Чек 118 30.10.2024 16:32 [16:32:41]line Смена: 556 ФФД: 1.0 [16:32:41]line ЗНМ: 0300000081 [16:32:41]line РНМ: 0000000000091631 [16:32:41]line Версия ККМ: 001 [16:32:41]line ФМ: 0000000000874669 [16:32:41]line ФД: 139434 [16:32:41]line ФПД: 271006222125144 [16:32:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163246&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139434&fm=271006222125144&tin=02508201610067®Number=0000000000091631&sum=5000 [16:32:41]line 0 [16:32:41]written 0, free lines is 4095 [16:32:41]OFD Sender: Processing packet 139434 [packets to send 34, broken 33] [16:32:41]ProducePacketName [16:32:41]name=ofd_packets/00139434 [16:32:41]OFD Sender: To server: pG, [16:32:41]CommunicateWithHost lk.salyk.kg:30040 [16:32:41]ConnectInit lk.salyk.kg [16:32:42]Connected sock=10 [16:32:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 21 01 00 00 AF 54 19 01 0A 48 5A 03 01 00 03 00 0D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 88 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 13 02 00 00 00 00 07 04 06 00 88 13 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 00 00 00 F4 03 04 00 AE 5F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AA 20 02 00 35 04 06 00 F6 7A 8D 9A 08 58 9A 27 95 9C 52 C6 94 0B [16:32:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0E 1E 47 00 4A 39 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AA 20 02 00 F4 03 04 00 5E 0B 22 67 B6 04 01 00 00 A4 45 86 16 97 06 D6 8C [16:32:42]CommunicateWithHost err = 0 [16:32:42]CheckOFDResponse [16:32:42]1017 (14) - 77093643461234 [16:32:42]1041 (16) - 0000000000874669 [16:32:42]1040 (4) - 139434 [16:32:42]1012 (4) - 30.10.2024 10:33 [16:32:42]1206 (1) - 0 [16:32:42]OFD Sender: Remove packet 139434 [16:32:42]ProducePacketName [16:32:42]name=ofd_packets/00139434 [16:32:42]NVStorageDeleteData [16:32:42]Write to MH i2c: 01 00 00 76 49 BF [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: 01 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: 01 07 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: 01 07 00 76 49 00 00 00 00 00 08 0D DB [16:32:42]RasterBufferAndPrint [16:32:42]line [16:32:42]line [16:32:42]line [16:32:42]line [16:32:42]line [16:32:42]written 0, free lines is 3342 [16:32:42]MH_Cut [16:32:42]Write to MH i2c: D1 01 00 7D 49 01 98 [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: D1 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: D1 01 00 [16:32:42]MH_I2C_Read... [16:32:42]Read from MH i2c: D1 01 00 7D 49 00 97 [16:32:42]Write to MH i2c: 01 00 00 7E 49 C7 [16:32:42]Write i2c OK [16:32:42]MH_I2C_Read... [16:32:42]OFD Sender: No OFD packet to send [16:32:42]*** Cut start [16:32:42]*** Partial cut [16:32:42]*** CUTSNS_PIN = 1 [16:32:43]*** CUTSNS_PIN = 0 [16:32:43]*** Brake cut motor [16:32:43]Read from MH i2c: 01 [16:32:43]MH_I2C_Read... [16:32:43]*** Stop cut motor [16:32:43]*** Cut end [16:32:43]Read from MH i2c: 01 07 00 [16:32:43]MH_I2C_Read... [16:32:43]Read from MH i2c: 01 07 00 7E 49 00 00 00 00 00 FF 0F DC [16:32:43]process_action close_receipt done [16:32:43]requested_data is exist [16:32:43]produce_requested_data [16:32:43]requested_item fm.sn is exist - process it [16:32:43]wFMCommunicate request_size=4 [16:32:43]MH_SAM_APDU [16:32:43]CAPDU: 80 11 00 00 [16:32:43]Write to MH i2c: E2 08 00 7F 49 80 11 00 00 00 00 00 00 42 [16:32:43]Write i2c OK [16:32:43]MH_I2C_Read... [16:32:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:32:43]Read from MH i2c: E2 [16:32:43]MH_I2C_Read... [16:32:43]Read from MH i2c: E2 17 00 [16:32:43]MH_I2C_Read... [16:32:43]Read from MH i2c: E2 17 00 7F 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9D [16:32:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:32:43]wFMCommunicate OK [16:32:43]requested_item fd.num is exist - process it [16:32:43]SAM_PROTO_GetFieldsCounters [16:32:43]wFMCommunicate request_size=4 [16:32:43]MH_SAM_APDU [16:32:43]CAPDU: 80 13 00 00 [16:32:43]Write to MH i2c: E2 08 00 80 49 80 13 00 00 00 00 00 00 45 [16:32:43]Write i2c OK [16:32:43]MH_I2C_Read... [16:32:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:32:43]Read from MH i2c: E2 [16:32:43]MH_I2C_Read... [16:32:43]Read from MH i2c: E2 62 00 [16:32:43]MH_I2C_Read... [16:32:43]Read from MH i2c: E2 62 00 80 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AA 20 02 00 0E 04 04 00 2C 02 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 C5 [16:32:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AA 20 02 00 0E 04 04 00 2C 02 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 [16:32:43]wFMCommunicate OK [16:32:43]SAM_PROTO_GetFieldsCounters done [16:32:43]requested_item shift.num is exist - process it [16:32:43]requested_item shift.opened is exist - process it [16:32:43]req_shift_opened [16:32:43]FM_GetShiftState [16:32:43]SAM_PROTO_GetShiftState [16:32:43]wFMCommunicate request_size=4 [16:32:43]MH_SAM_APDU [16:32:43]CAPDU: 80 13 01 00 [16:32:43]Write to MH i2c: E2 08 00 81 49 80 13 01 00 00 00 00 00 47 [16:32:43]Write i2c OK [16:32:43]MH_I2C_Read... [16:32:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:32:43]Read from MH i2c: E2 [16:32:43]MH_I2C_Read... [16:32:43]Read from MH i2c: E2 0E 00 [16:32:43]MH_I2C_Read... [16:32:43]Read from MH i2c: E2 0E 00 81 49 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D7 [16:32:43]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:32:43]wFMCommunicate OK [16:32:43]SAM_PROTO_GetShiftState done [16:32:43]FM_GetShiftState done [16:32:43]req_shift_opened done [16:32:43]requested_item shift.open_date is exist - process it [16:32:43]req_shift_open_date [16:32:43]req_shift_open_date done [16:32:43]produce_requested_data done [16:32:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139434,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:32:43]process_action_free close_receipt [16:32:43]json_value_free [16:32:43]json_value_free done [16:32:43]process_json_proto returns [16:32:43]Send response to host [16:32:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139434,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:32:43]free response buf [16:32:43]execute_script done [16:32:43]execute_script returns [16:32:43]free content buf [16:32:43]Sock 8.Close socket [16:32:43]Sock 8.Thread stoped [16:32:47]OFD Sender: No OFD packet to send [16:32:52]OFD Sender: No OFD packet to send [16:32:57]OFD Sender: No OFD packet to send [16:33:02]OFD Sender: No OFD packet to send [16:33:07]OFD Sender: No OFD packet to send [16:33:12]OFD Sender: No OFD packet to send [16:33:17]OFD Sender: No OFD packet to send [16:33:22]OFD Sender: No OFD packet to send [16:33:27]OFD Sender: No OFD packet to send [16:33:32]OFD Sender: No OFD packet to send [16:33:37]OFD Sender: No OFD packet to send [16:33:42]OFD Sender: No OFD packet to send [16:33:47]OFD Sender: No OFD packet to send [16:33:52]OFD Sender: No OFD packet to send [16:33:57]OFD Sender: No OFD packet to send [16:34:02]OFD Sender: No OFD packet to send [16:34:07]OFD Sender: No OFD packet to send [16:34:12]OFD Sender: No OFD packet to send [16:34:17]OFD Sender: No OFD packet to send [16:34:22]OFD Sender: No OFD packet to send [16:34:27]OFD Sender: No OFD packet to send [16:34:32]OFD Sender: No OFD packet to send [16:34:37]OFD Sender: No OFD packet to send [16:34:42]OFD Sender: No OFD packet to send [16:34:47]OFD Sender: No OFD packet to send [16:34:52]OFD Sender: No OFD packet to send [16:34:57]OFD Sender: No OFD packet to send [16:35:02]OFD Sender: No OFD packet to send [16:35:07]OFD Sender: No OFD packet to send [16:35:12]OFD Sender: No OFD packet to send [16:35:17]OFD Sender: No OFD packet to send [16:35:22]OFD Sender: No OFD packet to send [16:35:27]OFD Sender: No OFD packet to send [16:35:32]OFD Sender: No OFD packet to send [16:35:35]accept exits with 9 [16:35:35]New connection [16:35:35]New thread 3067284836 created [16:35:35]Thread 3067141476 joined [16:35:35]Waiting for new connection... [16:35:35] Sock 9.Parse request [16:35:35]Sock 9.Check first char [16:35:35]Sock 9.First char is OK [16:35:35]request: POST /json_proto HTTP/1.0 [16:35:35]Method: POST [16:35:35]URL: /json_proto [16:35:35]Method is POST - this is cgi request [16:35:35]url: /json_proto [16:35:35]query_string will be loaded in cgi processing [16:35:35]execute_cgi json_proto POST (null) [16:35:35]execute_cgi path=json_proto method=POST [16:35:35]POST find Content-Length [16:35:35]Host: 172.17.50.196:8080 [16:35:35]Content-Length: 763 [16:35:35]Content-Type: application/json [16:35:35] [16:35:35]POST finish read [16:35:35]Found Content-Length = 763 [16:35:35]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335337", "tax_sys" : 0, "items" : [ { "code": "4823077626203", "name": "\u0427\u0435\u0440\u043D \u0448\u043E\u043A\u043E\u043B\u0430\u0434 \u0420\u043E\u0448\u0435\u043D \u042D\u043A\u0441\u0442\u0440\u0430\u0447\u0435\u0440\u043D\u044B\u0439 \u041F\u043E\u0440\u0438\u0441 80", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:35]execute_script... [16:35: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 : (3)335337", "tax_sys" : 0, "items" : [ { "code": "4823077626203", "name": "\u0427\u0435\u0440\u043D \u0448\u043E\u043A\u043E\u043B\u0430\u0434 \u0420\u043E\u0448\u0435\u043D \u042D\u043A\u0441\u0442\u0440\u0430\u0447\u0435\u0440\u043D\u044B\u0439 \u041F\u043E\u0440\u0438\u0441 80", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:35:35]POST & json_proto [16:35:35]process_json_proto [16:35:35]json parsed OK: [16:35:35]protocol is kg_v1.0 [16:35:35]action value=close_receipt [16:35:35]process_action close_receipt [16:35:35]cmd_close_receipt [16:35:35]MH_GetDate [16:35:35]Write to MH i2c: F0 00 00 82 49 BA [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: F0 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: F0 09 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: F0 09 00 82 49 00 5D 60 22 67 72 0D 1C 67 0B [16:35:35]GetLastDocTimeStamp 1730305966 [16:35:35]current date 1730306141 [16:35:35]FM_GetShiftState [16:35:35]SAM_PROTO_GetShiftState [16:35:35]wFMCommunicate request_size=4 [16:35:35]MH_SAM_APDU [16:35:35]CAPDU: 80 13 01 00 [16:35:35]Write to MH i2c: E2 08 00 83 49 80 13 01 00 00 00 00 00 49 [16:35:35]Write i2c OK [16:35:35]MH_I2C_Read... [16:35:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:35]Read from MH i2c: E2 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 0E 00 [16:35:35]MH_I2C_Read... [16:35:35]Read from MH i2c: E2 0E 00 83 49 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D9 [16:35:35]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:35:35]wFMCommunicate OK [16:35:35]SAM_PROTO_GetShiftState done [16:35:35]FM_GetShiftState done [16:35:35]opened in 1730246278 [16:35:35]opened+sec_in_day 1730332678 [16:35:35]quantity*price = 13000 [16:35:35]sum+1 = 13001 [16:35:35]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 119 30.10.2024 16:35 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139435 ФПД: 199425109254861 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163541&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139435&fm=199425109254861&tin=02508201610067®Number=0000000000091631&sum=13000 0 [16:35:36]StoreToDocumentArchive [16:35:36]shift 556 fd 139435 [16:35:36]save to /storage/0556/doc_00139435 [16:35:36]save last doc name /storage/0556/doc_00139435 to /storage/kkm_last_doc_name [16:35:36]save OK [16:35:36]Clear old archive folders... [16:35:36]ProcessDocumentItem done err = 0, tmpTLVsize=315 [16:35:36]tlvbuf is 0111AB70 [16:35:36]SAM_PROTO_ClearQueue [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 09 00 00 [16:35:36]Write to MH i2c: E2 08 00 90 49 80 09 00 00 00 00 00 00 4B [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 90 49 00 90 00 4D [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]SAM_PROTO_ClearQueue done [16:35:36]KKMCreateOFDPacket [16:35:36]OFDProtocolAddRootSTLVToBuf [16:35:36]FM_MakeSignedData [16:35:36]FM_MakeSignedData [16:35:36]SAM_PROTO_SignData [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 01 02 [16:35:36]Write to MH i2c: E2 08 00 91 49 80 0D 01 02 00 00 00 00 53 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 91 49 00 90 00 4E [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]wFMCommunicate request_size=255 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 02 02 FA 03 00 3B 01 1E 04 01 00 01 23 04 8D 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 30 33 06 04 49 00 D0 A7 D0 B5 D1 80 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9F D0 BE D1 80 D0 B8 D1 81 20 38 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 5D 60 22 67 0E 04 [16:35:36]Write to MH i2c: E2 02 01 92 49 80 0D 02 02 FA 00 03 00 3B 01 1E 04 01 00 01 23 04 8D 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 30 33 06 04 49 00 D0 A7 D0 B5 D1 80 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9F D0 BE D1 80 D0 B8 D1 81 20 38 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 5D 60 22 67 0E 04 00 00 43 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 92 49 00 90 00 4F [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]wFMCommunicate request_size=74 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 02 02 45 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 20 02 00 35 04 06 00 B5 60 46 CB E2 CD [16:35:36]Write to MH i2c: E2 4D 00 93 49 80 0D 02 02 45 00 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 20 02 00 35 04 06 00 B5 60 46 CB E2 CD 00 00 4C [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:35:36]Read from MH i2c: E2 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 [16:35:36]MH_I2C_Read... [16:35:36]Read from MH i2c: E2 03 00 93 49 00 90 00 50 [16:35:36]RAPDU: 90 00 [16:35:36]wFMCommunicate OK [16:35:36]wFMCommunicate request_size=4 [16:35:36]MH_SAM_APDU [16:35:36]CAPDU: 80 0D 03 02 [16:35:36]Write to MH i2c: E2 08 00 94 49 80 0D 03 02 00 00 00 00 58 [16:35:36]Write i2c OK [16:35:36]MH_I2C_Read... [16:35:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:35:37]Read from MH i2c: E2 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: E2 0B 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: E2 0B 00 94 49 00 CE FC 99 E0 2E 33 A5 D3 90 00 75 [16:35:37]RAPDU: CE FC 99 E0 2E 33 A5 D3 90 00 [16:35:37]wFMCommunicate OK [16:35:37]SAM_PROTO_SignData done [16:35:37]FM_MakeSignedData done [16:35:37]CreateOFDProtocolMessage [16:35:37]wFMCommunicate request_size=4 [16:35:37]MH_SAM_APDU [16:35:37]CAPDU: 80 11 00 00 [16:35:37]Write to MH i2c: E2 08 00 95 49 80 11 00 00 00 00 00 00 58 [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:37]Read from MH i2c: E2 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: E2 17 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: E2 17 00 95 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B3 [16:35:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:35:37]wFMCommunicate OK [16:35:37]CreateOFDProtocolMessage done [16:35:37]OFDSenderStorePacket 139435 [16:35:37]StoreOFDPacket docnum=139435 [16:35:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 01 00 00 2B 03 47 01 88 6D 5A 03 01 00 03 00 3B 01 1E 04 01 00 01 23 04 8D 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 30 33 06 04 49 00 D0 A7 D0 B5 D1 80 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9F D0 BE D1 80 D0 B8 D1 81 20 38 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 5D 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 20 02 00 35 04 06 00 B5 60 46 CB E2 CD CE FC 99 E0 2E 33 A5 D3 [16:35:37]CheckFolder [16:35:37]dirname=/storage/ofd_packets [16:35:37]CheckFolder done [16:35:37]ProducePacketName [16:35:37]name=ofd_packets/00139435 [16:35:37]NVStorageSaveData ofd_packets/00139435 [16:35:37]File name is /storage/ofd_packets/00139435 [16:35:37]Write 365 bytes [16:35:37]NVStorageSaveData done [16:35:37]OFDSenderStorePacket done [16:35:37]KKMCreateOFDPacket done [16:35:37]NVStorageSaveData kkm_last_timestamp [16:35:37]File name is /storage/kkm_last_timestamp [16:35:37]Write 4 bytes [16:35:37]NVStorageSaveData done [16:35:37]ExternCall_PrintAddStr [16:35:37]wPrintStart [16:35:37]Write to MH i2c: 01 00 00 96 49 DF [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 07 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 07 00 96 49 00 00 00 00 00 FF 0F F4 [16:35:37]RasterBufferAndPrint [16:35:37]line Счет N : (3)335337 [16:35:37]line ИНН: 02508201610067 [16:35:37]line Контрольно-Кассовый Чек [16:35:37]line ПРОДАЖА [16:35:37]line Товар: 4823077626203 [16:35:37]line Черн шоколад Рошен Экстрачерный Порис 80 [16:35:37]line 1.000 * 130.00 [16:35:37]line = 130.00 [16:35:37]line НДС 12% НСП 1% [16:35:37]line > о реализуемом товаре [16:35:37]line ИТОГО: 130.00 [16:35:37]line НСП 1% : 1.15 [16:35:37]line НДС 12% : 13.80 [16:35:37]line Наличными: 130.00 [16:35:37]line Безнал.: 0.00 [16:35:37]line Место: АЗС № 101 "Партнер Нефть" [16:35:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:35:37]line СНО: Общий режим [16:35:37]line Чек 119 30.10.2024 16:35 [16:35:37]line Смена: 556 ФФД: 1.0 [16:35:37]line ЗНМ: 0300000081 [16:35:37]line РНМ: 0000000000091631 [16:35:37]line Версия ККМ: 001 [16:35:37]line ФМ: 0000000000874669 [16:35:37]line ФД: 139435 [16:35:37]line ФПД: 199425109254861 [16:35:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163541&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139435&fm=199425109254861&tin=02508201610067®Number=0000000000091631&sum=13000 [16:35:37]line 0 [16:35:37]OFD Sender: Processing packet 139435 [packets to send 34, broken 33] [16:35:37]ProducePacketName [16:35:37]name=ofd_packets/00139435 [16:35:37]OFD Sender: To server: pG, [16:35:37]CommunicateWithHost lk.salyk.kg:30040 [16:35:37]ConnectInit lk.salyk.kg [16:35:37]written 0, free lines is 4095 [16:35:37]Connected sock=10 [16:35:37]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 01 00 00 2B 03 47 01 88 6D 5A 03 01 00 03 00 3B 01 1E 04 01 00 01 23 04 8D 00 8A 04 0D 00 34 38 32 33 30 37 37 36 32 36 32 30 33 06 04 49 00 D0 A7 D0 B5 D1 80 D0 BD 20 D1 88 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 D0 A0 D0 BE D1 88 D0 B5 D0 BD 20 D0 AD D0 BA D1 81 D1 82 D1 80 D0 B0 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D0 9F D0 BE D1 80 D0 B8 D1 81 20 38 30 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 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 5D 60 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AB 20 02 00 35 04 06 00 B5 60 46 CB E2 CD CE FC 99 E0 2E 33 A5 D3 [16:35:37]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 01 8E 47 00 1E 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 38 37 34 36 36 39 10 04 04 00 AB 20 02 00 F4 03 04 00 0D 0C 22 67 B6 04 01 00 00 BD FA 76 0C 1C 54 AA 2F [16:35:37]CommunicateWithHost err = 0 [16:35:37]CheckOFDResponse [16:35:37]1017 (14) - 77093643461234 [16:35:37]1041 (16) - 0000000000874669 [16:35:37]1040 (4) - 139435 [16:35:37]1012 (4) - 30.10.2024 10:35 [16:35:37]1206 (1) - 0 [16:35:37]OFD Sender: Remove packet 139435 [16:35:37]ProducePacketName [16:35:37]name=ofd_packets/00139435 [16:35:37]NVStorageDeleteData [16:35:37]Write to MH i2c: 01 00 00 BF 49 08 [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 07 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: 01 07 00 BF 49 00 00 00 00 00 FD 0C 18 [16:35:37]RasterBufferAndPrint [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]line [16:35:37]written 0, free lines is 3334 [16:35:37]MH_Cut [16:35:37]Write to MH i2c: D1 01 00 C6 49 01 E1 [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 01 00 [16:35:37]MH_I2C_Read... [16:35:37]Read from MH i2c: D1 01 00 C6 49 00 E0 [16:35:37]Write to MH i2c: 01 00 00 C7 49 10 [16:35:37]Write i2c OK [16:35:37]MH_I2C_Read... [16:35:38]OFD Sender: No OFD packet to send [16:35:38]*** Cut start [16:35:38]*** Partial cut [16:35:38]*** CUTSNS_PIN = 1 [16:35:38]*** CUTSNS_PIN = 0 [16:35:38]*** Brake cut motor [16:35:39]Read from MH i2c: 01 [16:35:39]MH_I2C_Read... [16:35:39]*** Stop cut motor [16:35:39]*** Cut end [16:35:39]Read from MH i2c: 01 07 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: 01 07 00 C7 49 00 00 00 00 00 FF 0F 25 [16:35:39]process_action close_receipt done [16:35:39]requested_data is exist [16:35:39]produce_requested_data [16:35:39]requested_item fm.sn is exist - process it [16:35:39]wFMCommunicate request_size=4 [16:35:39]MH_SAM_APDU [16:35:39]CAPDU: 80 11 00 00 [16:35:39]Write to MH i2c: E2 08 00 C8 49 80 11 00 00 00 00 00 00 8B [16:35:39]Write i2c OK [16:35:39]MH_I2C_Read... [16:35:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:35:39]Read from MH i2c: E2 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 17 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 17 00 C8 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E6 [16:35:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:35:39]wFMCommunicate OK [16:35:39]requested_item fd.num is exist - process it [16:35:39]SAM_PROTO_GetFieldsCounters [16:35:39]wFMCommunicate request_size=4 [16:35:39]MH_SAM_APDU [16:35:39]CAPDU: 80 13 00 00 [16:35:39]Write to MH i2c: E2 08 00 C9 49 80 13 00 00 00 00 00 00 8E [16:35:39]Write i2c OK [16:35:39]MH_I2C_Read... [16:35:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:35:39]Read from MH i2c: E2 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 62 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 62 00 C9 49 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AB 20 02 00 0E 04 04 00 2C 02 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 12 [16:35:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AB 20 02 00 0E 04 04 00 2C 02 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 [16:35:39]wFMCommunicate OK [16:35:39]SAM_PROTO_GetFieldsCounters done [16:35:39]requested_item shift.num is exist - process it [16:35:39]requested_item shift.opened is exist - process it [16:35:39]req_shift_opened [16:35:39]FM_GetShiftState [16:35:39]SAM_PROTO_GetShiftState [16:35:39]wFMCommunicate request_size=4 [16:35:39]MH_SAM_APDU [16:35:39]CAPDU: 80 13 01 00 [16:35:39]Write to MH i2c: E2 08 00 CA 49 80 13 01 00 00 00 00 00 90 [16:35:39]Write i2c OK [16:35:39]MH_I2C_Read... [16:35:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:35:39]Read from MH i2c: E2 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 0E 00 [16:35:39]MH_I2C_Read... [16:35:39]Read from MH i2c: E2 0E 00 CA 49 00 09 00 01 86 76 21 67 00 00 00 00 90 00 20 [16:35:39]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:35:39]wFMCommunicate OK [16:35:39]SAM_PROTO_GetShiftState done [16:35:39]FM_GetShiftState done [16:35:39]req_shift_opened done [16:35:39]requested_item shift.open_date is exist - process it [16:35:39]req_shift_open_date [16:35:39]req_shift_open_date done [16:35:39]produce_requested_data done [16:35:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139435,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:35:39]process_action_free close_receipt [16:35:39]json_value_free [16:35:39]json_value_free done [16:35:39]process_json_proto returns [16:35:39]Send response to host [16:35:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139435,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:35:39]free response buf [16:35:39]execute_script done [16:35:39]execute_script returns [16:35:39]free content buf [16:35:39]Sock 9.Close socket [16:35:39]Sock 9.Thread stoped [16:35:43]OFD Sender: No OFD packet to send [16:35:48]OFD Sender: No OFD packet to send [16:35:53]OFD Sender: No OFD packet to send [16:35:58]OFD Sender: No OFD packet to send [16:36:03]OFD Sender: No OFD packet to send [16:36:08]OFD Sender: No OFD packet to send [16:36:13]OFD Sender: No OFD packet to send [16:36:18]OFD Sender: No OFD packet to send [16:36:23]OFD Sender: No OFD packet to send [16:36:28]OFD Sender: No OFD packet to send [16:36:33]OFD Sender: No OFD packet to send [16:36:38]OFD Sender: No OFD packet to send [16:36:43]OFD Sender: No OFD packet to send [16:36:48]OFD Sender: No OFD packet to send [16:36:53]OFD Sender: No OFD packet to send [16:36:58]OFD Sender: No OFD packet to send [16:37:03]OFD Sender: No OFD packet to send [16:37:08]OFD Sender: No OFD packet to send [16:37:13]OFD Sender: No OFD packet to send [16:37:18]OFD Sender: No OFD packet to send [16:37:23]OFD Sender: No OFD packet to send [16:37:28]OFD Sender: No OFD packet to send [16:37:33]OFD Sender: No OFD packet to send [16:37:38]OFD Sender: No OFD packet to send [16:37:43]OFD Sender: No OFD packet to send [16:37:48]OFD Sender: No OFD packet to send [16:37:53]OFD Sender: No OFD packet to send [16:37:58]OFD Sender: No OFD packet to send [16:38:03]OFD Sender: No OFD packet to send [16:38:08]OFD Sender: No OFD packet to send [16:38:13]OFD Sender: No OFD packet to send [16:38:18]OFD Sender: No OFD packet to send [16:38:23]OFD Sender: No OFD packet to send [16:38:28]OFD Sender: No OFD packet to send [16:38:33]OFD Sender: No OFD packet to send [16:38:34]accept exits with 8 [16:38:34]New connection [16:38:34]New thread 3067141476 created [16:38:34]Thread 3067284836 joined [16:38:34]Waiting for new connection... [16:38:34] Sock 8.Parse request [16:38:34]Sock 8.Check first char [16:38:34]Sock 8.First char is OK [16:38:34]request: POST /json_proto HTTP/1.0 [16:38:34]Method: POST [16:38:34]URL: /json_proto [16:38:34]Method is POST - this is cgi request [16:38:34]url: /json_proto [16:38:34]query_string will be loaded in cgi processing [16:38:34]execute_cgi json_proto POST (null) [16:38:34]execute_cgi path=json_proto method=POST [16:38:34]POST find Content-Length [16:38:34]Host: 172.17.50.196:8080 [16:38:34]Content-Length: 660 [16:38:34]Content-Type: application/json [16:38:34] [16:38:34]POST finish read [16:38:34]Found Content-Length = 660 [16:38:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335338", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:34]execute_script... [16:38: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 : (3)335338", "tax_sys" : 0, "items" : [ { "code": "5449000000439", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 1,5\u043B", "price" : 155.00, "quantity" : 1.000, "sum" : 155.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 155.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:38:34]POST & json_proto [16:38:34]process_json_proto [16:38:34]json parsed OK: [16:38:34]protocol is kg_v1.0 [16:38:34]action value=close_receipt [16:38:34]process_action close_receipt [16:38:34]cmd_close_receipt [16:38:34]MH_GetDate [16:38:34]Write to MH i2c: F0 00 00 CB 49 03 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: F0 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: F0 09 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: F0 09 00 CB 49 00 10 61 22 67 72 0D 1C 67 08 [16:38:34]GetLastDocTimeStamp 1730306141 [16:38:34]current date 1730306320 [16:38:34]FM_GetShiftState [16:38:34]SAM_PROTO_GetShiftState [16:38:34]wFMCommunicate request_size=4 [16:38:34]MH_SAM_APDU [16:38:34]CAPDU: 80 13 01 00 [16:38:34]Write to MH i2c: E2 08 00 CC 49 80 13 01 00 00 00 00 00 92 [16:38:34]Write i2c OK [16:38:34]MH_I2C_Read... [16:38:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:34]Read from MH i2c: E2 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 0E 00 [16:38:34]MH_I2C_Read... [16:38:34]Read from MH i2c: E2 0E 00 CC 49 00 09 00 01 86 76 21 67 00 00 00 00 90 00 22 [16:38:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:38:34]wFMCommunicate OK [16:38:34]SAM_PROTO_GetShiftState done [16:38:34]FM_GetShiftState done [16:38:34]opened in 1730246278 [16:38:34]opened+sec_in_day 1730332678 [16:38:34]quantity*price = 15500 [16:38:34]sum+1 = 15501 [16:38:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 155.00 НСП 1% : 1.37 НДС 12% : 16.46 Наличными: 155.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 120 30.10.2024 16:38 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139436 ФПД: 78198562777130 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163840&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139436&fm=78198562777130&tin=02508201610067®Number=0000000000091631&sum=15500 0 [16:38:35]StoreToDocumentArchive [16:38:35]shift 556 fd 139436 [16:38:35]save to /storage/0556/doc_00139436 [16:38:35]save last doc name /storage/0556/doc_00139436 to /storage/kkm_last_doc_name [16:38:35]save OK [16:38:35]Clear old archive folders... [16:38:35]ProcessDocumentItem done err = 0, tmpTLVsize=280 [16:38:35]tlvbuf is 011739E0 [16:38:35]SAM_PROTO_ClearQueue [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 09 00 00 [16:38:35]Write to MH i2c: E2 08 00 D9 49 80 09 00 00 00 00 00 00 94 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 D9 49 00 90 00 96 [16:38:35]RAPDU: 90 00 [16:38:35]wFMCommunicate OK [16:38:35]SAM_PROTO_ClearQueue done [16:38:35]KKMCreateOFDPacket [16:38:35]OFDProtocolAddRootSTLVToBuf [16:38:35]FM_MakeSignedData [16:38:35]FM_MakeSignedData [16:38:35]SAM_PROTO_SignData [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 0D 01 02 [16:38:35]Write to MH i2c: E2 08 00 DA 49 80 0D 01 02 00 00 00 00 9C [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 DA 49 00 90 00 97 [16:38:35]RAPDU: 90 00 [16:38:35]wFMCommunicate OK [16:38:35]wFMCommunicate request_size=255 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 0D 02 02 FA 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 10 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [16:38:35]Write to MH i2c: E2 02 01 DB 49 80 0D 02 02 FA 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 10 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 00 50 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 DB 49 00 90 00 98 [16:38:35]RAPDU: 90 00 [16:38:35]wFMCommunicate OK [16:38:35]wFMCommunicate request_size=39 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 20 02 00 35 04 06 00 47 1F 05 8E 68 2A [16:38:35]Write to MH i2c: E2 2A 00 DC 49 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 20 02 00 35 04 06 00 47 1F 05 8E 68 2A 00 00 BB [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 03 00 DC 49 00 90 00 99 [16:38:35]RAPDU: 90 00 [16:38:35]wFMCommunicate OK [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 0D 03 02 [16:38:35]Write to MH i2c: E2 08 00 DD 49 80 0D 03 02 00 00 00 00 A1 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 0B 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 0B 00 DD 49 00 54 32 3C CD F8 BD B5 BF 90 00 5A [16:38:35]RAPDU: 54 32 3C CD F8 BD B5 BF 90 00 [16:38:35]wFMCommunicate OK [16:38:35]SAM_PROTO_SignData done [16:38:35]FM_MakeSignedData done [16:38:35]CreateOFDProtocolMessage [16:38:35]wFMCommunicate request_size=4 [16:38:35]MH_SAM_APDU [16:38:35]CAPDU: 80 11 00 00 [16:38:35]Write to MH i2c: E2 08 00 DE 49 80 11 00 00 00 00 00 00 A1 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:35]Read from MH i2c: E2 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 17 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: E2 17 00 DE 49 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FC [16:38:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:38:35]wFMCommunicate OK [16:38:35]CreateOFDProtocolMessage done [16:38:35]OFDSenderStorePacket 139436 [16:38:35]StoreOFDPacket docnum=139436 [16:38:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 24 18 24 01 C7 61 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 10 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 20 02 00 35 04 06 00 47 1F 05 8E 68 2A 54 32 3C CD F8 BD B5 BF [16:38:35]CheckFolder [16:38:35]dirname=/storage/ofd_packets [16:38:35]CheckFolder done [16:38:35]ProducePacketName [16:38:35]name=ofd_packets/00139436 [16:38:35]NVStorageSaveData ofd_packets/00139436 [16:38:35]File name is /storage/ofd_packets/00139436 [16:38:35]Write 330 bytes [16:38:35]NVStorageSaveData done [16:38:35]OFDSenderStorePacket done [16:38:35]KKMCreateOFDPacket done [16:38:35]NVStorageSaveData kkm_last_timestamp [16:38:35]File name is /storage/kkm_last_timestamp [16:38:35]Write 4 bytes [16:38:35]NVStorageSaveData done [16:38:35]ExternCall_PrintAddStr [16:38:35]wPrintStart [16:38:35]Write to MH i2c: 01 00 00 DF 49 28 [16:38:35]Write i2c OK [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 07 00 [16:38:35]MH_I2C_Read... [16:38:35]Read from MH i2c: 01 07 00 DF 49 00 00 00 00 00 FF 0F 3D [16:38:35]RasterBufferAndPrint [16:38:35]line Счет N : (3)335338 [16:38:35]line ИНН: 02508201610067 [16:38:35]line Контрольно-Кассовый Чек [16:38:35]line ПРОДАЖА [16:38:35]line Товар: 5449000000439 [16:38:35]line Напиток Кока-Кола 1,5л [16:38:35]line 1.000 * 155.00 [16:38:35]line = 155.00 [16:38:35]line НДС 12% НСП 1% [16:38:35]line > о реализуемом товаре [16:38:35]line ИТОГО: 155.00 [16:38:35]line НСП 1% : 1.37 [16:38:35]line НДС 12% : 16.46 [16:38:35]line Наличными: 155.00 [16:38:35]line Безнал.: 0.00 [16:38:35]line Место: АЗС № 101 "Партнер Нефть" [16:38:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:38:35]line СНО: Общий режим [16:38:35]line Чек 120 30.10.2024 16:38 [16:38:35]line Смена: 556 ФФД: 1.0 [16:38:35]line ЗНМ: 0300000081 [16:38:35]line РНМ: 0000000000091631 [16:38:35]line Версия ККМ: 001 [16:38:35]line ФМ: 0000000000874669 [16:38:35]line ФД: 139436 [16:38:35]line ФПД: 78198562777130 [16:38:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163840&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139436&fm=78198562777130&tin=02508201610067®Number=0000000000091631&sum=15500 [16:38:36]line 0 [16:38:36]OFD Sender: Processing packet 139436 [packets to send 34, broken 33] [16:38:36]ProducePacketName [16:38:36]name=ofd_packets/00139436 [16:38:36]OFD Sender: To server: pG, [16:38:36]CommunicateWithHost lk.salyk.kg:30040 [16:38:36]ConnectInit lk.salyk.kg [16:38:36]written 0, free lines is 4095 [16:38:36]Connected sock=10 [16:38:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2C 01 00 00 24 18 24 01 C7 61 5A 03 01 00 03 00 18 01 1E 04 01 00 01 23 04 6A 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 34 33 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 31 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 8C 3C 00 00 00 00 13 04 06 00 8C 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 8C 3C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 89 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6E 06 00 00 00 00 07 04 06 00 8C 3C 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 78 00 00 00 F4 03 04 00 10 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 20 02 00 35 04 06 00 47 1F 05 8E 68 2A 54 32 3C CD F8 BD B5 BF [16:38:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2F 78 47 00 F6 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AC 20 02 00 F4 03 04 00 C0 0C 22 67 B6 04 01 00 00 0C 1E 88 36 87 D5 A6 E3 [16:38:36]CommunicateWithHost err = 0 [16:38:36]CheckOFDResponse [16:38:36]1017 (14) - 77093643461234 [16:38:36]1041 (16) - 0000000000874669 [16:38:36]1040 (4) - 139436 [16:38:36]1012 (4) - 30.10.2024 10:38 [16:38:36]1206 (1) - 0 [16:38:36]OFD Sender: Remove packet 139436 [16:38:36]ProducePacketName [16:38:36]name=ofd_packets/00139436 [16:38:36]NVStorageDeleteData [16:38:36]Write to MH i2c: 01 00 00 07 4A 51 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 07 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: 01 07 00 07 4A 00 00 00 00 00 09 0D 6E [16:38:36]RasterBufferAndPrint [16:38:36]line [16:38:36]line [16:38:36]line [16:38:36]line [16:38:36]line [16:38:36]written 0, free lines is 3346 [16:38:36]MH_Cut [16:38:36]Write to MH i2c: D1 01 00 0E 4A 01 2A [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: D1 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: D1 01 00 [16:38:36]MH_I2C_Read... [16:38:36]Read from MH i2c: D1 01 00 0E 4A 00 29 [16:38:36]Write to MH i2c: 01 00 00 0F 4A 59 [16:38:36]Write i2c OK [16:38:36]MH_I2C_Read... [16:38:37]OFD Sender: No OFD packet to send [16:38:37]*** Cut start [16:38:37]*** Partial cut [16:38:37]*** CUTSNS_PIN = 1 [16:38:37]*** CUTSNS_PIN = 0 [16:38:37]*** Brake cut motor [16:38:37]Read from MH i2c: 01 [16:38:37]MH_I2C_Read... [16:38:37]*** Stop cut motor [16:38:37]*** Cut end [16:38:37]Read from MH i2c: 01 07 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: 01 07 00 0F 4A 00 00 00 00 00 FF 0F 6E [16:38:37]process_action close_receipt done [16:38:37]requested_data is exist [16:38:37]produce_requested_data [16:38:37]requested_item fm.sn is exist - process it [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 11 00 00 [16:38:37]Write to MH i2c: E2 08 00 10 4A 80 11 00 00 00 00 00 00 D4 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:38:37]Read from MH i2c: E2 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 [16:38:37]MH_I2C_Read... [16:38:37]Read from MH i2c: E2 17 00 10 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2F [16:38:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:38:37]wFMCommunicate OK [16:38:37]requested_item fd.num is exist - process it [16:38:37]SAM_PROTO_GetFieldsCounters [16:38:37]wFMCommunicate request_size=4 [16:38:37]MH_SAM_APDU [16:38:37]CAPDU: 80 13 00 00 [16:38:37]Write to MH i2c: E2 08 00 11 4A 80 13 00 00 00 00 00 00 D7 [16:38:37]Write i2c OK [16:38:37]MH_I2C_Read... [16:38:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:38:38]Read from MH i2c: E2 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 62 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 62 00 11 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AC 20 02 00 0E 04 04 00 2C 02 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 5F [16:38:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AC 20 02 00 0E 04 04 00 2C 02 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 [16:38:38]wFMCommunicate OK [16:38:38]SAM_PROTO_GetFieldsCounters done [16:38:38]requested_item shift.num is exist - process it [16:38:38]requested_item shift.opened is exist - process it [16:38:38]req_shift_opened [16:38:38]FM_GetShiftState [16:38:38]SAM_PROTO_GetShiftState [16:38:38]wFMCommunicate request_size=4 [16:38:38]MH_SAM_APDU [16:38:38]CAPDU: 80 13 01 00 [16:38:38]Write to MH i2c: E2 08 00 12 4A 80 13 01 00 00 00 00 00 D9 [16:38:38]Write i2c OK [16:38:38]MH_I2C_Read... [16:38:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:38:38]Read from MH i2c: E2 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 0E 00 [16:38:38]MH_I2C_Read... [16:38:38]Read from MH i2c: E2 0E 00 12 4A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 69 [16:38:38]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:38:38]wFMCommunicate OK [16:38:38]SAM_PROTO_GetShiftState done [16:38:38]FM_GetShiftState done [16:38:38]req_shift_opened done [16:38:38]requested_item shift.open_date is exist - process it [16:38:38]req_shift_open_date [16:38:38]req_shift_open_date done [16:38:38]produce_requested_data done [16:38:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139436,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:38:38]process_action_free close_receipt [16:38:38]json_value_free [16:38:38]json_value_free done [16:38:38]process_json_proto returns [16:38:38]Send response to host [16:38:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139436,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:38:38]free response buf [16:38:38]execute_script done [16:38:38]execute_script returns [16:38:38]free content buf [16:38:38]Sock 8.Close socket [16:38:38]Sock 8.Thread stoped [16:38:42]OFD Sender: No OFD packet to send [16:38:47]OFD Sender: No OFD packet to send [16:38:52]OFD Sender: No OFD packet to send [16:38:57]OFD Sender: No OFD packet to send [16:39:02]OFD Sender: No OFD packet to send [16:39:07]OFD Sender: No OFD packet to send [16:39:12]OFD Sender: No OFD packet to send [16:39:17]OFD Sender: No OFD packet to send [16:39:22]OFD Sender: No OFD packet to send [16:39:27]OFD Sender: No OFD packet to send [16:39:32]OFD Sender: No OFD packet to send [16:39:37]OFD Sender: No OFD packet to send [16:39:42]OFD Sender: No OFD packet to send [16:39:47]OFD Sender: No OFD packet to send [16:39:47]accept exits with 9 [16:39:47]New connection [16:39:47]New thread 3067284836 created [16:39:47]Thread 3067141476 joined [16:39:47]Waiting for new connection... [16:39:47] Sock 9.Parse request [16:39:47]Sock 9.Check first char [16:39:47]Sock 9.First char is OK [16:39:47]request: POST /json_proto HTTP/1.0 [16:39:47]Method: POST [16:39:47]URL: /json_proto [16:39:47]Method is POST - this is cgi request [16:39:47]url: /json_proto [16:39:47]query_string will be loaded in cgi processing [16:39:47]execute_cgi json_proto POST (null) [16:39:47]execute_cgi path=json_proto method=POST [16:39:47]POST find Content-Length [16:39:47]Host: 172.17.50.196:8080 [16:39:47]Content-Length: 806 [16:39:47]Content-Type: application/json [16:39:47] [16:39:47]POST finish read [16:39:47]Found Content-Length = 806 [16:39:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "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\u000A4690828", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:47]execute_script... [16: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)1094632", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "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\u000A4690828", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:39:47]POST & json_proto [16:39:47]process_json_proto [16:39:47]json parsed OK: [16:39:47]protocol is kg_v1.0 [16:39:47]action value=close_receipt [16:39:47]process_action close_receipt [16:39:47]cmd_close_receipt [16:39:47]MH_GetDate [16:39:47]Write to MH i2c: F0 00 00 13 4A 4C [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: F0 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: F0 09 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: F0 09 00 13 4A 00 59 61 22 67 72 0D 1C 67 9A [16:39:47]GetLastDocTimeStamp 1730306320 [16:39:47]current date 1730306393 [16:39:47]FM_GetShiftState [16:39:47]SAM_PROTO_GetShiftState [16:39:47]wFMCommunicate request_size=4 [16:39:47]MH_SAM_APDU [16:39:47]CAPDU: 80 13 01 00 [16:39:47]Write to MH i2c: E2 08 00 14 4A 80 13 01 00 00 00 00 00 DB [16:39:47]Write i2c OK [16:39:47]MH_I2C_Read... [16:39:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:47]Read from MH i2c: E2 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: E2 0E 00 [16:39:47]MH_I2C_Read... [16:39:47]Read from MH i2c: E2 0E 00 14 4A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6B [16:39:47]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:39:47]wFMCommunicate OK [16:39:47]SAM_PROTO_GetShiftState done [16:39:47]FM_GetShiftState done [16:39:47]opened in 1730246278 [16:39:47]opened+sec_in_day 1730332678 [16:39:47]quantity*price = 0 [16:39:47]sum+1 = 1 [16:39:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 121 30.10.2024 16:39 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: Топливные Талоны 4690828 ФМ: 0000000000874669 ФД: 139437 ФПД: 222532062123123 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163953&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139437&fm=222532062123123&tin=02508201610067®Number=0000000000091631&sum=0 [16:39:48]StoreToDocumentArchive [16:39:48]shift 556 fd 139437 [16:39:48]save to /storage/0556/doc_00139437 [16:39:48]save last doc name /storage/0556/doc_00139437 to /storage/kkm_last_doc_name [16:39:48]save OK [16:39:48]Clear old archive folders... [16:39:48]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:39:48]tlvbuf is 0112D070 [16:39:48]SAM_PROTO_ClearQueue [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 09 00 00 [16:39:48]Write to MH i2c: E2 08 00 21 4A 80 09 00 00 00 00 00 00 DD [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 21 4A 00 90 00 DF [16:39:48]RAPDU: 90 00 [16:39:48]wFMCommunicate OK [16:39:48]SAM_PROTO_ClearQueue done [16:39:48]KKMCreateOFDPacket [16:39:48]OFDProtocolAddRootSTLVToBuf [16:39:48]FM_MakeSignedData [16:39:48]FM_MakeSignedData [16:39:48]SAM_PROTO_SignData [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 0D 01 02 [16:39:48]Write to MH i2c: E2 08 00 22 4A 80 0D 01 02 00 00 00 00 E5 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 22 4A 00 90 00 E0 [16:39:48]RAPDU: 90 00 [16:39:48]wFMCommunicate OK [16:39:48]wFMCommunicate request_size=255 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 59 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 20 02 00 35 04 06 00 [16:39:48]Write to MH i2c: E2 02 01 23 4A 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 59 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 20 02 00 35 04 06 00 00 00 51 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 23 4A 00 90 00 E1 [16:39:48]RAPDU: 90 00 [16:39:48]wFMCommunicate OK [16:39:48]wFMCommunicate request_size=11 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 0D 02 02 06 CA 64 48 83 94 73 [16:39:48]Write to MH i2c: E2 0E 00 24 4A 80 0D 02 02 06 00 CA 64 48 83 94 73 00 00 F4 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 03 00 24 4A 00 90 00 E2 [16:39:48]RAPDU: 90 00 [16:39:48]wFMCommunicate OK [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 0D 03 02 [16:39:48]Write to MH i2c: E2 08 00 25 4A 80 0D 03 02 00 00 00 00 EA [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 0B 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 0B 00 25 4A 00 46 9C 70 C5 F1 E4 AA 02 90 00 83 [16:39:48]RAPDU: 46 9C 70 C5 F1 E4 AA 02 90 00 [16:39:48]wFMCommunicate OK [16:39:48]SAM_PROTO_SignData done [16:39:48]FM_MakeSignedData done [16:39:48]CreateOFDProtocolMessage [16:39:48]wFMCommunicate request_size=4 [16:39:48]MH_SAM_APDU [16:39:48]CAPDU: 80 11 00 00 [16:39:48]Write to MH i2c: E2 08 00 26 4A 80 11 00 00 00 00 00 00 EA [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:48]Read from MH i2c: E2 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 17 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: E2 17 00 26 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 45 [16:39:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:39:48]wFMCommunicate OK [16:39:48]CreateOFDProtocolMessage done [16:39:48]OFDSenderStorePacket 139437 [16:39:48]StoreOFDPacket docnum=139437 [16:39:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 7D 96 08 01 65 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 59 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 20 02 00 35 04 06 00 CA 64 48 83 94 73 46 9C 70 C5 F1 E4 AA 02 [16:39:48]CheckFolder [16:39:48]dirname=/storage/ofd_packets [16:39:48]CheckFolder done [16:39:48]ProducePacketName [16:39:48]name=ofd_packets/00139437 [16:39:48]NVStorageSaveData ofd_packets/00139437 [16:39:48]File name is /storage/ofd_packets/00139437 [16:39:48]Write 302 bytes [16:39:48]NVStorageSaveData done [16:39:48]OFDSenderStorePacket done [16:39:48]KKMCreateOFDPacket done [16:39:48]NVStorageSaveData kkm_last_timestamp [16:39:48]File name is /storage/kkm_last_timestamp [16:39:48]Write 4 bytes [16:39:48]NVStorageSaveData done [16:39:48]ExternCall_PrintAddStr [16:39:48]wPrintStart [16:39:48]Write to MH i2c: 01 00 00 27 4A 71 [16:39:48]Write i2c OK [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: 01 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: 01 07 00 [16:39:48]MH_I2C_Read... [16:39:48]Read from MH i2c: 01 07 00 27 4A 00 00 00 00 00 FF 0F 86 [16:39:48]RasterBufferAndPrint [16:39:48]line Счет N : (1)1094632 [16:39:48]line ИНН: 02508201610067 [16:39:48]line Контрольно-Кассовый Чек [16:39:48]line ПРОДАЖА [16:39:48]line ТРК (МРК, ГНК) : 41 [16:39:48]line Товар: 2710194210 [16:39:48]line ДТ(л)-К-2 [16:39:48]line 20.000 * 0.00 [16:39:48]line = 0.00 [16:39:48]line НДС 12% НСП 1% [16:39:48]line > о реализуемом товаре [16:39:48]line ИТОГО: 0.00 [16:39:48]line НСП 1% : 0.00 [16:39:48]line НДС 12% : 0.00 [16:39:48]line Наличными: 0.00 [16:39:48]line Безнал.: 0.00 [16:39:48]line Место: АЗС № 101 "Партнер Нефть" [16:39:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:39:48]line СНО: Общий режим [16:39:48]line Чек 121 30.10.2024 16:39 [16:39:48]line Смена: 556 ФФД: 1.0 [16:39:48]line ЗНМ: 0300000081 [16:39:48]line РНМ: 0000000000091631 [16:39:48]line Версия ККМ: 001 [16:39:48]line Талоны: Топливные Талоны [16:39:48]line 4690828 [16:39:48]line ФМ: 0000000000874669 [16:39:48]line ФД: 139437 [16:39:48]line ФПД: 222532062123123 [16:39:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T163953&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139437&fm=222532062123123&tin=02508201610067®Number=0000000000091631&sum=0 [16:39:49]written 0, free lines is 4095 [16:39:49]OFD Sender: Processing packet 139437 [packets to send 34, broken 33] [16:39:49]ProducePacketName [16:39:49]name=ofd_packets/00139437 [16:39:49]OFD Sender: To server: pG, [16:39:49]CommunicateWithHost lk.salyk.kg:30040 [16:39:49]ConnectInit lk.salyk.kg [16:39:49]Connected sock=10 [16:39:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 7D 96 08 01 65 81 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 79 00 00 00 F4 03 04 00 59 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 20 02 00 35 04 06 00 CA 64 48 83 94 73 46 9C 70 C5 F1 E4 AA 02 [16:39:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D0 E2 47 00 32 3E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AD 20 02 00 F4 03 04 00 09 0D 22 67 B6 04 01 00 00 69 38 52 0A 59 F6 28 3A [16:39:49]CommunicateWithHost err = 0 [16:39:49]CheckOFDResponse [16:39:49]1017 (14) - 77093643461234 [16:39:49]1041 (16) - 0000000000874669 [16:39:49]1040 (4) - 139437 [16:39:49]1012 (4) - 30.10.2024 10:40 [16:39:49]1206 (1) - 0 [16:39:49]OFD Sender: Remove packet 139437 [16:39:49]ProducePacketName [16:39:49]name=ofd_packets/00139437 [16:39:49]NVStorageDeleteData [16:39:49]Write to MH i2c: 01 00 00 51 4A 9B [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 07 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: 01 07 00 51 4A 00 00 00 00 00 F7 0C A5 [16:39:49]RasterBufferAndPrint [16:39:49]line [16:39:49]line [16:39:49]line [16:39:49]line [16:39:49]line [16:39:49]written 0, free lines is 3325 [16:39:49]MH_Cut [16:39:49]Write to MH i2c: D1 01 00 58 4A 01 74 [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: D1 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: D1 01 00 [16:39:49]MH_I2C_Read... [16:39:49]Read from MH i2c: D1 01 00 58 4A 00 73 [16:39:49]Write to MH i2c: 01 00 00 59 4A A3 [16:39:49]Write i2c OK [16:39:49]MH_I2C_Read... [16:39:50]OFD Sender: No OFD packet to send [16:39:50]*** Cut start [16:39:50]*** Partial cut [16:39:50]*** CUTSNS_PIN = 1 [16:39:50]*** CUTSNS_PIN = 0 [16:39:50]*** Brake cut motor [16:39:51]Read from MH i2c: 01 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: 01 07 00 [16:39:51]MH_I2C_Read... [16:39:51]*** Stop cut motor [16:39:51]*** Cut end [16:39:51]Read from MH i2c: 01 07 00 59 4A 00 00 00 00 00 FF 0F B8 [16:39:51]process_action close_receipt done [16:39:51]requested_data is exist [16:39:51]produce_requested_data [16:39:51]requested_item fm.sn is exist - process it [16:39:51]wFMCommunicate request_size=4 [16:39:51]MH_SAM_APDU [16:39:51]CAPDU: 80 11 00 00 [16:39:51]Write to MH i2c: E2 08 00 5A 4A 80 11 00 00 00 00 00 00 1E [16:39:51]Write i2c OK [16:39:51]MH_I2C_Read... [16:39:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:39:51]Read from MH i2c: E2 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 17 00 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 17 00 5A 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 79 [16:39:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:39:51]wFMCommunicate OK [16:39:51]requested_item fd.num is exist - process it [16:39:51]SAM_PROTO_GetFieldsCounters [16:39:51]wFMCommunicate request_size=4 [16:39:51]MH_SAM_APDU [16:39:51]CAPDU: 80 13 00 00 [16:39:51]Write to MH i2c: E2 08 00 5B 4A 80 13 00 00 00 00 00 00 21 [16:39:51]Write i2c OK [16:39:51]MH_I2C_Read... [16:39:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:39:51]Read from MH i2c: E2 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 62 00 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 62 00 5B 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AD 20 02 00 0E 04 04 00 2C 02 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 AD [16:39:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AD 20 02 00 0E 04 04 00 2C 02 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 [16:39:51]wFMCommunicate OK [16:39:51]SAM_PROTO_GetFieldsCounters done [16:39:51]requested_item shift.num is exist - process it [16:39:51]requested_item shift.opened is exist - process it [16:39:51]req_shift_opened [16:39:51]FM_GetShiftState [16:39:51]SAM_PROTO_GetShiftState [16:39:51]wFMCommunicate request_size=4 [16:39:51]MH_SAM_APDU [16:39:51]CAPDU: 80 13 01 00 [16:39:51]Write to MH i2c: E2 08 00 5C 4A 80 13 01 00 00 00 00 00 23 [16:39:51]Write i2c OK [16:39:51]MH_I2C_Read... [16:39:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:39:51]Read from MH i2c: E2 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 0E 00 [16:39:51]MH_I2C_Read... [16:39:51]Read from MH i2c: E2 0E 00 5C 4A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B3 [16:39:51]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:39:51]wFMCommunicate OK [16:39:51]SAM_PROTO_GetShiftState done [16:39:51]FM_GetShiftState done [16:39:51]req_shift_opened done [16:39:51]requested_item shift.open_date is exist - process it [16:39:51]req_shift_open_date [16:39:51]req_shift_open_date done [16:39:51]produce_requested_data done [16:39:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139437,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:39:51]process_action_free close_receipt [16:39:51]json_value_free [16:39:51]json_value_free done [16:39:51]process_json_proto returns [16:39:51]Send response to host [16:39:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139437,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:39:51]free response buf [16:39:51]execute_script done [16:39:51]execute_script returns [16:39:51]free content buf [16:39:51]Sock 9.Close socket [16:39:51]Sock 9.Thread stoped [16:39:55]OFD Sender: No OFD packet to send [16:40:00]OFD Sender: No OFD packet to send [16:40:05]OFD Sender: No OFD packet to send [16:40:10]OFD Sender: No OFD packet to send [16:40:15]OFD Sender: No OFD packet to send [16:40:20]OFD Sender: No OFD packet to send [16:40:25]OFD Sender: No OFD packet to send [16:40:27]accept exits with 8 [16:40:27]New connection [16:40:27]New thread 3067141476 created [16:40:27]Thread 3067284836 joined [16:40:27]Waiting for new connection... [16:40:27] Sock 8.Parse request [16:40:27]Sock 8.Check first char [16:40:27]Sock 8.First char is OK [16:40:27]request: POST /json_proto HTTP/1.0 [16:40:27]Method: POST [16:40:27]URL: /json_proto [16:40:27]Method is POST - this is cgi request [16:40:27]url: /json_proto [16:40:27]query_string will be loaded in cgi processing [16:40:27]execute_cgi json_proto POST (null) [16:40:27]execute_cgi path=json_proto method=POST [16:40:27]POST find Content-Length [16:40:27]Host: 172.17.50.196:8080 [16:40:27]Content-Length: 614 [16:40:27]Content-Type: application/json [16:40:27] [16:40:27]POST finish read [16:40:27]Found Content-Length = 614 [16:40:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335339", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:27]execute_script... [16: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 : (3)335339", "tax_sys" : 0, "items" : [ { "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:40:27]POST & json_proto [16:40:27]process_json_proto [16:40:27]json parsed OK: [16:40:27]protocol is kg_v1.0 [16:40:27]action value=close_receipt [16:40:27]process_action close_receipt [16:40:27]cmd_close_receipt [16:40:27]MH_GetDate [16:40:27]Write to MH i2c: F0 00 00 5D 4A 96 [16:40:27]Write i2c OK [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: F0 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: F0 09 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: F0 09 00 5D 4A 00 81 61 22 67 72 0D 1C 67 0C [16:40:27]GetLastDocTimeStamp 1730306393 [16:40:27]current date 1730306433 [16:40:27]FM_GetShiftState [16:40:27]SAM_PROTO_GetShiftState [16:40:27]wFMCommunicate request_size=4 [16:40:27]MH_SAM_APDU [16:40:27]CAPDU: 80 13 01 00 [16:40:27]Write to MH i2c: E2 08 00 5E 4A 80 13 01 00 00 00 00 00 25 [16:40:27]Write i2c OK [16:40:27]MH_I2C_Read... [16:40:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:27]Read from MH i2c: E2 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 0E 00 [16:40:27]MH_I2C_Read... [16:40:27]Read from MH i2c: E2 0E 00 5E 4A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B5 [16:40:27]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:40:27]wFMCommunicate OK [16:40:27]SAM_PROTO_GetShiftState done [16:40:27]FM_GetShiftState done [16:40:27]opened in 1730246278 [16:40:27]opened+sec_in_day 1730332678 [16:40:27]quantity*price = 11900 [16:40:27]sum+1 = 11901 [16:40:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.05 НДС 12% : 12.64 Наличными: 119.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 122 30.10.2024 16:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139438 ФПД: 63372126642311 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164033&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139438&fm=63372126642311&tin=02508201610067®Number=0000000000091631&sum=11900 0 [16:40:28]StoreToDocumentArchive [16:40:28]shift 556 fd 139438 [16:40:28]save to /storage/0556/doc_00139438 [16:40:28]save last doc name /storage/0556/doc_00139438 to /storage/kkm_last_doc_name [16:40:28]save OK [16:40:28]Clear old archive folders... [16:40:28]ProcessDocumentItem done err = 0, tmpTLVsize=266 [16:40:28]tlvbuf is 01101F60 [16:40:28]SAM_PROTO_ClearQueue [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 09 00 00 [16:40:28]Write to MH i2c: E2 08 00 6B 4A 80 09 00 00 00 00 00 00 27 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 6B 4A 00 90 00 29 [16:40:28]RAPDU: 90 00 [16:40:28]wFMCommunicate OK [16:40:28]SAM_PROTO_ClearQueue done [16:40:28]KKMCreateOFDPacket [16:40:28]OFDProtocolAddRootSTLVToBuf [16:40:28]FM_MakeSignedData [16:40:28]FM_MakeSignedData [16:40:28]SAM_PROTO_SignData [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 0D 01 02 [16:40:28]Write to MH i2c: E2 08 00 6C 4A 80 0D 01 02 00 00 00 00 2F [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 6C 4A 00 90 00 2A [16:40:28]RAPDU: 90 00 [16:40:28]wFMCommunicate OK [16:40:28]wFMCommunicate request_size=255 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 0D 02 02 FA 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 81 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 [16:40:28]Write to MH i2c: E2 02 01 6D 4A 80 0D 02 02 FA 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 81 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 00 00 3D [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 6D 4A 00 90 00 2B [16:40:28]RAPDU: 90 00 [16:40:28]wFMCommunicate OK [16:40:28]wFMCommunicate request_size=25 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 0D 02 02 14 36 39 10 04 04 00 AE 20 02 00 35 04 06 00 39 A2 F9 18 E0 87 [16:40:28]Write to MH i2c: E2 1C 00 6E 4A 80 0D 02 02 14 00 36 39 10 04 04 00 AE 20 02 00 35 04 06 00 39 A2 F9 18 E0 87 00 00 43 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 03 00 6E 4A 00 90 00 2C [16:40:28]RAPDU: 90 00 [16:40:28]wFMCommunicate OK [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 0D 03 02 [16:40:28]Write to MH i2c: E2 08 00 6F 4A 80 0D 03 02 00 00 00 00 34 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 0B 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 0B 00 6F 4A 00 D2 D1 89 7A 74 13 C5 F4 90 00 1B [16:40:28]RAPDU: D2 D1 89 7A 74 13 C5 F4 90 00 [16:40:28]wFMCommunicate OK [16:40:28]SAM_PROTO_SignData done [16:40:28]FM_MakeSignedData done [16:40:28]CreateOFDProtocolMessage [16:40:28]wFMCommunicate request_size=4 [16:40:28]MH_SAM_APDU [16:40:28]CAPDU: 80 11 00 00 [16:40:28]Write to MH i2c: E2 08 00 70 4A 80 11 00 00 00 00 00 00 34 [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:28]Read from MH i2c: E2 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 17 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: E2 17 00 70 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8F [16:40:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:40:28]wFMCommunicate OK [16:40:28]CreateOFDProtocolMessage done [16:40:28]OFDSenderStorePacket 139438 [16:40:28]StoreOFDPacket docnum=139438 [16:40:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1E 01 00 00 44 0D 16 01 DD 04 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 81 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 20 02 00 35 04 06 00 39 A2 F9 18 E0 87 D2 D1 89 7A 74 13 C5 F4 [16:40:28]CheckFolder [16:40:28]dirname=/storage/ofd_packets [16:40:28]CheckFolder done [16:40:28]ProducePacketName [16:40:28]name=ofd_packets/00139438 [16:40:28]NVStorageSaveData ofd_packets/00139438 [16:40:28]File name is /storage/ofd_packets/00139438 [16:40:28]Write 316 bytes [16:40:28]NVStorageSaveData done [16:40:28]OFDSenderStorePacket done [16:40:28]KKMCreateOFDPacket done [16:40:28]NVStorageSaveData kkm_last_timestamp [16:40:28]File name is /storage/kkm_last_timestamp [16:40:28]Write 4 bytes [16:40:28]NVStorageSaveData done [16:40:28]ExternCall_PrintAddStr [16:40:28]wPrintStart [16:40:28]Write to MH i2c: 01 00 00 71 4A BB [16:40:28]Write i2c OK [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: 01 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: 01 07 00 [16:40:28]MH_I2C_Read... [16:40:28]Read from MH i2c: 01 07 00 71 4A 00 00 00 00 00 FF 0F D0 [16:40:28]RasterBufferAndPrint [16:40:28]line Счет N : (3)335339 [16:40:28]line ИНН: 02508201610067 [16:40:28]line Контрольно-Кассовый Чек [16:40:28]line ПРОДАЖА [16:40:28]line Товар: 4870001570071 [16:40:28]line Напиток Pepsi 1л [16:40:28]line 1.000 * 119.00 [16:40:28]line = 119.00 [16:40:28]line НДС 12% НСП 1% [16:40:28]line > о реализуемом товаре [16:40:28]line ИТОГО: 119.00 [16:40:28]line НСП 1% : 1.05 [16:40:28]line НДС 12% : 12.64 [16:40:28]line Наличными: 119.00 [16:40:28]line Безнал.: 0.00 [16:40:28]line Место: АЗС № 101 "Партнер Нефть" [16:40:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:40:28]line СНО: Общий режим [16:40:28]line Чек 122 30.10.2024 16:40 [16:40:28]line Смена: 556 ФФД: 1.0 [16:40:28]line ЗНМ: 0300000081 [16:40:28]line РНМ: 0000000000091631 [16:40:28]line Версия ККМ: 001 [16:40:28]line ФМ: 0000000000874669 [16:40:28]line ФД: 139438 [16:40:28]line ФПД: 63372126642311 [16:40:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164033&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139438&fm=63372126642311&tin=02508201610067®Number=0000000000091631&sum=11900 [16:40:29]line 0 [16:40:29]OFD Sender: Processing packet 139438 [packets to send 34, broken 33] [16:40:29]ProducePacketName [16:40:29]name=ofd_packets/00139438 [16:40:29]OFD Sender: To server: pG, [16:40:29]CommunicateWithHost lk.salyk.kg:30040 [16:40:29]ConnectInit lk.salyk.kg [16:40:29]written 0, free lines is 4095 [16:40:29]Connected sock=10 [16:40:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1E 01 00 00 44 0D 16 01 DD 04 5A 03 01 00 03 00 0A 01 1E 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 7C 2E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7A 00 00 00 F4 03 04 00 81 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 20 02 00 35 04 06 00 39 A2 F9 18 E0 87 D2 D1 89 7A 74 13 C5 F4 [16:40:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 3F 15 47 00 B2 FB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AE 20 02 00 F4 03 04 00 31 0D 22 67 B6 04 01 00 00 8F 7A AD 15 CC FA 50 7B [16:40:29]CommunicateWithHost err = 0 [16:40:29]CheckOFDResponse [16:40:29]1017 (14) - 77093643461234 [16:40:29]1041 (16) - 0000000000874669 [16:40:29]1040 (4) - 139438 [16:40:29]1012 (4) - 30.10.2024 10:40 [16:40:29]1206 (1) - 0 [16:40:29]OFD Sender: Remove packet 139438 [16:40:29]ProducePacketName [16:40:29]name=ofd_packets/00139438 [16:40:29]NVStorageDeleteData [16:40:29]Write to MH i2c: 01 00 00 99 4A E3 [16:40:29]Write i2c OK [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: 01 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: 01 07 00 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: 01 07 00 99 4A 00 00 00 00 00 14 0D 0B [16:40:29]RasterBufferAndPrint [16:40:29]line [16:40:29]line [16:40:29]line [16:40:29]line [16:40:29]line [16:40:29]written 0, free lines is 3353 [16:40:29]MH_Cut [16:40:29]Write to MH i2c: D1 01 00 A0 4A 01 BC [16:40:29]Write i2c OK [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: D1 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: D1 01 00 [16:40:29]MH_I2C_Read... [16:40:29]Read from MH i2c: D1 01 00 A0 4A 00 BB [16:40:29]Write to MH i2c: 01 00 00 A1 4A EB [16:40:29]Write i2c OK [16:40:29]MH_I2C_Read... [16:40:29]OFD Sender: No OFD packet to send [16:40:30]*** Cut start [16:40:30]*** Partial cut [16:40:30]*** CUTSNS_PIN = 1 [16:40:30]*** CUTSNS_PIN = 0 [16:40:30]*** Brake cut motor [16:40:30]Read from MH i2c: 01 [16:40:30]MH_I2C_Read... [16:40:30]*** Stop cut motor [16:40:30]*** Cut end [16:40:30]Read from MH i2c: 01 07 00 [16:40:30]MH_I2C_Read... [16:40:30]Read from MH i2c: 01 07 00 A1 4A 00 00 00 00 00 FF 0F 00 [16:40:30]process_action close_receipt done [16:40:30]requested_data is exist [16:40:30]produce_requested_data [16:40:30]requested_item fm.sn is exist - process it [16:40:30]wFMCommunicate request_size=4 [16:40:30]MH_SAM_APDU [16:40:30]CAPDU: 80 11 00 00 [16:40:30]Write to MH i2c: E2 08 00 A2 4A 80 11 00 00 00 00 00 00 66 [16:40:30]Write i2c OK [16:40:30]MH_I2C_Read... [16:40:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:40:30]Read from MH i2c: E2 [16:40:30]MH_I2C_Read... [16:40:30]Read from MH i2c: E2 17 00 [16:40:30]MH_I2C_Read... [16:40:30]Read from MH i2c: E2 17 00 A2 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C1 [16:40:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:40:30]wFMCommunicate OK [16:40:30]requested_item fd.num is exist - process it [16:40:30]SAM_PROTO_GetFieldsCounters [16:40:30]wFMCommunicate request_size=4 [16:40:30]MH_SAM_APDU [16:40:30]CAPDU: 80 13 00 00 [16:40:30]Write to MH i2c: E2 08 00 A3 4A 80 13 00 00 00 00 00 00 69 [16:40:30]Write i2c OK [16:40:30]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 62 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 62 00 A3 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AE 20 02 00 0E 04 04 00 2C 02 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 F9 [16:40:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AE 20 02 00 0E 04 04 00 2C 02 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 [16:40:31]wFMCommunicate OK [16:40:31]SAM_PROTO_GetFieldsCounters done [16:40:31]requested_item shift.num is exist - process it [16:40:31]requested_item shift.opened is exist - process it [16:40:31]req_shift_opened [16:40:31]FM_GetShiftState [16:40:31]SAM_PROTO_GetShiftState [16:40:31]wFMCommunicate request_size=4 [16:40:31]MH_SAM_APDU [16:40:31]CAPDU: 80 13 01 00 [16:40:31]Write to MH i2c: E2 08 00 A4 4A 80 13 01 00 00 00 00 00 6B [16:40:31]Write i2c OK [16:40:31]MH_I2C_Read... [16:40:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:40:31]Read from MH i2c: E2 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 0E 00 [16:40:31]MH_I2C_Read... [16:40:31]Read from MH i2c: E2 0E 00 A4 4A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FB [16:40:31]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:40:31]wFMCommunicate OK [16:40:31]SAM_PROTO_GetShiftState done [16:40:31]FM_GetShiftState done [16:40:31]req_shift_opened done [16:40:31]requested_item shift.open_date is exist - process it [16:40:31]req_shift_open_date [16:40:31]req_shift_open_date done [16:40:31]produce_requested_data done [16:40:31]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139438,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:40:31]process_action_free close_receipt [16:40:31]json_value_free [16:40:31]json_value_free done [16:40:31]process_json_proto returns [16:40:31]Send response to host [16:40:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139438,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:40:31]free response buf [16:40:31]execute_script done [16:40:31]execute_script returns [16:40:31]free content buf [16:40:31]Sock 8.Close socket [16:40:31]Sock 8.Thread stoped [16:40:34]OFD Sender: No OFD packet to send [16:40:39]OFD Sender: No OFD packet to send [16:40:44]OFD Sender: No OFD packet to send [16:40:49]OFD Sender: No OFD packet to send [16:40:54]OFD Sender: No OFD packet to send [16:41:00]OFD Sender: No OFD packet to send [16:41:05]OFD Sender: No OFD packet to send [16:41:10]OFD Sender: No OFD packet to send [16:41:15]OFD Sender: No OFD packet to send [16:41:20]OFD Sender: No OFD packet to send [16:41:25]OFD Sender: No OFD packet to send [16:41:30]OFD Sender: No OFD packet to send [16:41:35]OFD Sender: No OFD packet to send [16:41:40]OFD Sender: No OFD packet to send [16:41:45]OFD Sender: No OFD packet to send [16:41:50]OFD Sender: No OFD packet to send [16:41:55]OFD Sender: No OFD packet to send [16:42:00]OFD Sender: No OFD packet to send [16:42:05]OFD Sender: No OFD packet to send [16:42:10]OFD Sender: No OFD packet to send [16:42:15]OFD Sender: No OFD packet to send [16:42:19]accept exits with 9 [16:42:19]New connection [16:42:19]New thread 3067284836 created [16:42:19]Thread 3067141476 joined [16:42:19]Waiting for new connection... [16:42:19] Sock 9.Parse request [16:42:19]Sock 9.Check first char [16:42:19]Sock 9.First char is OK [16:42:19]request: POST /json_proto HTTP/1.0 [16:42:19]Method: POST [16:42:19]URL: /json_proto [16:42:19]Method is POST - this is cgi request [16:42:19]url: /json_proto [16:42:19]query_string will be loaded in cgi processing [16:42:19]execute_cgi json_proto POST (null) [16:42:19]execute_cgi path=json_proto method=POST [16:42:19]POST find Content-Length [16:42:19]Host: 172.17.50.196:8080 [16:42:19]Content-Length: 718 [16:42:19]Content-Type: application/json [16:42:19] [16:42:19]POST finish read [16:42:19]Found Content-Length = 718 [16:42:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335340", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:19]execute_script... [16: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 : (3)335340", "tax_sys" : 0, "items" : [ { "code": "4870202522671", "name": "Garden \u043D\u0430\u043F\u0438\u0442\u043E\u043A \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u0433\u0440\u0430\u043D\u0430\u0442\u0430 1,20 \u041F\u042D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:42:19]POST & json_proto [16:42:19]process_json_proto [16:42:19]json parsed OK: [16:42:19]protocol is kg_v1.0 [16:42:19]action value=close_receipt [16:42:19]process_action close_receipt [16:42:19]cmd_close_receipt [16:42:19]MH_GetDate [16:42:19]Write to MH i2c: F0 00 00 A5 4A DE [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: F0 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: F0 09 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: F0 09 00 A5 4A 00 F1 61 22 67 72 0D 1C 67 C4 [16:42:19]GetLastDocTimeStamp 1730306433 [16:42:19]current date 1730306545 [16:42:19]FM_GetShiftState [16:42:19]SAM_PROTO_GetShiftState [16:42:19]wFMCommunicate request_size=4 [16:42:19]MH_SAM_APDU [16:42:19]CAPDU: 80 13 01 00 [16:42:19]Write to MH i2c: E2 08 00 A6 4A 80 13 01 00 00 00 00 00 6D [16:42:19]Write i2c OK [16:42:19]MH_I2C_Read... [16:42:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:19]Read from MH i2c: E2 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 0E 00 [16:42:19]MH_I2C_Read... [16:42:19]Read from MH i2c: E2 0E 00 A6 4A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FD [16:42:19]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:42:19]wFMCommunicate OK [16:42:19]SAM_PROTO_GetShiftState done [16:42:19]FM_GetShiftState done [16:42:19]opened in 1730246278 [16:42:19]opened+sec_in_day 1730332678 [16:42:19]quantity*price = 10400 [16:42:19]sum+1 = 10401 [16:42:19]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 123 30.10.2024 16:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139439 ФПД: 118443421941264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164225&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139439&fm=118443421941264&tin=02508201610067®Number=0000000000091631&sum=10400 0 [16:42:21]StoreToDocumentArchive [16:42:21]shift 556 fd 139439 [16:42:21]save to /storage/0556/doc_00139439 [16:42:21]save last doc name /storage/0556/doc_00139439 to /storage/kkm_last_doc_name [16:42:21]save OK [16:42:21]Clear old archive folders... [16:42:21]ProcessDocumentItem done err = 0, tmpTLVsize=306 [16:42:21]tlvbuf is 0112F5A0 [16:42:21]SAM_PROTO_ClearQueue [16:42:21]wFMCommunicate request_size=4 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 09 00 00 [16:42:21]Write to MH i2c: E2 08 00 B3 4A 80 09 00 00 00 00 00 00 6F [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 B3 4A 00 90 00 71 [16:42:21]RAPDU: 90 00 [16:42:21]wFMCommunicate OK [16:42:21]SAM_PROTO_ClearQueue done [16:42:21]KKMCreateOFDPacket [16:42:21]OFDProtocolAddRootSTLVToBuf [16:42:21]FM_MakeSignedData [16:42:21]FM_MakeSignedData [16:42:21]SAM_PROTO_SignData [16:42:21]wFMCommunicate request_size=4 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 0D 01 02 [16:42:21]Write to MH i2c: E2 08 00 B4 4A 80 0D 01 02 00 00 00 00 77 [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 B4 4A 00 90 00 72 [16:42:21]RAPDU: 90 00 [16:42:21]wFMCommunicate OK [16:42:21]wFMCommunicate request_size=255 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 0D 02 02 FA 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 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 F1 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 [16:42:21]Write to MH i2c: E2 02 01 B5 4A 80 0D 02 02 FA 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 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 F1 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 00 EA [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 B5 4A 00 90 00 73 [16:42:21]RAPDU: 90 00 [16:42:21]wFMCommunicate OK [16:42:21]wFMCommunicate request_size=65 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 0D 02 02 3C 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 20 02 00 35 04 06 00 6B B9 42 17 3E 10 [16:42:21]Write to MH i2c: E2 44 00 B6 4A 80 0D 02 02 3C 00 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 20 02 00 35 04 06 00 6B B9 42 17 3E 10 00 00 68 [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 03 00 B6 4A 00 90 00 74 [16:42:21]RAPDU: 90 00 [16:42:21]wFMCommunicate OK [16:42:21]wFMCommunicate request_size=4 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 0D 03 02 [16:42:21]Write to MH i2c: E2 08 00 B7 4A 80 0D 03 02 00 00 00 00 7C [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 0B 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 0B 00 B7 4A 00 F8 EF 63 56 DA 62 69 F1 90 00 B3 [16:42:21]RAPDU: F8 EF 63 56 DA 62 69 F1 90 00 [16:42:21]wFMCommunicate OK [16:42:21]SAM_PROTO_SignData done [16:42:21]FM_MakeSignedData done [16:42:21]CreateOFDProtocolMessage [16:42:21]wFMCommunicate request_size=4 [16:42:21]MH_SAM_APDU [16:42:21]CAPDU: 80 11 00 00 [16:42:21]Write to MH i2c: E2 08 00 B8 4A 80 11 00 00 00 00 00 00 7C [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:21]Read from MH i2c: E2 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 17 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: E2 17 00 B8 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D7 [16:42:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:42:21]wFMCommunicate OK [16:42:21]CreateOFDProtocolMessage done [16:42:21]OFDSenderStorePacket 139439 [16:42:21]StoreOFDPacket docnum=139439 [16:42:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 46 01 00 00 C5 96 3E 01 91 C6 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 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 F1 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 20 02 00 35 04 06 00 6B B9 42 17 3E 10 F8 EF 63 56 DA 62 69 F1 [16:42:21]CheckFolder [16:42:21]dirname=/storage/ofd_packets [16:42:21]CheckFolder done [16:42:21]ProducePacketName [16:42:21]name=ofd_packets/00139439 [16:42:21]NVStorageSaveData ofd_packets/00139439 [16:42:21]File name is /storage/ofd_packets/00139439 [16:42:21]Write 356 bytes [16:42:21]NVStorageSaveData done [16:42:21]OFDSenderStorePacket done [16:42:21]KKMCreateOFDPacket done [16:42:21]NVStorageSaveData kkm_last_timestamp [16:42:21]File name is /storage/kkm_last_timestamp [16:42:21]Write 4 bytes [16:42:21]NVStorageSaveData done [16:42:21]ExternCall_PrintAddStr [16:42:21]wPrintStart [16:42:21]Write to MH i2c: 01 00 00 B9 4A 03 [16:42:21]Write i2c OK [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: 01 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: 01 07 00 [16:42:21]MH_I2C_Read... [16:42:21]Read from MH i2c: 01 07 00 B9 4A 00 00 00 00 00 FF 0F 18 [16:42:21]RasterBufferAndPrint [16:42:21]line Счет N : (3)335340 [16:42:21]line ИНН: 02508201610067 [16:42:21]line Контрольно-Кассовый Чек [16:42:21]line ПРОДАЖА [16:42:21]line Товар: 4870202522671 [16:42:21]line Garden напиток со вкусом граната 1,20 ПЭ [16:42:21]line 1.000 * 104.00 [16:42:21]line = 104.00 [16:42:21]line НДС 12% НСП 1% [16:42:21]line > о реализуемом товаре [16:42:21]line ИТОГО: 104.00 [16:42:21]line НСП 1% : 0.92 [16:42:21]line НДС 12% : 11.04 [16:42:21]line Наличными: 104.00 [16:42:21]line Безнал.: 0.00 [16:42:21]line Место: АЗС № 101 "Партнер Нефть" [16:42:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:42:21]line СНО: Общий режим [16:42:21]line Чек 123 30.10.2024 16:42 [16:42:21]line Смена: 556 ФФД: 1.0 [16:42:21]line ЗНМ: 0300000081 [16:42:21]line РНМ: 0000000000091631 [16:42:21]line Версия ККМ: 001 [16:42:21]line ФМ: 0000000000874669 [16:42:21]line ФД: 139439 [16:42:21]line ФПД: 118443421941264 [16:42:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164225&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139439&fm=118443421941264&tin=02508201610067®Number=0000000000091631&sum=10400 [16:42:21]line 0 [16:42:21]OFD Sender: Processing packet 139439 [packets to send 34, broken 33] [16:42:21]ProducePacketName [16:42:21]name=ofd_packets/00139439 [16:42:21]OFD Sender: To server: pG, [16:42:21]CommunicateWithHost lk.salyk.kg:30040 [16:42:21]ConnectInit lk.salyk.kg [16:42:21]written 0, free lines is 4095 [16:42:22]Connected sock=10 [16:42:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 46 01 00 00 C5 96 3E 01 91 C6 5A 03 01 00 03 00 32 01 1E 04 01 00 01 23 04 84 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 32 36 37 31 06 04 40 00 47 61 72 64 65 6E 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 B3 D1 80 D0 B0 D0 BD D0 B0 D1 82 D0 B0 20 31 2C 32 30 20 D0 9F D0 AD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 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 F1 61 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 20 02 00 35 04 06 00 6B B9 42 17 3E 10 F8 EF 63 56 DA 62 69 F1 [16:42:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8D A2 47 00 90 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 AF 20 02 00 F4 03 04 00 A1 0D 22 67 B6 04 01 00 00 71 F8 BC 81 57 63 1D 50 [16:42:22]CommunicateWithHost err = 0 [16:42:22]CheckOFDResponse [16:42:22]1017 (14) - 77093643461234 [16:42:22]1041 (16) - 0000000000874669 [16:42:22]1040 (4) - 139439 [16:42:22]1012 (4) - 30.10.2024 10:42 [16:42:22]1206 (1) - 0 [16:42:22]OFD Sender: Remove packet 139439 [16:42:22]ProducePacketName [16:42:22]name=ofd_packets/00139439 [16:42:22]NVStorageDeleteData [16:42:22]Write to MH i2c: 01 00 00 E2 4A 2C [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: 01 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: 01 07 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: 01 07 00 E2 4A 00 00 00 00 00 04 0D 44 [16:42:22]RasterBufferAndPrint [16:42:22]line [16:42:22]line [16:42:22]line [16:42:22]line [16:42:22]line [16:42:22]written 0, free lines is 3341 [16:42:22]MH_Cut [16:42:22]Write to MH i2c: D1 01 00 E9 4A 01 05 [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: D1 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: D1 01 00 [16:42:22]MH_I2C_Read... [16:42:22]Read from MH i2c: D1 01 00 E9 4A 00 04 [16:42:22]Write to MH i2c: 01 00 00 EA 4A 34 [16:42:22]Write i2c OK [16:42:22]MH_I2C_Read... [16:42:22]OFD Sender: No OFD packet to send [16:42:23]*** Cut start [16:42:23]*** Partial cut [16:42:23]*** CUTSNS_PIN = 1 [16:42:23]*** CUTSNS_PIN = 0 [16:42:23]*** Brake cut motor [16:42:23]Read from MH i2c: 01 [16:42:23]MH_I2C_Read... [16:42:23]*** Stop cut motor [16:42:23]*** Cut end [16:42:23]Read from MH i2c: 01 07 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: 01 07 00 EA 4A 00 00 00 00 00 FF 0F 49 [16:42:23]process_action close_receipt done [16:42:23]requested_data is exist [16:42:23]produce_requested_data [16:42:23]requested_item fm.sn is exist - process it [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 11 00 00 [16:42:23]Write to MH i2c: E2 08 00 EB 4A 80 11 00 00 00 00 00 00 AF [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 17 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 17 00 EB 4A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0A [16:42:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:42:23]wFMCommunicate OK [16:42:23]requested_item fd.num is exist - process it [16:42:23]SAM_PROTO_GetFieldsCounters [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 13 00 00 [16:42:23]Write to MH i2c: E2 08 00 EC 4A 80 13 00 00 00 00 00 00 B2 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 62 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 62 00 EC 4A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AF 20 02 00 0E 04 04 00 2C 02 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 46 [16:42:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 AF 20 02 00 0E 04 04 00 2C 02 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 [16:42:23]wFMCommunicate OK [16:42:23]SAM_PROTO_GetFieldsCounters done [16:42:23]requested_item shift.num is exist - process it [16:42:23]requested_item shift.opened is exist - process it [16:42:23]req_shift_opened [16:42:23]FM_GetShiftState [16:42:23]SAM_PROTO_GetShiftState [16:42:23]wFMCommunicate request_size=4 [16:42:23]MH_SAM_APDU [16:42:23]CAPDU: 80 13 01 00 [16:42:23]Write to MH i2c: E2 08 00 ED 4A 80 13 01 00 00 00 00 00 B4 [16:42:23]Write i2c OK [16:42:23]MH_I2C_Read... [16:42:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:42:23]Read from MH i2c: E2 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 0E 00 [16:42:23]MH_I2C_Read... [16:42:23]Read from MH i2c: E2 0E 00 ED 4A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 44 [16:42:23]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:42:23]wFMCommunicate OK [16:42:23]SAM_PROTO_GetShiftState done [16:42:23]FM_GetShiftState done [16:42:23]req_shift_opened done [16:42:23]requested_item shift.open_date is exist - process it [16:42:23]req_shift_open_date [16:42:23]req_shift_open_date done [16:42:23]produce_requested_data done [16:42:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139439,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:42:23]process_action_free close_receipt [16:42:23]json_value_free [16:42:23]json_value_free done [16:42:23]process_json_proto returns [16:42:23]Send response to host [16:42:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139439,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:42:23]free response buf [16:42:23]execute_script done [16:42:23]execute_script returns [16:42:23]free content buf [16:42:23]Sock 9.Close socket [16:42:23]Sock 9.Thread stoped [16:42:27]OFD Sender: No OFD packet to send [16:42:32]OFD Sender: No OFD packet to send [16:42:37]OFD Sender: No OFD packet to send [16:42:42]OFD Sender: No OFD packet to send [16:42:47]OFD Sender: No OFD packet to send [16:42:52]OFD Sender: No OFD packet to send [16:42:57]OFD Sender: No OFD packet to send [16:43:02]OFD Sender: No OFD packet to send [16:43:07]OFD Sender: No OFD packet to send [16:43:12]OFD Sender: No OFD packet to send [16:43:17]OFD Sender: No OFD packet to send [16:43:22]OFD Sender: No OFD packet to send [16:43:27]OFD Sender: No OFD packet to send [16:43:32]OFD Sender: No OFD packet to send [16:43:37]OFD Sender: No OFD packet to send [16:43:42]OFD Sender: No OFD packet to send [16:43:47]OFD Sender: No OFD packet to send [16:43:52]OFD Sender: No OFD packet to send [16:43:57]OFD Sender: No OFD packet to send [16:44:02]OFD Sender: No OFD packet to send [16:44:07]OFD Sender: No OFD packet to send [16:44:12]OFD Sender: No OFD packet to send [16:44:17]OFD Sender: No OFD packet to send [16:44:22]OFD Sender: No OFD packet to send [16:44:27]OFD Sender: No OFD packet to send [16:44:32]OFD Sender: No OFD packet to send [16:44:37]OFD Sender: No OFD packet to send [16:44:42]OFD Sender: No OFD packet to send [16:44:47]OFD Sender: No OFD packet to send [16:44:52]OFD Sender: No OFD packet to send [16:44:56]accept exits with 8 [16:44:56]New connection [16:44:56]New thread 3067141476 created [16:44:56]Thread 3067284836 joined [16:44:56]Waiting for new connection... [16:44:56] Sock 8.Parse request [16:44:56]Sock 8.Check first char [16:44:56]Sock 8.First char is OK [16:44:56]request: POST /json_proto HTTP/1.0 [16:44:56]Method: POST [16:44:56]URL: /json_proto [16:44:56]Method is POST - this is cgi request [16:44:56]url: /json_proto [16:44:56]query_string will be loaded in cgi processing [16:44:56]execute_cgi json_proto POST (null) [16:44:56]execute_cgi path=json_proto method=POST [16:44:56]POST find Content-Length [16:44:56]Host: 172.17.50.196:8080 [16:44:56]Content-Length: 678 [16:44:56]Content-Type: application/json [16:44:56] [16:44:56]POST finish read [16:44:56]Found Content-Length = 678 [16:44:56]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:56]execute_script... [16:44: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)1094639", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 2.990, "sum" : 200.03, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 200.00, "total" : 200.00, "payments": [ { "type": 0, "sum" : 200.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:44:56]POST & json_proto [16:44:56]process_json_proto [16:44:56]json parsed OK: [16:44:56]protocol is kg_v1.0 [16:44:56]action value=close_receipt [16:44:56]process_action close_receipt [16:44:56]cmd_close_receipt [16:44:56]MH_GetDate [16:44:56]Write to MH i2c: F0 00 00 EE 4A 27 [16:44:56]Write i2c OK [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: F0 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: F0 09 00 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: F0 09 00 EE 4A 00 8E 62 22 67 72 0D 1C 67 AB [16:44:56]GetLastDocTimeStamp 1730306545 [16:44:56]current date 1730306702 [16:44:56]FM_GetShiftState [16:44:56]SAM_PROTO_GetShiftState [16:44:56]wFMCommunicate request_size=4 [16:44:56]MH_SAM_APDU [16:44:56]CAPDU: 80 13 01 00 [16:44:56]Write to MH i2c: E2 08 00 EF 4A 80 13 01 00 00 00 00 00 B6 [16:44:56]Write i2c OK [16:44:56]MH_I2C_Read... [16:44:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:44:56]Read from MH i2c: E2 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: E2 0E 00 [16:44:56]MH_I2C_Read... [16:44:56]Read from MH i2c: E2 0E 00 EF 4A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 46 [16:44:56]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:44:56]wFMCommunicate OK [16:44:56]SAM_PROTO_GetShiftState done [16:44:56]FM_GetShiftState done [16:44:56]opened in 1730246278 [16:44:56]opened+sec_in_day 1730332678 [16:44:56]quantity*price = 20003 [16:44:56]sum+1 = 20004 [16:44:56]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.03 ИТОГО: 200.00 Внесено: 200.00 СДАЧА: 0.00 НСП 1% : 1.77 НДС 12% : 21.24 Наличными: 200.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 124 30.10.2024 16:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139440 ФПД: 26322609776443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164502&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139440&fm=26322609776443&tin=02508201610067®Number=0000000000091631&sum=20000 [16:44:57]StoreToDocumentArchive [16:44:57]shift 556 fd 139440 [16:44:57]save to /storage/0556/doc_00139440 [16:44:57]save last doc name /storage/0556/doc_00139440 to /storage/kkm_last_doc_name [16:44:57]save OK [16:44:57]Clear old archive folders... [16:44:57]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:44:57]tlvbuf is 011ADD20 [16:44:57]SAM_PROTO_ClearQueue [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 09 00 00 [16:44:57]Write to MH i2c: E2 08 00 FC 4A 80 09 00 00 00 00 00 00 B8 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 FC 4A 00 90 00 BA [16:44:57]RAPDU: 90 00 [16:44:57]wFMCommunicate OK [16:44:57]SAM_PROTO_ClearQueue done [16:44:57]KKMCreateOFDPacket [16:44:57]OFDProtocolAddRootSTLVToBuf [16:44:57]FM_MakeSignedData [16:44:57]FM_MakeSignedData [16:44:57]SAM_PROTO_SignData [16:44:57]wFMCommunicate request_size=4 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 0D 01 02 [16:44:57]Write to MH i2c: E2 08 00 FD 4A 80 0D 01 02 00 00 00 00 C0 [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:44:57]Read from MH i2c: E2 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 [16:44:57]MH_I2C_Read... [16:44:57]Read from MH i2c: E2 03 00 FD 4A 00 90 00 BB [16:44:57]RAPDU: 90 00 [16:44:57]wFMCommunicate OK [16:44:57]wFMCommunicate request_size=255 [16:44:57]MH_SAM_APDU [16:44:57]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 7C 00 00 00 F4 03 04 00 8E 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 20 02 00 35 04 06 00 17 [16:44:57]Write to MH i2c: E2 02 01 FE 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 8E 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 20 02 00 35 04 06 00 17 00 00 1D [16:44:57]Write i2c OK [16:44:57]MH_I2C_Read... [16:44:57]OFD Sender: No OFD packet to send [16:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 FE 4A 00 90 00 BC [16:44:58]RAPDU: 90 00 [16:44:58]wFMCommunicate OK [16:44:58]wFMCommunicate request_size=10 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 0D 02 02 05 F0 B5 CE 27 3B [16:44:58]Write to MH i2c: E2 0D 00 FF 4A 80 0D 02 02 05 00 F0 B5 CE 27 3B 00 00 A2 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 03 00 FF 4A 00 90 00 BD [16:44:58]RAPDU: 90 00 [16:44:58]wFMCommunicate OK [16:44:58]wFMCommunicate request_size=4 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 0D 03 02 [16:44:58]Write to MH i2c: E2 08 00 00 4B 80 0D 03 02 00 00 00 00 C6 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 0B 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 0B 00 00 4B 00 47 00 19 E7 9E AA 24 BF 90 00 39 [16:44:58]RAPDU: 47 00 19 E7 9E AA 24 BF 90 00 [16:44:58]wFMCommunicate OK [16:44:58]SAM_PROTO_SignData done [16:44:58]FM_MakeSignedData done [16:44:58]CreateOFDProtocolMessage [16:44:58]wFMCommunicate request_size=4 [16:44:58]MH_SAM_APDU [16:44:58]CAPDU: 80 11 00 00 [16:44:58]Write to MH i2c: E2 08 00 01 4B 80 11 00 00 00 00 00 00 C6 [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:44:58]Read from MH i2c: E2 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 17 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: E2 17 00 01 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 21 [16:44:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:44:58]wFMCommunicate OK [16:44:58]CreateOFDProtocolMessage done [16:44:58]OFDSenderStorePacket 139440 [16:44:58]StoreOFDPacket docnum=139440 [16:44:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 AA B5 07 01 89 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 8E 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 20 02 00 35 04 06 00 17 F0 B5 CE 27 3B 47 00 19 E7 9E AA 24 BF [16:44:58]CheckFolder [16:44:58]dirname=/storage/ofd_packets [16:44:58]CheckFolder done [16:44:58]ProducePacketName [16:44:58]name=ofd_packets/00139440 [16:44:58]NVStorageSaveData ofd_packets/00139440 [16:44:58]File name is /storage/ofd_packets/00139440 [16:44:58]Write 301 bytes [16:44:58]NVStorageSaveData done [16:44:58]OFDSenderStorePacket done [16:44:58]KKMCreateOFDPacket done [16:44:58]NVStorageSaveData kkm_last_timestamp [16:44:58]File name is /storage/kkm_last_timestamp [16:44:58]Write 4 bytes [16:44:58]NVStorageSaveData done [16:44:58]ExternCall_PrintAddStr [16:44:58]wPrintStart [16:44:58]Write to MH i2c: 01 00 00 02 4B 4D [16:44:58]Write i2c OK [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: 01 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: 01 07 00 [16:44:58]MH_I2C_Read... [16:44:58]Read from MH i2c: 01 07 00 02 4B 00 00 00 00 00 FF 0F 62 [16:44:58]RasterBufferAndPrint [16:44:58]line Счет N : (1)1094639 [16:44:58]line ИНН: 02508201610067 [16:44:58]line Контрольно-Кассовый Чек [16:44:58]line ПРОДАЖА [16:44:58]line ТРК (МРК, ГНК) : 33 [16:44:58]line Товар: 2710124130 [16:44:58]line Аи-92-К-2 [16:44:58]line 2.990 * 66.90 [16:44:58]line = 200.03 [16:44:58]line НДС 12% НСП 1% [16:44:58]line > о реализуемом товаре [16:44:58]line ОКРУГЛЕНИЕ: -0.03 [16:44:58]line ИТОГО: 200.00 [16:44:58]line Внесено: 200.00 [16:44:58]line СДАЧА: 0.00 [16:44:58]line НСП 1% : 1.77 [16:44:58]line НДС 12% : 21.24 [16:44:58]line Наличными: 200.00 [16:44:58]line Безнал.: 0.00 [16:44:58]line Место: АЗС № 101 "Партнер Нефть" [16:44:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:44:58]line СНО: Общий режим [16:44:58]line Чек 124 30.10.2024 16:45 [16:44:58]line Смена: 556 ФФД: 1.0 [16:44:58]line ЗНМ: 0300000081 [16:44:58]line РНМ: 0000000000091631 [16:44:58]line Версия ККМ: 001 [16:44:58]line ФМ: 0000000000874669 [16:44:58]line ФД: 139440 [16:44:58]line ФПД: 26322609776443 [16:44:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164502&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139440&fm=26322609776443&tin=02508201610067®Number=0000000000091631&sum=20000 [16:44:58]OFD Sender: Processing packet 139440 [packets to send 34, broken 33] [16:44:58]ProducePacketName [16:44:58]name=ofd_packets/00139440 [16:44:58]OFD Sender: To server: pG, [16:44:58]CommunicateWithHost lk.salyk.kg:30040 [16:44:58]ConnectInit lk.salyk.kg [16:44:58]written 0, free lines is 4095 [16:44:58]Connected sock=10 [16:44:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 AA B5 07 01 89 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 32 FF 03 08 00 03 AE 0B 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 23 4E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 20 4E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B1 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 4C 08 00 00 00 00 07 04 06 00 20 4E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7C 00 00 00 F4 03 04 00 8E 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 20 02 00 35 04 06 00 17 F0 B5 CE 27 3B 47 00 19 E7 9E AA 24 BF [16:44:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D8 6D 47 00 C0 AF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B0 20 02 00 F4 03 04 00 3E 0E 22 67 B6 04 01 00 00 CE BB AF 56 BA 86 D7 63 [16:44:58]CommunicateWithHost err = 0 [16:44:58]CheckOFDResponse [16:44:58]1017 (14) - 77093643461234 [16:44:58]1041 (16) - 0000000000874669 [16:44:58]1040 (4) - 139440 [16:44:58]1012 (4) - 30.10.2024 10:45 [16:44:58]1206 (1) - 0 [16:44:58]OFD Sender: Remove packet 139440 [16:44:58]ProducePacketName [16:44:58]name=ofd_packets/00139440 [16:44:58]NVStorageDeleteData [16:44:59]Write to MH i2c: 01 00 00 2D 4B 78 [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: 01 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: 01 07 00 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: 01 07 00 2D 4B 00 00 00 00 00 F6 0C 81 [16:44:59]RasterBufferAndPrint [16:44:59]line [16:44:59]line [16:44:59]line [16:44:59]line [16:44:59]line [16:44:59]written 0, free lines is 3324 [16:44:59]MH_Cut [16:44:59]Write to MH i2c: D1 01 00 34 4B 01 51 [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: D1 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: D1 01 00 [16:44:59]MH_I2C_Read... [16:44:59]Read from MH i2c: D1 01 00 34 4B 00 50 [16:44:59]Write to MH i2c: 01 00 00 35 4B 80 [16:44:59]Write i2c OK [16:44:59]MH_I2C_Read... [16:44:59]OFD Sender: No OFD packet to send [16:44:59]*** Cut start [16:44:59]*** Partial cut [16:44:59]*** CUTSNS_PIN = 1 [16:44:59]*** CUTSNS_PIN = 0 [16:44:59]*** Brake cut motor [16:45:00]Read from MH i2c: 01 [16:45:00]MH_I2C_Read... [16:45:00]*** Stop cut motor [16:45:00]*** Cut end [16:45:00]Read from MH i2c: 01 07 00 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: 01 07 00 35 4B 00 00 00 00 00 FF 0F 95 [16:45:00]process_action close_receipt done [16:45:00]requested_data is exist [16:45:00]produce_requested_data [16:45:00]requested_item fm.sn is exist - process it [16:45:00]wFMCommunicate request_size=4 [16:45:00]MH_SAM_APDU [16:45:00]CAPDU: 80 11 00 00 [16:45:00]Write to MH i2c: E2 08 00 36 4B 80 11 00 00 00 00 00 00 FB [16:45:00]Write i2c OK [16:45:00]MH_I2C_Read... [16:45:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:45:00]Read from MH i2c: E2 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: E2 17 00 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: E2 17 00 36 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 56 [16:45:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:45:00]wFMCommunicate OK [16:45:00]requested_item fd.num is exist - process it [16:45:00]SAM_PROTO_GetFieldsCounters [16:45:00]wFMCommunicate request_size=4 [16:45:00]MH_SAM_APDU [16:45:00]CAPDU: 80 13 00 00 [16:45:00]Write to MH i2c: E2 08 00 37 4B 80 13 00 00 00 00 00 00 FE [16:45:00]Write i2c OK [16:45:00]MH_I2C_Read... [16:45:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:45:00]Read from MH i2c: E2 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: E2 62 00 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: E2 62 00 37 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B0 20 02 00 0E 04 04 00 2C 02 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 96 [16:45:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B0 20 02 00 0E 04 04 00 2C 02 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 [16:45:00]wFMCommunicate OK [16:45:00]SAM_PROTO_GetFieldsCounters done [16:45:00]requested_item shift.num is exist - process it [16:45:00]requested_item shift.opened is exist - process it [16:45:00]req_shift_opened [16:45:00]FM_GetShiftState [16:45:00]SAM_PROTO_GetShiftState [16:45:00]wFMCommunicate request_size=4 [16:45:00]MH_SAM_APDU [16:45:00]CAPDU: 80 13 01 00 [16:45:00]Write to MH i2c: E2 08 00 38 4B 80 13 01 00 00 00 00 00 00 [16:45:00]Write i2c OK [16:45:00]MH_I2C_Read... [16:45:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:45:00]Read from MH i2c: E2 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: E2 0E 00 [16:45:00]MH_I2C_Read... [16:45:00]Read from MH i2c: E2 0E 00 38 4B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 90 [16:45:00]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:45:00]wFMCommunicate OK [16:45:00]SAM_PROTO_GetShiftState done [16:45:00]FM_GetShiftState done [16:45:00]req_shift_opened done [16:45:00]requested_item shift.open_date is exist - process it [16:45:00]req_shift_open_date [16:45:00]req_shift_open_date done [16:45:00]produce_requested_data done [16:45:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139440,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:45:00]process_action_free close_receipt [16:45:00]json_value_free [16:45:00]json_value_free done [16:45:00]process_json_proto returns [16:45:00]Send response to host [16:45:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139440,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:45:00]free response buf [16:45:00]execute_script done [16:45:00]execute_script returns [16:45:00]free content buf [16:45:00]Sock 8.Close socket [16:45:00]Sock 8.Thread stoped [16:45:04]OFD Sender: No OFD packet to send [16:45:09]OFD Sender: No OFD packet to send [16:45:14]OFD Sender: No OFD packet to send [16:45:19]OFD Sender: No OFD packet to send [16:45:24]OFD Sender: No OFD packet to send [16:45:29]OFD Sender: No OFD packet to send [16:45:34]OFD Sender: No OFD packet to send [16:45:39]OFD Sender: No OFD packet to send [16:45:44]OFD Sender: No OFD packet to send [16:45:49]OFD Sender: No OFD packet to send [16:45:54]OFD Sender: No OFD packet to send [16:45:59]OFD Sender: No OFD packet to send [16:46:04]OFD Sender: No OFD packet to send [16:46:09]OFD Sender: No OFD packet to send [16:46:14]OFD Sender: No OFD packet to send [16:46:17]accept exits with 9 [16:46:17]New connection [16:46:17]New thread 3067284836 created [16:46:17]Thread 3067141476 joined [16:46:17]Waiting for new connection... [16:46:17] Sock 9.Parse request [16:46:17]Sock 9.Check first char [16:46:17]Sock 9.First char is OK [16:46:17]request: POST /json_proto HTTP/1.0 [16:46:17]Method: POST [16:46:17]URL: /json_proto [16:46:17]Method is POST - this is cgi request [16:46:17]url: /json_proto [16:46:17]query_string will be loaded in cgi processing [16:46:17]execute_cgi json_proto POST (null) [16:46:17]execute_cgi path=json_proto method=POST [16:46:17]POST find Content-Length [16:46:17]Host: 172.17.50.196:8080 [16:46:17]Content-Length: 683 [16:46:17]Content-Type: application/json [16:46:17] [16:46:17]POST finish read [16:46:17]Found Content-Length = 683 [16:46:17]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:17]execute_script... [16: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)1094640", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1000.00, "total" : 1000.00, "payments": [ { "type": 0, "sum" : 1000.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:46:17]POST & json_proto [16:46:17]process_json_proto [16:46:17]json parsed OK: [16:46:17]protocol is kg_v1.0 [16:46:17]action value=close_receipt [16:46:17]process_action close_receipt [16:46:17]cmd_close_receipt [16:46:17]MH_GetDate [16:46:17]Write to MH i2c: F0 00 00 39 4B 73 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: F0 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: F0 09 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: F0 09 00 39 4B 00 DF 62 22 67 72 0D 1C 67 48 [16:46:17]GetLastDocTimeStamp 1730306702 [16:46:17]current date 1730306783 [16:46:17]FM_GetShiftState [16:46:17]SAM_PROTO_GetShiftState [16:46:17]wFMCommunicate request_size=4 [16:46:17]MH_SAM_APDU [16:46:17]CAPDU: 80 13 01 00 [16:46:17]Write to MH i2c: E2 08 00 3A 4B 80 13 01 00 00 00 00 00 02 [16:46:17]Write i2c OK [16:46:17]MH_I2C_Read... [16:46:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:17]Read from MH i2c: E2 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 0E 00 [16:46:17]MH_I2C_Read... [16:46:17]Read from MH i2c: E2 0E 00 3A 4B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 92 [16:46:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:46:17]wFMCommunicate OK [16:46:17]SAM_PROTO_GetShiftState done [16:46:17]FM_GetShiftState done [16:46:17]opened in 1730246278 [16:46:17]opened+sec_in_day 1730332678 [16:46:17]quantity*price = 100015 [16:46:17]sum+1 = 100017 [16:46:17]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.16 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 125 30.10.2024 16:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139441 ФПД: 252368773807448 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164623&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139441&fm=252368773807448&tin=02508201610067®Number=0000000000091631&sum=100000 [16:46:18]StoreToDocumentArchive [16:46:18]shift 556 fd 139441 [16:46:18]save to /storage/0556/doc_00139441 [16:46:18]save last doc name /storage/0556/doc_00139441 to /storage/kkm_last_doc_name [16:46:18]save OK [16:46:18]Clear old archive folders... [16:46:18]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:18]tlvbuf is 01174060 [16:46:18]SAM_PROTO_ClearQueue [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 09 00 00 [16:46:18]Write to MH i2c: E2 08 00 47 4B 80 09 00 00 00 00 00 00 04 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 47 4B 00 90 00 06 [16:46:18]RAPDU: 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_ClearQueue done [16:46:18]KKMCreateOFDPacket [16:46:18]OFDProtocolAddRootSTLVToBuf [16:46:18]FM_MakeSignedData [16:46:18]FM_MakeSignedData [16:46:18]SAM_PROTO_SignData [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 0D 01 02 [16:46:18]Write to MH i2c: E2 08 00 48 4B 80 0D 01 02 00 00 00 00 0C [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 48 4B 00 90 00 07 [16:46:18]RAPDU: 90 00 [16:46:18]wFMCommunicate OK [16:46:18]wFMCommunicate request_size=255 [16:46:18]MH_SAM_APDU [16: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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 DF 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 20 02 00 35 04 06 00 E5 [16:46:18]Write to MH i2c: E2 02 01 49 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 DF 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 20 02 00 35 04 06 00 E5 00 00 C2 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 49 4B 00 90 00 08 [16:46:18]RAPDU: 90 00 [16:46:18]wFMCommunicate OK [16:46:18]wFMCommunicate request_size=10 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 0D 02 02 05 87 2F 1D 7D 58 [16:46:18]Write to MH i2c: E2 0D 00 4A 4B 80 0D 02 02 05 00 87 2F 1D 7D 58 00 00 C1 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 03 00 4A 4B 00 90 00 09 [16:46:18]RAPDU: 90 00 [16:46:18]wFMCommunicate OK [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 0D 03 02 [16:46:18]Write to MH i2c: E2 08 00 4B 4B 80 0D 03 02 00 00 00 00 11 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0B 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 0B 00 4B 4B 00 75 7F 89 5A 95 81 FD CC 90 00 C8 [16:46:18]RAPDU: 75 7F 89 5A 95 81 FD CC 90 00 [16:46:18]wFMCommunicate OK [16:46:18]SAM_PROTO_SignData done [16:46:18]FM_MakeSignedData done [16:46:18]CreateOFDProtocolMessage [16:46:18]wFMCommunicate request_size=4 [16:46:18]MH_SAM_APDU [16:46:18]CAPDU: 80 11 00 00 [16:46:18]Write to MH i2c: E2 08 00 4C 4B 80 11 00 00 00 00 00 00 11 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:18]Read from MH i2c: E2 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: E2 17 00 4C 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6C [16:46:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:46:18]wFMCommunicate OK [16:46:18]CreateOFDProtocolMessage done [16:46:18]OFDSenderStorePacket 139441 [16:46:18]StoreOFDPacket docnum=139441 [16:46:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 D8 43 07 01 A8 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 DF 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 20 02 00 35 04 06 00 E5 87 2F 1D 7D 58 75 7F 89 5A 95 81 FD CC [16:46:18]CheckFolder [16:46:18]dirname=/storage/ofd_packets [16:46:18]CheckFolder done [16:46:18]ProducePacketName [16:46:18]name=ofd_packets/00139441 [16:46:18]NVStorageSaveData ofd_packets/00139441 [16:46:18]File name is /storage/ofd_packets/00139441 [16:46:18]Write 301 bytes [16:46:18]NVStorageSaveData done [16:46:18]OFDSenderStorePacket done [16:46:18]KKMCreateOFDPacket done [16:46:18]NVStorageSaveData kkm_last_timestamp [16:46:18]File name is /storage/kkm_last_timestamp [16:46:18]Write 4 bytes [16:46:18]NVStorageSaveData done [16:46:18]ExternCall_PrintAddStr [16:46:18]wPrintStart [16:46:18]Write to MH i2c: 01 00 00 4D 4B 98 [16:46:18]Write i2c OK [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 [16:46:18]MH_I2C_Read... [16:46:18]Read from MH i2c: 01 07 00 4D 4B 00 00 00 00 00 FF 0F AD [16:46:18]RasterBufferAndPrint [16:46:18]line Счет N : (1)1094640 [16:46:18]line ИНН: 02508201610067 [16:46:18]line Контрольно-Кассовый Чек [16:46:18]line ПРОДАЖА [16:46:18]line ТРК (МРК, ГНК) : 63 [16:46:18]line Товар: 2710124130 [16:46:18]line Аи-92-К-2 [16:46:18]line 14.950 * 66.90 [16:46:18]line = 1000.16 [16:46:18]line НДС 12% НСП 1% [16:46:18]line > о реализуемом товаре [16:46:18]line ОКРУГЛЕНИЕ: -0.16 [16:46:18]line ИТОГО: 1000.00 [16:46:18]line Внесено: 1000.00 [16:46:18]line СДАЧА: 0.00 [16:46:18]line НСП 1% : 8.85 [16:46:18]line НДС 12% : 106.21 [16:46:18]line Наличными: 1000.00 [16:46:18]line Безнал.: 0.00 [16:46:18]line Место: АЗС № 101 "Партнер Нефть" [16:46:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:46:18]line СНО: Общий режим [16:46:18]line Чек 125 30.10.2024 16:46 [16:46:18]line Смена: 556 ФФД: 1.0 [16:46:18]line ЗНМ: 0300000081 [16:46:18]line РНМ: 0000000000091631 [16:46:18]line Версия ККМ: 001 [16:46:18]line ФМ: 0000000000874669 [16:46:18]line ФД: 139441 [16:46:18]line ФПД: 252368773807448 [16:46:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164623&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139441&fm=252368773807448&tin=02508201610067®Number=0000000000091631&sum=100000 [16:46:19]OFD Sender: Processing packet 139441 [packets to send 34, broken 33] [16:46:19]ProducePacketName [16:46:19]name=ofd_packets/00139441 [16:46:19]OFD Sender: To server: pG, [16:46:19]CommunicateWithHost lk.salyk.kg:30040 [16:46:19]ConnectInit lk.salyk.kg [16:46:19]written 0, free lines is 4095 [16:46:19]Connected sock=10 [16:46:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 D8 43 07 01 A8 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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 86 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 75 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 29 00 00 00 00 07 04 06 00 A0 86 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 7D 00 00 00 F4 03 04 00 DF 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B1 20 02 00 35 04 06 00 E5 87 2F 1D 7D 58 75 7F 89 5A 95 81 FD CC [16:46:19]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B4 C8 47 00 FD 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 38 37 34 36 36 39 10 04 04 00 B1 20 02 00 F4 03 04 00 8F 0E 22 67 B6 04 01 00 00 DF 11 8F BA 1A D8 13 27 [16:46:19]CommunicateWithHost err = 0 [16:46:19]CheckOFDResponse [16:46:19]1017 (14) - 77093643461234 [16:46:19]1041 (16) - 0000000000874669 [16:46:19]1040 (4) - 139441 [16:46:19]1012 (4) - 30.10.2024 10:46 [16:46:19]1206 (1) - 0 [16:46:19]OFD Sender: Remove packet 139441 [16:46:19]ProducePacketName [16:46:19]name=ofd_packets/00139441 [16:46:19]NVStorageDeleteData [16:46:19]Write to MH i2c: 01 00 00 78 4B C3 [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: 01 07 00 78 4B 00 00 00 00 00 ED 0C C3 [16:46:19]RasterBufferAndPrint [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]line [16:46:19]written 0, free lines is 3315 [16:46:19]MH_Cut [16:46:19]Write to MH i2c: D1 01 00 7F 4B 01 9C [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 01 00 [16:46:19]MH_I2C_Read... [16:46:19]Read from MH i2c: D1 01 00 7F 4B 00 9B [16:46:19]Write to MH i2c: 01 00 00 80 4B CB [16:46:19]Write i2c OK [16:46:19]MH_I2C_Read... [16:46:19]OFD Sender: No OFD packet to send [16:46:20]*** Cut start [16:46:20]*** Partial cut [16:46:20]*** CUTSNS_PIN = 1 [16:46:20]*** CUTSNS_PIN = 0 [16:46:20]*** Brake cut motor [16:46:20]Read from MH i2c: 01 [16:46:20]MH_I2C_Read... [16:46:20]*** Stop cut motor [16:46:20]*** Cut end [16:46:20]Read from MH i2c: 01 07 00 [16:46:20]MH_I2C_Read... [16:46:20]Read from MH i2c: 01 07 00 80 4B 00 00 00 00 00 FF 0F E0 [16:46:20]process_action close_receipt done [16:46:20]requested_data is exist [16:46:20]produce_requested_data [16:46:20]requested_item fm.sn is exist - process it [16:46:20]wFMCommunicate request_size=4 [16:46:20]MH_SAM_APDU [16:46:20]CAPDU: 80 11 00 00 [16:46:20]Write to MH i2c: E2 08 00 81 4B 80 11 00 00 00 00 00 00 46 [16:46:20]Write i2c OK [16:46:20]MH_I2C_Read... [16:46:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:21]Read from MH i2c: E2 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 17 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 17 00 81 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A1 [16:46:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:46:21]wFMCommunicate OK [16:46:21]requested_item fd.num is exist - process it [16:46:21]SAM_PROTO_GetFieldsCounters [16:46:21]wFMCommunicate request_size=4 [16:46:21]MH_SAM_APDU [16:46:21]CAPDU: 80 13 00 00 [16:46:21]Write to MH i2c: E2 08 00 82 4B 80 13 00 00 00 00 00 00 49 [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:21]Read from MH i2c: E2 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 62 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 62 00 82 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B1 20 02 00 0E 04 04 00 2C 02 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 E5 [16:46:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B1 20 02 00 0E 04 04 00 2C 02 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 [16:46:21]wFMCommunicate OK [16:46:21]SAM_PROTO_GetFieldsCounters done [16:46:21]requested_item shift.num is exist - process it [16:46:21]requested_item shift.opened is exist - process it [16:46:21]req_shift_opened [16:46:21]FM_GetShiftState [16:46:21]SAM_PROTO_GetShiftState [16:46:21]wFMCommunicate request_size=4 [16:46:21]MH_SAM_APDU [16:46:21]CAPDU: 80 13 01 00 [16:46:21]Write to MH i2c: E2 08 00 83 4B 80 13 01 00 00 00 00 00 4B [16:46:21]Write i2c OK [16:46:21]MH_I2C_Read... [16:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:21]Read from MH i2c: E2 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 0E 00 [16:46:21]MH_I2C_Read... [16:46:21]Read from MH i2c: E2 0E 00 83 4B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DB [16:46:21]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:46:21]wFMCommunicate OK [16:46:21]SAM_PROTO_GetShiftState done [16:46:21]FM_GetShiftState done [16:46:21]req_shift_opened done [16:46:21]requested_item shift.open_date is exist - process it [16:46:21]req_shift_open_date [16:46:21]req_shift_open_date done [16:46:21]produce_requested_data done [16:46:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139441,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:46:21]process_action_free close_receipt [16:46:21]json_value_free [16:46:21]json_value_free done [16:46:21]process_json_proto returns [16:46:21]Send response to host [16:46:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139441,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:46:21]free response buf [16:46:21]execute_script done [16:46:21]execute_script returns [16:46:21]free content buf [16:46:21]Sock 9.Close socket [16:46:21]Sock 9.Thread stoped [16:46:24]OFD Sender: No OFD packet to send [16:46:29]OFD Sender: No OFD packet to send [16:46:33]accept exits with 8 [16:46:33]New connection [16:46:33]New thread 3067141476 created [16:46:33]Thread 3067284836 joined [16:46:33]Waiting for new connection... [16:46:33] Sock 8.Parse request [16:46:33]Sock 8.Check first char [16:46:33]Sock 8.First char is OK [16:46:33]request: POST /json_proto HTTP/1.0 [16:46:33]Method: POST [16:46:33]URL: /json_proto [16:46:33]Method is POST - this is cgi request [16:46:33]url: /json_proto [16:46:33]query_string will be loaded in cgi processing [16:46:33]execute_cgi json_proto POST (null) [16:46:33]execute_cgi path=json_proto method=POST [16:46:33]POST find Content-Length [16:46:33]Host: 172.17.50.196:8080 [16:46:33]Content-Length: 683 [16:46:33]Content-Type: application/json [16:46:33] [16:46:33]POST finish read [16:46:33]Found Content-Length = 683 [16:46:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "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" ] } } [16:46:33]execute_script... [16:46:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094641", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 44", "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" ] } } [16:46:33]POST & json_proto [16:46:33]process_json_proto [16:46:33]json parsed OK: [16:46:33]protocol is kg_v1.0 [16:46:33]action value=close_receipt [16:46:33]process_action close_receipt [16:46:33]cmd_close_receipt [16:46:33]MH_GetDate [16:46:33]Write to MH i2c: F0 00 00 84 4B BE [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 09 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: F0 09 00 84 4B 00 EF 62 22 67 72 0D 1C 67 A3 [16:46:33]GetLastDocTimeStamp 1730306783 [16:46:33]current date 1730306799 [16:46:33]FM_GetShiftState [16:46:33]SAM_PROTO_GetShiftState [16:46:33]wFMCommunicate request_size=4 [16:46:33]MH_SAM_APDU [16:46:33]CAPDU: 80 13 01 00 [16:46:33]Write to MH i2c: E2 08 00 85 4B 80 13 01 00 00 00 00 00 4D [16:46:33]Write i2c OK [16:46:33]MH_I2C_Read... [16:46:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:33]Read from MH i2c: E2 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 [16:46:33]MH_I2C_Read... [16:46:33]Read from MH i2c: E2 0E 00 85 4B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DD [16:46:33]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:46:33]wFMCommunicate OK [16:46:33]SAM_PROTO_GetShiftState done [16:46:33]FM_GetShiftState done [16:46:33]opened in 1730246278 [16:46:33]opened+sec_in_day 1730332678 [16:46:33]quantity*price = 100021 [16:46:33]sum+1 = 100023 [16:46:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.22 ИТОГО: 1000.00 Внесено: 1000.00 СДАЧА: 0.00 НСП 1% : 8.85 НДС 12% : 106.22 Наличными: 1000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 126 30.10.2024 16:46 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139442 ФПД: 80219062884874 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164639&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139442&fm=80219062884874&tin=02508201610067®Number=0000000000091631&sum=100000 [16:46:34]StoreToDocumentArchive [16:46:34]shift 556 fd 139442 [16:46:34]save to /storage/0556/doc_00139442 [16:46:34]save last doc name /storage/0556/doc_00139442 to /storage/kkm_last_doc_name [16:46:34]save OK [16:46:34]Clear old archive folders... [16:46:34]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:46:34]tlvbuf is 011E0F70 [16:46:34]SAM_PROTO_ClearQueue [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 09 00 00 [16:46:34]Write to MH i2c: E2 08 00 92 4B 80 09 00 00 00 00 00 00 4F [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 92 4B 00 90 00 51 [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]SAM_PROTO_ClearQueue done [16:46:34]KKMCreateOFDPacket [16:46:34]OFDProtocolAddRootSTLVToBuf [16:46:34]FM_MakeSignedData [16:46:34]FM_MakeSignedData [16:46:34]SAM_PROTO_SignData [16:46:34]wFMCommunicate request_size=4 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 0D 01 02 [16:46:34]Write to MH i2c: E2 08 00 93 4B 80 0D 01 02 00 00 00 00 57 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:46:34]Read from MH i2c: E2 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 [16:46:34]MH_I2C_Read... [16:46:34]Read from MH i2c: E2 03 00 93 4B 00 90 00 52 [16:46:34]RAPDU: 90 00 [16:46:34]wFMCommunicate OK [16:46:34]wFMCommunicate request_size=255 [16:46:34]MH_SAM_APDU [16:46:34]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7E 00 00 00 F4 03 04 00 EF 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 20 02 00 35 04 06 00 48 [16:46:34]Write to MH i2c: E2 02 01 94 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 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 7E 00 00 00 F4 03 04 00 EF 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 20 02 00 35 04 06 00 48 00 00 A6 [16:46:34]Write i2c OK [16:46:34]MH_I2C_Read... [16:46:35]OFD Sender: No OFD packet to send [16:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 94 4B 00 90 00 53 [16:46:35]RAPDU: 90 00 [16:46:35]wFMCommunicate OK [16:46:35]wFMCommunicate request_size=10 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 0D 02 02 05 F5 74 BF 5A 0A [16:46:35]Write to MH i2c: E2 0D 00 95 4B 80 0D 02 02 05 00 F5 74 BF 5A 0A 00 00 F0 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 03 00 95 4B 00 90 00 54 [16:46:35]RAPDU: 90 00 [16:46:35]wFMCommunicate OK [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 0D 03 02 [16:46:35]Write to MH i2c: E2 08 00 96 4B 80 0D 03 02 00 00 00 00 5C [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 0B 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 0B 00 96 4B 00 D0 76 0D DB 86 E1 1A 68 90 00 74 [16:46:35]RAPDU: D0 76 0D DB 86 E1 1A 68 90 00 [16:46:35]wFMCommunicate OK [16:46:35]SAM_PROTO_SignData done [16:46:35]FM_MakeSignedData done [16:46:35]CreateOFDProtocolMessage [16:46:35]wFMCommunicate request_size=4 [16:46:35]MH_SAM_APDU [16:46:35]CAPDU: 80 11 00 00 [16:46:35]Write to MH i2c: E2 08 00 97 4B 80 11 00 00 00 00 00 00 5C [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:35]Read from MH i2c: E2 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 17 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: E2 17 00 97 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B7 [16:46:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:46:35]wFMCommunicate OK [16:46:35]CreateOFDProtocolMessage done [16:46:35]OFDSenderStorePacket 139442 [16:46:35]StoreOFDPacket docnum=139442 [16:46:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 10 39 07 01 43 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7E 00 00 00 F4 03 04 00 EF 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 20 02 00 35 04 06 00 48 F5 74 BF 5A 0A D0 76 0D DB 86 E1 1A 68 [16:46:35]CheckFolder [16:46:35]dirname=/storage/ofd_packets [16:46:35]CheckFolder done [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00139442 [16:46:35]NVStorageSaveData ofd_packets/00139442 [16:46:35]File name is /storage/ofd_packets/00139442 [16:46:35]Write 301 bytes [16:46:35]NVStorageSaveData done [16:46:35]OFDSenderStorePacket done [16:46:35]KKMCreateOFDPacket done [16:46:35]NVStorageSaveData kkm_last_timestamp [16:46:35]File name is /storage/kkm_last_timestamp [16:46:35]Write 4 bytes [16:46:35]NVStorageSaveData done [16:46:35]ExternCall_PrintAddStr [16:46:35]wPrintStart [16:46:35]Write to MH i2c: 01 00 00 98 4B E3 [16:46:35]Write i2c OK [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 [16:46:35]MH_I2C_Read... [16:46:35]Read from MH i2c: 01 07 00 98 4B 00 00 00 00 00 FF 0F F8 [16:46:35]RasterBufferAndPrint [16:46:35]line Счет N : (1)1094641 [16:46:35]line ИНН: 02508201610067 [16:46:35]line Контрольно-Кассовый Чек [16:46:35]line ПРОДАЖА [16:46:35]line ТРК (МРК, ГНК) : 44 [16:46:35]line Товар: 2710124500 [16:46:35]line Аи-95-К-3 [16:46:35]line 13.480 * 74.20 [16:46:35]line = 1000.22 [16:46:35]line НДС 12% НСП 1% [16:46:35]line > о реализуемом товаре [16:46:35]line ОКРУГЛЕНИЕ: -0.22 [16:46:35]line ИТОГО: 1000.00 [16:46:35]line Внесено: 1000.00 [16:46:35]line СДАЧА: 0.00 [16:46:35]line НСП 1% : 8.85 [16:46:35]line НДС 12% : 106.22 [16:46:35]line Наличными: 1000.00 [16:46:35]line Безнал.: 0.00 [16:46:35]line Место: АЗС № 101 "Партнер Нефть" [16:46:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:46:35]line СНО: Общий режим [16:46:35]line Чек 126 30.10.2024 16:46 [16:46:35]line Смена: 556 ФФД: 1.0 [16:46:35]line ЗНМ: 0300000081 [16:46:35]line РНМ: 0000000000091631 [16:46:35]line Версия ККМ: 001 [16:46:35]line ФМ: 0000000000874669 [16:46:35]line ФД: 139442 [16:46:35]line ФПД: 80219062884874 [16:46:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164639&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139442&fm=80219062884874&tin=02508201610067®Number=0000000000091631&sum=100000 [16:46:35]OFD Sender: Processing packet 139442 [packets to send 34, broken 33] [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00139442 [16:46:35]OFD Sender: To server: pG, [16:46:35]CommunicateWithHost lk.salyk.kg:30040 [16:46:35]ConnectInit lk.salyk.kg [16:46:35]written 0, free lines is 4095 [16:46:35]Connected sock=10 [16:46:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 10 39 07 01 43 D4 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 7E 00 00 00 F4 03 04 00 EF 62 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 20 02 00 35 04 06 00 48 F5 74 BF 5A 0A D0 76 0D DB 86 E1 1A 68 [16:46:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 76 E2 47 00 D9 BB A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B2 20 02 00 F4 03 04 00 9F 0E 22 67 B6 04 01 00 00 36 23 A5 AC 0A DA E6 8C [16:46:35]CommunicateWithHost err = 0 [16:46:35]CheckOFDResponse [16:46:35]1017 (14) - 77093643461234 [16:46:35]1041 (16) - 0000000000874669 [16:46:35]1040 (4) - 139442 [16:46:35]1012 (4) - 30.10.2024 10:46 [16:46:35]1206 (1) - 0 [16:46:35]OFD Sender: Remove packet 139442 [16:46:35]ProducePacketName [16:46:35]name=ofd_packets/00139442 [16:46:35]NVStorageDeleteData [16:46:36]Write to MH i2c: 01 00 00 C3 4B 0E [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: 01 07 00 C3 4B 00 00 00 00 00 EC 0C 0D [16:46:36]RasterBufferAndPrint [16:46:36]line [16:46:36]line [16:46:36]line [16:46:36]line [16:46:36]line [16:46:36]written 0, free lines is 3314 [16:46:36]MH_Cut [16:46:36]Write to MH i2c: D1 01 00 CA 4B 01 E7 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: D1 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: D1 01 00 [16:46:36]MH_I2C_Read... [16:46:36]Read from MH i2c: D1 01 00 CA 4B 00 E6 [16:46:36]Write to MH i2c: 01 00 00 CB 4B 16 [16:46:36]Write i2c OK [16:46:36]MH_I2C_Read... [16:46:36]OFD Sender: No OFD packet to send [16:46:36]*** Cut start [16:46:36]*** Partial cut [16:46:36]*** CUTSNS_PIN = 1 [16:46:36]*** CUTSNS_PIN = 0 [16:46:37]*** Brake cut motor [16:46:37]Read from MH i2c: 01 [16:46:37]MH_I2C_Read... [16:46:37]*** Stop cut motor [16:46:37]*** Cut end [16:46:37]Read from MH i2c: 01 07 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: 01 07 00 CB 4B 00 00 00 00 00 FF 0F 2B [16:46:37]process_action close_receipt done [16:46:37]requested_data is exist [16:46:37]produce_requested_data [16:46:37]requested_item fm.sn is exist - process it [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 11 00 00 [16:46:37]Write to MH i2c: E2 08 00 CC 4B 80 11 00 00 00 00 00 00 91 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 17 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 17 00 CC 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EC [16:46:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:46:37]wFMCommunicate OK [16:46:37]requested_item fd.num is exist - process it [16:46:37]SAM_PROTO_GetFieldsCounters [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 13 00 00 [16:46:37]Write to MH i2c: E2 08 00 CD 4B 80 13 00 00 00 00 00 00 94 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 62 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 62 00 CD 4B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B2 20 02 00 0E 04 04 00 2C 02 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 34 [16:46:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B2 20 02 00 0E 04 04 00 2C 02 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 [16:46:37]wFMCommunicate OK [16:46:37]SAM_PROTO_GetFieldsCounters done [16:46:37]requested_item shift.num is exist - process it [16:46:37]requested_item shift.opened is exist - process it [16:46:37]req_shift_opened [16:46:37]FM_GetShiftState [16:46:37]SAM_PROTO_GetShiftState [16:46:37]wFMCommunicate request_size=4 [16:46:37]MH_SAM_APDU [16:46:37]CAPDU: 80 13 01 00 [16:46:37]Write to MH i2c: E2 08 00 CE 4B 80 13 01 00 00 00 00 00 96 [16:46:37]Write i2c OK [16:46:37]MH_I2C_Read... [16:46:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:46:37]Read from MH i2c: E2 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 0E 00 [16:46:37]MH_I2C_Read... [16:46:37]Read from MH i2c: E2 0E 00 CE 4B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 26 [16:46:37]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:46:37]wFMCommunicate OK [16:46:37]SAM_PROTO_GetShiftState done [16:46:37]FM_GetShiftState done [16:46:37]req_shift_opened done [16:46:37]requested_item shift.open_date is exist - process it [16:46:37]req_shift_open_date [16:46:37]req_shift_open_date done [16:46:37]produce_requested_data done [16:46:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139442,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:46:37]process_action_free close_receipt [16:46:37]json_value_free [16:46:37]json_value_free done [16:46:37]process_json_proto returns [16:46:37]Send response to host [16:46:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139442,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:46:37]free response buf [16:46:37]execute_script done [16:46:37]execute_script returns [16:46:37]free content buf [16:46:37]Sock 8.Close socket [16:46:37]Sock 8.Thread stoped [16:46:41]OFD Sender: No OFD packet to send [16:46:46]OFD Sender: No OFD packet to send [16:46:51]OFD Sender: No OFD packet to send [16:46:56]OFD Sender: No OFD packet to send [16:47:01]OFD Sender: No OFD packet to send [16:47:06]OFD Sender: No OFD packet to send [16:47:11]OFD Sender: No OFD packet to send [16:47:16]OFD Sender: No OFD packet to send [16:47:21]OFD Sender: No OFD packet to send [16:47:26]OFD Sender: No OFD packet to send [16:47:31]OFD Sender: No OFD packet to send [16:47:36]OFD Sender: No OFD packet to send [16:47:41]OFD Sender: No OFD packet to send [16:47:46]OFD Sender: No OFD packet to send [16:47:51]OFD Sender: No OFD packet to send [16:47:56]OFD Sender: No OFD packet to send [16:48:01]OFD Sender: No OFD packet to send [16:48:06]OFD Sender: No OFD packet to send [16:48:11]OFD Sender: No OFD packet to send [16:48:14]accept exits with 9 [16:48:14]New connection [16:48:14]New thread 3067284836 created [16:48:14]Thread 3067141476 joined [16:48:14]Waiting for new connection... [16:48:14] Sock 9.Parse request [16:48:14]Sock 9.Check first char [16:48:14]Sock 9.First char is OK [16:48:14]request: POST /json_proto HTTP/1.0 [16:48:14]Method: POST [16:48:14]URL: /json_proto [16:48:14]Method is POST - this is cgi request [16:48:14]url: /json_proto [16:48:14]query_string will be loaded in cgi processing [16:48:14]execute_cgi json_proto POST (null) [16:48:14]execute_cgi path=json_proto method=POST [16:48:14]POST find Content-Length [16:48:14]Host: 172.17.50.196:8080 [16:48:14]Content-Length: 698 [16:48:14]Content-Type: application/json [16:48:14] [16:48:14]POST finish read [16:48:14]Found Content-Length = 698 [16:48:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335341", "tax_sys" : 0, "items" : [ { "code": "4000417211002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT \u043C\u043E\u043B \u043A\u0430\u0440\u0430\u043C.\u043C\u0443\u0441\u0441 100\u0433", "price" : 209.00, "quantity" : 1.000, "sum" : 209.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:14]execute_script... [16:48: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 : (3)335341", "tax_sys" : 0, "items" : [ { "code": "4000417211002", "name": "\u0428\u043E\u043A\u043E\u043B\u0430\u0434 Ritter SPORT \u043C\u043E\u043B \u043A\u0430\u0440\u0430\u043C.\u043C\u0443\u0441\u0441 100\u0433", "price" : 209.00, "quantity" : 1.000, "sum" : 209.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 209.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:14]POST & json_proto [16:48:14]process_json_proto [16:48:14]json parsed OK: [16:48:14]protocol is kg_v1.0 [16:48:14]action value=close_receipt [16:48:14]process_action close_receipt [16:48:14]cmd_close_receipt [16:48:14]MH_GetDate [16:48:14]Write to MH i2c: F0 00 00 CF 4B 09 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: F0 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: F0 09 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: F0 09 00 CF 4B 00 54 63 22 67 72 0D 1C 67 54 [16:48:14]GetLastDocTimeStamp 1730306799 [16:48:14]current date 1730306900 [16:48:14]FM_GetShiftState [16:48:14]SAM_PROTO_GetShiftState [16:48:14]wFMCommunicate request_size=4 [16:48:14]MH_SAM_APDU [16:48:14]CAPDU: 80 13 01 00 [16:48:14]Write to MH i2c: E2 08 00 D0 4B 80 13 01 00 00 00 00 00 98 [16:48:14]Write i2c OK [16:48:14]MH_I2C_Read... [16:48:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:14]Read from MH i2c: E2 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 0E 00 [16:48:14]MH_I2C_Read... [16:48:14]Read from MH i2c: E2 0E 00 D0 4B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 28 [16:48:14]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:48:14]wFMCommunicate OK [16:48:14]SAM_PROTO_GetShiftState done [16:48:14]FM_GetShiftState done [16:48:14]opened in 1730246278 [16:48:14]opened+sec_in_day 1730332678 [16:48:14]quantity*price = 20900 [16:48:14]sum+1 = 20901 [16:48:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 209.00 НСП 1% : 1.85 НДС 12% : 22.19 Наличными: 209.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 127 30.10.2024 16:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139443 ФПД: 251956245889674 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164820&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139443&fm=251956245889674&tin=02508201610067®Number=0000000000091631&sum=20900 0 [16:48:15]StoreToDocumentArchive [16:48:15]shift 556 fd 139443 [16:48:15]save to /storage/0556/doc_00139443 [16:48:15]save last doc name /storage/0556/doc_00139443 to /storage/kkm_last_doc_name [16:48:15]save OK [16:48:15]Clear old archive folders... [16:48:15]ProcessDocumentItem done err = 0, tmpTLVsize=302 [16:48:15]tlvbuf is 01144EF0 [16:48:15]SAM_PROTO_ClearQueue [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 09 00 00 [16:48:15]Write to MH i2c: E2 08 00 DD 4B 80 09 00 00 00 00 00 00 9A [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 DD 4B 00 90 00 9C [16:48:15]RAPDU: 90 00 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_ClearQueue done [16:48:15]KKMCreateOFDPacket [16:48:15]OFDProtocolAddRootSTLVToBuf [16:48:15]FM_MakeSignedData [16:48:15]FM_MakeSignedData [16:48:15]SAM_PROTO_SignData [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 0D 01 02 [16:48:15]Write to MH i2c: E2 08 00 DE 4B 80 0D 01 02 00 00 00 00 A2 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 DE 4B 00 90 00 9D [16:48:15]RAPDU: 90 00 [16:48:15]wFMCommunicate OK [16:48:15]wFMCommunicate request_size=255 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 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 54 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 [16:48:15]Write to MH i2c: E2 02 01 DF 4B 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 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 54 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 00 00 E2 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 DF 4B 00 90 00 9E [16:48:15]RAPDU: 90 00 [16:48:15]wFMCommunicate OK [16:48:15]wFMCommunicate request_size=61 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 20 02 00 35 04 06 00 E5 27 22 89 02 8A [16:48:15]Write to MH i2c: E2 40 00 E0 4B 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 20 02 00 35 04 06 00 E5 27 22 89 02 8A 00 00 F5 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 03 00 E0 4B 00 90 00 9F [16:48:15]RAPDU: 90 00 [16:48:15]wFMCommunicate OK [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 0D 03 02 [16:48:15]Write to MH i2c: E2 08 00 E1 4B 80 0D 03 02 00 00 00 00 A7 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0B 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 0B 00 E1 4B 00 B2 B3 38 17 30 14 25 62 90 00 27 [16:48:15]RAPDU: B2 B3 38 17 30 14 25 62 90 00 [16:48:15]wFMCommunicate OK [16:48:15]SAM_PROTO_SignData done [16:48:15]FM_MakeSignedData done [16:48:15]CreateOFDProtocolMessage [16:48:15]wFMCommunicate request_size=4 [16:48:15]MH_SAM_APDU [16:48:15]CAPDU: 80 11 00 00 [16:48:15]Write to MH i2c: E2 08 00 E2 4B 80 11 00 00 00 00 00 00 A7 [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:15]Read from MH i2c: E2 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: E2 17 00 E2 4B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [16:48:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:48:15]wFMCommunicate OK [16:48:15]CreateOFDProtocolMessage done [16:48:15]OFDSenderStorePacket 139443 [16:48:15]StoreOFDPacket docnum=139443 [16:48:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 42 01 00 00 90 10 3A 01 38 4F 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 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 54 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 20 02 00 35 04 06 00 E5 27 22 89 02 8A B2 B3 38 17 30 14 25 62 [16:48:15]CheckFolder [16:48:15]dirname=/storage/ofd_packets [16:48:15]CheckFolder done [16:48:15]ProducePacketName [16:48:15]name=ofd_packets/00139443 [16:48:15]NVStorageSaveData ofd_packets/00139443 [16:48:15]File name is /storage/ofd_packets/00139443 [16:48:15]Write 352 bytes [16:48:15]NVStorageSaveData done [16:48:15]OFDSenderStorePacket done [16:48:15]KKMCreateOFDPacket done [16:48:15]NVStorageSaveData kkm_last_timestamp [16:48:15]File name is /storage/kkm_last_timestamp [16:48:15]Write 4 bytes [16:48:15]NVStorageSaveData done [16:48:15]ExternCall_PrintAddStr [16:48:15]wPrintStart [16:48:15]Write to MH i2c: 01 00 00 E3 4B 2E [16:48:15]Write i2c OK [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 [16:48:15]MH_I2C_Read... [16:48:15]Read from MH i2c: 01 07 00 E3 4B 00 00 00 00 00 FF 0F 43 [16:48:15]RasterBufferAndPrint [16:48:15]line Счет N : (3)335341 [16:48:15]line ИНН: 02508201610067 [16:48:15]line Контрольно-Кассовый Чек [16:48:15]line ПРОДАЖА [16:48:15]line Товар: 4000417211002 [16:48:15]line Шоколад Ritter SPORT мол карам.мусс 100г [16:48:15]line 1.000 * 209.00 [16:48:15]line = 209.00 [16:48:15]line НДС 12% НСП 1% [16:48:15]line > о реализуемом товаре [16:48:15]line ИТОГО: 209.00 [16:48:15]line НСП 1% : 1.85 [16:48:15]line НДС 12% : 22.19 [16:48:15]line Наличными: 209.00 [16:48:15]line Безнал.: 0.00 [16:48:15]line Место: АЗС № 101 "Партнер Нефть" [16:48:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:48:15]line СНО: Общий режим [16:48:15]line Чек 127 30.10.2024 16:48 [16:48:15]line Смена: 556 ФФД: 1.0 [16:48:15]line ЗНМ: 0300000081 [16:48:15]line РНМ: 0000000000091631 [16:48:15]line Версия ККМ: 001 [16:48:15]line ФМ: 0000000000874669 [16:48:15]line ФД: 139443 [16:48:15]line ФПД: 251956245889674 [16:48:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164820&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139443&fm=251956245889674&tin=02508201610067®Number=0000000000091631&sum=20900 [16:48:16]line 0 [16:48:16]OFD Sender: Processing packet 139443 [packets to send 34, broken 33] [16:48:16]ProducePacketName [16:48:16]name=ofd_packets/00139443 [16:48:16]OFD Sender: To server: pG, [16:48:16]CommunicateWithHost lk.salyk.kg:30040 [16:48:16]ConnectInit lk.salyk.kg [16:48:16]written 0, free lines is 4095 [16:48:16]Connected sock=10 [16:48:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 42 01 00 00 90 10 3A 01 38 4F 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 30 30 30 34 31 37 32 31 31 30 30 32 06 04 3C 00 D0 A8 D0 BE D0 BA D0 BE D0 BB D0 B0 D0 B4 20 52 69 74 74 65 72 20 53 50 4F 52 54 20 D0 BC D0 BE D0 BB 20 D0 BA D0 B0 D1 80 D0 B0 D0 BC 2E D0 BC D1 83 D1 81 D1 81 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A4 51 00 00 00 00 13 04 06 00 A4 51 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A4 51 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AB 08 00 00 00 00 07 04 06 00 A4 51 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 54 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 20 02 00 35 04 06 00 E5 27 22 89 02 8A B2 B3 38 17 30 14 25 62 [16:48:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 16 88 47 00 6C B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B3 20 02 00 F4 03 04 00 04 0F 22 67 B6 04 01 00 00 4F 0D D2 AB 35 A6 AE 8F [16:48:16]CommunicateWithHost err = 0 [16:48:16]CheckOFDResponse [16:48:16]1017 (14) - 77093643461234 [16:48:16]1041 (16) - 0000000000874669 [16:48:16]1040 (4) - 139443 [16:48:16]1012 (4) - 30.10.2024 10:48 [16:48:16]1206 (1) - 0 [16:48:16]OFD Sender: Remove packet 139443 [16:48:16]ProducePacketName [16:48:16]name=ofd_packets/00139443 [16:48:16]NVStorageDeleteData [16:48:16]Write to MH i2c: 01 00 00 0C 4C 58 [16:48:16]Write i2c OK [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: 01 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: 01 07 00 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: 01 07 00 0C 4C 00 00 00 00 00 04 0D 70 [16:48:16]RasterBufferAndPrint [16:48:16]line [16:48:16]line [16:48:16]line [16:48:16]line [16:48:16]line [16:48:16]written 0, free lines is 3341 [16:48:16]MH_Cut [16:48:16]Write to MH i2c: D1 01 00 13 4C 01 31 [16:48:16]Write i2c OK [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: D1 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: D1 01 00 [16:48:16]MH_I2C_Read... [16:48:16]Read from MH i2c: D1 01 00 13 4C 00 30 [16:48:16]Write to MH i2c: 01 00 00 14 4C 60 [16:48:16]Write i2c OK [16:48:16]MH_I2C_Read... [16:48:16]OFD Sender: No OFD packet to send [16:48:17]*** Cut start [16:48:17]*** Partial cut [16:48:17]*** CUTSNS_PIN = 1 [16:48:17]*** CUTSNS_PIN = 0 [16:48:17]*** Brake cut motor [16:48:17]Read from MH i2c: 01 [16:48:17]MH_I2C_Read... [16:48:17]*** Stop cut motor [16:48:17]*** Cut end [16:48:17]Read from MH i2c: 01 07 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: 01 07 00 14 4C 00 00 00 00 00 FF 0F 75 [16:48:17]process_action close_receipt done [16:48:17]requested_data is exist [16:48:17]produce_requested_data [16:48:17]requested_item fm.sn is exist - process it [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 11 00 00 [16:48:17]Write to MH i2c: E2 08 00 15 4C 80 11 00 00 00 00 00 00 DB [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:17]Read from MH i2c: E2 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 17 00 [16:48:17]MH_I2C_Read... [16:48:17]Read from MH i2c: E2 17 00 15 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [16:48:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:48:17]wFMCommunicate OK [16:48:17]requested_item fd.num is exist - process it [16:48:17]SAM_PROTO_GetFieldsCounters [16:48:17]wFMCommunicate request_size=4 [16:48:17]MH_SAM_APDU [16:48:17]CAPDU: 80 13 00 00 [16:48:17]Write to MH i2c: E2 08 00 16 4C 80 13 00 00 00 00 00 00 DE [16:48:17]Write i2c OK [16:48:17]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 62 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 62 00 16 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B3 20 02 00 0E 04 04 00 2C 02 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 82 [16:48:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B3 20 02 00 0E 04 04 00 2C 02 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 [16:48:18]wFMCommunicate OK [16:48:18]SAM_PROTO_GetFieldsCounters done [16:48:18]requested_item shift.num is exist - process it [16:48:18]requested_item shift.opened is exist - process it [16:48:18]req_shift_opened [16:48:18]FM_GetShiftState [16:48:18]SAM_PROTO_GetShiftState [16:48:18]wFMCommunicate request_size=4 [16:48:18]MH_SAM_APDU [16:48:18]CAPDU: 80 13 01 00 [16:48:18]Write to MH i2c: E2 08 00 17 4C 80 13 01 00 00 00 00 00 E0 [16:48:18]Write i2c OK [16:48:18]MH_I2C_Read... [16:48:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:18]Read from MH i2c: E2 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 0E 00 [16:48:18]MH_I2C_Read... [16:48:18]Read from MH i2c: E2 0E 00 17 4C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 70 [16:48:18]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:48:18]wFMCommunicate OK [16:48:18]SAM_PROTO_GetShiftState done [16:48:18]FM_GetShiftState done [16:48:18]req_shift_opened done [16:48:18]requested_item shift.open_date is exist - process it [16:48:18]req_shift_open_date [16:48:18]req_shift_open_date done [16:48:18]produce_requested_data done [16:48:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139443,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:48:18]process_action_free close_receipt [16:48:18]json_value_free [16:48:18]json_value_free done [16:48:18]process_json_proto returns [16:48:18]Send response to host [16:48:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139443,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:48:18]free response buf [16:48:18]execute_script done [16:48:18]execute_script returns [16:48:18]free content buf [16:48:18]Sock 9.Close socket [16:48:18]Sock 9.Thread stoped [16:48:21]OFD Sender: No OFD packet to send [16:48:26]OFD Sender: No OFD packet to send [16:48:32]OFD Sender: No OFD packet to send [16:48:37]OFD Sender: No OFD packet to send [16:48:40]accept exits with 8 [16:48:40]New connection [16:48:40]New thread 3067141476 created [16:48:40]Thread 3067284836 joined [16:48:40]Waiting for new connection... [16:48:40] Sock 8.Parse request [16:48:40]Sock 8.Check first char [16:48:40]Sock 8.First char is OK [16:48:40]request: POST /json_proto HTTP/1.0 [16:48:40]Method: POST [16:48:40]URL: /json_proto [16:48:40]Method is POST - this is cgi request [16:48:40]url: /json_proto [16:48:40]query_string will be loaded in cgi processing [16:48:40]execute_cgi json_proto POST (null) [16:48:40]execute_cgi path=json_proto method=POST [16:48:40]POST find Content-Length [16:48:40]Host: 172.17.50.196:8080 [16:48:40]Content-Length: 643 [16:48:40]Content-Type: application/json [16:48:40] [16:48:40]POST finish read [16:48:40]Found Content-Length = 643 [16:48:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:40]execute_script... [16:48: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)1094643", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 20.000, "sum" : 1338.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1338.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:48:40]POST & json_proto [16:48:40]process_json_proto [16:48:40]json parsed OK: [16:48:40]protocol is kg_v1.0 [16:48:40]action value=close_receipt [16:48:40]process_action close_receipt [16:48:40]cmd_close_receipt [16:48:40]MH_GetDate [16:48:40]Write to MH i2c: F0 00 00 18 4C 53 [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: F0 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: F0 09 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: F0 09 00 18 4C 00 6E 63 22 67 72 0D 1C 67 B8 [16:48:40]GetLastDocTimeStamp 1730306900 [16:48:40]current date 1730306926 [16:48:40]FM_GetShiftState [16:48:40]SAM_PROTO_GetShiftState [16:48:40]wFMCommunicate request_size=4 [16:48:40]MH_SAM_APDU [16:48:40]CAPDU: 80 13 01 00 [16:48:40]Write to MH i2c: E2 08 00 19 4C 80 13 01 00 00 00 00 00 E2 [16:48:40]Write i2c OK [16:48:40]MH_I2C_Read... [16:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:40]Read from MH i2c: E2 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 0E 00 [16:48:40]MH_I2C_Read... [16:48:40]Read from MH i2c: E2 0E 00 19 4C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 72 [16:48:40]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:48:40]wFMCommunicate OK [16:48:40]SAM_PROTO_GetShiftState done [16:48:40]FM_GetShiftState done [16:48:40]opened in 1730246278 [16:48:40]opened+sec_in_day 1730332678 [16:48:40]quantity*price = 133800 [16:48:40]sum+1 = 133801 [16:48:40]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1338.00 НСП 1% : 11.84 НДС 12% : 142.09 Наличными: 1338.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 128 30.10.2024 16:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139444 ФПД: 229490084345370 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164846&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139444&fm=229490084345370&tin=02508201610067®Number=0000000000091631&sum=133800 [16:48:41]StoreToDocumentArchive [16:48:41]shift 556 fd 139444 [16:48:41]save to /storage/0556/doc_00139444 [16:48:41]save last doc name /storage/0556/doc_00139444 to /storage/kkm_last_doc_name [16:48:41]save OK [16:48:41]Clear old archive folders... [16:48:41]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:48:41]tlvbuf is 011CB260 [16:48:41]SAM_PROTO_ClearQueue [16:48:41]wFMCommunicate request_size=4 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 09 00 00 [16:48:41]Write to MH i2c: E2 08 00 26 4C 80 09 00 00 00 00 00 00 E4 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 26 4C 00 90 00 E6 [16:48:41]RAPDU: 90 00 [16:48:41]wFMCommunicate OK [16:48:41]SAM_PROTO_ClearQueue done [16:48:41]KKMCreateOFDPacket [16:48:41]OFDProtocolAddRootSTLVToBuf [16:48:41]FM_MakeSignedData [16:48:41]FM_MakeSignedData [16:48:41]SAM_PROTO_SignData [16:48:41]wFMCommunicate request_size=4 [16:48:41]MH_SAM_APDU [16:48:41]CAPDU: 80 0D 01 02 [16:48:41]Write to MH i2c: E2 08 00 27 4C 80 0D 01 02 00 00 00 00 EC [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:48:41]Read from MH i2c: E2 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 [16:48:41]MH_I2C_Read... [16:48:41]Read from MH i2c: E2 03 00 27 4C 00 90 00 E7 [16:48:41]RAPDU: 90 00 [16:48:41]wFMCommunicate OK [16:48:41]wFMCommunicate request_size=255 [16:48:41]MH_SAM_APDU [16:48: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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 6E 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 20 02 00 35 04 06 00 D0 [16:48:41]Write to MH i2c: E2 02 01 28 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 6E 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 20 02 00 35 04 06 00 D0 00 00 C6 [16:48:41]Write i2c OK [16:48:41]MH_I2C_Read... [16:48:42]OFD Sender: No OFD packet to send [16:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 03 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 03 00 28 4C 00 90 00 E8 [16:48:42]RAPDU: 90 00 [16:48:42]wFMCommunicate OK [16:48:42]wFMCommunicate request_size=10 [16:48:42]MH_SAM_APDU [16:48:42]CAPDU: 80 0D 02 02 05 B8 52 F4 F6 1A [16:48:42]Write to MH i2c: E2 0D 00 29 4C 80 0D 02 02 05 00 B8 52 F4 F6 1A 00 00 07 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 03 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 03 00 29 4C 00 90 00 E9 [16:48:42]RAPDU: 90 00 [16:48:42]wFMCommunicate OK [16:48:42]wFMCommunicate request_size=4 [16:48:42]MH_SAM_APDU [16:48:42]CAPDU: 80 0D 03 02 [16:48:42]Write to MH i2c: E2 08 00 2A 4C 80 0D 03 02 00 00 00 00 F1 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 0B 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 0B 00 2A 4C 00 ED 0C 6D 4E 23 0E AB E8 90 00 6A [16:48:42]RAPDU: ED 0C 6D 4E 23 0E AB E8 90 00 [16:48:42]wFMCommunicate OK [16:48:42]SAM_PROTO_SignData done [16:48:42]FM_MakeSignedData done [16:48:42]CreateOFDProtocolMessage [16:48:42]wFMCommunicate request_size=4 [16:48:42]MH_SAM_APDU [16:48:42]CAPDU: 80 11 00 00 [16:48:42]Write to MH i2c: E2 08 00 2B 4C 80 11 00 00 00 00 00 00 F1 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:42]Read from MH i2c: E2 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 17 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: E2 17 00 2B 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [16:48:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:48:42]wFMCommunicate OK [16:48:42]CreateOFDProtocolMessage done [16:48:42]OFDSenderStorePacket 139444 [16:48:42]StoreOFDPacket docnum=139444 [16:48:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 8C FA 07 01 AC 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 6E 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 20 02 00 35 04 06 00 D0 B8 52 F4 F6 1A ED 0C 6D 4E 23 0E AB E8 [16:48:42]CheckFolder [16:48:42]dirname=/storage/ofd_packets [16:48:42]CheckFolder done [16:48:42]ProducePacketName [16:48:42]name=ofd_packets/00139444 [16:48:42]NVStorageSaveData ofd_packets/00139444 [16:48:42]File name is /storage/ofd_packets/00139444 [16:48:42]Write 301 bytes [16:48:42]NVStorageSaveData done [16:48:42]OFDSenderStorePacket done [16:48:42]KKMCreateOFDPacket done [16:48:42]NVStorageSaveData kkm_last_timestamp [16:48:42]File name is /storage/kkm_last_timestamp [16:48:42]Write 4 bytes [16:48:42]NVStorageSaveData done [16:48:42]ExternCall_PrintAddStr [16:48:42]wPrintStart [16:48:42]Write to MH i2c: 01 00 00 2C 4C 78 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 2C 4C 00 00 00 00 00 FF 0F 8D [16:48:42]RasterBufferAndPrint [16:48:42]line Счет N : (1)1094643 [16:48:42]line ИНН: 02508201610067 [16:48:42]line Контрольно-Кассовый Чек [16:48:42]line ПРОДАЖА [16:48:42]line ТРК (МРК, ГНК) : 53 [16:48:42]line Товар: 2710124130 [16:48:42]line Аи-92-К-2 [16:48:42]line 20.000 * 66.90 [16:48:42]line = 1338.00 [16:48:42]line НДС 12% НСП 1% [16:48:42]line > о реализуемом товаре [16:48:42]line ИТОГО: 1338.00 [16:48:42]line НСП 1% : 11.84 [16:48:42]line НДС 12% : 142.09 [16:48:42]line Наличными: 1338.00 [16:48:42]line Безнал.: 0.00 [16:48:42]line Место: АЗС № 101 "Партнер Нефть" [16:48:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:48:42]line СНО: Общий режим [16:48:42]line Чек 128 30.10.2024 16:48 [16:48:42]line Смена: 556 ФФД: 1.0 [16:48:42]line ЗНМ: 0300000081 [16:48:42]line РНМ: 0000000000091631 [16:48:42]line Версия ККМ: 001 [16:48:42]line ФМ: 0000000000874669 [16:48:42]line ФД: 139444 [16:48:42]line ФПД: 229490084345370 [16:48:42]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T164846&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139444&fm=229490084345370&tin=02508201610067®Number=0000000000091631&sum=133800 [16:48:42]written 0, free lines is 4095 [16:48:42]OFD Sender: Processing packet 139444 [packets to send 34, broken 33] [16:48:42]ProducePacketName [16:48:42]name=ofd_packets/00139444 [16:48:42]OFD Sender: To server: pG, [16:48:42]CommunicateWithHost lk.salyk.kg:30040 [16:48:42]ConnectInit lk.salyk.kg [16:48:42]Connected sock=11 [16:48:42]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 8C FA 07 01 AC 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 32 FF 03 08 00 03 20 4E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 A8 0A 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A8 0A 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A0 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 37 00 00 00 00 07 04 06 00 A8 0A 02 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 6E 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 20 02 00 35 04 06 00 D0 B8 52 F4 F6 1A ED 0C 6D 4E 23 0E AB E8 [16:48:42]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 54 69 47 00 71 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B4 20 02 00 F4 03 04 00 1E 0F 22 67 B6 04 01 00 00 38 66 6C 7C 64 B8 4A 23 [16:48:42]CommunicateWithHost err = 0 [16:48:42]CheckOFDResponse [16:48:42]1017 (14) - 77093643461234 [16:48:42]1041 (16) - 0000000000874669 [16:48:42]1040 (4) - 139444 [16:48:42]1012 (4) - 30.10.2024 10:49 [16:48:42]1206 (1) - 0 [16:48:42]OFD Sender: Remove packet 139444 [16:48:42]ProducePacketName [16:48:42]name=ofd_packets/00139444 [16:48:42]NVStorageDeleteData [16:48:42]Write to MH i2c: 01 00 00 54 4C A0 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: 01 07 00 54 4C 00 00 00 00 00 49 0D FD [16:48:42]RasterBufferAndPrint [16:48:42]line [16:48:42]line [16:48:42]line [16:48:42]line [16:48:42]line [16:48:42]written 0, free lines is 3416 [16:48:42]MH_Cut [16:48:42]Write to MH i2c: D1 01 00 5B 4C 01 79 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: D1 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: D1 01 00 [16:48:42]MH_I2C_Read... [16:48:42]Read from MH i2c: D1 01 00 5B 4C 00 78 [16:48:42]Write to MH i2c: 01 00 00 5C 4C A8 [16:48:42]Write i2c OK [16:48:42]MH_I2C_Read... [16:48:43]OFD Sender: No OFD packet to send [16:48:43]*** Cut start [16:48:43]*** Partial cut [16:48:43]*** CUTSNS_PIN = 1 [16:48:43]*** CUTSNS_PIN = 0 [16:48:43]*** Brake cut motor [16:48:43]Read from MH i2c: 01 [16:48:43]MH_I2C_Read... [16:48:43]*** Stop cut motor [16:48:43]*** Cut end [16:48:43]Read from MH i2c: 01 07 00 [16:48:43]MH_I2C_Read... [16:48:43]Read from MH i2c: 01 07 00 5C 4C 00 00 00 00 00 FF 0F BD [16:48:43]process_action close_receipt done [16:48:43]requested_data is exist [16:48:43]produce_requested_data [16:48:43]requested_item fm.sn is exist - process it [16:48:43]wFMCommunicate request_size=4 [16:48:43]MH_SAM_APDU [16:48:43]CAPDU: 80 11 00 00 [16:48:43]Write to MH i2c: E2 08 00 5D 4C 80 11 00 00 00 00 00 00 23 [16:48:43]Write i2c OK [16:48:43]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 17 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 17 00 5D 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [16:48:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:48:44]wFMCommunicate OK [16:48:44]requested_item fd.num is exist - process it [16:48:44]SAM_PROTO_GetFieldsCounters [16:48:44]wFMCommunicate request_size=4 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 13 00 00 [16:48:44]Write to MH i2c: E2 08 00 5E 4C 80 13 00 00 00 00 00 00 26 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 62 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 62 00 5E 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B4 20 02 00 0E 04 04 00 2C 02 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 CE [16:48:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B4 20 02 00 0E 04 04 00 2C 02 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 [16:48:44]wFMCommunicate OK [16:48:44]SAM_PROTO_GetFieldsCounters done [16:48:44]requested_item shift.num is exist - process it [16:48:44]requested_item shift.opened is exist - process it [16:48:44]req_shift_opened [16:48:44]FM_GetShiftState [16:48:44]SAM_PROTO_GetShiftState [16:48:44]wFMCommunicate request_size=4 [16:48:44]MH_SAM_APDU [16:48:44]CAPDU: 80 13 01 00 [16:48:44]Write to MH i2c: E2 08 00 5F 4C 80 13 01 00 00 00 00 00 28 [16:48:44]Write i2c OK [16:48:44]MH_I2C_Read... [16:48:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:48:44]Read from MH i2c: E2 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 0E 00 [16:48:44]MH_I2C_Read... [16:48:44]Read from MH i2c: E2 0E 00 5F 4C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B8 [16:48:44]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:48:44]wFMCommunicate OK [16:48:44]SAM_PROTO_GetShiftState done [16:48:44]FM_GetShiftState done [16:48:44]req_shift_opened done [16:48:44]requested_item shift.open_date is exist - process it [16:48:44]req_shift_open_date [16:48:44]req_shift_open_date done [16:48:44]produce_requested_data done [16:48:44]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139444,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:48:44]process_action_free close_receipt [16:48:44]json_value_free [16:48:44]json_value_free done [16:48:44]process_json_proto returns [16:48:44]Send response to host [16:48:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139444,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:48:44]free response buf [16:48:44]execute_script done [16:48:44]execute_script returns [16:48:44]free content buf [16:48:44]Sock 8.Close socket [16:48:44]Sock 8.Thread stoped [16:48:48]OFD Sender: No OFD packet to send [16:48:53]OFD Sender: No OFD packet to send [16:48:58]OFD Sender: No OFD packet to send [16:49:03]OFD Sender: No OFD packet to send [16:49:08]OFD Sender: No OFD packet to send [16:49:13]OFD Sender: No OFD packet to send [16:49:18]OFD Sender: No OFD packet to send [16:49:23]OFD Sender: No OFD packet to send [16:49:28]OFD Sender: No OFD packet to send [16:49:33]OFD Sender: No OFD packet to send [16:49:38]OFD Sender: No OFD packet to send [16:49:43]OFD Sender: No OFD packet to send [16:49:48]OFD Sender: No OFD packet to send [16:49:53]OFD Sender: No OFD packet to send [16:49:58]OFD Sender: No OFD packet to send [16:50:03]OFD Sender: No OFD packet to send [16:50:08]OFD Sender: No OFD packet to send [16:50:13]OFD Sender: No OFD packet to send [16:50:18]OFD Sender: No OFD packet to send [16:50:23]OFD Sender: No OFD packet to send [16:50:28]OFD Sender: No OFD packet to send [16:50:33]OFD Sender: No OFD packet to send [16:50:38]OFD Sender: No OFD packet to send [16:50:43]OFD Sender: No OFD packet to send [16:50:48]OFD Sender: No OFD packet to send [16:50:53]OFD Sender: No OFD packet to send [16:50:54]accept exits with 10 [16:50:54]New connection [16:50:54]New thread 3067284836 created [16:50:54]Thread 3067141476 joined [16:50:54]Waiting for new connection... [16:50:54] Sock 10.Parse request [16:50:54]Sock 10.Check first char [16:50:54]Sock 10.First char is OK [16:50:54]request: POST /json_proto HTTP/1.0 [16:50:54]Method: POST [16:50:54]URL: /json_proto [16:50:54]Method is POST - this is cgi request [16:50:54]url: /json_proto [16:50:54]query_string will be loaded in cgi processing [16:50:54]execute_cgi json_proto POST (null) [16:50:54]execute_cgi path=json_proto method=POST [16:50:54]POST find Content-Length [16:50:54]Host: 172.17.50.196:8080 [16:50:54]Content-Length: 775 [16:50:54]Content-Type: application/json [16:50:54] [16:50:54]POST finish read [16:50:54]Found Content-Length = 775 [16:50:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:54]execute_script... [16:50: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)1094644", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:54]POST & json_proto [16:50:54]process_json_proto [16:50:54]json parsed OK: [16:50:54]protocol is kg_v1.0 [16:50:54]action value=close_receipt [16:50:54]process_action close_receipt [16:50:54]cmd_close_receipt [16:50:54]MH_GetDate [16:50:54]Write to MH i2c: F0 00 00 60 4C 9B [16:50:54]Write i2c OK [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: F0 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: F0 09 00 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: F0 09 00 60 4C 00 F4 63 22 67 72 0D 1C 67 86 [16:50:54]GetLastDocTimeStamp 1730306926 [16:50:54]current date 1730307060 [16:50:54]FM_GetShiftState [16:50:54]SAM_PROTO_GetShiftState [16:50:54]wFMCommunicate request_size=4 [16:50:54]MH_SAM_APDU [16:50:54]CAPDU: 80 13 01 00 [16:50:54]Write to MH i2c: E2 08 00 61 4C 80 13 01 00 00 00 00 00 2A [16:50:54]Write i2c OK [16:50:54]MH_I2C_Read... [16:50:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:54]Read from MH i2c: E2 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 0E 00 [16:50:54]MH_I2C_Read... [16:50:54]Read from MH i2c: E2 0E 00 61 4C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 BA [16:50:54]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:50:54]wFMCommunicate OK [16:50:54]SAM_PROTO_GetShiftState done [16:50:54]FM_GetShiftState done [16:50:54]opened in 1730246278 [16:50:54]opened+sec_in_day 1730332678 [16:50:54]quantity*price = 100050 [16:50:54]sum+1 = 100052 [16:50:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 129 30.10.2024 16:51 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139445 ФПД: 151611294423277 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165100&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139445&fm=151611294423277&tin=02508201610067®Number=0000000000091631&sum=100051 [16:50:55]StoreToDocumentArchive [16:50:55]shift 556 fd 139445 [16:50:55]save to /storage/0556/doc_00139445 [16:50:55]save last doc name /storage/0556/doc_00139445 to /storage/kkm_last_doc_name [16:50:55]save OK [16:50:55]Clear old archive folders... [16:50:55]ProcessDocumentItem done err = 0, tmpTLVsize=252 [16:50:55]tlvbuf is 01305380 [16:50:55]SAM_PROTO_ClearQueue [16:50:55]wFMCommunicate request_size=4 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 09 00 00 [16:50:55]Write to MH i2c: E2 08 00 6E 4C 80 09 00 00 00 00 00 00 2C [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:50:55]Read from MH i2c: E2 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 6E 4C 00 90 00 2E [16:50:55]RAPDU: 90 00 [16:50:55]wFMCommunicate OK [16:50:55]SAM_PROTO_ClearQueue done [16:50:55]KKMCreateOFDPacket [16:50:55]OFDProtocolAddRootSTLVToBuf [16:50:55]FM_MakeSignedData [16:50:55]FM_MakeSignedData [16:50:55]SAM_PROTO_SignData [16:50:55]wFMCommunicate request_size=4 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 0D 01 02 [16:50:55]Write to MH i2c: E2 08 00 6F 4C 80 0D 01 02 00 00 00 00 34 [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:50:55]Read from MH i2c: E2 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 [16:50:55]MH_I2C_Read... [16:50:55]Read from MH i2c: E2 03 00 6F 4C 00 90 00 2F [16:50:55]RAPDU: 90 00 [16:50:55]wFMCommunicate OK [16:50:55]wFMCommunicate request_size=255 [16:50:55]MH_SAM_APDU [16:50:55]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 81 00 00 00 F4 03 04 00 F4 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 20 02 00 35 04 06 00 [16:50:55]Write to MH i2c: E2 02 01 70 4C 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 81 00 00 00 F4 03 04 00 F4 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 20 02 00 35 04 06 00 00 00 6D [16:50:55]Write i2c OK [16:50:55]MH_I2C_Read... [16:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:56]Read from MH i2c: E2 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 03 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 03 00 70 4C 00 90 00 30 [16:50:56]RAPDU: 90 00 [16:50:56]wFMCommunicate OK [16:50:56]wFMCommunicate request_size=11 [16:50:56]MH_SAM_APDU [16:50:56]CAPDU: 80 0D 02 02 06 89 E3 C1 59 18 ED [16:50:56]Write to MH i2c: E2 0E 00 71 4C 80 0D 02 02 06 00 89 E3 C1 59 18 ED 00 00 CE [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:50:56]Read from MH i2c: E2 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 03 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 03 00 71 4C 00 90 00 31 [16:50:56]RAPDU: 90 00 [16:50:56]wFMCommunicate OK [16:50:56]wFMCommunicate request_size=4 [16:50:56]MH_SAM_APDU [16:50:56]CAPDU: 80 0D 03 02 [16:50:56]Write to MH i2c: E2 08 00 72 4C 80 0D 03 02 00 00 00 00 39 [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:50:56]Read from MH i2c: E2 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 0B 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 0B 00 72 4C 00 BF 2F 1A DF 05 4D C5 2A 90 00 62 [16:50:56]RAPDU: BF 2F 1A DF 05 4D C5 2A 90 00 [16:50:56]wFMCommunicate OK [16:50:56]SAM_PROTO_SignData done [16:50:56]FM_MakeSignedData done [16:50:56]CreateOFDProtocolMessage [16:50:56]wFMCommunicate request_size=4 [16:50:56]MH_SAM_APDU [16:50:56]CAPDU: 80 11 00 00 [16:50:56]Write to MH i2c: E2 08 00 73 4C 80 11 00 00 00 00 00 00 39 [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:56]Read from MH i2c: E2 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 17 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: E2 17 00 73 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [16:50:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:50:56]wFMCommunicate OK [16:50:56]CreateOFDProtocolMessage done [16:50:56]OFDSenderStorePacket 139445 [16:50:56]StoreOFDPacket docnum=139445 [16:50:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 84 F0 08 01 3D 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 81 00 00 00 F4 03 04 00 F4 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 20 02 00 35 04 06 00 89 E3 C1 59 18 ED BF 2F 1A DF 05 4D C5 2A [16:50:56]CheckFolder [16:50:56]dirname=/storage/ofd_packets [16:50:56]CheckFolder done [16:50:56]ProducePacketName [16:50:56]name=ofd_packets/00139445 [16:50:56]NVStorageSaveData ofd_packets/00139445 [16:50:56]File name is /storage/ofd_packets/00139445 [16:50:56]Write 302 bytes [16:50:56]NVStorageSaveData done [16:50:56]OFDSenderStorePacket done [16:50:56]KKMCreateOFDPacket done [16:50:56]NVStorageSaveData kkm_last_timestamp [16:50:56]File name is /storage/kkm_last_timestamp [16:50:56]Write 4 bytes [16:50:56]NVStorageSaveData done [16:50:56]ExternCall_PrintAddStr [16:50:56]wPrintStart [16:50:56]Write to MH i2c: 01 00 00 74 4C C0 [16:50:56]Write i2c OK [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: 01 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: 01 07 00 [16:50:56]MH_I2C_Read... [16:50:56]Read from MH i2c: 01 07 00 74 4C 00 00 00 00 00 FF 0F D5 [16:50:56]RasterBufferAndPrint [16:50:56]line Счет N : (1)1094644 [16:50:56]line ИНН: 02508201610067 [16:50:56]line Контрольно-Кассовый Чек [16:50:56]line ПРОДАЖА [16:50:56]line ТРК (МРК, ГНК) : 31 [16:50:56]line Товар: 2710194210 [16:50:56]line ДТ(л)-К-2 [16:50:56]line 13.130 * 76.20 [16:50:56]line = 1000.51 [16:50:56]line НДС 12% НСП 1% [16:50:56]line > о реализуемом товаре [16:50:56]line ИТОГО: 1000.51 [16:50:56]line НСП 1% : 8.85 [16:50:56]line НДС 12% : 106.25 [16:50:56]line Наличными: 0.00 [16:50:56]line Безнал.: 1000.51 [16:50:56]line Место: АЗС № 101 "Партнер Нефть" [16:50:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:50:56]line СНО: Общий режим [16:50:56]line Чек 129 30.10.2024 16:51 [16:50:56]line Смена: 556 ФФД: 1.0 [16:50:56]line ЗНМ: 0300000081 [16:50:56]line РНМ: 0000000000091631 [16:50:56]line Версия ККМ: 001 [16:50:56]line Платежная система: Mbank [16:50:56]line ФМ: 0000000000874669 [16:50:56]line ФД: 139445 [16:50:56]line ФПД: 151611294423277 [16:50:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165100&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139445&fm=151611294423277&tin=02508201610067®Number=0000000000091631&sum=100051 [16:50:56]OFD Sender: Processing packet 139445 [packets to send 34, broken 33] [16:50:56]ProducePacketName [16:50:56]name=ofd_packets/00139445 [16:50:56]OFD Sender: To server: pG, [16:50:56]CommunicateWithHost lk.salyk.kg:30040 [16:50:56]ConnectInit lk.salyk.kg [16:50:56]written 0, free lines is 4095 [16:50:56]Connected sock=8 [16:50:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 84 F0 08 01 3D 21 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 81 00 00 00 F4 03 04 00 F4 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 20 02 00 35 04 06 00 89 E3 C1 59 18 ED BF 2F 1A DF 05 4D C5 2A [16:50:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CB EE 47 00 01 66 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B5 20 02 00 F4 03 04 00 A4 0F 22 67 B6 04 01 00 00 06 D2 CD 5F 28 C2 00 83 [16:50:56]CommunicateWithHost err = 0 [16:50:56]CheckOFDResponse [16:50:56]1017 (14) - 77093643461234 [16:50:56]1041 (16) - 0000000000874669 [16:50:56]1040 (4) - 139445 [16:50:56]1012 (4) - 30.10.2024 10:51 [16:50:56]1206 (1) - 0 [16:50:56]OFD Sender: Remove packet 139445 [16:50:56]ProducePacketName [16:50:56]name=ofd_packets/00139445 [16:50:56]NVStorageDeleteData [16:50:57]Write to MH i2c: 01 00 00 9D 4C E9 [16:50:57]Write i2c OK [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: 01 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: 01 07 00 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: 01 07 00 9D 4C 00 00 00 00 00 08 0D 05 [16:50:57]RasterBufferAndPrint [16:50:57]line [16:50:57]line [16:50:57]line [16:50:57]line [16:50:57]line [16:50:57]written 0, free lines is 3345 [16:50:57]MH_Cut [16:50:57]Write to MH i2c: D1 01 00 A4 4C 01 C2 [16:50:57]Write i2c OK [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: D1 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: D1 01 00 [16:50:57]MH_I2C_Read... [16:50:57]Read from MH i2c: D1 01 00 A4 4C 00 C1 [16:50:57]Write to MH i2c: 01 00 00 A5 4C F1 [16:50:57]Write i2c OK [16:50:57]MH_I2C_Read... [16:50:57]OFD Sender: No OFD packet to send [16:50:57]*** Cut start [16:50:57]*** Partial cut [16:50:57]*** CUTSNS_PIN = 1 [16:50:57]*** CUTSNS_PIN = 0 [16:50:57]*** Brake cut motor [16:50:58]Read from MH i2c: 01 [16:50:58]MH_I2C_Read... [16:50:58]*** Stop cut motor [16:50:58]*** Cut end [16:50:58]Read from MH i2c: 01 07 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: 01 07 00 A5 4C 00 00 00 00 00 FF 0F 06 [16:50:58]process_action close_receipt done [16:50:58]requested_data is exist [16:50:58]produce_requested_data [16:50:58]requested_item fm.sn is exist - process it [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 11 00 00 [16:50:58]Write to MH i2c: E2 08 00 A6 4C 80 11 00 00 00 00 00 00 6C [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 17 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 17 00 A6 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C7 [16:50:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:50:58]wFMCommunicate OK [16:50:58]requested_item fd.num is exist - process it [16:50:58]SAM_PROTO_GetFieldsCounters [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 13 00 00 [16:50:58]Write to MH i2c: E2 08 00 A7 4C 80 13 00 00 00 00 00 00 6F [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 62 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 62 00 A7 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B5 20 02 00 0E 04 04 00 2C 02 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 1B [16:50:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B5 20 02 00 0E 04 04 00 2C 02 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 [16:50:58]wFMCommunicate OK [16:50:58]SAM_PROTO_GetFieldsCounters done [16:50:58]requested_item shift.num is exist - process it [16:50:58]requested_item shift.opened is exist - process it [16:50:58]req_shift_opened [16:50:58]FM_GetShiftState [16:50:58]SAM_PROTO_GetShiftState [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 13 01 00 [16:50:58]Write to MH i2c: E2 08 00 A8 4C 80 13 01 00 00 00 00 00 71 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:58]Read from MH i2c: E2 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0E 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: E2 0E 00 A8 4C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 01 [16:50:58]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:50:58]wFMCommunicate OK [16:50:58]SAM_PROTO_GetShiftState done [16:50:58]FM_GetShiftState done [16:50:58]req_shift_opened done [16:50:58]requested_item shift.open_date is exist - process it [16:50:58]req_shift_open_date [16:50:58]req_shift_open_date done [16:50:58]produce_requested_data done [16:50:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139445,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:50:58]process_action_free close_receipt [16:50:58]json_value_free [16:50:58]json_value_free done [16:50:58]process_json_proto returns [16:50:58]Send response to host [16:50:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139445,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:50:58]free response buf [16:50:58]execute_script done [16:50:58]execute_script returns [16:50:58]free content buf [16:50:58]Sock 10.Close socket [16:50:58]Sock 10.Thread stoped [16:50:58]accept exits with 9 [16:50:58]New connection [16:50:58]New thread 3067141476 created [16:50:58]Thread 3067284836 joined [16:50:58]Waiting for new connection... [16:50:58] Sock 9.Parse request [16:50:58]Sock 9.Check first char [16:50:58]Sock 9.First char is OK [16:50:58]request: POST /json_proto HTTP/1.0 [16:50:58]Method: POST [16:50:58]URL: /json_proto [16:50:58]Method is POST - this is cgi request [16:50:58]url: /json_proto [16:50:58]query_string will be loaded in cgi processing [16:50:58]execute_cgi json_proto POST (null) [16:50:58]execute_cgi path=json_proto method=POST [16:50:58]POST find Content-Length [16:50:58]Host: 172.17.50.196:8080 [16:50:58]Content-Length: 773 [16:50:58]Content-Type: application/json [16:50:58] [16:50:58]POST finish read [16:50:58]Found Content-Length = 773 [16:50:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194800", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:58]execute_script... [16:50: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)1094645", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 12", "code": "2710194800", "name": "D-ENERGY \u0414\u0442-\u041A-2", "price" : 77.20, "quantity" : 6.480, "sum" : 500.26, "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.26 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:50:58]POST & json_proto [16:50:58]process_json_proto [16:50:58]json parsed OK: [16:50:58]protocol is kg_v1.0 [16:50:58]action value=close_receipt [16:50:58]process_action close_receipt [16:50:58]cmd_close_receipt [16:50:58]MH_GetDate [16:50:58]Write to MH i2c: F0 00 00 A9 4C E4 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 09 00 [16:50:58]MH_I2C_Read... [16:50:58]Read from MH i2c: F0 09 00 A9 4C 00 F9 63 22 67 72 0D 1C 67 D4 [16:50:58]GetLastDocTimeStamp 1730307060 [16:50:58]current date 1730307065 [16:50:58]FM_GetShiftState [16:50:58]SAM_PROTO_GetShiftState [16:50:58]wFMCommunicate request_size=4 [16:50:58]MH_SAM_APDU [16:50:58]CAPDU: 80 13 01 00 [16:50:58]Write to MH i2c: E2 08 00 AA 4C 80 13 01 00 00 00 00 00 73 [16:50:58]Write i2c OK [16:50:58]MH_I2C_Read... [16:50:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:50:59]Read from MH i2c: E2 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 0E 00 [16:50:59]MH_I2C_Read... [16:50:59]Read from MH i2c: E2 0E 00 AA 4C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 03 [16:50:59]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:50:59]wFMCommunicate OK [16:50:59]SAM_PROTO_GetShiftState done [16:50:59]FM_GetShiftState done [16:50:59]opened in 1730246278 [16:50:59]opened+sec_in_day 1730332678 [16:50:59]quantity*price = 50025 [16:50:59]sum+1 = 50027 [16:50:59]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.26 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 0.00 Безнал.: 500.26 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 130 30.10.2024 16:51 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139446 ФПД: 109052500596655 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165105&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139446&fm=109052500596655&tin=02508201610067®Number=0000000000091631&sum=50026 [16:51:00]StoreToDocumentArchive [16:51:00]shift 556 fd 139446 [16:51:00]save to /storage/0556/doc_00139446 [16:51:00]save last doc name /storage/0556/doc_00139446 to /storage/kkm_last_doc_name [16:51:00]save OK [16:51:00]Clear old archive folders... [16:51:00]ProcessDocumentItem done err = 0, tmpTLVsize=257 [16:51:00]tlvbuf is 0120E370 [16:51:00]SAM_PROTO_ClearQueue [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 09 00 00 [16:51:00]Write to MH i2c: E2 08 00 B7 4C 80 09 00 00 00 00 00 00 75 [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 B7 4C 00 90 00 77 [16:51:00]RAPDU: 90 00 [16:51:00]wFMCommunicate OK [16:51:00]SAM_PROTO_ClearQueue done [16:51:00]KKMCreateOFDPacket [16:51:00]OFDProtocolAddRootSTLVToBuf [16:51:00]FM_MakeSignedData [16:51:00]FM_MakeSignedData [16:51:00]SAM_PROTO_SignData [16:51:00]wFMCommunicate request_size=4 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 0D 01 02 [16:51:00]Write to MH i2c: E2 08 00 B8 4C 80 0D 01 02 00 00 00 00 7D [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 B8 4C 00 90 00 78 [16:51:00]RAPDU: 90 00 [16:51:00]wFMCommunicate OK [16:51:00]wFMCommunicate request_size=255 [16:51:00]MH_SAM_APDU [16:51: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 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F9 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 20 02 [16:51:00]Write to MH i2c: E2 02 01 B9 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 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F9 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 20 02 00 00 2B [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:00]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:00]Read from MH i2c: E2 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 [16:51:00]MH_I2C_Read... [16:51:00]Read from MH i2c: E2 03 00 B9 4C 00 90 00 79 [16:51:00]RAPDU: 90 00 [16:51:00]wFMCommunicate OK [16:51:00]wFMCommunicate request_size=16 [16:51:00]MH_SAM_APDU [16:51:00]CAPDU: 80 0D 02 02 0B 00 35 04 06 00 63 2E C3 8F 57 AF [16:51:00]Write to MH i2c: E2 13 00 BA 4C 80 0D 02 02 0B 00 00 35 04 06 00 63 2E C3 8F 57 AF 00 00 BE [16:51:00]Write i2c OK [16:51:00]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 03 00 BA 4C 00 90 00 7A [16:51:01]RAPDU: 90 00 [16:51:01]wFMCommunicate OK [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 0D 03 02 [16:51:01]Write to MH i2c: E2 08 00 BB 4C 80 0D 03 02 00 00 00 00 82 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0B 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 0B 00 BB 4C 00 CB 66 D7 E5 D7 34 11 9C 90 00 28 [16:51:01]RAPDU: CB 66 D7 E5 D7 34 11 9C 90 00 [16:51:01]wFMCommunicate OK [16:51:01]SAM_PROTO_SignData done [16:51:01]FM_MakeSignedData done [16:51:01]CreateOFDProtocolMessage [16:51:01]wFMCommunicate request_size=4 [16:51:01]MH_SAM_APDU [16:51:01]CAPDU: 80 11 00 00 [16:51:01]Write to MH i2c: E2 08 00 BC 4C 80 11 00 00 00 00 00 00 82 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:01]Read from MH i2c: E2 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 17 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: E2 17 00 BC 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DD [16:51:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:51:01]wFMCommunicate OK [16:51:01]CreateOFDProtocolMessage done [16:51:01]OFDSenderStorePacket 139446 [16:51:01]StoreOFDPacket docnum=139446 [16:51:01]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 75 58 0D 01 74 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 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F9 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 20 02 00 35 04 06 00 63 2E C3 8F 57 AF CB 66 D7 E5 D7 34 11 9C [16:51:01]CheckFolder [16:51:01]dirname=/storage/ofd_packets [16:51:01]CheckFolder done [16:51:01]ProducePacketName [16:51:01]name=ofd_packets/00139446 [16:51:01]NVStorageSaveData ofd_packets/00139446 [16:51:01]File name is /storage/ofd_packets/00139446 [16:51:01]Write 307 bytes [16:51:01]NVStorageSaveData done [16:51:01]OFDSenderStorePacket done [16:51:01]KKMCreateOFDPacket done [16:51:01]NVStorageSaveData kkm_last_timestamp [16:51:01]File name is /storage/kkm_last_timestamp [16:51:01]Write 4 bytes [16:51:01]NVStorageSaveData done [16:51:01]ExternCall_PrintAddStr [16:51:01]wPrintStart [16:51:01]Write to MH i2c: 01 00 00 BD 4C 09 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 07 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 07 00 BD 4C 00 00 00 00 00 FF 0F 1E [16:51:01]RasterBufferAndPrint [16:51:01]line Счет N : (1)1094645 [16:51:01]line ИНН: 02508201610067 [16:51:01]line Контрольно-Кассовый Чек [16:51:01]line ПРОДАЖА [16:51:01]line ТРК (МРК, ГНК) : 12 [16:51:01]line Товар: 2710194800 [16:51:01]line D-ENERGY Дт-К-2 [16:51:01]line 6.480 * 77.20 [16:51:01]line = 500.26 [16:51:01]line НДС 12% НСП 1% [16:51:01]line > о реализуемом товаре [16:51:01]line ИТОГО: 500.26 [16:51:01]line НСП 1% : 4.43 [16:51:01]line НДС 12% : 53.12 [16:51:01]line Наличными: 0.00 [16:51:01]line Безнал.: 500.26 [16:51:01]line Место: АЗС № 101 "Партнер Нефть" [16:51:01]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:51:01]line СНО: Общий режим [16:51:01]line Чек 130 30.10.2024 16:51 [16:51:01]line Смена: 556 ФФД: 1.0 [16:51:01]line ЗНМ: 0300000081 [16:51:01]line РНМ: 0000000000091631 [16:51:01]line Версия ККМ: 001 [16:51:01]line Платежная система: Mbank [16:51:01]line ФМ: 0000000000874669 [16:51:01]line ФД: 139446 [16:51:01]line ФПД: 109052500596655 [16:51:01]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165105&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139446&fm=109052500596655&tin=02508201610067®Number=0000000000091631&sum=50026 [16:51:01]written 0, free lines is 4095 [16:51:01]OFD Sender: Processing packet 139446 [packets to send 34, broken 33] [16:51:01]ProducePacketName [16:51:01]name=ofd_packets/00139446 [16:51:01]OFD Sender: To server: pG, [16:51:01]CommunicateWithHost lk.salyk.kg:30040 [16:51:01]ConnectInit lk.salyk.kg [16:51:01]Connected sock=10 [16:51:01]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 15 01 00 00 75 58 0D 01 74 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 38 30 30 06 04 12 00 44 2D 45 4E 45 52 47 59 20 D0 94 D1 82 2D D0 9A 2D 32 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 6A C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 00 00 00 00 00 00 39 04 06 00 6A C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 82 00 00 00 F4 03 04 00 F9 63 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 20 02 00 35 04 06 00 63 2E C3 8F 57 AF CB 66 D7 E5 D7 34 11 9C [16:51:01]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 43 BE 47 00 E7 C7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B6 20 02 00 F4 03 04 00 A9 0F 22 67 B6 04 01 00 00 D3 78 1B 51 14 A0 CD 15 [16:51:01]CommunicateWithHost err = 0 [16:51:01]CheckOFDResponse [16:51:01]1017 (14) - 77093643461234 [16:51:01]1041 (16) - 0000000000874669 [16:51:01]1040 (4) - 139446 [16:51:01]1012 (4) - 30.10.2024 10:51 [16:51:01]1206 (1) - 0 [16:51:01]OFD Sender: Remove packet 139446 [16:51:01]ProducePacketName [16:51:01]name=ofd_packets/00139446 [16:51:01]NVStorageDeleteData [16:51:01]Write to MH i2c: 01 00 00 E6 4C 32 [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 07 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: 01 07 00 E6 4C 00 00 00 00 00 37 0D 7D [16:51:01]RasterBufferAndPrint [16:51:01]line [16:51:01]line [16:51:01]line [16:51:01]line [16:51:01]line [16:51:01]written 0, free lines is 3398 [16:51:01]MH_Cut [16:51:01]Write to MH i2c: D1 01 00 ED 4C 01 0B [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: D1 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: D1 01 00 [16:51:01]MH_I2C_Read... [16:51:01]Read from MH i2c: D1 01 00 ED 4C 00 0A [16:51:01]Write to MH i2c: 01 00 00 EE 4C 3A [16:51:01]Write i2c OK [16:51:01]MH_I2C_Read... [16:51:02]OFD Sender: No OFD packet to send [16:51:02]*** Cut start [16:51:02]*** Partial cut [16:51:02]*** CUTSNS_PIN = 1 [16:51:02]*** CUTSNS_PIN = 0 [16:51:02]*** Brake cut motor [16:51:02]Read from MH i2c: 01 [16:51:02]MH_I2C_Read... [16:51:02]*** Stop cut motor [16:51:02]*** Cut end [16:51:02]Read from MH i2c: 01 07 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: 01 07 00 EE 4C 00 00 00 00 00 FF 0F 4F [16:51:02]process_action close_receipt done [16:51:02]requested_data is exist [16:51:02]produce_requested_data [16:51:02]requested_item fm.sn is exist - process it [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 11 00 00 [16:51:02]Write to MH i2c: E2 08 00 EF 4C 80 11 00 00 00 00 00 00 B5 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:51:02]Read from MH i2c: E2 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 17 00 [16:51:02]MH_I2C_Read... [16:51:02]Read from MH i2c: E2 17 00 EF 4C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 10 [16:51:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:51:02]wFMCommunicate OK [16:51:02]requested_item fd.num is exist - process it [16:51:02]SAM_PROTO_GetFieldsCounters [16:51:02]wFMCommunicate request_size=4 [16:51:02]MH_SAM_APDU [16:51:02]CAPDU: 80 13 00 00 [16:51:02]Write to MH i2c: E2 08 00 F0 4C 80 13 00 00 00 00 00 00 B8 [16:51:02]Write i2c OK [16:51:02]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 62 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 62 00 F0 4C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B6 20 02 00 0E 04 04 00 2C 02 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 68 [16:51:03]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B6 20 02 00 0E 04 04 00 2C 02 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 [16:51:03]wFMCommunicate OK [16:51:03]SAM_PROTO_GetFieldsCounters done [16:51:03]requested_item shift.num is exist - process it [16:51:03]requested_item shift.opened is exist - process it [16:51:03]req_shift_opened [16:51:03]FM_GetShiftState [16:51:03]SAM_PROTO_GetShiftState [16:51:03]wFMCommunicate request_size=4 [16:51:03]MH_SAM_APDU [16:51:03]CAPDU: 80 13 01 00 [16:51:03]Write to MH i2c: E2 08 00 F1 4C 80 13 01 00 00 00 00 00 BA [16:51:03]Write i2c OK [16:51:03]MH_I2C_Read... [16:51:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:51:03]Read from MH i2c: E2 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 0E 00 [16:51:03]MH_I2C_Read... [16:51:03]Read from MH i2c: E2 0E 00 F1 4C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4A [16:51:03]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:51:03]wFMCommunicate OK [16:51:03]SAM_PROTO_GetShiftState done [16:51:03]FM_GetShiftState done [16:51:03]req_shift_opened done [16:51:03]requested_item shift.open_date is exist - process it [16:51:03]req_shift_open_date [16:51:03]req_shift_open_date done [16:51:03]produce_requested_data done [16:51:03]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139446,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:51:03]process_action_free close_receipt [16:51:03]json_value_free [16:51:03]json_value_free done [16:51:03]process_json_proto returns [16:51:03]Send response to host [16:51:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139446,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:51:03]free response buf [16:51:03]execute_script done [16:51:03]execute_script returns [16:51:03]free content buf [16:51:03]Sock 9.Close socket [16:51:03]Sock 9.Thread stoped [16:51:07]OFD Sender: No OFD packet to send [16:51:12]OFD Sender: No OFD packet to send [16:51:17]OFD Sender: No OFD packet to send [16:51:22]OFD Sender: No OFD packet to send [16:51:27]OFD Sender: No OFD packet to send [16:51:32]OFD Sender: No OFD packet to send [16:51:37]OFD Sender: No OFD packet to send [16:51:42]OFD Sender: No OFD packet to send [16:51:47]OFD Sender: No OFD packet to send [16:51:52]OFD Sender: No OFD packet to send [16:51:57]OFD Sender: No OFD packet to send [16:52:02]OFD Sender: No OFD packet to send [16:52:06]accept exits with 8 [16:52:06]New connection [16:52:06]New thread 3067284836 created [16:52:06]Thread 3067141476 joined [16:52:06]Waiting for new connection... [16:52:06] Sock 8.Parse request [16:52:06]Sock 8.Check first char [16:52:06]Sock 8.First char is OK [16:52:06]request: POST /json_proto HTTP/1.0 [16:52:06]Method: POST [16:52:06]URL: /json_proto [16:52:06]Method is POST - this is cgi request [16:52:06]url: /json_proto [16:52:06]query_string will be loaded in cgi processing [16:52:06]execute_cgi json_proto POST (null) [16:52:06]execute_cgi path=json_proto method=POST [16:52:06]POST find Content-Length [16:52:06]Host: 172.17.50.196:8080 [16:52:06]Content-Length: 768 [16:52:06]Content-Type: application/json [16:52:06] [16:52:06]POST finish read [16:52:06]Found Content-Length = 768 [16:52:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [16:52:06]execute_script... [16:52: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)1094647", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 10.470, "sum" : 700.44, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [16:52:06]POST & json_proto [16:52:06]process_json_proto [16:52:06]json parsed OK: [16:52:06]protocol is kg_v1.0 [16:52:06]action value=close_receipt [16:52:06]process_action close_receipt [16:52:06]cmd_close_receipt [16:52:06]MH_GetDate [16:52:06]Write to MH i2c: F0 00 00 F2 4C 2D [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: F0 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: F0 09 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: F0 09 00 F2 4C 00 3C 64 22 67 72 0D 1C 67 61 [16:52:06]GetLastDocTimeStamp 1730307065 [16:52:06]current date 1730307132 [16:52:06]FM_GetShiftState [16:52:06]SAM_PROTO_GetShiftState [16:52:06]wFMCommunicate request_size=4 [16:52:06]MH_SAM_APDU [16:52:06]CAPDU: 80 13 01 00 [16:52:06]Write to MH i2c: E2 08 00 F3 4C 80 13 01 00 00 00 00 00 BC [16:52:06]Write i2c OK [16:52:06]MH_I2C_Read... [16:52:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:06]Read from MH i2c: E2 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0E 00 [16:52:06]MH_I2C_Read... [16:52:06]Read from MH i2c: E2 0E 00 F3 4C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4C [16:52:06]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:52:06]wFMCommunicate OK [16:52:06]SAM_PROTO_GetShiftState done [16:52:06]FM_GetShiftState done [16:52:06]opened in 1730246278 [16:52:06]opened+sec_in_day 1730332678 [16:52:06]quantity*price = 70044 [16:52:06]sum+1 = 70045 [16:52:06]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 700.44 НСП 1% : 6.20 НДС 12% : 74.38 Наличными: 0.00 Безнал.: 700.44 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 131 30.10.2024 16:52 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139447 ФПД: 200204598273740 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165212&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139447&fm=200204598273740&tin=02508201610067®Number=0000000000091631&sum=70044 [16:52:07]StoreToDocumentArchive [16:52:07]shift 556 fd 139447 [16:52:07]save to /storage/0556/doc_00139447 [16:52:07]save last doc name /storage/0556/doc_00139447 to /storage/kkm_last_doc_name [16:52:07]save OK [16:52:07]Clear old archive folders... [16:52:07]ProcessDocumentItem done err = 0, tmpTLVsize=251 [16:52:07]tlvbuf is 0112CEF0 [16:52:07]SAM_PROTO_ClearQueue [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 09 00 00 [16:52:07]Write to MH i2c: E2 08 00 00 4D 80 09 00 00 00 00 00 00 BF [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 00 4D 00 90 00 C1 [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]SAM_PROTO_ClearQueue done [16:52:07]KKMCreateOFDPacket [16:52:07]OFDProtocolAddRootSTLVToBuf [16:52:07]FM_MakeSignedData [16:52:07]FM_MakeSignedData [16:52:07]SAM_PROTO_SignData [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 01 02 [16:52:07]Write to MH i2c: E2 08 00 01 4D 80 0D 01 02 00 00 00 00 C7 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 01 4D 00 90 00 C2 [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=255 [16:52:07]MH_SAM_APDU [16:52: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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 83 00 00 00 F4 03 04 00 3C 64 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 20 02 00 35 04 06 00 B6 [16:52:07]Write to MH i2c: E2 02 01 02 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 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 83 00 00 00 F4 03 04 00 3C 64 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 20 02 00 35 04 06 00 B6 00 00 27 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 02 4D 00 90 00 C3 [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=10 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 02 02 05 15 C3 F6 66 CC [16:52:07]Write to MH i2c: E2 0D 00 03 4D 80 0D 02 02 05 00 15 C3 F6 66 CC 00 00 D4 [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 03 00 03 4D 00 90 00 C4 [16:52:07]RAPDU: 90 00 [16:52:07]wFMCommunicate OK [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 0D 03 02 [16:52:07]Write to MH i2c: E2 08 00 04 4D 80 0D 03 02 00 00 00 00 CC [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:52:07]Read from MH i2c: E2 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 0B 00 [16:52:07]MH_I2C_Read... [16:52:07]Read from MH i2c: E2 0B 00 04 4D 00 5A A7 0A 21 36 C1 E9 50 90 00 29 [16:52:07]RAPDU: 5A A7 0A 21 36 C1 E9 50 90 00 [16:52:07]wFMCommunicate OK [16:52:07]SAM_PROTO_SignData done [16:52:07]FM_MakeSignedData done [16:52:07]CreateOFDProtocolMessage [16:52:07]wFMCommunicate request_size=4 [16:52:07]MH_SAM_APDU [16:52:07]CAPDU: 80 11 00 00 [16:52:07]Write to MH i2c: E2 08 00 05 4D 80 11 00 00 00 00 00 00 CC [16:52:07]Write i2c OK [16:52:07]MH_I2C_Read... [16:52:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:08]Read from MH i2c: E2 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 17 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: E2 17 00 05 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 27 [16:52:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:52:08]wFMCommunicate OK [16:52:08]CreateOFDProtocolMessage done [16:52:08]OFDSenderStorePacket 139447 [16:52:08]StoreOFDPacket docnum=139447 [16:52:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 55 EA 07 01 6F BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 83 00 00 00 F4 03 04 00 3C 64 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 20 02 00 35 04 06 00 B6 15 C3 F6 66 CC 5A A7 0A 21 36 C1 E9 50 [16:52:08]CheckFolder [16:52:08]dirname=/storage/ofd_packets [16:52:08]CheckFolder done [16:52:08]ProducePacketName [16:52:08]name=ofd_packets/00139447 [16:52:08]NVStorageSaveData ofd_packets/00139447 [16:52:08]File name is /storage/ofd_packets/00139447 [16:52:08]Write 301 bytes [16:52:08]NVStorageSaveData done [16:52:08]OFDSenderStorePacket done [16:52:08]KKMCreateOFDPacket done [16:52:08]NVStorageSaveData kkm_last_timestamp [16:52:08]File name is /storage/kkm_last_timestamp [16:52:08]Write 4 bytes [16:52:08]NVStorageSaveData done [16:52:08]ExternCall_PrintAddStr [16:52:08]wPrintStart [16:52:08]Write to MH i2c: 01 00 00 06 4D 53 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 06 4D 00 00 00 00 00 FF 0F 68 [16:52:08]RasterBufferAndPrint [16:52:08]line Счет N : (1)1094647 [16:52:08]line ИНН: 02508201610067 [16:52:08]line Контрольно-Кассовый Чек [16:52:08]line ПРОДАЖА [16:52:08]line ТРК (МРК, ГНК) : 63 [16:52:08]line Товар: 2710124130 [16:52:08]line Аи-92-К-2 [16:52:08]line 10.470 * 66.90 [16:52:08]line = 700.44 [16:52:08]line НДС 12% НСП 1% [16:52:08]line > о реализуемом товаре [16:52:08]line ИТОГО: 700.44 [16:52:08]line НСП 1% : 6.20 [16:52:08]line НДС 12% : 74.38 [16:52:08]line Наличными: 0.00 [16:52:08]line Безнал.: 700.44 [16:52:08]line Место: АЗС № 101 "Партнер Нефть" [16:52:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:52:08]line СНО: Общий режим [16:52:08]line Чек 131 30.10.2024 16:52 [16:52:08]line Смена: 556 ФФД: 1.0 [16:52:08]line ЗНМ: 0300000081 [16:52:08]line РНМ: 0000000000091631 [16:52:08]line Версия ККМ: 001 [16:52:08]line Платежная система: Mbank [16:52:08]line ФМ: 0000000000874669 [16:52:08]line ФД: 139447 [16:52:08]line ФПД: 200204598273740 [16:52:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165212&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139447&fm=200204598273740&tin=02508201610067®Number=0000000000091631&sum=70044 [16:52:08]written 0, free lines is 4095 [16:52:08]OFD Sender: Processing packet 139447 [packets to send 34, broken 33] [16:52:08]ProducePacketName [16:52:08]name=ofd_packets/00139447 [16:52:08]OFD Sender: To server: pG, [16:52:08]CommunicateWithHost lk.salyk.kg:30040 [16:52:08]ConnectInit lk.salyk.kg [16:52:08]Connected sock=10 [16:52:08]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 55 EA 07 01 6F BC 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 E6 28 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 9C 11 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 83 00 00 00 F4 03 04 00 3C 64 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 20 02 00 35 04 06 00 B6 15 C3 F6 66 CC 5A A7 0A 21 36 C1 E9 50 [16:52:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FC 4A 47 00 70 18 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B7 20 02 00 F4 03 04 00 EC 0F 22 67 B6 04 01 00 00 F6 16 67 43 77 AA 41 23 [16:52:08]CommunicateWithHost err = 0 [16:52:08]CheckOFDResponse [16:52:08]1017 (14) - 77093643461234 [16:52:08]1041 (16) - 0000000000874669 [16:52:08]1040 (4) - 139447 [16:52:08]1012 (4) - 30.10.2024 10:52 [16:52:08]1206 (1) - 0 [16:52:08]OFD Sender: Remove packet 139447 [16:52:08]ProducePacketName [16:52:08]name=ofd_packets/00139447 [16:52:08]NVStorageDeleteData [16:52:08]Write to MH i2c: 01 00 00 2F 4D 7C [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: 01 07 00 2F 4D 00 00 00 00 00 18 0D A8 [16:52:08]RasterBufferAndPrint [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]line [16:52:08]written 0, free lines is 3359 [16:52:08]MH_Cut [16:52:08]Write to MH i2c: D1 01 00 36 4D 01 55 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 01 00 [16:52:08]MH_I2C_Read... [16:52:08]Read from MH i2c: D1 01 00 36 4D 00 54 [16:52:08]Write to MH i2c: 01 00 00 37 4D 84 [16:52:08]Write i2c OK [16:52:08]MH_I2C_Read... [16:52:08]OFD Sender: No OFD packet to send [16:52:09]*** Cut start [16:52:09]*** Partial cut [16:52:09]*** CUTSNS_PIN = 1 [16:52:09]*** CUTSNS_PIN = 0 [16:52:09]*** Brake cut motor [16:52:09]Read from MH i2c: 01 [16:52:09]MH_I2C_Read... [16:52:09]*** Stop cut motor [16:52:09]*** Cut end [16:52:09]Read from MH i2c: 01 07 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: 01 07 00 37 4D 00 00 00 00 00 FF 0F 99 [16:52:09]process_action close_receipt done [16:52:09]requested_data is exist [16:52:09]produce_requested_data [16:52:09]requested_item fm.sn is exist - process it [16:52:09]wFMCommunicate request_size=4 [16:52:09]MH_SAM_APDU [16:52:09]CAPDU: 80 11 00 00 [16:52:09]Write to MH i2c: E2 08 00 38 4D 80 11 00 00 00 00 00 00 FF [16:52:09]Write i2c OK [16:52:09]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 17 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 17 00 38 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5A [16:52:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:52:09]wFMCommunicate OK [16:52:09]requested_item fd.num is exist - process it [16:52:09]SAM_PROTO_GetFieldsCounters [16:52:09]wFMCommunicate request_size=4 [16:52:09]MH_SAM_APDU [16:52:09]CAPDU: 80 13 00 00 [16:52:09]Write to MH i2c: E2 08 00 39 4D 80 13 00 00 00 00 00 00 02 [16:52:09]Write i2c OK [16:52:09]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 62 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 62 00 39 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B7 20 02 00 0E 04 04 00 2C 02 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 B6 [16:52:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B7 20 02 00 0E 04 04 00 2C 02 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 [16:52:09]wFMCommunicate OK [16:52:09]SAM_PROTO_GetFieldsCounters done [16:52:09]requested_item shift.num is exist - process it [16:52:09]requested_item shift.opened is exist - process it [16:52:09]req_shift_opened [16:52:09]FM_GetShiftState [16:52:09]SAM_PROTO_GetShiftState [16:52:09]wFMCommunicate request_size=4 [16:52:09]MH_SAM_APDU [16:52:09]CAPDU: 80 13 01 00 [16:52:09]Write to MH i2c: E2 08 00 3A 4D 80 13 01 00 00 00 00 00 04 [16:52:09]Write i2c OK [16:52:09]MH_I2C_Read... [16:52:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:52:09]Read from MH i2c: E2 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 0E 00 [16:52:09]MH_I2C_Read... [16:52:09]Read from MH i2c: E2 0E 00 3A 4D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 94 [16:52:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:52:09]wFMCommunicate OK [16:52:09]SAM_PROTO_GetShiftState done [16:52:09]FM_GetShiftState done [16:52:09]req_shift_opened done [16:52:09]requested_item shift.open_date is exist - process it [16:52:09]req_shift_open_date [16:52:09]req_shift_open_date done [16:52:09]produce_requested_data done [16:52:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139447,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:52:09]process_action_free close_receipt [16:52:09]json_value_free [16:52:09]json_value_free done [16:52:09]process_json_proto returns [16:52:09]Send response to host [16:52:10]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139447,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:52:10]free response buf [16:52:10]execute_script done [16:52:10]execute_script returns [16:52:10]free content buf [16:52:10]Sock 8.Close socket [16:52:10]Sock 8.Thread stoped [16:52:13]OFD Sender: No OFD packet to send [16:52:18]OFD Sender: No OFD packet to send [16:52:23]OFD Sender: No OFD packet to send [16:52:28]OFD Sender: No OFD packet to send [16:52:33]OFD Sender: No OFD packet to send [16:52:38]OFD Sender: No OFD packet to send [16:52:43]OFD Sender: No OFD packet to send [16:52:48]OFD Sender: No OFD packet to send [16:52:53]OFD Sender: No OFD packet to send [16:52:58]OFD Sender: No OFD packet to send [16:53:03]OFD Sender: No OFD packet to send [16:53:08]OFD Sender: No OFD packet to send [16:53:13]OFD Sender: No OFD packet to send [16:53:18]OFD Sender: No OFD packet to send [16:53:23]OFD Sender: No OFD packet to send [16:53:28]OFD Sender: No OFD packet to send [16:53:33]OFD Sender: No OFD packet to send [16:53:38]OFD Sender: No OFD packet to send [16:53:43]OFD Sender: No OFD packet to send [16:53:48]OFD Sender: No OFD packet to send [16:53:53]OFD Sender: No OFD packet to send [16:53:58]OFD Sender: No OFD packet to send [16:54:03]OFD Sender: No OFD packet to send [16:54:08]OFD Sender: No OFD packet to send [16:54:13]OFD Sender: No OFD packet to send [16:54:18]OFD Sender: No OFD packet to send [16:54:23]OFD Sender: No OFD packet to send [16:54:28]OFD Sender: No OFD packet to send [16:54:33]OFD Sender: No OFD packet to send [16:54:38]OFD Sender: No OFD packet to send [16:54:43]OFD Sender: No OFD packet to send [16:54:48]OFD Sender: No OFD packet to send [16:54:53]OFD Sender: No OFD packet to send [16:54:58]OFD Sender: No OFD packet to send [16:55:03]OFD Sender: No OFD packet to send [16:55:08]OFD Sender: No OFD packet to send [16:55:14]OFD Sender: No OFD packet to send [16:55:19]OFD Sender: No OFD packet to send [16:55:24]OFD Sender: No OFD packet to send [16:55:29]OFD Sender: No OFD packet to send [16:55:34]OFD Sender: No OFD packet to send [16:55:39]OFD Sender: No OFD packet to send [16:55:44]OFD Sender: No OFD packet to send [16:55:44]accept exits with 9 [16:55:44]New connection [16:55:44]New thread 3067141476 created [16:55:44]Thread 3067284836 joined [16:55:44]Waiting for new connection... [16:55:44] Sock 9.Parse request [16:55:44]Sock 9.Check first char [16:55:44]Sock 9.First char is OK [16:55:44]request: POST /json_proto HTTP/1.0 [16:55:44]Method: POST [16:55:44]URL: /json_proto [16:55:44]Method is POST - this is cgi request [16:55:44]url: /json_proto [16:55:44]query_string will be loaded in cgi processing [16:55:44]execute_cgi json_proto POST (null) [16:55:44]execute_cgi path=json_proto method=POST [16:55:44]POST find Content-Length [16:55:44]Host: 172.17.50.196:8080 [16:55:44]Content-Length: 613 [16:55:44]Content-Type: application/json [16:55:44] [16:55:44]POST finish read [16:55:44]Found Content-Length = 613 [16:55:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335342", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:44]execute_script... [16:55: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 : (3)335342", "tax_sys" : 0, "items" : [ { "code": "47803152", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Mevius Revo", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [16:55:44]POST & json_proto [16:55:44]process_json_proto [16:55:44]json parsed OK: [16:55:44]protocol is kg_v1.0 [16:55:44]action value=close_receipt [16:55:44]process_action close_receipt [16:55:44]cmd_close_receipt [16:55:44]MH_GetDate [16:55:44]Write to MH i2c: F0 00 00 3B 4D 77 [16:55:44]Write i2c OK [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: F0 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: F0 09 00 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: F0 09 00 3B 4D 00 16 65 22 67 72 0D 1C 67 86 [16:55:44]GetLastDocTimeStamp 1730307132 [16:55:44]current date 1730307350 [16:55:44]FM_GetShiftState [16:55:44]SAM_PROTO_GetShiftState [16:55:44]wFMCommunicate request_size=4 [16:55:44]MH_SAM_APDU [16:55:44]CAPDU: 80 13 01 00 [16:55:44]Write to MH i2c: E2 08 00 3C 4D 80 13 01 00 00 00 00 00 06 [16:55:44]Write i2c OK [16:55:44]MH_I2C_Read... [16:55:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:44]Read from MH i2c: E2 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 0E 00 [16:55:44]MH_I2C_Read... [16:55:44]Read from MH i2c: E2 0E 00 3C 4D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 96 [16:55:44]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:55:44]wFMCommunicate OK [16:55:44]SAM_PROTO_GetShiftState done [16:55:44]FM_GetShiftState done [16:55:44]opened in 1730246278 [16:55:44]opened+sec_in_day 1730332678 [16:55:44]quantity*price = 15900 [16:55:44]sum+1 = 15901 [16:55:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 132 30.10.2024 16:55 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139448 ФПД: 179413546459721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165550&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139448&fm=179413546459721&tin=02508201610067®Number=0000000000091631&sum=15900 0 [16:55:45]StoreToDocumentArchive [16:55:45]shift 556 fd 139448 [16:55:45]save to /storage/0556/doc_00139448 [16:55:45]save last doc name /storage/0556/doc_00139448 to /storage/kkm_last_doc_name [16:55:45]save OK [16:55:45]Clear old archive folders... [16:55:45]ProcessDocumentItem done err = 0, tmpTLVsize=265 [16:55:45]tlvbuf is 01167A80 [16:55:45]SAM_PROTO_ClearQueue [16:55:45]wFMCommunicate request_size=4 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 09 00 00 [16:55:45]Write to MH i2c: E2 08 00 49 4D 80 09 00 00 00 00 00 00 08 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 49 4D 00 90 00 0A [16:55:45]RAPDU: 90 00 [16:55:45]wFMCommunicate OK [16:55:45]SAM_PROTO_ClearQueue done [16:55:45]KKMCreateOFDPacket [16:55:45]OFDProtocolAddRootSTLVToBuf [16:55:45]FM_MakeSignedData [16:55:45]FM_MakeSignedData [16:55:45]SAM_PROTO_SignData [16:55:45]wFMCommunicate request_size=4 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 0D 01 02 [16:55:45]Write to MH i2c: E2 08 00 4A 4D 80 0D 01 02 00 00 00 00 10 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 4A 4D 00 90 00 0B [16:55:45]RAPDU: 90 00 [16:55:45]wFMCommunicate OK [16:55:45]wFMCommunicate request_size=255 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 0D 02 02 FA 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 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 00 00 00 F4 03 04 00 16 65 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 [16:55:45]Write to MH i2c: E2 02 01 4B 4D 80 0D 02 02 FA 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 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 00 00 00 F4 03 04 00 16 65 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 00 00 F2 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 4B 4D 00 90 00 0C [16:55:45]RAPDU: 90 00 [16:55:45]wFMCommunicate OK [16:55:45]wFMCommunicate request_size=24 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 0D 02 02 13 39 10 04 04 00 B8 20 02 00 35 04 06 00 A3 2C F8 B4 62 49 [16:55:45]Write to MH i2c: E2 1B 00 4C 4D 80 0D 02 02 13 00 39 10 04 04 00 B8 20 02 00 35 04 06 00 A3 2C F8 B4 62 49 00 00 C9 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 03 00 4C 4D 00 90 00 0D [16:55:45]RAPDU: 90 00 [16:55:45]wFMCommunicate OK [16:55:45]wFMCommunicate request_size=4 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 0D 03 02 [16:55:45]Write to MH i2c: E2 08 00 4D 4D 80 0D 03 02 00 00 00 00 15 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 0B 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 0B 00 4D 4D 00 FE 87 8C 2F 21 E8 D3 F4 90 00 26 [16:55:45]RAPDU: FE 87 8C 2F 21 E8 D3 F4 90 00 [16:55:45]wFMCommunicate OK [16:55:45]SAM_PROTO_SignData done [16:55:45]FM_MakeSignedData done [16:55:45]CreateOFDProtocolMessage [16:55:45]wFMCommunicate request_size=4 [16:55:45]MH_SAM_APDU [16:55:45]CAPDU: 80 11 00 00 [16:55:45]Write to MH i2c: E2 08 00 4E 4D 80 11 00 00 00 00 00 00 15 [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:45]Read from MH i2c: E2 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 17 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: E2 17 00 4E 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 70 [16:55:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:55:45]wFMCommunicate OK [16:55:45]CreateOFDProtocolMessage done [16:55:45]OFDSenderStorePacket 139448 [16:55:45]StoreOFDPacket docnum=139448 [16:55:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 F7 96 15 01 53 CD 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 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 00 00 00 F4 03 04 00 16 65 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B8 20 02 00 35 04 06 00 A3 2C F8 B4 62 49 FE 87 8C 2F 21 E8 D3 F4 [16:55:45]CheckFolder [16:55:45]dirname=/storage/ofd_packets [16:55:45]CheckFolder done [16:55:45]ProducePacketName [16:55:45]name=ofd_packets/00139448 [16:55:45]NVStorageSaveData ofd_packets/00139448 [16:55:45]File name is /storage/ofd_packets/00139448 [16:55:45]Write 315 bytes [16:55:45]NVStorageSaveData done [16:55:45]OFDSenderStorePacket done [16:55:45]KKMCreateOFDPacket done [16:55:45]NVStorageSaveData kkm_last_timestamp [16:55:45]File name is /storage/kkm_last_timestamp [16:55:45]Write 4 bytes [16:55:45]NVStorageSaveData done [16:55:45]ExternCall_PrintAddStr [16:55:45]wPrintStart [16:55:45]Write to MH i2c: 01 00 00 4F 4D 9C [16:55:45]Write i2c OK [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: 01 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: 01 07 00 [16:55:45]MH_I2C_Read... [16:55:45]Read from MH i2c: 01 07 00 4F 4D 00 00 00 00 00 FF 0F B1 [16:55:45]RasterBufferAndPrint [16:55:45]line Счет N : (3)335342 [16:55:45]line ИНН: 02508201610067 [16:55:45]line Контрольно-Кассовый Чек [16:55:45]line ПРОДАЖА [16:55:45]line Товар: 47803152 [16:55:45]line Сигареты Mevius Revo [16:55:45]line 1.000 * 159.00 [16:55:45]line = 159.00 [16:55:45]line НДС 12% НСП 1% [16:55:45]line > о реализуемом товаре [16:55:45]line ИТОГО: 159.00 [16:55:45]line НСП 1% : 1.41 [16:55:45]line НДС 12% : 16.88 [16:55:45]line Наличными: 159.00 [16:55:45]line Безнал.: 0.00 [16:55:45]line Место: АЗС № 101 "Партнер Нефть" [16:55:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [16:55:45]line СНО: Общий режим [16:55:45]line Чек 132 30.10.2024 16:55 [16:55:45]line Смена: 556 ФФД: 1.0 [16:55:45]line ЗНМ: 0300000081 [16:55:45]line РНМ: 0000000000091631 [16:55:45]line Версия ККМ: 001 [16:55:45]line ФМ: 0000000000874669 [16:55:45]line ФД: 139448 [16:55:45]line ФПД: 179413546459721 [16:55:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T165550&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139448&fm=179413546459721&tin=02508201610067®Number=0000000000091631&sum=15900 [16:55:46]OFD Sender: Processing packet 139448 [packets to send 34, broken 33] [16:55:46]ProducePacketName [16:55:46]name=ofd_packets/00139448 [16:55:46]OFD Sender: To server: pG, [16:55:46]CommunicateWithHost lk.salyk.kg:30040 [16:55:46]ConnectInit lk.salyk.kg [16:55:46]line 0 [16:55:46]written 0, free lines is 4095 [16:55:46]Connected sock=8 [16:55:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1D 01 00 00 F7 96 15 01 53 CD 5A 03 01 00 03 00 09 01 1E 04 01 00 01 23 04 5B 00 8A 04 08 00 34 37 38 30 33 31 35 32 06 04 1C 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 4D 65 76 69 75 73 20 52 65 76 6F FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 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 00 00 00 F4 03 04 00 16 65 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B8 20 02 00 35 04 06 00 A3 2C F8 B4 62 49 FE 87 8C 2F 21 E8 D3 F4 [16:55:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9C B9 47 00 E5 5E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B8 20 02 00 F4 03 04 00 C6 10 22 67 B6 04 01 00 00 02 FD EB 13 09 6C D7 D8 [16:55:46]CommunicateWithHost err = 0 [16:55:46]CheckOFDResponse [16:55:46]1017 (14) - 77093643461234 [16:55:46]1041 (16) - 0000000000874669 [16:55:46]1040 (4) - 139448 [16:55:46]1012 (4) - 30.10.2024 10:56 [16:55:46]1206 (1) - 0 [16:55:46]OFD Sender: Remove packet 139448 [16:55:46]ProducePacketName [16:55:46]name=ofd_packets/00139448 [16:55:46]NVStorageDeleteData [16:55:46]Write to MH i2c: 01 00 00 77 4D C4 [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 07 00 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: 01 07 00 77 4D 00 00 00 00 00 19 0D F1 [16:55:46]RasterBufferAndPrint [16:55:46]line [16:55:46]line [16:55:46]line [16:55:46]line [16:55:46]line [16:55:46]written 0, free lines is 3359 [16:55:46]MH_Cut [16:55:46]Write to MH i2c: D1 01 00 7E 4D 01 9D [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: D1 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: D1 01 00 [16:55:46]MH_I2C_Read... [16:55:46]Read from MH i2c: D1 01 00 7E 4D 00 9C [16:55:46]Write to MH i2c: 01 00 00 7F 4D CC [16:55:46]Write i2c OK [16:55:46]MH_I2C_Read... [16:55:46]OFD Sender: No OFD packet to send [16:55:47]*** Cut start [16:55:47]*** Partial cut [16:55:47]*** CUTSNS_PIN = 1 [16:55:47]*** CUTSNS_PIN = 0 [16:55:47]*** Brake cut motor [16:55:47]Read from MH i2c: 01 [16:55:47]MH_I2C_Read... [16:55:47]*** Stop cut motor [16:55:47]*** Cut end [16:55:47]Read from MH i2c: 01 07 00 [16:55:47]MH_I2C_Read... [16:55:47]Read from MH i2c: 01 07 00 7F 4D 00 00 00 00 00 FF 0F E1 [16:55:47]process_action close_receipt done [16:55:47]requested_data is exist [16:55:47]produce_requested_data [16:55:47]requested_item fm.sn is exist - process it [16:55:47]wFMCommunicate request_size=4 [16:55:47]MH_SAM_APDU [16:55:47]CAPDU: 80 11 00 00 [16:55:47]Write to MH i2c: E2 08 00 80 4D 80 11 00 00 00 00 00 00 47 [16:55:47]Write i2c OK [16:55:47]MH_I2C_Read... [16:55:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [16:55:47]Read from MH i2c: E2 [16:55:47]MH_I2C_Read... [16:55:47]Read from MH i2c: E2 17 00 [16:55:47]MH_I2C_Read... [16:55:47]Read from MH i2c: E2 17 00 80 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A2 [16:55:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [16:55:47]wFMCommunicate OK [16:55:47]requested_item fd.num is exist - process it [16:55:47]SAM_PROTO_GetFieldsCounters [16:55:47]wFMCommunicate request_size=4 [16:55:47]MH_SAM_APDU [16:55:47]CAPDU: 80 13 00 00 [16:55:47]Write to MH i2c: E2 08 00 81 4D 80 13 00 00 00 00 00 00 4A [16:55:47]Write i2c OK [16:55:47]MH_I2C_Read... [16:55:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [16:55:48]Read from MH i2c: E2 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 62 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 62 00 81 4D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B8 20 02 00 0E 04 04 00 2C 02 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 02 [16:55:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B8 20 02 00 0E 04 04 00 2C 02 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 [16:55:48]wFMCommunicate OK [16:55:48]SAM_PROTO_GetFieldsCounters done [16:55:48]requested_item shift.num is exist - process it [16:55:48]requested_item shift.opened is exist - process it [16:55:48]req_shift_opened [16:55:48]FM_GetShiftState [16:55:48]SAM_PROTO_GetShiftState [16:55:48]wFMCommunicate request_size=4 [16:55:48]MH_SAM_APDU [16:55:48]CAPDU: 80 13 01 00 [16:55:48]Write to MH i2c: E2 08 00 82 4D 80 13 01 00 00 00 00 00 4C [16:55:48]Write i2c OK [16:55:48]MH_I2C_Read... [16:55:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [16:55:48]Read from MH i2c: E2 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 0E 00 [16:55:48]MH_I2C_Read... [16:55:48]Read from MH i2c: E2 0E 00 82 4D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DC [16:55:48]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [16:55:48]wFMCommunicate OK [16:55:48]SAM_PROTO_GetShiftState done [16:55:48]FM_GetShiftState done [16:55:48]req_shift_opened done [16:55:48]requested_item shift.open_date is exist - process it [16:55:48]req_shift_open_date [16:55:48]req_shift_open_date done [16:55:48]produce_requested_data done [16:55:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139448,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [16:55:48]process_action_free close_receipt [16:55:48]json_value_free [16:55:48]json_value_free done [16:55:48]process_json_proto returns [16:55:48]Send response to host [16:55:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139448,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [16:55:48]free response buf [16:55:48]execute_script done [16:55:48]execute_script returns [16:55:48]free content buf [16:55:48]Sock 9.Close socket [16:55:48]Sock 9.Thread stoped [16:55:51]OFD Sender: No OFD packet to send [16:55:56]OFD Sender: No OFD packet to send [16:56:01]OFD Sender: No OFD packet to send [16:56:06]OFD Sender: No OFD packet to send [16:56:11]OFD Sender: No OFD packet to send [16:56:16]OFD Sender: No OFD packet to send [16:56:21]OFD Sender: No OFD packet to send [16:56:26]OFD Sender: No OFD packet to send [16:56:31]OFD Sender: No OFD packet to send [16:56:36]OFD Sender: No OFD packet to send [16:56:41]OFD Sender: No OFD packet to send [16:56:46]OFD Sender: No OFD packet to send [16:56:51]OFD Sender: No OFD packet to send [16:56:56]OFD Sender: No OFD packet to send [16:57:01]OFD Sender: No OFD packet to send [16:57:06]OFD Sender: No OFD packet to send [16:57:11]OFD Sender: No OFD packet to send [16:57:16]OFD Sender: No OFD packet to send [16:57:21]OFD Sender: No OFD packet to send [16:57:26]OFD Sender: No OFD packet to send [16:57:31]OFD Sender: No OFD packet to send [16:57:36]OFD Sender: No OFD packet to send [16:57:41]OFD Sender: No OFD packet to send [16:57:46]OFD Sender: No OFD packet to send [16:57:51]OFD Sender: No OFD packet to send [16:57:56]OFD Sender: No OFD packet to send [16:58:01]OFD Sender: No OFD packet to send [16:58:07]OFD Sender: No OFD packet to send [16:58:12]OFD Sender: No OFD packet to send [16:58:17]OFD Sender: No OFD packet to send [16:58:22]OFD Sender: No OFD packet to send [16:58:27]OFD Sender: No OFD packet to send [16:58:32]OFD Sender: No OFD packet to send [16:58:37]OFD Sender: No OFD packet to send [16:58:42]OFD Sender: No OFD packet to send [16:58:47]OFD Sender: No OFD packet to send [16:58:52]OFD Sender: No OFD packet to send [16:58:57]OFD Sender: No OFD packet to send [16:59:02]OFD Sender: No OFD packet to send [16:59:07]OFD Sender: No OFD packet to send [16:59:12]OFD Sender: No OFD packet to send [16:59:17]OFD Sender: No OFD packet to send [16:59:22]OFD Sender: No OFD packet to send [16:59:27]OFD Sender: No OFD packet to send [16:59:32]OFD Sender: No OFD packet to send [16:59:37]OFD Sender: No OFD packet to send [16:59:42]OFD Sender: No OFD packet to send [16:59:47]OFD Sender: No OFD packet to send [16:59:52]OFD Sender: No OFD packet to send [16:59:57]OFD Sender: No OFD packet to send [17:00:02]OFD Sender: No OFD packet to send [17:00:07]OFD Sender: No OFD packet to send [17:00:12]OFD Sender: No OFD packet to send [17:00:17]OFD Sender: No OFD packet to send [17:00:22]OFD Sender: No OFD packet to send [17:00:27]OFD Sender: No OFD packet to send [17:00:32]OFD Sender: No OFD packet to send [17:00:37]OFD Sender: No OFD packet to send [17:00:42]OFD Sender: No OFD packet to send [17:00:47]OFD Sender: No OFD packet to send [17:00:52]OFD Sender: No OFD packet to send [17:00:57]OFD Sender: No OFD packet to send [17:01:02]OFD Sender: No OFD packet to send [17:01:07]OFD Sender: No OFD packet to send [17:01:12]OFD Sender: No OFD packet to send [17:01:17]OFD Sender: No OFD packet to send [17:01:22]OFD Sender: No OFD packet to send [17:01:27]OFD Sender: No OFD packet to send [17:01:32]OFD Sender: No OFD packet to send [17:01:37]OFD Sender: No OFD packet to send [17:01:42]OFD Sender: No OFD packet to send [17:01:47]OFD Sender: No OFD packet to send [17:01:52]OFD Sender: No OFD packet to send [17:01:57]OFD Sender: No OFD packet to send [17:02:02]OFD Sender: No OFD packet to send [17:02:07]OFD Sender: No OFD packet to send [17:02:12]OFD Sender: No OFD packet to send [17:02:17]OFD Sender: No OFD packet to send [17:02:22]OFD Sender: No OFD packet to send [17:02:27]OFD Sender: No OFD packet to send [17:02:32]OFD Sender: No OFD packet to send [17:02:37]OFD Sender: No OFD packet to send [17:02:42]OFD Sender: No OFD packet to send [17:02:47]OFD Sender: No OFD packet to send [17:02:52]OFD Sender: No OFD packet to send [17:02:57]OFD Sender: No OFD packet to send [17:03:02]OFD Sender: No OFD packet to send [17:03:07]OFD Sender: No OFD packet to send [17:03:12]OFD Sender: No OFD packet to send [17:03:17]OFD Sender: No OFD packet to send [17:03:22]OFD Sender: No OFD packet to send [17:03:27]OFD Sender: No OFD packet to send [17:03:32]OFD Sender: No OFD packet to send [17:03:37]OFD Sender: No OFD packet to send [17:03:42]OFD Sender: No OFD packet to send [17:03:47]OFD Sender: No OFD packet to send [17:03:52]OFD Sender: No OFD packet to send [17:03:57]OFD Sender: No OFD packet to send [17:04:02]OFD Sender: No OFD packet to send [17:04:07]OFD Sender: No OFD packet to send [17:04:12]OFD Sender: No OFD packet to send [17:04:17]OFD Sender: No OFD packet to send [17:04:22]OFD Sender: No OFD packet to send [17:04:27]OFD Sender: No OFD packet to send [17:04:32]OFD Sender: No OFD packet to send [17:04:37]OFD Sender: No OFD packet to send [17:04:42]OFD Sender: No OFD packet to send [17:04:47]OFD Sender: No OFD packet to send [17:04:52]OFD Sender: No OFD packet to send [17:04:57]OFD Sender: No OFD packet to send [17:05:02]OFD Sender: No OFD packet to send [17:05:07]OFD Sender: No OFD packet to send [17:05:12]OFD Sender: No OFD packet to send [17:05:17]OFD Sender: No OFD packet to send [17:05:22]OFD Sender: No OFD packet to send [17:05:27]OFD Sender: No OFD packet to send [17:05:32]OFD Sender: No OFD packet to send [17:05:37]OFD Sender: No OFD packet to send [17:05:42]OFD Sender: No OFD packet to send [17:05:47]OFD Sender: No OFD packet to send [17:05:52]OFD Sender: No OFD packet to send [17:05:57]OFD Sender: No OFD packet to send [17:06:02]OFD Sender: No OFD packet to send [17:06:07]OFD Sender: No OFD packet to send [17:06:12]OFD Sender: No OFD packet to send [17:06:17]OFD Sender: No OFD packet to send [17:06:22]OFD Sender: No OFD packet to send [17:06:27]OFD Sender: No OFD packet to send [17:06:32]OFD Sender: No OFD packet to send [17:06:37]OFD Sender: No OFD packet to send [17:06:42]OFD Sender: No OFD packet to send [17:06:47]OFD Sender: No OFD packet to send [17:06:52]OFD Sender: No OFD packet to send [17:06:57]OFD Sender: No OFD packet to send [17:07:02]OFD Sender: No OFD packet to send [17:07:07]OFD Sender: No OFD packet to send [17:07:12]OFD Sender: No OFD packet to send [17:07:17]OFD Sender: No OFD packet to send [17:07:22]OFD Sender: No OFD packet to send [17:07:27]OFD Sender: No OFD packet to send [17:07:32]OFD Sender: No OFD packet to send [17:07:37]OFD Sender: No OFD packet to send [17:07:42]OFD Sender: No OFD packet to send [17:07:47]OFD Sender: No OFD packet to send [17:07:52]OFD Sender: No OFD packet to send [17:07:57]OFD Sender: No OFD packet to send [17:08:02]OFD Sender: No OFD packet to send [17:08:07]OFD Sender: No OFD packet to send [17:08:12]OFD Sender: No OFD packet to send [17:08:17]OFD Sender: No OFD packet to send [17:08:22]OFD Sender: No OFD packet to send [17:08:27]OFD Sender: No OFD packet to send [17:08:32]OFD Sender: No OFD packet to send [17:08:37]OFD Sender: No OFD packet to send [17:08:42]OFD Sender: No OFD packet to send [17:08:47]OFD Sender: No OFD packet to send [17:08:52]OFD Sender: No OFD packet to send [17:08:57]OFD Sender: No OFD packet to send [17:09:02]OFD Sender: No OFD packet to send [17:09:07]OFD Sender: No OFD packet to send [17:09:09]accept exits with 10 [17:09:09]New connection [17:09:09]New thread 3067284836 created [17:09:09]Thread 3067141476 joined [17:09:09]Waiting for new connection... [17:09:09] Sock 10.Parse request [17:09:09]Sock 10.Check first char [17:09:09]Sock 10.First char is OK [17:09:09]request: POST /json_proto HTTP/1.0 [17:09:09]Method: POST [17:09:09]URL: /json_proto [17:09:09]Method is POST - this is cgi request [17:09:09]url: /json_proto [17:09:09]query_string will be loaded in cgi processing [17:09:09]execute_cgi json_proto POST (null) [17:09:09]execute_cgi path=json_proto method=POST [17:09:09]POST find Content-Length [17:09:09]Host: 172.17.50.196:8080 [17:09:09]Content-Length: 665 [17:09:09]Content-Type: application/json [17:09:09] [17:09:09]POST finish read [17:09:09]Found Content-Length = 665 [17:09:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335343", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:09]execute_script... [17:09: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 : (3)335343", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:09:09]POST & json_proto [17:09:09]process_json_proto [17:09:09]json parsed OK: [17:09:09]protocol is kg_v1.0 [17:09:09]action value=close_receipt [17:09:09]process_action close_receipt [17:09:09]cmd_close_receipt [17:09:09]MH_GetDate [17:09:09]Write to MH i2c: F0 00 00 83 4D BF [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: F0 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: F0 09 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: F0 09 00 83 4D 00 3B 68 22 67 72 0D 1C 67 F6 [17:09:09]GetLastDocTimeStamp 1730307350 [17:09:09]current date 1730308155 [17:09:09]FM_GetShiftState [17:09:09]SAM_PROTO_GetShiftState [17:09:09]wFMCommunicate request_size=4 [17:09:09]MH_SAM_APDU [17:09:09]CAPDU: 80 13 01 00 [17:09:09]Write to MH i2c: E2 08 00 84 4D 80 13 01 00 00 00 00 00 4E [17:09:09]Write i2c OK [17:09:09]MH_I2C_Read... [17:09:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:09]Read from MH i2c: E2 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 0E 00 [17:09:09]MH_I2C_Read... [17:09:09]Read from MH i2c: E2 0E 00 84 4D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DE [17:09:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:09:09]wFMCommunicate OK [17:09:09]SAM_PROTO_GetShiftState done [17:09:09]FM_GetShiftState done [17:09:09]opened in 1730246278 [17:09:09]opened+sec_in_day 1730332678 [17:09:09]quantity*price = 9500 [17:09:09]sum+1 = 9501 [17:09:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 133 30.10.2024 17:09 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139449 ФПД: 34783853211783 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170915&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139449&fm=34783853211783&tin=02508201610067®Number=0000000000091631&sum=9500 0 [17:09:10]StoreToDocumentArchive [17:09:10]shift 556 fd 139449 [17:09:10]save to /storage/0556/doc_00139449 [17:09:10]save last doc name /storage/0556/doc_00139449 to /storage/kkm_last_doc_name [17:09:10]save OK [17:09:10]Clear old archive folders... [17:09:10]ProcessDocumentItem done err = 0, tmpTLVsize=296 [17:09:10]tlvbuf is 01145080 [17:09:10]SAM_PROTO_ClearQueue [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 09 00 00 [17:09:10]Write to MH i2c: E2 08 00 91 4D 80 09 00 00 00 00 00 00 50 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 91 4D 00 90 00 52 [17:09:10]RAPDU: 90 00 [17:09:10]wFMCommunicate OK [17:09:10]SAM_PROTO_ClearQueue done [17:09:10]KKMCreateOFDPacket [17:09:10]OFDProtocolAddRootSTLVToBuf [17:09:10]FM_MakeSignedData [17:09:10]FM_MakeSignedData [17:09:10]SAM_PROTO_SignData [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 0D 01 02 [17:09:10]Write to MH i2c: E2 08 00 92 4D 80 0D 01 02 00 00 00 00 58 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 92 4D 00 90 00 53 [17:09:10]RAPDU: 90 00 [17:09:10]wFMCommunicate OK [17:09:10]wFMCommunicate request_size=255 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 85 00 00 00 F4 03 04 00 3B 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [17:09:10]Write to MH i2c: E2 02 01 93 4D 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 85 00 00 00 F4 03 04 00 3B 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 B7 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 93 4D 00 90 00 54 [17:09:10]RAPDU: 90 00 [17:09:10]wFMCommunicate OK [17:09:10]wFMCommunicate request_size=55 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 20 02 00 35 04 06 00 1F A2 BF 36 F0 87 [17:09:10]Write to MH i2c: E2 3A 00 94 4D 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 20 02 00 35 04 06 00 1F A2 BF 36 F0 87 00 00 BF [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 03 00 94 4D 00 90 00 55 [17:09:10]RAPDU: 90 00 [17:09:10]wFMCommunicate OK [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 0D 03 02 [17:09:10]Write to MH i2c: E2 08 00 95 4D 80 0D 03 02 00 00 00 00 5D [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 0B 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 0B 00 95 4D 00 56 20 6B 4C 4F F1 C1 D6 90 00 62 [17:09:10]RAPDU: 56 20 6B 4C 4F F1 C1 D6 90 00 [17:09:10]wFMCommunicate OK [17:09:10]SAM_PROTO_SignData done [17:09:10]FM_MakeSignedData done [17:09:10]CreateOFDProtocolMessage [17:09:10]wFMCommunicate request_size=4 [17:09:10]MH_SAM_APDU [17:09:10]CAPDU: 80 11 00 00 [17:09:10]Write to MH i2c: E2 08 00 96 4D 80 11 00 00 00 00 00 00 5D [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:10]Read from MH i2c: E2 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 17 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: E2 17 00 96 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B8 [17:09:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:09:10]wFMCommunicate OK [17:09:10]CreateOFDProtocolMessage done [17:09:10]OFDSenderStorePacket 139449 [17:09:10]StoreOFDPacket docnum=139449 [17:09:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 1F 2D 34 01 4A C0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 85 00 00 00 F4 03 04 00 3B 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 20 02 00 35 04 06 00 1F A2 BF 36 F0 87 56 20 6B 4C 4F F1 C1 D6 [17:09:10]CheckFolder [17:09:10]dirname=/storage/ofd_packets [17:09:10]CheckFolder done [17:09:10]ProducePacketName [17:09:10]name=ofd_packets/00139449 [17:09:10]NVStorageSaveData ofd_packets/00139449 [17:09:10]File name is /storage/ofd_packets/00139449 [17:09:10]Write 346 bytes [17:09:10]NVStorageSaveData done [17:09:10]OFDSenderStorePacket done [17:09:10]KKMCreateOFDPacket done [17:09:10]NVStorageSaveData kkm_last_timestamp [17:09:10]File name is /storage/kkm_last_timestamp [17:09:10]OFD Sender: Processing packet 139449 [packets to send 34, broken 33] [17:09:10]ProducePacketName [17:09:10]name=ofd_packets/00139449 [17:09:10]OFD Sender: To server: pG, [17:09:10]CommunicateWithHost lk.salyk.kg:30040 [17:09:10]ConnectInit lk.salyk.kg [17:09:10]Write 4 bytes [17:09:10]NVStorageSaveData done [17:09:10]ExternCall_PrintAddStr [17:09:10]wPrintStart [17:09:10]Write to MH i2c: 01 00 00 97 4D E4 [17:09:10]Write i2c OK [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: 01 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: 01 07 00 [17:09:10]MH_I2C_Read... [17:09:10]Read from MH i2c: 01 07 00 97 4D 00 00 00 00 00 FF 0F F9 [17:09:10]RasterBufferAndPrint [17:09:10]line Счет N : (3)335343 [17:09:10]line ИНН: 02508201610067 [17:09:10]line Контрольно-Кассовый Чек [17:09:10]line ПРОДАЖА [17:09:10]line Товар: 4631150682851 [17:09:10]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [17:09:10]line 1.000 * 95.00 [17:09:10]line = 95.00 [17:09:10]line НДС 12% НСП 1% [17:09:10]line > о реализуемом товаре [17:09:10]line ИТОГО: 95.00 [17:09:10]line НСП 1% : 0.84 [17:09:10]line НДС 12% : 10.09 [17:09:10]line Наличными: 95.00 [17:09:10]line Безнал.: 0.00 [17:09:10]line Место: АЗС № 101 "Партнер Нефть" [17:09:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:09:10]line СНО: Общий режим [17:09:10]line Чек 133 30.10.2024 17:09 [17:09:10]line Смена: 556 ФФД: 1.0 [17:09:10]line ЗНМ: 0300000081 [17:09:10]line РНМ: 0000000000091631 [17:09:10]line Версия ККМ: 001 [17:09:10]line ФМ: 0000000000874669 [17:09:10]line ФД: 139449 [17:09:11]line ФПД: 34783853211783 [17:09:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T170915&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139449&fm=34783853211783&tin=02508201610067®Number=0000000000091631&sum=9500 [17:09:11]line 0 [17:09:11]Connected sock=11 [17:09:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 1F 2D 34 01 4A C0 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 85 00 00 00 F4 03 04 00 3B 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 20 02 00 35 04 06 00 1F A2 BF 36 F0 87 56 20 6B 4C 4F F1 C1 D6 [17:09:11]written 0, free lines is 4095 [17:09:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 1B 3E 47 00 19 5C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 B9 20 02 00 F4 03 04 00 EB 13 22 67 B6 04 01 00 00 72 0D 4B C8 AA A7 FE 1A [17:09:11]CommunicateWithHost err = 0 [17:09:11]CheckOFDResponse [17:09:11]1017 (14) - 77093643461234 [17:09:11]1041 (16) - 0000000000874669 [17:09:11]1040 (4) - 139449 [17:09:11]1012 (4) - 30.10.2024 11:09 [17:09:11]1206 (1) - 0 [17:09:11]OFD Sender: Remove packet 139449 [17:09:11]ProducePacketName [17:09:11]name=ofd_packets/00139449 [17:09:11]NVStorageDeleteData [17:09:11]Write to MH i2c: 01 00 00 C0 4D 0D [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: 01 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: 01 07 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: 01 07 00 C0 4D 00 00 00 00 00 05 0D 26 [17:09:11]RasterBufferAndPrint [17:09:11]line [17:09:11]line [17:09:11]line [17:09:11]line [17:09:11]line [17:09:11]written 0, free lines is 3340 [17:09:11]MH_Cut [17:09:11]Write to MH i2c: D1 01 00 C7 4D 01 E6 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: D1 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: D1 01 00 [17:09:11]MH_I2C_Read... [17:09:11]Read from MH i2c: D1 01 00 C7 4D 00 E5 [17:09:11]Write to MH i2c: 01 00 00 C8 4D 15 [17:09:11]Write i2c OK [17:09:11]MH_I2C_Read... [17:09:11]OFD Sender: No OFD packet to send [17:09:12]*** Cut start [17:09:12]*** Partial cut [17:09:12]*** CUTSNS_PIN = 1 [17:09:12]*** CUTSNS_PIN = 0 [17:09:12]*** Brake cut motor [17:09:12]Read from MH i2c: 01 [17:09:12]MH_I2C_Read... [17:09:12]*** Stop cut motor [17:09:12]*** Cut end [17:09:12]Read from MH i2c: 01 07 00 [17:09:12]MH_I2C_Read... [17:09:12]Read from MH i2c: 01 07 00 C8 4D 00 00 00 00 00 FF 0F 2A [17:09:12]process_action close_receipt done [17:09:12]requested_data is exist [17:09:12]produce_requested_data [17:09:12]requested_item fm.sn is exist - process it [17:09:12]wFMCommunicate request_size=4 [17:09:12]MH_SAM_APDU [17:09:12]CAPDU: 80 11 00 00 [17:09:12]Write to MH i2c: E2 08 00 C9 4D 80 11 00 00 00 00 00 00 90 [17:09:12]Write i2c OK [17:09:12]MH_I2C_Read... [17:09:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:09:13]Read from MH i2c: E2 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 17 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 17 00 C9 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EB [17:09:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:09:13]wFMCommunicate OK [17:09:13]requested_item fd.num is exist - process it [17:09:13]SAM_PROTO_GetFieldsCounters [17:09:13]wFMCommunicate request_size=4 [17:09:13]MH_SAM_APDU [17:09:13]CAPDU: 80 13 00 00 [17:09:13]Write to MH i2c: E2 08 00 CA 4D 80 13 00 00 00 00 00 00 93 [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:09:13]Read from MH i2c: E2 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 62 00 [17:09:13]MH_I2C_Read... [17:09:13]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 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B9 20 02 00 0E 04 04 00 2C 02 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 4F [17:09:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 B9 20 02 00 0E 04 04 00 2C 02 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 [17:09:13]wFMCommunicate OK [17:09:13]SAM_PROTO_GetFieldsCounters done [17:09:13]requested_item shift.num is exist - process it [17:09:13]requested_item shift.opened is exist - process it [17:09:13]req_shift_opened [17:09:13]FM_GetShiftState [17:09:13]SAM_PROTO_GetShiftState [17:09:13]wFMCommunicate request_size=4 [17:09:13]MH_SAM_APDU [17:09:13]CAPDU: 80 13 01 00 [17:09:13]Write to MH i2c: E2 08 00 CB 4D 80 13 01 00 00 00 00 00 95 [17:09:13]Write i2c OK [17:09:13]MH_I2C_Read... [17:09:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:09:13]Read from MH i2c: E2 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 0E 00 [17:09:13]MH_I2C_Read... [17:09:13]Read from MH i2c: E2 0E 00 CB 4D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 25 [17:09:13]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:09:13]wFMCommunicate OK [17:09:13]SAM_PROTO_GetShiftState done [17:09:13]FM_GetShiftState done [17:09:13]req_shift_opened done [17:09:13]requested_item shift.open_date is exist - process it [17:09:13]req_shift_open_date [17:09:13]req_shift_open_date done [17:09:13]produce_requested_data done [17:09:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139449,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:09:13]process_action_free close_receipt [17:09:13]json_value_free [17:09:13]json_value_free done [17:09:13]process_json_proto returns [17:09:13]Send response to host [17:09:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139449,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:09:13]free response buf [17:09:13]execute_script done [17:09:13]execute_script returns [17:09:13]free content buf [17:09:13]Sock 10.Close socket [17:09:13]Sock 10.Thread stoped [17:09:16]OFD Sender: No OFD packet to send [17:09:21]OFD Sender: No OFD packet to send [17:09:26]OFD Sender: No OFD packet to send [17:09:31]OFD Sender: No OFD packet to send [17:09:36]OFD Sender: No OFD packet to send [17:09:41]OFD Sender: No OFD packet to send [17:09:46]OFD Sender: No OFD packet to send [17:09:51]OFD Sender: No OFD packet to send [17:09:56]OFD Sender: No OFD packet to send [17:10:01]OFD Sender: No OFD packet to send [17:10:06]OFD Sender: No OFD packet to send [17:10:12]OFD Sender: No OFD packet to send [17:10:17]OFD Sender: No OFD packet to send [17:10:22]OFD Sender: No OFD packet to send [17:10:27]OFD Sender: No OFD packet to send [17:10:32]OFD Sender: No OFD packet to send [17:10:37]OFD Sender: No OFD packet to send [17:10:38]accept exits with 9 [17:10:38]New connection [17:10:38]New thread 3067141476 created [17:10:38]Thread 3067284836 joined [17:10:38]Waiting for new connection... [17:10:38] Sock 9.Parse request [17:10:38]Sock 9.Check first char [17:10:38]Sock 9.First char is OK [17:10:38]request: POST /json_proto HTTP/1.0 [17:10:38]Method: POST [17:10:38]URL: /json_proto [17:10:38]Method is POST - this is cgi request [17:10:38]url: /json_proto [17:10:38]query_string will be loaded in cgi processing [17:10:38]execute_cgi json_proto POST (null) [17:10:38]execute_cgi path=json_proto method=POST [17:10:38]POST find Content-Length [17:10:38]Host: 172.17.50.196:8080 [17:10:38]Content-Length: 683 [17:10:38]Content-Type: application/json [17:10:38] [17:10:38]POST finish read [17:10:38]Found Content-Length = 683 [17:10:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.770, "sum" : 1188.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1188.00, "payments": [ { "type": 0, "sum" : 1188.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:38]execute_script... [17:10: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)1094665", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.770, "sum" : 1188.81, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1900.00, "total" : 1188.00, "payments": [ { "type": 0, "sum" : 1188.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:10:38]POST & json_proto [17:10:38]process_json_proto [17:10:38]json parsed OK: [17:10:38]protocol is kg_v1.0 [17:10:38]action value=close_receipt [17:10:38]process_action close_receipt [17:10:38]cmd_close_receipt [17:10:38]MH_GetDate [17:10:38]Write to MH i2c: F0 00 00 CC 4D 08 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: F0 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: F0 09 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: F0 09 00 CC 4D 00 94 68 22 67 72 0D 1C 67 98 [17:10:38]GetLastDocTimeStamp 1730308155 [17:10:38]current date 1730308244 [17:10:38]FM_GetShiftState [17:10:38]SAM_PROTO_GetShiftState [17:10:38]wFMCommunicate request_size=4 [17:10:38]MH_SAM_APDU [17:10:38]CAPDU: 80 13 01 00 [17:10:38]Write to MH i2c: E2 08 00 CD 4D 80 13 01 00 00 00 00 00 97 [17:10:38]Write i2c OK [17:10:38]MH_I2C_Read... [17:10:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:38]Read from MH i2c: E2 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 0E 00 [17:10:38]MH_I2C_Read... [17:10:38]Read from MH i2c: E2 0E 00 CD 4D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 27 [17:10:38]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:10:38]wFMCommunicate OK [17:10:38]SAM_PROTO_GetShiftState done [17:10:38]FM_GetShiftState done [17:10:38]opened in 1730246278 [17:10:38]opened+sec_in_day 1730332678 [17:10:38]quantity*price = 118881 [17:10:38]sum+1 = 118882 [17:10:38]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.81 ИТОГО: 1188.00 Внесено: 1900.00 СДАЧА: 712.00 НСП 1% : 10.52 НДС 12% : 126.24 Наличными: 1188.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 134 30.10.2024 17:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139450 ФПД: 228972877286490 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171044&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139450&fm=228972877286490&tin=02508201610067®Number=0000000000091631&sum=118800 [17:10:39]StoreToDocumentArchive [17:10:39]shift 556 fd 139450 [17:10:39]save to /storage/0556/doc_00139450 [17:10:39]save last doc name /storage/0556/doc_00139450 to /storage/kkm_last_doc_name [17:10:39]save OK [17:10:39]Clear old archive folders... [17:10:39]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:10:39]tlvbuf is 01144F60 [17:10:39]SAM_PROTO_ClearQueue [17:10:39]wFMCommunicate request_size=4 [17:10:39]MH_SAM_APDU [17:10:39]CAPDU: 80 09 00 00 [17:10:39]Write to MH i2c: E2 08 00 DA 4D 80 09 00 00 00 00 00 00 99 [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:39]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:10:39]Read from MH i2c: E2 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: E2 03 00 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: E2 03 00 DA 4D 00 90 00 9B [17:10:39]RAPDU: 90 00 [17:10:39]wFMCommunicate OK [17:10:39]SAM_PROTO_ClearQueue done [17:10:39]KKMCreateOFDPacket [17:10:39]OFDProtocolAddRootSTLVToBuf [17:10:39]FM_MakeSignedData [17:10:39]FM_MakeSignedData [17:10:39]SAM_PROTO_SignData [17:10:39]wFMCommunicate request_size=4 [17:10:39]MH_SAM_APDU [17:10:39]CAPDU: 80 0D 01 02 [17:10:39]Write to MH i2c: E2 08 00 DB 4D 80 0D 01 02 00 00 00 00 A1 [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:39]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:10:39]Read from MH i2c: E2 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: E2 03 00 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: E2 03 00 DB 4D 00 90 00 9C [17:10:39]RAPDU: 90 00 [17:10:39]wFMCommunicate OK [17:10:39]wFMCommunicate request_size=255 [17:10:39]MH_SAM_APDU [17:10:39]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 6A 45 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 31 00 00 00 00 07 04 06 00 10 D0 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 94 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 20 02 00 35 04 06 00 D0 [17:10:39]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 32 FF 03 08 00 03 6A 45 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 31 00 00 00 00 07 04 06 00 10 D0 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 94 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 20 02 00 35 04 06 00 D0 00 00 10 [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:39]Read from MH i2c: E2 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: E2 03 00 [17:10:39]MH_I2C_Read... [17:10:39]Read from MH i2c: E2 03 00 DC 4D 00 90 00 9D [17:10:39]RAPDU: 90 00 [17:10:39]wFMCommunicate OK [17:10:39]wFMCommunicate request_size=10 [17:10:39]MH_SAM_APDU [17:10:39]CAPDU: 80 0D 02 02 05 3F E7 03 8C 5A [17:10:39]Write to MH i2c: E2 0D 00 DD 4D 80 0D 02 02 05 00 3F E7 03 8C 5A 00 00 BD [17:10:39]Write i2c OK [17:10:39]MH_I2C_Read... [17:10:39]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:10:40]Read from MH i2c: E2 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 03 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 03 00 DD 4D 00 90 00 9E [17:10:40]RAPDU: 90 00 [17:10:40]wFMCommunicate OK [17:10:40]wFMCommunicate request_size=4 [17:10:40]MH_SAM_APDU [17:10:40]CAPDU: 80 0D 03 02 [17:10:40]Write to MH i2c: E2 08 00 DE 4D 80 0D 03 02 00 00 00 00 A6 [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:10:40]Read from MH i2c: E2 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 0B 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 0B 00 DE 4D 00 C1 F2 D8 7F 33 CE 35 20 90 00 07 [17:10:40]RAPDU: C1 F2 D8 7F 33 CE 35 20 90 00 [17:10:40]wFMCommunicate OK [17:10:40]SAM_PROTO_SignData done [17:10:40]FM_MakeSignedData done [17:10:40]CreateOFDProtocolMessage [17:10:40]wFMCommunicate request_size=4 [17:10:40]MH_SAM_APDU [17:10:40]CAPDU: 80 11 00 00 [17:10:40]Write to MH i2c: E2 08 00 DF 4D 80 11 00 00 00 00 00 00 A6 [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:40]Read from MH i2c: E2 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 17 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: E2 17 00 DF 4D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 01 [17:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:10:40]wFMCommunicate OK [17:10:40]CreateOFDProtocolMessage done [17:10:40]OFDSenderStorePacket 139450 [17:10:40]StoreOFDPacket docnum=139450 [17:10:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 C6 FD 07 01 CB 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 32 FF 03 08 00 03 6A 45 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 31 00 00 00 00 07 04 06 00 10 D0 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 94 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 20 02 00 35 04 06 00 D0 3F E7 03 8C 5A C1 F2 D8 7F 33 CE 35 20 [17:10:40]CheckFolder [17:10:40]dirname=/storage/ofd_packets [17:10:40]CheckFolder done [17:10:40]ProducePacketName [17:10:40]name=ofd_packets/00139450 [17:10:40]NVStorageSaveData ofd_packets/00139450 [17:10:40]File name is /storage/ofd_packets/00139450 [17:10:40]Write 301 bytes [17:10:40]NVStorageSaveData done [17:10:40]OFDSenderStorePacket done [17:10:40]KKMCreateOFDPacket done [17:10:40]NVStorageSaveData kkm_last_timestamp [17:10:40]File name is /storage/kkm_last_timestamp [17:10:40]Write 4 bytes [17:10:40]NVStorageSaveData done [17:10:40]ExternCall_PrintAddStr [17:10:40]wPrintStart [17:10:40]Write to MH i2c: 01 00 00 E0 4D 2D [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: 01 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: 01 07 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: 01 07 00 E0 4D 00 00 00 00 00 FF 0F 42 [17:10:40]RasterBufferAndPrint [17:10:40]line Счет N : (1)1094665 [17:10:40]line ИНН: 02508201610067 [17:10:40]line Контрольно-Кассовый Чек [17:10:40]line ПРОДАЖА [17:10:40]line ТРК (МРК, ГНК) : 53 [17:10:40]line Товар: 2710124130 [17:10:40]line Аи-92-К-2 [17:10:40]line 17.770 * 66.90 [17:10:40]line = 1188.81 [17:10:40]line НДС 12% НСП 1% [17:10:40]line > о реализуемом товаре [17:10:40]line ОКРУГЛЕНИЕ: -0.81 [17:10:40]line ИТОГО: 1188.00 [17:10:40]line Внесено: 1900.00 [17:10:40]line СДАЧА: 712.00 [17:10:40]line НСП 1% : 10.52 [17:10:40]line НДС 12% : 126.24 [17:10:40]line Наличными: 1188.00 [17:10:40]line Безнал.: 0.00 [17:10:40]line Место: АЗС № 101 "Партнер Нефть" [17:10:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:10:40]line СНО: Общий режим [17:10:40]line Чек 134 30.10.2024 17:10 [17:10:40]line Смена: 556 ФФД: 1.0 [17:10:40]line ЗНМ: 0300000081 [17:10:40]line РНМ: 0000000000091631 [17:10:40]line Версия ККМ: 001 [17:10:40]line ФМ: 0000000000874669 [17:10:40]line ФД: 139450 [17:10:40]line ФПД: 228972877286490 [17:10:40]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171044&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139450&fm=228972877286490&tin=02508201610067®Number=0000000000091631&sum=118800 [17:10:40]OFD Sender: Processing packet 139450 [packets to send 34, broken 33] [17:10:40]ProducePacketName [17:10:40]name=ofd_packets/00139450 [17:10:40]OFD Sender: To server: pG, [17:10:40]CommunicateWithHost lk.salyk.kg:30040 [17:10:40]ConnectInit lk.salyk.kg [17:10:40]written 0, free lines is 4095 [17:10:40]Connected sock=8 [17:10:40]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 C6 FD 07 01 CB 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 32 FF 03 08 00 03 6A 45 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 61 D0 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 D0 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 1C 04 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 31 00 00 00 00 07 04 06 00 10 D0 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 94 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BA 20 02 00 35 04 06 00 D0 3F E7 03 8C 5A C1 F2 D8 7F 33 CE 35 20 [17:10:40]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 4C 0A 47 00 D1 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 38 37 34 36 36 39 10 04 04 00 BA 20 02 00 F4 03 04 00 44 14 22 67 B6 04 01 00 00 DB A0 AA 4B 54 4B 22 F9 [17:10:40]CommunicateWithHost err = 0 [17:10:40]CheckOFDResponse [17:10:40]1017 (14) - 77093643461234 [17:10:40]1041 (16) - 0000000000874669 [17:10:40]1040 (4) - 139450 [17:10:40]1012 (4) - 30.10.2024 11:11 [17:10:40]1206 (1) - 0 [17:10:40]OFD Sender: Remove packet 139450 [17:10:40]ProducePacketName [17:10:40]name=ofd_packets/00139450 [17:10:40]NVStorageDeleteData [17:10:40]Write to MH i2c: 01 00 00 0B 4E 59 [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: 01 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: 01 07 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: 01 07 00 0B 4E 00 00 00 00 00 00 0D 6D [17:10:40]RasterBufferAndPrint [17:10:40]line [17:10:40]line [17:10:40]line [17:10:40]line [17:10:40]line [17:10:40]written 0, free lines is 3334 [17:10:40]MH_Cut [17:10:40]Write to MH i2c: D1 01 00 12 4E 01 32 [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: D1 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: D1 01 00 [17:10:40]MH_I2C_Read... [17:10:40]Read from MH i2c: D1 01 00 12 4E 00 31 [17:10:40]Write to MH i2c: 01 00 00 13 4E 61 [17:10:40]Write i2c OK [17:10:40]MH_I2C_Read... [17:10:41]OFD Sender: No OFD packet to send [17:10:41]*** Cut start [17:10:41]*** Partial cut [17:10:41]*** CUTSNS_PIN = 1 [17:10:41]*** CUTSNS_PIN = 0 [17:10:41]*** Brake cut motor [17:10:42]Read from MH i2c: 01 [17:10:42]MH_I2C_Read... [17:10:42]*** Stop cut motor [17:10:42]*** Cut end [17:10:42]Read from MH i2c: 01 07 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: 01 07 00 13 4E 00 00 00 00 00 FF 0F 76 [17:10:42]process_action close_receipt done [17:10:42]requested_data is exist [17:10:42]produce_requested_data [17:10:42]requested_item fm.sn is exist - process it [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 11 00 00 [17:10:42]Write to MH i2c: E2 08 00 14 4E 80 11 00 00 00 00 00 00 DC [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 17 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 17 00 14 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 37 [17:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:10:42]wFMCommunicate OK [17:10:42]requested_item fd.num is exist - process it [17:10:42]SAM_PROTO_GetFieldsCounters [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 13 00 00 [17:10:42]Write to MH i2c: E2 08 00 15 4E 80 13 00 00 00 00 00 00 DF [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 62 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 62 00 15 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BA 20 02 00 0E 04 04 00 2C 02 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 9F [17:10:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BA 20 02 00 0E 04 04 00 2C 02 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 [17:10:42]wFMCommunicate OK [17:10:42]SAM_PROTO_GetFieldsCounters done [17:10:42]requested_item shift.num is exist - process it [17:10:42]requested_item shift.opened is exist - process it [17:10:42]req_shift_opened [17:10:42]FM_GetShiftState [17:10:42]SAM_PROTO_GetShiftState [17:10:42]wFMCommunicate request_size=4 [17:10:42]MH_SAM_APDU [17:10:42]CAPDU: 80 13 01 00 [17:10:42]Write to MH i2c: E2 08 00 16 4E 80 13 01 00 00 00 00 00 E1 [17:10:42]Write i2c OK [17:10:42]MH_I2C_Read... [17:10:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:10:42]Read from MH i2c: E2 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 0E 00 [17:10:42]MH_I2C_Read... [17:10:42]Read from MH i2c: E2 0E 00 16 4E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 71 [17:10:42]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:10:42]wFMCommunicate OK [17:10:42]SAM_PROTO_GetShiftState done [17:10:42]FM_GetShiftState done [17:10:42]req_shift_opened done [17:10:42]requested_item shift.open_date is exist - process it [17:10:42]req_shift_open_date [17:10:42]req_shift_open_date done [17:10:42]produce_requested_data done [17:10:42]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139450,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:10:42]process_action_free close_receipt [17:10:42]json_value_free [17:10:42]json_value_free done [17:10:42]process_json_proto returns [17:10:42]Send response to host [17:10:42]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139450,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:10:42]free response buf [17:10:42]execute_script done [17:10:42]execute_script returns [17:10:42]free content buf [17:10:42]Sock 9.Close socket [17:10:42]Sock 9.Thread stoped [17:10:46]OFD Sender: No OFD packet to send [17:10:51]OFD Sender: No OFD packet to send [17:10:56]OFD Sender: No OFD packet to send [17:11:01]OFD Sender: No OFD packet to send [17:11:06]OFD Sender: No OFD packet to send [17:11:11]OFD Sender: No OFD packet to send [17:11:13]accept exits with 10 [17:11:13]New connection [17:11:13]New thread 3067284836 created [17:11:13]Thread 3067141476 joined [17:11:13]Waiting for new connection... [17:11:13] Sock 10.Parse request [17:11:13]Sock 10.Check first char [17:11:13]Sock 10.First char is OK [17:11:13]request: POST /json_proto HTTP/1.0 [17:11:13]Method: POST [17:11:13]URL: /json_proto [17:11:13]Method is POST - this is cgi request [17:11:13]url: /json_proto [17:11:13]query_string will be loaded in cgi processing [17:11:13]execute_cgi json_proto POST (null) [17:11:13]execute_cgi path=json_proto method=POST [17:11:13]POST find Content-Length [17:11:13]Host: 172.17.50.196:8080 [17:11:13]Content-Length: 1046 [17:11:13]Content-Type: application/json [17:11:13] [17:11:13]POST finish read [17:11:13]Found Content-Length = 1046 [17:11:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335344", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:13]execute_script... [17:11:13]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335344", "tax_sys" : 0, "items" : [ { "code": "4700000481989", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043A\u0438\u0432\u0438-\u043C\u0430\u043D\u0433\u043E\u0441\u0442\u0438\u043D 0,45 ", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4660085515163", "name": "\u0428\u043E\u043A \u0411\u0430\u0442\u043E\u043D\u0447\u0438\u043A \u0421\u043D\u0438\u043A\u0435\u0440\u0441 \u0441\u0443\u043F\u0435\u0440 95/80\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 185.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:11:13]POST & json_proto [17:11:13]process_json_proto [17:11:13]json parsed OK: [17:11:13]protocol is kg_v1.0 [17:11:13]action value=close_receipt [17:11:13]process_action close_receipt [17:11:13]cmd_close_receipt [17:11:13]MH_GetDate [17:11:13]Write to MH i2c: F0 00 00 17 4E 54 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: F0 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: F0 09 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: F0 09 00 17 4E 00 B7 68 22 67 72 0D 1C 67 07 [17:11:13]GetLastDocTimeStamp 1730308244 [17:11:13]current date 1730308279 [17:11:13]FM_GetShiftState [17:11:13]SAM_PROTO_GetShiftState [17:11:13]wFMCommunicate request_size=4 [17:11:13]MH_SAM_APDU [17:11:13]CAPDU: 80 13 01 00 [17:11:13]Write to MH i2c: E2 08 00 18 4E 80 13 01 00 00 00 00 00 E3 [17:11:13]Write i2c OK [17:11:13]MH_I2C_Read... [17:11:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:13]Read from MH i2c: E2 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 0E 00 [17:11:13]MH_I2C_Read... [17:11:13]Read from MH i2c: E2 0E 00 18 4E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 73 [17:11:13]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:11:13]wFMCommunicate OK [17:11:13]SAM_PROTO_GetShiftState done [17:11:13]FM_GetShiftState done [17:11:13]opened in 1730246278 [17:11:13]opened+sec_in_day 1730332678 [17:11:13]quantity*price = 9500 [17:11:13]sum+1 = 9501 [17:11:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4660085515163 Шок Батончик Сникерс супер 95/80г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 185.00 НСП 1% : 1.64 НДС 12% : 19.65 Наличными: 185.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 135 30.10.2024 17:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139451 ФПД: 197462684473134 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171119&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139451&fm=197462684473134&tin=02508201610067®Number=0000000000091631&sum=18500 0 [17:11:14]StoreToDocumentArchive [17:11:14]shift 556 fd 139451 [17:11:14]save to /storage/0556/doc_00139451 [17:11:14]save last doc name /storage/0556/doc_00139451 to /storage/kkm_last_doc_name [17:11:14]save OK [17:11:14]Clear old archive folders... [17:11:14]ProcessDocumentItem done err = 0, tmpTLVsize=436 [17:11:14]tlvbuf is B6FA9720 [17:11:14]SAM_PROTO_ClearQueue [17:11:14]wFMCommunicate request_size=4 [17:11:14]MH_SAM_APDU [17:11:14]CAPDU: 80 09 00 00 [17:11:14]Write to MH i2c: E2 08 00 25 4E 80 09 00 00 00 00 00 00 E5 [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 25 4E 00 90 00 E7 [17:11:14]RAPDU: 90 00 [17:11:14]wFMCommunicate OK [17:11:14]SAM_PROTO_ClearQueue done [17:11:14]KKMCreateOFDPacket [17:11:14]OFDProtocolAddRootSTLVToBuf [17:11:14]FM_MakeSignedData [17:11:14]FM_MakeSignedData [17:11:14]SAM_PROTO_SignData [17:11:14]wFMCommunicate request_size=4 [17:11:14]MH_SAM_APDU [17:11:14]CAPDU: 80 0D 01 02 [17:11:14]Write to MH i2c: E2 08 00 26 4E 80 0D 01 02 00 00 00 00 ED [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 26 4E 00 90 00 E8 [17:11:14]RAPDU: 90 00 [17:11:14]wFMCommunicate OK [17:11:14]wFMCommunicate request_size=255 [17:11:14]MH_SAM_APDU [17:11:14]CAPDU: 80 0D 02 02 FA 03 00 B4 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 [17:11:14]Write to MH i2c: E2 02 01 27 4E 80 0D 02 02 FA 00 03 00 B4 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 00 00 8D [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:14]Read from MH i2c: E2 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 [17:11:14]MH_I2C_Read... [17:11:14]Read from MH i2c: E2 03 00 27 4E 00 90 00 E9 [17:11:14]RAPDU: 90 00 [17:11:14]wFMCommunicate OK [17:11:14]wFMCommunicate request_size=195 [17:11:14]MH_SAM_APDU [17:11:14]CAPDU: 80 0D 02 02 BE 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 B7 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 20 02 00 35 04 06 00 B3 97 5D 2A 17 2E [17:11:14]Write to MH i2c: E2 C6 00 28 4E 80 0D 02 02 BE 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 B7 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 20 02 00 35 04 06 00 B3 97 5D 2A 17 2E 00 00 8D [17:11:14]Write i2c OK [17:11:14]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 03 00 28 4E 00 90 00 EA [17:11:15]RAPDU: 90 00 [17:11:15]wFMCommunicate OK [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 0D 03 02 [17:11:15]Write to MH i2c: E2 08 00 29 4E 80 0D 03 02 00 00 00 00 F2 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 0B 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 0B 00 29 4E 00 79 9E A1 74 AE FB C0 FD 90 00 85 [17:11:15]RAPDU: 79 9E A1 74 AE FB C0 FD 90 00 [17:11:15]wFMCommunicate OK [17:11:15]SAM_PROTO_SignData done [17:11:15]FM_MakeSignedData done [17:11:15]CreateOFDProtocolMessage [17:11:15]wFMCommunicate request_size=4 [17:11:15]MH_SAM_APDU [17:11:15]CAPDU: 80 11 00 00 [17:11:15]Write to MH i2c: E2 08 00 2A 4E 80 11 00 00 00 00 00 00 F2 [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:15]Read from MH i2c: E2 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 17 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: E2 17 00 2A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4D [17:11:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:11:15]wFMCommunicate OK [17:11:15]CreateOFDProtocolMessage done [17:11:15]OFDSenderStorePacket 139451 [17:11:15]StoreOFDPacket docnum=139451 [17:11:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C8 01 00 00 A2 AB C0 01 14 FB 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 B7 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 20 02 00 35 04 06 00 B3 97 5D 2A 17 2E 79 9E A1 74 AE FB C0 FD [17:11:15]CheckFolder [17:11:15]dirname=/storage/ofd_packets [17:11:15]CheckFolder done [17:11:15]ProducePacketName [17:11:15]name=ofd_packets/00139451 [17:11:15]NVStorageSaveData ofd_packets/00139451 [17:11:15]File name is /storage/ofd_packets/00139451 [17:11:15]Write 486 bytes [17:11:15]NVStorageSaveData done [17:11:15]OFDSenderStorePacket done [17:11:15]KKMCreateOFDPacket done [17:11:15]NVStorageSaveData kkm_last_timestamp [17:11:15]File name is /storage/kkm_last_timestamp [17:11:15]Write 4 bytes [17:11:15]NVStorageSaveData done [17:11:15]ExternCall_PrintAddStr [17:11:15]wPrintStart [17:11:15]Write to MH i2c: 01 00 00 2B 4E 79 [17:11:15]OFD Sender: Processing packet 139451 [packets to send 34, broken 33] [17:11:15]ProducePacketName [17:11:15]name=ofd_packets/00139451 [17:11:15]OFD Sender: To server: pG, [17:11:15]CommunicateWithHost lk.salyk.kg:30040 [17:11:15]ConnectInit lk.salyk.kg [17:11:15]Write i2c OK [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 07 00 [17:11:15]MH_I2C_Read... [17:11:15]Read from MH i2c: 01 07 00 2B 4E 00 00 00 00 00 FF 0F 8E [17:11:15]RasterBufferAndPrint [17:11:15]line Счет N : (3)335344 [17:11:15]line ИНН: 02508201610067 [17:11:15]line Контрольно-Кассовый Чек [17:11:15]line ПРОДАЖА [17:11:15]line Товар: 4700000481989 [17:11:15]line Напиток энерг Nitro киви-мангостин 0,45 [17:11:15]line 1.000 * 95.00 [17:11:15]line = 95.00 [17:11:15]line НДС 12% НСП 1% [17:11:15]line > о реализуемом товаре [17:11:15]line Товар: 4660085515163 [17:11:15]line Шок Батончик Сникерс супер 95/80г [17:11:15]line 1.000 * 90.00 [17:11:15]line = 90.00 [17:11:15]line НДС 12% НСП 1% [17:11:15]line > о реализуемом товаре [17:11:15]line ИТОГО: 185.00 [17:11:15]line НСП 1% : 1.64 [17:11:15]line НДС 12% : 19.65 [17:11:15]line Наличными: 185.00 [17:11:15]line Безнал.: 0.00 [17:11:15]line Место: АЗС № 101 "Партнер Нефть" [17:11:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:11:15]line СНО: Общий режим [17:11:15]line Чек 135 30.10.2024 17:11 [17:11:15]line Смена: 556 ФФД: 1.0 [17:11:15]line ЗНМ: 0300000081 [17:11:15]line РНМ: 0000000000091631 [17:11:15]line Версия ККМ: 001 [17:11:15]line ФМ: 0000000000874669 [17:11:15]line ФД: 139451 [17:11:15]line ФПД: 197462684473134 [17:11:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171119&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139451&fm=197462684473134&tin=02508201610067®Number=0000000000091631&sum=18500 [17:11:15]line 0 [17:11:15]written 0, free lines is 4095 [17:11:15]Connected sock=11 [17:11:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C8 01 00 00 A2 AB C0 01 14 FB 5A 03 01 00 03 00 B4 01 1E 04 01 00 01 23 04 85 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 39 38 39 06 04 41 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BA D0 B8 D0 B2 D0 B8 2D D0 BC D0 B0 D0 BD D0 B3 D0 BE D1 81 D1 82 D0 B8 D0 BD 20 30 2C 34 35 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7D 00 8A 04 0D 00 34 36 36 30 30 38 35 35 31 35 31 36 33 06 04 39 00 D0 A8 D0 BE D0 BA 20 D0 91 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 D0 A1 D0 BD D0 B8 D0 BA D0 B5 D1 80 D1 81 20 D1 81 D1 83 D0 BF D0 B5 D1 80 20 39 35 2F 38 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 44 48 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A4 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 AD 07 00 00 00 00 07 04 06 00 44 48 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 B7 68 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 20 02 00 35 04 06 00 B3 97 5D 2A 17 2E 79 9E A1 74 AE FB C0 FD [17:11:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 26 8D 47 00 0D 31 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BB 20 02 00 F4 03 04 00 67 14 22 67 B6 04 01 00 00 F9 3B 19 BF B3 50 4B A8 [17:11:15]CommunicateWithHost err = 0 [17:11:15]CheckOFDResponse [17:11:15]1017 (14) - 77093643461234 [17:11:15]1041 (16) - 0000000000874669 [17:11:15]1040 (4) - 139451 [17:11:15]1012 (4) - 30.10.2024 11:11 [17:11:15]1206 (1) - 0 [17:11:15]OFD Sender: Remove packet 139451 [17:11:15]ProducePacketName [17:11:15]name=ofd_packets/00139451 [17:11:15]NVStorageDeleteData [17:11:15]Write to MH i2c: 01 00 00 5B 4E A9 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: 01 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: 01 07 00 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: 01 07 00 5B 4E 00 00 00 00 00 A8 0C 64 [17:11:16]RasterBufferAndPrint [17:11:16]line [17:11:16]line [17:11:16]line [17:11:16]line [17:11:16]line [17:11:16]written 0, free lines is 3249 [17:11:16]MH_Cut [17:11:16]Write to MH i2c: D1 01 00 62 4E 01 82 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: D1 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: D1 01 00 [17:11:16]MH_I2C_Read... [17:11:16]Read from MH i2c: D1 01 00 62 4E 00 81 [17:11:16]Write to MH i2c: 01 00 00 63 4E B1 [17:11:16]Write i2c OK [17:11:16]MH_I2C_Read... [17:11:16]OFD Sender: No OFD packet to send [17:11:16]*** Cut start [17:11:16]*** Partial cut [17:11:16]*** CUTSNS_PIN = 1 [17:11:16]*** CUTSNS_PIN = 0 [17:11:16]*** Brake cut motor [17:11:17]Read from MH i2c: 01 [17:11:17]MH_I2C_Read... [17:11:17]*** Stop cut motor [17:11:17]*** Cut end [17:11:17]Read from MH i2c: 01 07 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: 01 07 00 63 4E 00 00 00 00 00 FF 0F C6 [17:11:17]process_action close_receipt done [17:11:17]requested_data is exist [17:11:17]produce_requested_data [17:11:17]requested_item fm.sn is exist - process it [17:11:17]wFMCommunicate request_size=4 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 11 00 00 [17:11:17]Write to MH i2c: E2 08 00 64 4E 80 11 00 00 00 00 00 00 2C [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 17 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 17 00 64 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [17:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:11:17]wFMCommunicate OK [17:11:17]requested_item fd.num is exist - process it [17:11:17]SAM_PROTO_GetFieldsCounters [17:11:17]wFMCommunicate request_size=4 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 13 00 00 [17:11:17]Write to MH i2c: E2 08 00 65 4E 80 13 00 00 00 00 00 00 2F [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 62 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 62 00 65 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BB 20 02 00 0E 04 04 00 2C 02 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 F3 [17:11:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BB 20 02 00 0E 04 04 00 2C 02 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 [17:11:17]wFMCommunicate OK [17:11:17]SAM_PROTO_GetFieldsCounters done [17:11:17]requested_item shift.num is exist - process it [17:11:17]requested_item shift.opened is exist - process it [17:11:17]req_shift_opened [17:11:17]FM_GetShiftState [17:11:17]SAM_PROTO_GetShiftState [17:11:17]wFMCommunicate request_size=4 [17:11:17]MH_SAM_APDU [17:11:17]CAPDU: 80 13 01 00 [17:11:17]Write to MH i2c: E2 08 00 66 4E 80 13 01 00 00 00 00 00 31 [17:11:17]Write i2c OK [17:11:17]MH_I2C_Read... [17:11:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:11:17]Read from MH i2c: E2 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 0E 00 [17:11:17]MH_I2C_Read... [17:11:17]Read from MH i2c: E2 0E 00 66 4E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C1 [17:11:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:11:17]wFMCommunicate OK [17:11:17]SAM_PROTO_GetShiftState done [17:11:17]FM_GetShiftState done [17:11:17]req_shift_opened done [17:11:17]requested_item shift.open_date is exist - process it [17:11:17]req_shift_open_date [17:11:17]req_shift_open_date done [17:11:17]produce_requested_data done [17:11:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139451,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:11:17]process_action_free close_receipt [17:11:17]json_value_free [17:11:17]json_value_free done [17:11:17]process_json_proto returns [17:11:17]Send response to host [17:11:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139451,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:11:17]free response buf [17:11:17]execute_script done [17:11:17]execute_script returns [17:11:17]free content buf [17:11:17]Sock 10.Close socket [17:11:17]Sock 10.Thread stoped [17:11:21]OFD Sender: No OFD packet to send [17:11:26]OFD Sender: No OFD packet to send [17:11:31]OFD Sender: No OFD packet to send [17:11:36]OFD Sender: No OFD packet to send [17:11:41]OFD Sender: No OFD packet to send [17:11:46]OFD Sender: No OFD packet to send [17:11:51]OFD Sender: No OFD packet to send [17:11:56]OFD Sender: No OFD packet to send [17:12:01]OFD Sender: No OFD packet to send [17:12:06]OFD Sender: No OFD packet to send [17:12:11]OFD Sender: No OFD packet to send [17:12:16]OFD Sender: No OFD packet to send [17:12:21]OFD Sender: No OFD packet to send [17:12:26]OFD Sender: No OFD packet to send [17:12:31]OFD Sender: No OFD packet to send [17:12:36]OFD Sender: No OFD packet to send [17:12:41]OFD Sender: No OFD packet to send [17:12:46]OFD Sender: No OFD packet to send [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:18]accept exits with 8 [17:13:18]New connection [17:13:18]New thread 3067141476 created [17:13:18]Thread 3067284836 joined [17:13:18]Waiting for new connection... [17:13:18] Sock 8.Parse request [17:13:18]Sock 8.Check first char [17:13:18]Sock 8.First char is OK [17:13:18]request: POST /json_proto HTTP/1.0 [17:13:18]Method: POST [17:13:18]URL: /json_proto [17:13:18]Method is POST - this is cgi request [17:13:18]url: /json_proto [17:13:18]query_string will be loaded in cgi processing [17:13:18]execute_cgi json_proto POST (null) [17:13:18]execute_cgi path=json_proto method=POST [17:13:18]POST find Content-Length [17:13:18]Host: 172.17.50.196:8080 [17:13:18]Content-Length: 604 [17:13:18]Content-Type: application/json [17:13:18] [17:13:18]POST finish read [17:13:18]Found Content-Length = 604 [17:13:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335345", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 44.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:18]execute_script... [17:13:18]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335345", "tax_sys" : 0, "items" : [ { "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 44.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:13:18]POST & json_proto [17:13:18]process_json_proto [17:13:18]json parsed OK: [17:13:18]protocol is kg_v1.0 [17:13:18]action value=close_receipt [17:13:18]process_action close_receipt [17:13:18]cmd_close_receipt [17:13:18]MH_GetDate [17:13:18]Write to MH i2c: F0 00 00 67 4E A4 [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: F0 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: F0 09 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: F0 09 00 67 4E 00 34 69 22 67 72 0D 1C 67 D5 [17:13:18]GetLastDocTimeStamp 1730308279 [17:13:18]current date 1730308404 [17:13:18]FM_GetShiftState [17:13:18]SAM_PROTO_GetShiftState [17:13:18]wFMCommunicate request_size=4 [17:13:18]MH_SAM_APDU [17:13:18]CAPDU: 80 13 01 00 [17:13:18]Write to MH i2c: E2 08 00 68 4E 80 13 01 00 00 00 00 00 33 [17:13:18]Write i2c OK [17:13:18]MH_I2C_Read... [17:13:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:18]Read from MH i2c: E2 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 0E 00 [17:13:18]MH_I2C_Read... [17:13:18]Read from MH i2c: E2 0E 00 68 4E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C3 [17:13:18]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:13:18]wFMCommunicate OK [17:13:18]SAM_PROTO_GetShiftState done [17:13:18]FM_GetShiftState done [17:13:18]opened in 1730246278 [17:13:18]opened+sec_in_day 1730332678 [17:13:18]quantity*price = 4400 [17:13:18]sum+1 = 4401 [17:13:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 44.00 НСП 1% : 0.39 НДС 12% : 4.67 Наличными: 44.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 136 30.10.2024 17:13 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139452 ФПД: 193286747017732 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171324&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139452&fm=193286747017732&tin=02508201610067®Number=0000000000091631&sum=4400 0 [17:13:19]StoreToDocumentArchive [17:13:19]shift 556 fd 139452 [17:13:19]save to /storage/0556/doc_00139452 [17:13:19]save last doc name /storage/0556/doc_00139452 to /storage/kkm_last_doc_name [17:13:19]save OK [17:13:19]Clear old archive folders... [17:13:19]ProcessDocumentItem done err = 0, tmpTLVsize=275 [17:13:19]tlvbuf is 0110EA20 [17:13:19]SAM_PROTO_ClearQueue [17:13:19]wFMCommunicate request_size=4 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 09 00 00 [17:13:19]Write to MH i2c: E2 08 00 75 4E 80 09 00 00 00 00 00 00 35 [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 03 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 03 00 75 4E 00 90 00 37 [17:13:19]RAPDU: 90 00 [17:13:19]wFMCommunicate OK [17:13:19]SAM_PROTO_ClearQueue done [17:13:19]KKMCreateOFDPacket [17:13:19]OFDProtocolAddRootSTLVToBuf [17:13:19]FM_MakeSignedData [17:13:19]FM_MakeSignedData [17:13:19]SAM_PROTO_SignData [17:13:19]wFMCommunicate request_size=4 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 0D 01 02 [17:13:19]Write to MH i2c: E2 08 00 76 4E 80 0D 01 02 00 00 00 00 3D [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 03 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 03 00 76 4E 00 90 00 38 [17:13:19]RAPDU: 90 00 [17:13:19]wFMCommunicate OK [17:13:19]wFMCommunicate request_size=255 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 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 34 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [17:13:19]Write to MH i2c: E2 02 01 77 4E 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 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 34 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 00 00 AE [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 03 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 03 00 77 4E 00 90 00 39 [17:13:19]RAPDU: 90 00 [17:13:19]wFMCommunicate OK [17:13:19]wFMCommunicate request_size=34 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 20 02 00 35 04 06 00 AF CB 13 E5 52 04 [17:13:19]Write to MH i2c: E2 25 00 78 4E 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 20 02 00 35 04 06 00 AF CB 13 E5 52 04 00 00 AF [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 03 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 03 00 78 4E 00 90 00 3A [17:13:19]RAPDU: 90 00 [17:13:19]wFMCommunicate OK [17:13:19]wFMCommunicate request_size=4 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 0D 03 02 [17:13:19]Write to MH i2c: E2 08 00 79 4E 80 0D 03 02 00 00 00 00 42 [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 0B 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 0B 00 79 4E 00 14 15 B5 1E B0 EA 40 02 90 00 1B [17:13:19]RAPDU: 14 15 B5 1E B0 EA 40 02 90 00 [17:13:19]wFMCommunicate OK [17:13:19]SAM_PROTO_SignData done [17:13:19]FM_MakeSignedData done [17:13:19]CreateOFDProtocolMessage [17:13:19]wFMCommunicate request_size=4 [17:13:19]MH_SAM_APDU [17:13:19]CAPDU: 80 11 00 00 [17:13:19]Write to MH i2c: E2 08 00 7A 4E 80 11 00 00 00 00 00 00 42 [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:19]Read from MH i2c: E2 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 17 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: E2 17 00 7A 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9D [17:13:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:13:19]wFMCommunicate OK [17:13:19]CreateOFDProtocolMessage done [17:13:19]OFDSenderStorePacket 139452 [17:13:19]StoreOFDPacket docnum=139452 [17:13:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 97 90 1F 01 79 71 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 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 34 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 20 02 00 35 04 06 00 AF CB 13 E5 52 04 14 15 B5 1E B0 EA 40 02 [17:13:19]CheckFolder [17:13:19]dirname=/storage/ofd_packets [17:13:19]CheckFolder done [17:13:19]ProducePacketName [17:13:19]name=ofd_packets/00139452 [17:13:19]NVStorageSaveData ofd_packets/00139452 [17:13:19]File name is /storage/ofd_packets/00139452 [17:13:19]Write 325 bytes [17:13:19]NVStorageSaveData done [17:13:19]OFDSenderStorePacket done [17:13:19]KKMCreateOFDPacket done [17:13:19]NVStorageSaveData kkm_last_timestamp [17:13:19]File name is /storage/kkm_last_timestamp [17:13:19]Write 4 bytes [17:13:19]NVStorageSaveData done [17:13:19]ExternCall_PrintAddStr [17:13:19]wPrintStart [17:13:19]Write to MH i2c: 01 00 00 7B 4E C9 [17:13:19]OFD Sender: Processing packet 139452 [packets to send 34, broken 33] [17:13:19]ProducePacketName [17:13:19]name=ofd_packets/00139452 [17:13:19]OFD Sender: To server: pG, [17:13:19]CommunicateWithHost lk.salyk.kg:30040 [17:13:19]ConnectInit lk.salyk.kg [17:13:19]Write i2c OK [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: 01 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: 01 07 00 [17:13:19]MH_I2C_Read... [17:13:19]Read from MH i2c: 01 07 00 7B 4E 00 00 00 00 00 FF 0F DE [17:13:19]RasterBufferAndPrint [17:13:19]line Счет N : (3)335345 [17:13:19]line ИНН: 02508201610067 [17:13:19]line Контрольно-Кассовый Чек [17:13:19]line ПРОДАЖА [17:13:19]line Товар: 4870112003925 [17:13:19]line Конд ULKER-Albeni 40gr (6*24) [17:13:19]line 1.000 * 44.00 [17:13:19]line = 44.00 [17:13:19]line НДС 12% НСП 1% [17:13:19]line > о реализуемом товаре [17:13:19]line ИТОГО: 44.00 [17:13:19]line НСП 1% : 0.39 [17:13:19]line НДС 12% : 4.67 [17:13:19]line Наличными: 44.00 [17:13:19]line Безнал.: 0.00 [17:13:19]line Место: АЗС № 101 "Партнер Нефть" [17:13:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:13:19]line СНО: Общий режим [17:13:19]line Чек 136 30.10.2024 17:13 [17:13:19]line Смена: 556 ФФД: 1.0 [17:13:19]line ЗНМ: 0300000081 [17:13:19]line РНМ: 0000000000091631 [17:13:19]line Версия ККМ: 001 [17:13:19]line ФМ: 0000000000874669 [17:13:19]line ФД: 139452 [17:13:19]line ФПД: 193286747017732 [17:13:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171324&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139452&fm=193286747017732&tin=02508201610067®Number=0000000000091631&sum=4400 [17:13:19]line 0 [17:13:19]written 0, free lines is 4095 [17:13:20]Connected sock=10 [17:13:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 97 90 1F 01 79 71 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 11 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 27 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D3 01 00 00 00 00 07 04 06 00 30 11 00 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 34 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 20 02 00 35 04 06 00 AF CB 13 E5 52 04 14 15 B5 1E B0 EA 40 02 [17:13:20]Write to MH i2c: 01 00 00 A3 4E F1 [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: 01 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: 01 07 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: 01 07 00 A3 4E 00 00 00 00 00 26 0D 2B [17:13:20]RasterBufferAndPrint [17:13:20]line [17:13:20]line [17:13:20]line [17:13:20]line [17:13:20]line [17:13:20]written 0, free lines is 3375 [17:13:20]MH_Cut [17:13:20]Write to MH i2c: D1 01 00 AA 4E 01 CA [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: D1 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: D1 01 00 [17:13:20]MH_I2C_Read... [17:13:20]Read from MH i2c: D1 01 00 AA 4E 00 C9 [17:13:20]Write to MH i2c: 01 00 00 AB 4E F9 [17:13:20]Write i2c OK [17:13:20]MH_I2C_Read... [17:13:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 56 70 47 00 95 FF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BC 20 02 00 F4 03 04 00 E4 14 22 67 B6 04 01 00 00 F9 AB 84 AF 9F 87 47 30 [17:13:20]CommunicateWithHost err = 0 [17:13:20]CheckOFDResponse [17:13:20]1017 (14) - 77093643461234 [17:13:20]1041 (16) - 0000000000874669 [17:13:20]1040 (4) - 139452 [17:13:20]1012 (4) - 30.10.2024 11:13 [17:13:20]1206 (1) - 0 [17:13:20]OFD Sender: Remove packet 139452 [17:13:20]ProducePacketName [17:13:20]name=ofd_packets/00139452 [17:13:20]NVStorageDeleteData [17:13:21]OFD Sender: No OFD packet to send [17:13:21]*** Cut start [17:13:21]*** Partial cut [17:13:21]*** CUTSNS_PIN = 1 [17:13:21]*** CUTSNS_PIN = 0 [17:13:21]*** Brake cut motor [17:13:21]Read from MH i2c: 01 [17:13:21]MH_I2C_Read... [17:13:21]*** Stop cut motor [17:13:21]*** Cut end [17:13:21]Read from MH i2c: 01 07 00 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: 01 07 00 AB 4E 00 00 00 00 00 FF 0F 0E [17:13:21]process_action close_receipt done [17:13:21]requested_data is exist [17:13:21]produce_requested_data [17:13:21]requested_item fm.sn is exist - process it [17:13:21]wFMCommunicate request_size=4 [17:13:21]MH_SAM_APDU [17:13:21]CAPDU: 80 11 00 00 [17:13:21]Write to MH i2c: E2 08 00 AC 4E 80 11 00 00 00 00 00 00 74 [17:13:21]Write i2c OK [17:13:21]MH_I2C_Read... [17:13:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:13:21]Read from MH i2c: E2 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 17 00 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 17 00 AC 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CF [17:13:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:13:21]wFMCommunicate OK [17:13:21]requested_item fd.num is exist - process it [17:13:21]SAM_PROTO_GetFieldsCounters [17:13:21]wFMCommunicate request_size=4 [17:13:21]MH_SAM_APDU [17:13:21]CAPDU: 80 13 00 00 [17:13:21]Write to MH i2c: E2 08 00 AD 4E 80 13 00 00 00 00 00 00 77 [17:13:21]Write i2c OK [17:13:21]MH_I2C_Read... [17:13:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:13:21]Read from MH i2c: E2 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 62 00 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 62 00 AD 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BC 20 02 00 0E 04 04 00 2C 02 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 3F [17:13:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BC 20 02 00 0E 04 04 00 2C 02 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 [17:13:21]wFMCommunicate OK [17:13:21]SAM_PROTO_GetFieldsCounters done [17:13:21]requested_item shift.num is exist - process it [17:13:21]requested_item shift.opened is exist - process it [17:13:21]req_shift_opened [17:13:21]FM_GetShiftState [17:13:21]SAM_PROTO_GetShiftState [17:13:21]wFMCommunicate request_size=4 [17:13:21]MH_SAM_APDU [17:13:21]CAPDU: 80 13 01 00 [17:13:21]Write to MH i2c: E2 08 00 AE 4E 80 13 01 00 00 00 00 00 79 [17:13:21]Write i2c OK [17:13:21]MH_I2C_Read... [17:13:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:13:21]Read from MH i2c: E2 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 0E 00 [17:13:21]MH_I2C_Read... [17:13:21]Read from MH i2c: E2 0E 00 AE 4E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 09 [17:13:21]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:13:21]wFMCommunicate OK [17:13:21]SAM_PROTO_GetShiftState done [17:13:21]FM_GetShiftState done [17:13:21]req_shift_opened done [17:13:21]requested_item shift.open_date is exist - process it [17:13:21]req_shift_open_date [17:13:21]req_shift_open_date done [17:13:21]produce_requested_data done [17:13:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139452,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:13:21]process_action_free close_receipt [17:13:21]json_value_free [17:13:21]json_value_free done [17:13:21]process_json_proto returns [17:13:21]Send response to host [17:13:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139452,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:13:21]free response buf [17:13:21]execute_script done [17:13:21]execute_script returns [17:13:21]free content buf [17:13:21]Sock 8.Close socket [17:13:21]Sock 8.Thread stoped [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:14:58]accept exits with 9 [17:14:58]New connection [17:14:58]New thread 3067284836 created [17:14:58]Thread 3067141476 joined [17:14:58]Waiting for new connection... [17:14:58] Sock 9.Parse request [17:14:58]Sock 9.Check first char [17:14:58]Sock 9.First char is OK [17:14:58]request: POST /json_proto HTTP/1.0 [17:14:58]Method: POST [17:14:58]URL: /json_proto [17:14:58]Method is POST - this is cgi request [17:14:58]url: /json_proto [17:14:58]query_string will be loaded in cgi processing [17:14:58]execute_cgi json_proto POST (null) [17:14:58]execute_cgi path=json_proto method=POST [17:14:58]POST find Content-Length [17:14:58]Host: 172.17.50.196:8080 [17:14:58]Content-Length: 770 [17:14:58]Content-Type: application/json [17:14:58] [17:14:58]POST finish read [17:14:58]Found Content-Length = 770 [17:14:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:58]execute_script... [17:14: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)1094668", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 29.900, "sum" : 2000.31, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.31 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:14:58]POST & json_proto [17:14:58]process_json_proto [17:14:58]json parsed OK: [17:14:58]protocol is kg_v1.0 [17:14:58]action value=close_receipt [17:14:58]process_action close_receipt [17:14:58]cmd_close_receipt [17:14:58]MH_GetDate [17:14:58]Write to MH i2c: F0 00 00 AF 4E EC [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: F0 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: F0 09 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: F0 09 00 AF 4E 00 98 69 22 67 72 0D 1C 67 81 [17:14:58]GetLastDocTimeStamp 1730308404 [17:14:58]current date 1730308504 [17:14:58]FM_GetShiftState [17:14:58]SAM_PROTO_GetShiftState [17:14:58]wFMCommunicate request_size=4 [17:14:58]MH_SAM_APDU [17:14:58]CAPDU: 80 13 01 00 [17:14:58]Write to MH i2c: E2 08 00 B0 4E 80 13 01 00 00 00 00 00 7B [17:14:58]Write i2c OK [17:14:58]MH_I2C_Read... [17:14:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:14:58]Read from MH i2c: E2 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 0E 00 [17:14:58]MH_I2C_Read... [17:14:58]Read from MH i2c: E2 0E 00 B0 4E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 0B [17:14:58]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:14:58]wFMCommunicate OK [17:14:58]SAM_PROTO_GetShiftState done [17:14:58]FM_GetShiftState done [17:14:58]opened in 1730246278 [17:14:58]opened+sec_in_day 1730332678 [17:14:58]quantity*price = 200031 [17:14:58]sum+1 = 200032 [17:14:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.31 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.31 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 137 30.10.2024 17:15 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139453 ФПД: 232896098182238 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171504&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139453&fm=232896098182238&tin=02508201610067®Number=0000000000091631&sum=200031 [17:14:59]StoreToDocumentArchive [17:14:59]shift 556 fd 139453 [17:14:59]save to /storage/0556/doc_00139453 [17:14:59]save last doc name /storage/0556/doc_00139453 to /storage/kkm_last_doc_name [17:14:59]save OK [17:14:59]Clear old archive folders... [17:14:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:14:59]tlvbuf is 011742A0 [17:14:59]SAM_PROTO_ClearQueue [17:14:59]wFMCommunicate request_size=4 [17:14:59]MH_SAM_APDU [17:14:59]CAPDU: 80 09 00 00 [17:14:59]Write to MH i2c: E2 08 00 BD 4E 80 09 00 00 00 00 00 00 7D [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:14:59]Read from MH i2c: E2 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 03 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 03 00 BD 4E 00 90 00 7F [17:14:59]RAPDU: 90 00 [17:14:59]wFMCommunicate OK [17:14:59]SAM_PROTO_ClearQueue done [17:14:59]KKMCreateOFDPacket [17:14:59]OFDProtocolAddRootSTLVToBuf [17:14:59]FM_MakeSignedData [17:14:59]FM_MakeSignedData [17:14:59]SAM_PROTO_SignData [17:14:59]wFMCommunicate request_size=4 [17:14:59]MH_SAM_APDU [17:14:59]CAPDU: 80 0D 01 02 [17:14:59]Write to MH i2c: E2 08 00 BE 4E 80 0D 01 02 00 00 00 00 85 [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:14:59]Read from MH i2c: E2 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 03 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 03 00 BE 4E 00 90 00 80 [17:14:59]RAPDU: 90 00 [17:14:59]wFMCommunicate OK [17:14:59]wFMCommunicate request_size=255 [17:14:59]MH_SAM_APDU [17:14:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 98 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 20 02 00 35 04 06 00 D3 [17:14:59]Write to MH i2c: E2 02 01 BF 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 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 98 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 20 02 00 35 04 06 00 D3 00 00 87 [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:59]Read from MH i2c: E2 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 03 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 03 00 BF 4E 00 90 00 81 [17:14:59]RAPDU: 90 00 [17:14:59]wFMCommunicate OK [17:14:59]wFMCommunicate request_size=10 [17:14:59]MH_SAM_APDU [17:14:59]CAPDU: 80 0D 02 02 05 D1 59 33 A4 5E [17:14:59]Write to MH i2c: E2 0D 00 C0 4E 80 0D 02 02 05 00 D1 59 33 A4 5E 00 00 F1 [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:14:59]Read from MH i2c: E2 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 03 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 03 00 C0 4E 00 90 00 82 [17:14:59]RAPDU: 90 00 [17:14:59]wFMCommunicate OK [17:14:59]wFMCommunicate request_size=4 [17:14:59]MH_SAM_APDU [17:14:59]CAPDU: 80 0D 03 02 [17:14:59]Write to MH i2c: E2 08 00 C1 4E 80 0D 03 02 00 00 00 00 8A [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:14:59]Read from MH i2c: E2 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 0B 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 0B 00 C1 4E 00 FC 01 19 DD 9F 3B 67 6C 90 00 2B [17:14:59]RAPDU: FC 01 19 DD 9F 3B 67 6C 90 00 [17:14:59]wFMCommunicate OK [17:14:59]SAM_PROTO_SignData done [17:14:59]FM_MakeSignedData done [17:14:59]CreateOFDProtocolMessage [17:14:59]wFMCommunicate request_size=4 [17:14:59]MH_SAM_APDU [17:14:59]CAPDU: 80 11 00 00 [17:14:59]Write to MH i2c: E2 08 00 C2 4E 80 11 00 00 00 00 00 00 8A [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:14:59]Read from MH i2c: E2 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 17 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: E2 17 00 C2 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E5 [17:14:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:14:59]wFMCommunicate OK [17:14:59]CreateOFDProtocolMessage done [17:14:59]OFDSenderStorePacket 139453 [17:14:59]StoreOFDPacket docnum=139453 [17:14:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 91 14 07 01 09 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 98 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 20 02 00 35 04 06 00 D3 D1 59 33 A4 5E FC 01 19 DD 9F 3B 67 6C [17:14:59]CheckFolder [17:14:59]dirname=/storage/ofd_packets [17:14:59]CheckFolder done [17:14:59]ProducePacketName [17:14:59]name=ofd_packets/00139453 [17:14:59]NVStorageSaveData ofd_packets/00139453 [17:14:59]File name is /storage/ofd_packets/00139453 [17:14:59]Write 301 bytes [17:14:59]NVStorageSaveData done [17:14:59]OFDSenderStorePacket done [17:14:59]KKMCreateOFDPacket done [17:14:59]NVStorageSaveData kkm_last_timestamp [17:14:59]File name is /storage/kkm_last_timestamp [17:14:59]Write 4 bytes [17:14:59]NVStorageSaveData done [17:14:59]ExternCall_PrintAddStr [17:14:59]wPrintStart [17:14:59]Write to MH i2c: 01 00 00 C3 4E 11 [17:14:59]Write i2c OK [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: 01 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: 01 07 00 [17:14:59]MH_I2C_Read... [17:14:59]Read from MH i2c: 01 07 00 C3 4E 00 00 00 00 00 FF 0F 26 [17:14:59]RasterBufferAndPrint [17:14:59]line Счет N : (1)1094668 [17:14:59]line ИНН: 02508201610067 [17:14:59]line Контрольно-Кассовый Чек [17:14:59]line ПРОДАЖА [17:14:59]line ТРК (МРК, ГНК) : 43 [17:14:59]line Товар: 2710124130 [17:14:59]line Аи-92-К-2 [17:14:59]line 29.900 * 66.90 [17:14:59]line = 2000.31 [17:14:59]line НДС 12% НСП 1% [17:14:59]line > о реализуемом товаре [17:14:59]line ИТОГО: 2000.31 [17:14:59]line НСП 1% : 17.70 [17:14:59]line НДС 12% : 212.42 [17:14:59]line Наличными: 0.00 [17:14:59]line Безнал.: 2000.31 [17:14:59]line Место: АЗС № 101 "Партнер Нефть" [17:14:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:14:59]line СНО: Общий режим [17:14:59]line Чек 137 30.10.2024 17:15 [17:14:59]line Смена: 556 ФФД: 1.0 [17:14:59]line ЗНМ: 0300000081 [17:14:59]line РНМ: 0000000000091631 [17:14:59]line Версия ККМ: 001 [17:14:59]line Платежная система: Mbank [17:14:59]line ФМ: 0000000000874669 [17:14:59]line ФД: 139453 [17:14:59]line ФПД: 232896098182238 [17:14:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171504&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139453&fm=232896098182238&tin=02508201610067®Number=0000000000091631&sum=200031 [17:14:59]written 0, free lines is 4095 [17:14:59]OFD Sender: Processing packet 139453 [packets to send 34, broken 33] [17:14:59]ProducePacketName [17:14:59]name=ofd_packets/00139453 [17:14:59]OFD Sender: To server: pG, [17:14:59]CommunicateWithHost lk.salyk.kg:30040 [17:14:59]ConnectInit lk.salyk.kg [17:15:00]Connected sock=10 [17:15:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 91 14 07 01 09 F6 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 5F 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5F 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 89 00 00 00 F4 03 04 00 98 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 20 02 00 35 04 06 00 D3 D1 59 33 A4 5E FC 01 19 DD 9F 3B 67 6C [17:15:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 3B 39 47 00 28 BF A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BD 20 02 00 F4 03 04 00 48 15 22 67 B6 04 01 00 00 7D 2C 86 08 E4 07 D7 53 [17:15:00]CommunicateWithHost err = 0 [17:15:00]CheckOFDResponse [17:15:00]1017 (14) - 77093643461234 [17:15:00]1041 (16) - 0000000000874669 [17:15:00]1040 (4) - 139453 [17:15:00]1012 (4) - 30.10.2024 11:15 [17:15:00]1206 (1) - 0 [17:15:00]OFD Sender: Remove packet 139453 [17:15:00]ProducePacketName [17:15:00]name=ofd_packets/00139453 [17:15:00]NVStorageDeleteData [17:15:00]Write to MH i2c: 01 00 00 EC 4E 3A [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 07 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: 01 07 00 EC 4E 00 00 00 00 00 24 0D 72 [17:15:00]RasterBufferAndPrint [17:15:00]line [17:15:00]line [17:15:00]line [17:15:00]line [17:15:00]line [17:15:00]written 0, free lines is 3371 [17:15:00]MH_Cut [17:15:00]Write to MH i2c: D1 01 00 F3 4E 01 13 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: D1 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: D1 01 00 [17:15:00]MH_I2C_Read... [17:15:00]Read from MH i2c: D1 01 00 F3 4E 00 12 [17:15:00]Write to MH i2c: 01 00 00 F4 4E 42 [17:15:00]Write i2c OK [17:15:00]MH_I2C_Read... [17:15:00]OFD Sender: No OFD packet to send [17:15:00]*** Cut start [17:15:00]*** Partial cut [17:15:00]*** CUTSNS_PIN = 1 [17:15:01]*** CUTSNS_PIN = 0 [17:15:01]*** Brake cut motor [17:15:01]Read from MH i2c: 01 [17:15:01]MH_I2C_Read... [17:15:01]*** Stop cut motor [17:15:01]*** Cut end [17:15:01]Read from MH i2c: 01 07 00 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: 01 07 00 F4 4E 00 00 00 00 00 FF 0F 57 [17:15:01]process_action close_receipt done [17:15:01]requested_data is exist [17:15:01]produce_requested_data [17:15:01]requested_item fm.sn is exist - process it [17:15:01]wFMCommunicate request_size=4 [17:15:01]MH_SAM_APDU [17:15:01]CAPDU: 80 11 00 00 [17:15:01]Write to MH i2c: E2 08 00 F5 4E 80 11 00 00 00 00 00 00 BD [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:15:01]Read from MH i2c: E2 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: E2 17 00 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: E2 17 00 F5 4E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [17:15:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:15:01]wFMCommunicate OK [17:15:01]requested_item fd.num is exist - process it [17:15:01]SAM_PROTO_GetFieldsCounters [17:15:01]wFMCommunicate request_size=4 [17:15:01]MH_SAM_APDU [17:15:01]CAPDU: 80 13 00 00 [17:15:01]Write to MH i2c: E2 08 00 F6 4E 80 13 00 00 00 00 00 00 C0 [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:15:01]Read from MH i2c: E2 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: E2 62 00 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: E2 62 00 F6 4E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BD 20 02 00 0E 04 04 00 2C 02 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 8C [17:15:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BD 20 02 00 0E 04 04 00 2C 02 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 [17:15:01]wFMCommunicate OK [17:15:01]SAM_PROTO_GetFieldsCounters done [17:15:01]requested_item shift.num is exist - process it [17:15:01]requested_item shift.opened is exist - process it [17:15:01]req_shift_opened [17:15:01]FM_GetShiftState [17:15:01]SAM_PROTO_GetShiftState [17:15:01]wFMCommunicate request_size=4 [17:15:01]MH_SAM_APDU [17:15:01]CAPDU: 80 13 01 00 [17:15:01]Write to MH i2c: E2 08 00 F7 4E 80 13 01 00 00 00 00 00 C2 [17:15:01]Write i2c OK [17:15:01]MH_I2C_Read... [17:15:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:15:01]Read from MH i2c: E2 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: E2 0E 00 [17:15:01]MH_I2C_Read... [17:15:01]Read from MH i2c: E2 0E 00 F7 4E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 52 [17:15:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:15:01]wFMCommunicate OK [17:15:01]SAM_PROTO_GetShiftState done [17:15:01]FM_GetShiftState done [17:15:01]req_shift_opened done [17:15:01]requested_item shift.open_date is exist - process it [17:15:01]req_shift_open_date [17:15:01]req_shift_open_date done [17:15:01]produce_requested_data done [17:15:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139453,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:15:01]process_action_free close_receipt [17:15:01]json_value_free [17:15:01]json_value_free done [17:15:01]process_json_proto returns [17:15:01]Send response to host [17:15:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139453,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:15:01]free response buf [17:15:01]execute_script done [17:15:01]execute_script returns [17:15:01]free content buf [17:15:01]Sock 9.Close socket [17:15:01]Sock 9.Thread stoped [17:15:05]OFD Sender: No OFD packet to send [17:15:10]OFD Sender: No OFD packet to send [17:15:15]OFD Sender: No OFD packet to send [17:15:20]OFD Sender: No OFD packet to send [17:15:25]OFD Sender: No OFD packet to send [17:15:30]OFD Sender: No OFD packet to send [17:15:35]OFD Sender: No OFD packet to send [17:15:40]OFD Sender: No OFD packet to send [17:15:45]OFD Sender: No OFD packet to send [17:15:50]OFD Sender: No OFD packet to send [17:15:55]OFD Sender: No OFD packet to send [17:16:00]OFD Sender: No OFD packet to send [17:16:05]OFD Sender: No OFD packet to send [17:16:10]OFD Sender: No OFD packet to send [17:16:15]OFD Sender: No OFD packet to send [17:16:20]OFD Sender: No OFD packet to send [17:16:25]OFD Sender: No OFD packet to send [17:16:30]OFD Sender: No OFD packet to send [17:16:35]OFD Sender: No OFD packet to send [17:16:39]accept exits with 8 [17:16:39]New connection [17:16:39]New thread 3067141476 created [17:16:39]Thread 3067284836 joined [17:16:39]Waiting for new connection... [17:16:39] Sock 8.Parse request [17:16:39]Sock 8.Check first char [17:16:39]Sock 8.First char is OK [17:16:39]request: POST /json_proto HTTP/1.0 [17:16:39]Method: POST [17:16:39]URL: /json_proto [17:16:39]Method is POST - this is cgi request [17:16:39]url: /json_proto [17:16:39]query_string will be loaded in cgi processing [17:16:39]execute_cgi json_proto POST (null) [17:16:39]execute_cgi path=json_proto method=POST [17:16:39]POST find Content-Length [17:16:39]Host: 172.17.50.196:8080 [17:16:39]Content-Length: 913 [17:16:39]Content-Type: application/json [17:16:39] [17:16:39]POST finish read [17:16:39]Found Content-Length = 913 [17:16:39]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335346", "tax_sys" : 0, "items" : [ { "code": "46254948", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u0444\u0440\u0443\u043A\u0442\u044B \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:39]execute_script... [17:16: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 : (3)335346", "tax_sys" : 0, "items" : [ { "code": "46254948", "name": "\u0414\u0440\u0430\u0436\u0435 mentos \u0436\u0435\u0432 \u0444\u0440\u0443\u043A\u0442\u044B \u0440\u043E\u043B\u043B 37\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40052403", "name": "Nestle KIT-KAT \u043F\u043B\u043E\u0441\u043A\u0438\u0439 41,5\u0433", "price" : 90.00, "quantity" : 1.000, "sum" : 90.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 165.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:16:39]POST & json_proto [17:16:39]process_json_proto [17:16:39]json parsed OK: [17:16:39]protocol is kg_v1.0 [17:16:39]action value=close_receipt [17:16:39]process_action close_receipt [17:16:39]cmd_close_receipt [17:16:39]MH_GetDate [17:16:39]Write to MH i2c: F0 00 00 F8 4E 35 [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: F0 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: F0 09 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: F0 09 00 F8 4E 00 FD 69 22 67 72 0D 1C 67 2F [17:16:39]GetLastDocTimeStamp 1730308504 [17:16:39]current date 1730308605 [17:16:39]FM_GetShiftState [17:16:39]SAM_PROTO_GetShiftState [17:16:39]wFMCommunicate request_size=4 [17:16:39]MH_SAM_APDU [17:16:39]CAPDU: 80 13 01 00 [17:16:39]Write to MH i2c: E2 08 00 F9 4E 80 13 01 00 00 00 00 00 C4 [17:16:39]Write i2c OK [17:16:39]MH_I2C_Read... [17:16:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:39]Read from MH i2c: E2 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 0E 00 [17:16:39]MH_I2C_Read... [17:16:39]Read from MH i2c: E2 0E 00 F9 4E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 54 [17:16:39]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:16:39]wFMCommunicate OK [17:16:39]SAM_PROTO_GetShiftState done [17:16:39]FM_GetShiftState done [17:16:39]opened in 1730246278 [17:16:39]opened+sec_in_day 1730332678 [17:16:39]quantity*price = 7500 [17:16:39]sum+1 = 7501 [17:16:39]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 40052403 Nestle KIT-KAT плоский 41,5г 1.000 * 90.00 = 90.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 165.00 НСП 1% : 1.46 НДС 12% : 17.52 Наличными: 165.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 138 30.10.2024 17:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139454 ФПД: 121670007485042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171645&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139454&fm=121670007485042&tin=02508201610067®Number=0000000000091631&sum=16500 0 [17:16:40]StoreToDocumentArchive [17:16:40]shift 556 fd 139454 [17:16:40]save to /storage/0556/doc_00139454 [17:16:40]save last doc name /storage/0556/doc_00139454 to /storage/kkm_last_doc_name [17:16:40]save OK [17:16:40]Clear old archive folders... [17:16:40]ProcessDocumentItem done err = 0, tmpTLVsize=391 [17:16:40]tlvbuf is 0110A1F0 [17:16:40]SAM_PROTO_ClearQueue [17:16:40]wFMCommunicate request_size=4 [17:16:40]MH_SAM_APDU [17:16:40]CAPDU: 80 09 00 00 [17:16:40]Write to MH i2c: E2 08 00 06 4F 80 09 00 00 00 00 00 00 C7 [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:16:40]Read from MH i2c: E2 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 06 4F 00 90 00 C9 [17:16:40]RAPDU: 90 00 [17:16:40]wFMCommunicate OK [17:16:40]SAM_PROTO_ClearQueue done [17:16:40]KKMCreateOFDPacket [17:16:40]OFDProtocolAddRootSTLVToBuf [17:16:40]FM_MakeSignedData [17:16:40]FM_MakeSignedData [17:16:40]SAM_PROTO_SignData [17:16:40]wFMCommunicate request_size=4 [17:16:40]MH_SAM_APDU [17:16:40]CAPDU: 80 0D 01 02 [17:16:40]Write to MH i2c: E2 08 00 07 4F 80 0D 01 02 00 00 00 00 CF [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:16:40]Read from MH i2c: E2 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 07 4F 00 90 00 CA [17:16:40]RAPDU: 90 00 [17:16:40]wFMCommunicate OK [17:16:40]wFMCommunicate request_size=255 [17:16:40]MH_SAM_APDU [17:16:40]CAPDU: 80 0D 02 02 FA 03 00 87 01 1E 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 [17:16:40]Write to MH i2c: E2 02 01 08 4F 80 0D 02 02 FA 00 03 00 87 01 1E 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 00 00 64 [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:40]OFD Sender: No OFD packet to send [17:16:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:40]Read from MH i2c: E2 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 [17:16:40]MH_I2C_Read... [17:16:40]Read from MH i2c: E2 03 00 08 4F 00 90 00 CB [17:16:40]RAPDU: 90 00 [17:16:40]wFMCommunicate OK [17:16:40]wFMCommunicate request_size=150 [17:16:40]MH_SAM_APDU [17:16:40]CAPDU: 80 0D 02 02 91 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 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 FD 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 20 02 00 35 04 06 00 6E A8 81 93 72 72 [17:16:40]Write to MH i2c: E2 99 00 09 4F 80 0D 02 02 91 00 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 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 FD 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 20 02 00 35 04 06 00 6E A8 81 93 72 72 00 00 DF [17:16:40]Write i2c OK [17:16:40]MH_I2C_Read... [17:16:41]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:16:41]Read from MH i2c: E2 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 03 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 03 00 09 4F 00 90 00 CC [17:16:41]RAPDU: 90 00 [17:16:41]wFMCommunicate OK [17:16:41]wFMCommunicate request_size=4 [17:16:41]MH_SAM_APDU [17:16:41]CAPDU: 80 0D 03 02 [17:16:41]Write to MH i2c: E2 08 00 0A 4F 80 0D 03 02 00 00 00 00 D4 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:16:41]Read from MH i2c: E2 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 0B 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 0B 00 0A 4F 00 56 EB DB D8 BC 79 36 05 90 00 39 [17:16:41]RAPDU: 56 EB DB D8 BC 79 36 05 90 00 [17:16:41]wFMCommunicate OK [17:16:41]SAM_PROTO_SignData done [17:16:41]FM_MakeSignedData done [17:16:41]CreateOFDProtocolMessage [17:16:41]wFMCommunicate request_size=4 [17:16:41]MH_SAM_APDU [17:16:41]CAPDU: 80 11 00 00 [17:16:41]Write to MH i2c: E2 08 00 0B 4F 80 11 00 00 00 00 00 00 D4 [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:41]Read from MH i2c: E2 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 17 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: E2 17 00 0B 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2F [17:16:41]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:16:41]wFMCommunicate OK [17:16:41]CreateOFDProtocolMessage done [17:16:41]OFDSenderStorePacket 139454 [17:16:41]StoreOFDPacket docnum=139454 [17:16:41]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9B 01 00 00 05 03 93 01 8F 1A 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 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 FD 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 20 02 00 35 04 06 00 6E A8 81 93 72 72 56 EB DB D8 BC 79 36 05 [17:16:41]CheckFolder [17:16:41]dirname=/storage/ofd_packets [17:16:41]CheckFolder done [17:16:41]ProducePacketName [17:16:41]name=ofd_packets/00139454 [17:16:41]NVStorageSaveData ofd_packets/00139454 [17:16:41]File name is /storage/ofd_packets/00139454 [17:16:41]Write 441 bytes [17:16:41]NVStorageSaveData done [17:16:41]OFDSenderStorePacket done [17:16:41]KKMCreateOFDPacket done [17:16:41]NVStorageSaveData kkm_last_timestamp [17:16:41]File name is /storage/kkm_last_timestamp [17:16:41]Write 4 bytes [17:16:41]NVStorageSaveData done [17:16:41]ExternCall_PrintAddStr [17:16:41]wPrintStart [17:16:41]Write to MH i2c: 01 00 00 0C 4F 5B [17:16:41]Write i2c OK [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 07 00 [17:16:41]MH_I2C_Read... [17:16:41]Read from MH i2c: 01 07 00 0C 4F 00 00 00 00 00 FF 0F 70 [17:16:41]RasterBufferAndPrint [17:16:41]line Счет N : (3)335346 [17:16:41]line ИНН: 02508201610067 [17:16:41]line Контрольно-Кассовый Чек [17:16:41]line ПРОДАЖА [17:16:41]line Товар: 46254948 [17:16:41]line Драже mentos жев фрукты ролл 37г [17:16:41]line 1.000 * 75.00 [17:16:41]line = 75.00 [17:16:41]line НДС 12% НСП 1% [17:16:41]line > о реализуемом товаре [17:16:41]line Товар: 40052403 [17:16:41]line Nestle KIT-KAT плоский 41,5г [17:16:41]line 1.000 * 90.00 [17:16:41]line = 90.00 [17:16:41]line НДС 12% НСП 1% [17:16:41]line > о реализуемом товаре [17:16:41]line ИТОГО: 165.00 [17:16:41]line НСП 1% : 1.46 [17:16:41]line НДС 12% : 17.52 [17:16:41]line Наличными: 165.00 [17:16:41]line Безнал.: 0.00 [17:16:41]line Место: АЗС № 101 "Партнер Нефть" [17:16:41]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:16:41]line СНО: Общий режим [17:16:41]line Чек 138 30.10.2024 17:16 [17:16:41]line Смена: 556 ФФД: 1.0 [17:16:41]line ЗНМ: 0300000081 [17:16:41]line РНМ: 0000000000091631 [17:16:41]line Версия ККМ: 001 [17:16:41]line ФМ: 0000000000874669 [17:16:41]line ФД: 139454 [17:16:41]line ФПД: 121670007485042 [17:16:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171645&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139454&fm=121670007485042&tin=02508201610067®Number=0000000000091631&sum=16500 [17:16:41]OFD Sender: Processing packet 139454 [packets to send 34, broken 33] [17:16:41]ProducePacketName [17:16:41]name=ofd_packets/00139454 [17:16:41]OFD Sender: To server: pG, [17:16:41]CommunicateWithHost lk.salyk.kg:30040 [17:16:41]ConnectInit lk.salyk.kg [17:16:41]line 0 [17:16:41]written 0, free lines is 4095 [17:16:42]Write to MH i2c: 01 00 00 3B 4F 8A [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: 01 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: 01 07 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: 01 07 00 3B 4F 00 00 00 00 00 AC 0C 49 [17:16:42]RasterBufferAndPrint [17:16:42]line [17:16:42]line [17:16:42]line [17:16:42]line [17:16:42]line [17:16:42]written 0, free lines is 3249 [17:16:42]MH_Cut [17:16:42]Write to MH i2c: D1 01 00 42 4F 01 63 [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: D1 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: D1 01 00 [17:16:42]MH_I2C_Read... [17:16:42]Read from MH i2c: D1 01 00 42 4F 00 62 [17:16:42]Write to MH i2c: 01 00 00 43 4F 92 [17:16:42]Write i2c OK [17:16:42]MH_I2C_Read... [17:16:42]*** Cut start [17:16:42]*** Partial cut [17:16:42]*** CUTSNS_PIN = 1 [17:16:42]*** CUTSNS_PIN = 0 [17:16:43]*** Brake cut motor [17:16:43]Read from MH i2c: 01 [17:16:43]MH_I2C_Read... [17:16:43]*** Stop cut motor [17:16:43]*** Cut end [17:16:43]Read from MH i2c: 01 07 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: 01 07 00 43 4F 00 00 00 00 00 FF 0F A7 [17:16:43]process_action close_receipt done [17:16:43]requested_data is exist [17:16:43]produce_requested_data [17:16:43]requested_item fm.sn is exist - process it [17:16:43]wFMCommunicate request_size=4 [17:16:43]MH_SAM_APDU [17:16:43]CAPDU: 80 11 00 00 [17:16:43]Write to MH i2c: E2 08 00 44 4F 80 11 00 00 00 00 00 00 0D [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:16:43]Read from MH i2c: E2 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 17 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 17 00 44 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 68 [17:16:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:16:43]wFMCommunicate OK [17:16:43]requested_item fd.num is exist - process it [17:16:43]SAM_PROTO_GetFieldsCounters [17:16:43]wFMCommunicate request_size=4 [17:16:43]MH_SAM_APDU [17:16:43]CAPDU: 80 13 00 00 [17:16:43]Write to MH i2c: E2 08 00 45 4F 80 13 00 00 00 00 00 00 10 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:16:43]Read from MH i2c: E2 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 62 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 62 00 45 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BE 20 02 00 0E 04 04 00 2C 02 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 E0 [17:16:43]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BE 20 02 00 0E 04 04 00 2C 02 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 [17:16:43]wFMCommunicate OK [17:16:43]SAM_PROTO_GetFieldsCounters done [17:16:43]requested_item shift.num is exist - process it [17:16:43]requested_item shift.opened is exist - process it [17:16:43]req_shift_opened [17:16:43]FM_GetShiftState [17:16:43]SAM_PROTO_GetShiftState [17:16:43]wFMCommunicate request_size=4 [17:16:43]MH_SAM_APDU [17:16:43]CAPDU: 80 13 01 00 [17:16:43]Write to MH i2c: E2 08 00 46 4F 80 13 01 00 00 00 00 00 12 [17:16:43]Write i2c OK [17:16:43]MH_I2C_Read... [17:16:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:16:43]Read from MH i2c: E2 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 0E 00 [17:16:43]MH_I2C_Read... [17:16:43]Read from MH i2c: E2 0E 00 46 4F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 A2 [17:16:43]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:16:43]wFMCommunicate OK [17:16:43]SAM_PROTO_GetShiftState done [17:16:43]FM_GetShiftState done [17:16:43]req_shift_opened done [17:16:43]requested_item shift.open_date is exist - process it [17:16:43]req_shift_open_date [17:16:43]req_shift_open_date done [17:16:43]produce_requested_data done [17:16:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139454,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:16:43]process_action_free close_receipt [17:16:43]json_value_free [17:16:43]json_value_free done [17:16:43]process_json_proto returns [17:16:43]Send response to host [17:16:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139454,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:16:43]free response buf [17:16:43]execute_script done [17:16:43]execute_script returns [17:16:43]free content buf [17:16:43]Sock 8.Close socket [17:16:43]Sock 8.Thread stoped [17:17:16]accept exits with 9 [17:17:16]New connection [17:17:16]New thread 3067284836 created [17:17:16]Thread 3067141476 joined [17:17:16]Waiting for new connection... [17:17:16] Sock 9.Parse request [17:17:16]Sock 9.Check first char [17:17:16]Sock 9.First char is OK [17:17:16]request: POST /json_proto HTTP/1.0 [17:17:16]Method: POST [17:17:16]URL: /json_proto [17:17:16]Method is POST - this is cgi request [17:17:16]url: /json_proto [17:17:16]query_string will be loaded in cgi processing [17:17:16]execute_cgi json_proto POST (null) [17:17:16]execute_cgi path=json_proto method=POST [17:17:16]POST find Content-Length [17:17:16]Host: 172.17.50.196:8080 [17:17:16]Content-Length: 748 [17:17:16]Content-Type: application/json [17:17:16] [17:17:16]POST finish read [17:17:16]Found Content-Length = 748 [17:17:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335347", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 4.000, "sum" : 536.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" : 536.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:16]execute_script... [17:17: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 : (3)335347", "tax_sys" : 0, "items" : [ { "code": "4780014240406", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Sovereign Blue", "price" : 134.00, "quantity" : 4.000, "sum" : 536.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" : 536.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:16]POST & json_proto [17:17:16]process_json_proto [17:17:16]json parsed OK: [17:17:16]protocol is kg_v1.0 [17:17:16]action value=close_receipt [17:17:16]process_action close_receipt [17:17:16]cmd_close_receipt [17:17:16]MH_GetDate [17:17:16]Write to MH i2c: F0 00 00 47 4F 85 [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: F0 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: F0 09 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: F0 09 00 47 4F 00 22 6A 22 67 72 0D 1C 67 A5 [17:17:16]GetLastDocTimeStamp 1730308605 [17:17:16]current date 1730308642 [17:17:16]FM_GetShiftState [17:17:16]SAM_PROTO_GetShiftState [17:17:16]wFMCommunicate request_size=4 [17:17:16]MH_SAM_APDU [17:17:16]CAPDU: 80 13 01 00 [17:17:16]Write to MH i2c: E2 08 00 48 4F 80 13 01 00 00 00 00 00 14 [17:17:16]Write i2c OK [17:17:16]MH_I2C_Read... [17:17:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:16]Read from MH i2c: E2 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 0E 00 [17:17:16]MH_I2C_Read... [17:17:16]Read from MH i2c: E2 0E 00 48 4F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 A4 [17:17:16]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:17:16]wFMCommunicate OK [17:17:16]SAM_PROTO_GetShiftState done [17:17:16]FM_GetShiftState done [17:17:16]opened in 1730246278 [17:17:16]opened+sec_in_day 1730332678 [17:17:16]quantity*price = 53600 [17:17:16]sum+1 = 53601 [17:17:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 536.00 НСП 1% : 4.74 НДС 12% : 56.92 Наличными: 0.00 Безнал.: 536.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 139 30.10.2024 17:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139455 ФПД: 6634887006562 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171722&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139455&fm=6634887006562&tin=02508201610067®Number=0000000000091631&sum=53600 0 [17:17:17]StoreToDocumentArchive [17:17:17]shift 556 fd 139455 [17:17:17]save to /storage/0556/doc_00139455 [17:17:17]save last doc name /storage/0556/doc_00139455 to /storage/kkm_last_doc_name [17:17:17]save OK [17:17:17]Clear old archive folders... [17:17:17]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:17:17]tlvbuf is 0120E3C0 [17:17:17]SAM_PROTO_ClearQueue [17:17:17]wFMCommunicate request_size=4 [17:17:17]MH_SAM_APDU [17:17:17]CAPDU: 80 09 00 00 [17:17:17]Write to MH i2c: E2 08 00 55 4F 80 09 00 00 00 00 00 00 16 [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:17]Read from MH i2c: E2 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 03 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 03 00 55 4F 00 90 00 18 [17:17:17]RAPDU: 90 00 [17:17:17]wFMCommunicate OK [17:17:17]SAM_PROTO_ClearQueue done [17:17:17]KKMCreateOFDPacket [17:17:17]OFDProtocolAddRootSTLVToBuf [17:17:17]FM_MakeSignedData [17:17:17]FM_MakeSignedData [17:17:17]SAM_PROTO_SignData [17:17:17]wFMCommunicate request_size=4 [17:17:17]MH_SAM_APDU [17:17:17]CAPDU: 80 0D 01 02 [17:17:17]Write to MH i2c: E2 08 00 56 4F 80 0D 01 02 00 00 00 00 1E [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:17]Read from MH i2c: E2 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 03 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 03 00 56 4F 00 90 00 19 [17:17:17]RAPDU: 90 00 [17:17:17]wFMCommunicate OK [17:17:17]wFMCommunicate request_size=255 [17:17:17]MH_SAM_APDU [17:17:17]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 60 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 D1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 22 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [17:17:17]Write to MH i2c: E2 02 01 57 4F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 60 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 D1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 22 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 2D [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:17]Read from MH i2c: E2 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 03 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 03 00 57 4F 00 90 00 1A [17:17:17]RAPDU: 90 00 [17:17:17]wFMCommunicate OK [17:17:17]wFMCommunicate request_size=32 [17:17:17]MH_SAM_APDU [17:17:17]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 20 02 00 35 04 06 00 06 08 CE 15 49 62 [17:17:17]Write to MH i2c: E2 23 00 58 4F 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 20 02 00 35 04 06 00 06 08 CE 15 49 62 00 00 03 [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:17]Read from MH i2c: E2 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 03 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 03 00 58 4F 00 90 00 1B [17:17:17]RAPDU: 90 00 [17:17:17]wFMCommunicate OK [17:17:17]wFMCommunicate request_size=4 [17:17:17]MH_SAM_APDU [17:17:17]CAPDU: 80 0D 03 02 [17:17:17]Write to MH i2c: E2 08 00 59 4F 80 0D 03 02 00 00 00 00 23 [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 [17:17:17]MH_I2C_Read... [17:17:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:17]Read from MH i2c: E2 0B 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 0B 00 59 4F 00 8A 51 D9 87 0E A4 F0 97 90 00 98 [17:17:17]RAPDU: 8A 51 D9 87 0E A4 F0 97 90 00 [17:17:17]wFMCommunicate OK [17:17:17]SAM_PROTO_SignData done [17:17:17]FM_MakeSignedData done [17:17:17]CreateOFDProtocolMessage [17:17:17]wFMCommunicate request_size=4 [17:17:17]MH_SAM_APDU [17:17:17]CAPDU: 80 11 00 00 [17:17:17]Write to MH i2c: E2 08 00 5A 4F 80 11 00 00 00 00 00 00 23 [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:17]Read from MH i2c: E2 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 17 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: E2 17 00 5A 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [17:17:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:17:17]wFMCommunicate OK [17:17:17]CreateOFDProtocolMessage done [17:17:17]OFDSenderStorePacket 139455 [17:17:17]StoreOFDPacket docnum=139455 [17:17:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 BB 11 1D 01 09 9B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 60 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 D1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 22 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 20 02 00 35 04 06 00 06 08 CE 15 49 62 8A 51 D9 87 0E A4 F0 97 [17:17:17]CheckFolder [17:17:17]dirname=/storage/ofd_packets [17:17:17]CheckFolder done [17:17:17]ProducePacketName [17:17:17]name=ofd_packets/00139455 [17:17:17]NVStorageSaveData ofd_packets/00139455 [17:17:17]File name is /storage/ofd_packets/00139455 [17:17:17]Write 323 bytes [17:17:17]NVStorageSaveData done [17:17:17]OFDSenderStorePacket done [17:17:17]KKMCreateOFDPacket done [17:17:17]NVStorageSaveData kkm_last_timestamp [17:17:17]File name is /storage/kkm_last_timestamp [17:17:17]Write 4 bytes [17:17:17]NVStorageSaveData done [17:17:17]ExternCall_PrintAddStr [17:17:17]wPrintStart [17:17:17]Write to MH i2c: 01 00 00 5B 4F AA [17:17:17]Write i2c OK [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: 01 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: 01 07 00 [17:17:17]MH_I2C_Read... [17:17:17]Read from MH i2c: 01 07 00 5B 4F 00 00 00 00 00 FF 0F BF [17:17:17]RasterBufferAndPrint [17:17:17]line Счет N : (3)335347 [17:17:17]line ИНН: 02508201610067 [17:17:17]line Контрольно-Кассовый Чек [17:17:17]line ПРОДАЖА [17:17:17]line Товар: 4780014240406 [17:17:17]line Сигареты Sovereign Blue [17:17:17]line 4.000 * 134.00 [17:17:17]line = 536.00 [17:17:17]line НДС 12% НСП 1% [17:17:17]line > о реализуемом товаре [17:17:17]line ИТОГО: 536.00 [17:17:17]line НСП 1% : 4.74 [17:17:17]line НДС 12% : 56.92 [17:17:17]line Наличными: 0.00 [17:17:17]line Безнал.: 536.00 [17:17:17]line Место: АЗС № 101 "Партнер Нефть" [17:17:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:17:17]line СНО: Общий режим [17:17:17]line Чек 139 30.10.2024 17:17 [17:17:17]line Смена: 556 ФФД: 1.0 [17:17:17]line ЗНМ: 0300000081 [17:17:17]line РНМ: 0000000000091631 [17:17:17]line Версия ККМ: 001 [17:17:17]line Платежная система: Mbank [17:17:17]line ФМ: 0000000000874669 [17:17:17]line ФД: 139455 [17:17:17]line ФПД: 6634887006562 [17:17:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171722&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139455&fm=6634887006562&tin=02508201610067®Number=0000000000091631&sum=53600 [17:17:17]line 0 [17:17:17]written 0, free lines is 4095 [17:17:18]Write to MH i2c: 01 00 00 84 4F D3 [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 07 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: 01 07 00 84 4F 00 00 00 00 00 0F 0D F6 [17:17:18]RasterBufferAndPrint [17:17:18]line [17:17:18]line [17:17:18]line [17:17:18]line [17:17:18]line [17:17:18]written 0, free lines is 3350 [17:17:18]MH_Cut [17:17:18]Write to MH i2c: D1 01 00 8B 4F 01 AC [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: D1 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: D1 01 00 [17:17:18]MH_I2C_Read... [17:17:18]Read from MH i2c: D1 01 00 8B 4F 00 AB [17:17:18]Write to MH i2c: 01 00 00 8C 4F DB [17:17:18]Write i2c OK [17:17:18]MH_I2C_Read... [17:17:18]*** Cut start [17:17:18]*** Partial cut [17:17:18]*** CUTSNS_PIN = 1 [17:17:18]*** CUTSNS_PIN = 0 [17:17:19]*** Brake cut motor [17:17:19]Read from MH i2c: 01 [17:17:19]MH_I2C_Read... [17:17:19]*** Stop cut motor [17:17:19]*** Cut end [17:17:19]Read from MH i2c: 01 07 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: 01 07 00 8C 4F 00 00 00 00 00 FF 0F F0 [17:17:19]process_action close_receipt done [17:17:19]requested_data is exist [17:17:19]produce_requested_data [17:17:19]requested_item fm.sn is exist - process it [17:17:19]wFMCommunicate request_size=4 [17:17:19]MH_SAM_APDU [17:17:19]CAPDU: 80 11 00 00 [17:17:19]Write to MH i2c: E2 08 00 8D 4F 80 11 00 00 00 00 00 00 56 [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:19]Read from MH i2c: E2 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 17 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 17 00 8D 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B1 [17:17:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:17:19]wFMCommunicate OK [17:17:19]requested_item fd.num is exist - process it [17:17:19]SAM_PROTO_GetFieldsCounters [17:17:19]wFMCommunicate request_size=4 [17:17:19]MH_SAM_APDU [17:17:19]CAPDU: 80 13 00 00 [17:17:19]Write to MH i2c: E2 08 00 8E 4F 80 13 00 00 00 00 00 00 59 [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:19]Read from MH i2c: E2 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 62 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 62 00 8E 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BF 20 02 00 0E 04 04 00 2C 02 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 2D [17:17:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 BF 20 02 00 0E 04 04 00 2C 02 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 [17:17:19]wFMCommunicate OK [17:17:19]SAM_PROTO_GetFieldsCounters done [17:17:19]requested_item shift.num is exist - process it [17:17:19]requested_item shift.opened is exist - process it [17:17:19]req_shift_opened [17:17:19]FM_GetShiftState [17:17:19]SAM_PROTO_GetShiftState [17:17:19]wFMCommunicate request_size=4 [17:17:19]MH_SAM_APDU [17:17:19]CAPDU: 80 13 01 00 [17:17:19]Write to MH i2c: E2 08 00 8F 4F 80 13 01 00 00 00 00 00 5B [17:17:19]Write i2c OK [17:17:19]MH_I2C_Read... [17:17:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:19]Read from MH i2c: E2 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 0E 00 [17:17:19]MH_I2C_Read... [17:17:19]Read from MH i2c: E2 0E 00 8F 4F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 EB [17:17:19]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:17:19]wFMCommunicate OK [17:17:19]SAM_PROTO_GetShiftState done [17:17:19]FM_GetShiftState done [17:17:19]req_shift_opened done [17:17:19]requested_item shift.open_date is exist - process it [17:17:19]req_shift_open_date [17:17:19]req_shift_open_date done [17:17:19]produce_requested_data done [17:17:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139455,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:17:19]process_action_free close_receipt [17:17:19]json_value_free [17:17:19]json_value_free done [17:17:19]process_json_proto returns [17:17:19]Send response to host [17:17:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139455,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:17:19]free response buf [17:17:19]execute_script done [17:17:19]execute_script returns [17:17:19]free content buf [17:17:19]Sock 9.Close socket [17:17:19]Sock 9.Thread stoped [17:17:37]accept exits with 8 [17:17:37]New connection [17:17:37]New thread 3067141476 created [17:17:37]Thread 3067284836 joined [17:17:37]Waiting for new connection... [17:17:37] Sock 8.Parse request [17:17:37]Sock 8.Check first char [17:17:37]Sock 8.First char is OK [17:17:37]request: POST /json_proto HTTP/1.0 [17:17:37]Method: POST [17:17:37]URL: /json_proto [17:17:37]Method is POST - this is cgi request [17:17:37]url: /json_proto [17:17:37]query_string will be loaded in cgi processing [17:17:37]execute_cgi json_proto POST (null) [17:17:37]execute_cgi path=json_proto method=POST [17:17:37]POST find Content-Length [17:17:37]Host: 172.17.50.196:8080 [17:17:37]Content-Length: 621 [17:17:37]Content-Type: application/json [17:17:37] [17:17:37]POST finish read [17:17:37]Found Content-Length = 621 [17:17:37]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335348", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:37]execute_script... [17:17: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 : (3)335348", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:17:37]POST & json_proto [17:17:37]process_json_proto [17:17:37]json parsed OK: [17:17:37]protocol is kg_v1.0 [17:17:37]action value=close_receipt [17:17:37]process_action close_receipt [17:17:37]cmd_close_receipt [17:17:37]MH_GetDate [17:17:37]Write to MH i2c: F0 00 00 90 4F CE [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: F0 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: F0 09 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: F0 09 00 90 4F 00 37 6A 22 67 72 0D 1C 67 03 [17:17:37]GetLastDocTimeStamp 1730308642 [17:17:37]current date 1730308663 [17:17:37]FM_GetShiftState [17:17:37]SAM_PROTO_GetShiftState [17:17:37]wFMCommunicate request_size=4 [17:17:37]MH_SAM_APDU [17:17:37]CAPDU: 80 13 01 00 [17:17:37]Write to MH i2c: E2 08 00 91 4F 80 13 01 00 00 00 00 00 5D [17:17:37]Write i2c OK [17:17:37]MH_I2C_Read... [17:17:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:37]Read from MH i2c: E2 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 0E 00 [17:17:37]MH_I2C_Read... [17:17:37]Read from MH i2c: E2 0E 00 91 4F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 ED [17:17:37]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:17:37]wFMCommunicate OK [17:17:37]SAM_PROTO_GetShiftState done [17:17:37]FM_GetShiftState done [17:17:37]opened in 1730246278 [17:17:37]opened+sec_in_day 1730332678 [17:17:37]quantity*price = 14400 [17:17:37]sum+1 = 14401 [17:17:37]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 140 30.10.2024 17:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139456 ФПД: 184713755861549 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171743&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139456&fm=184713755861549&tin=02508201610067®Number=0000000000091631&sum=14400 0 [17:17:38]StoreToDocumentArchive [17:17:38]shift 556 fd 139456 [17:17:38]save to /storage/0556/doc_00139456 [17:17:38]save last doc name /storage/0556/doc_00139456 to /storage/kkm_last_doc_name [17:17:38]save OK [17:17:38]Clear old archive folders... [17:17:38]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:17:38]tlvbuf is 01193C00 [17:17:38]SAM_PROTO_ClearQueue [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 09 00 00 [17:17:38]Write to MH i2c: E2 08 00 9E 4F 80 09 00 00 00 00 00 00 5F [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 03 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 03 00 9E 4F 00 90 00 61 [17:17:38]RAPDU: 90 00 [17:17:38]wFMCommunicate OK [17:17:38]SAM_PROTO_ClearQueue done [17:17:38]KKMCreateOFDPacket [17:17:38]OFDProtocolAddRootSTLVToBuf [17:17:38]FM_MakeSignedData [17:17:38]FM_MakeSignedData [17:17:38]SAM_PROTO_SignData [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 0D 01 02 [17:17:38]Write to MH i2c: E2 08 00 9F 4F 80 0D 01 02 00 00 00 00 67 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 03 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 03 00 9F 4F 00 90 00 62 [17:17:38]RAPDU: 90 00 [17:17:38]wFMCommunicate OK [17:17:38]wFMCommunicate request_size=255 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 00 00 00 F4 03 04 00 37 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [17:17:38]Write to MH i2c: E2 02 01 A0 4F 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 00 00 00 F4 03 04 00 37 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 B0 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 03 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 03 00 A0 4F 00 90 00 63 [17:17:38]RAPDU: 90 00 [17:17:38]wFMCommunicate OK [17:17:38]wFMCommunicate request_size=32 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 C0 20 02 00 35 04 06 00 A7 FF 05 CD A2 2D [17:17:38]Write to MH i2c: E2 23 00 A1 4F 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 C0 20 02 00 35 04 06 00 A7 FF 05 CD A2 2D 00 00 F8 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 03 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 03 00 A1 4F 00 90 00 64 [17:17:38]RAPDU: 90 00 [17:17:38]wFMCommunicate OK [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 0D 03 02 [17:17:38]Write to MH i2c: E2 08 00 A2 4F 80 0D 03 02 00 00 00 00 6C [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 0B 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 0B 00 A2 4F 00 58 73 BD 36 D1 4D 20 DE 90 00 47 [17:17:38]RAPDU: 58 73 BD 36 D1 4D 20 DE 90 00 [17:17:38]wFMCommunicate OK [17:17:38]SAM_PROTO_SignData done [17:17:38]FM_MakeSignedData done [17:17:38]CreateOFDProtocolMessage [17:17:38]wFMCommunicate request_size=4 [17:17:38]MH_SAM_APDU [17:17:38]CAPDU: 80 11 00 00 [17:17:38]Write to MH i2c: E2 08 00 A3 4F 80 11 00 00 00 00 00 00 6C [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:38]Read from MH i2c: E2 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 17 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: E2 17 00 A3 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C7 [17:17:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:17:38]wFMCommunicate OK [17:17:38]CreateOFDProtocolMessage done [17:17:38]OFDSenderStorePacket 139456 [17:17:38]StoreOFDPacket docnum=139456 [17:17:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 08 9D 1D 01 06 5D 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 00 00 00 F4 03 04 00 37 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C0 20 02 00 35 04 06 00 A7 FF 05 CD A2 2D 58 73 BD 36 D1 4D 20 DE [17:17:38]CheckFolder [17:17:38]dirname=/storage/ofd_packets [17:17:38]CheckFolder done [17:17:38]ProducePacketName [17:17:38]name=ofd_packets/00139456 [17:17:38]NVStorageSaveData ofd_packets/00139456 [17:17:38]File name is /storage/ofd_packets/00139456 [17:17:38]Write 323 bytes [17:17:38]NVStorageSaveData done [17:17:38]OFDSenderStorePacket done [17:17:38]KKMCreateOFDPacket done [17:17:38]NVStorageSaveData kkm_last_timestamp [17:17:38]File name is /storage/kkm_last_timestamp [17:17:38]Write 4 bytes [17:17:38]NVStorageSaveData done [17:17:38]ExternCall_PrintAddStr [17:17:38]wPrintStart [17:17:38]Write to MH i2c: 01 00 00 A4 4F F3 [17:17:38]Write i2c OK [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 [17:17:38]MH_I2C_Read... [17:17:38]Read from MH i2c: 01 07 00 A4 4F 00 00 00 00 00 FF 0F 08 [17:17:38]RasterBufferAndPrint [17:17:38]line Счет N : (3)335348 [17:17:38]line ИНН: 02508201610067 [17:17:38]line Контрольно-Кассовый Чек [17:17:38]line ПРОДАЖА [17:17:38]line Товар: 48743570 [17:17:38]line Сигареты Winston XStyle Blue [17:17:38]line 1.000 * 144.00 [17:17:38]line = 144.00 [17:17:38]line НДС 12% НСП 1% [17:17:38]line > о реализуемом товаре [17:17:38]line ИТОГО: 144.00 [17:17:38]line НСП 1% : 1.27 [17:17:38]line НДС 12% : 15.29 [17:17:38]line Наличными: 144.00 [17:17:38]line Безнал.: 0.00 [17:17:38]line Место: АЗС № 101 "Партнер Нефть" [17:17:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:17:38]line СНО: Общий режим [17:17:38]line Чек 140 30.10.2024 17:17 [17:17:38]line Смена: 556 ФФД: 1.0 [17:17:38]line ЗНМ: 0300000081 [17:17:38]line РНМ: 0000000000091631 [17:17:38]line Версия ККМ: 001 [17:17:38]line ФМ: 0000000000874669 [17:17:38]line ФД: 139456 [17:17:38]line ФПД: 184713755861549 [17:17:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T171743&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139456&fm=184713755861549&tin=02508201610067®Number=0000000000091631&sum=14400 [17:17:39]line 0 [17:17:39]written 0, free lines is 4095 [17:17:39]Write to MH i2c: 01 00 00 CC 4F 1B [17:17:39]Write i2c OK [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: 01 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: 01 07 00 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: 01 07 00 CC 4F 00 00 00 00 00 07 0D 36 [17:17:39]RasterBufferAndPrint [17:17:39]line [17:17:39]line [17:17:39]line [17:17:39]line [17:17:39]line [17:17:39]written 0, free lines is 3341 [17:17:39]MH_Cut [17:17:39]Write to MH i2c: D1 01 00 D3 4F 01 F4 [17:17:39]Write i2c OK [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: D1 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: D1 01 00 [17:17:39]MH_I2C_Read... [17:17:39]Read from MH i2c: D1 01 00 D3 4F 00 F3 [17:17:39]Write to MH i2c: 01 00 00 D4 4F 23 [17:17:39]Write i2c OK [17:17:39]MH_I2C_Read... [17:17:40]*** Cut start [17:17:40]*** Partial cut [17:17:40]*** CUTSNS_PIN = 1 [17:17:40]*** CUTSNS_PIN = 0 [17:17:40]*** Brake cut motor [17:17:40]Read from MH i2c: 01 [17:17:40]MH_I2C_Read... [17:17:40]*** Stop cut motor [17:17:40]*** Cut end [17:17:40]Read from MH i2c: 01 07 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: 01 07 00 D4 4F 00 00 00 00 00 FF 0F 38 [17:17:40]process_action close_receipt done [17:17:40]requested_data is exist [17:17:40]produce_requested_data [17:17:40]requested_item fm.sn is exist - process it [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 11 00 00 [17:17:40]Write to MH i2c: E2 08 00 D5 4F 80 11 00 00 00 00 00 00 9E [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:17:40]Read from MH i2c: E2 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 17 00 [17:17:40]MH_I2C_Read... [17:17:40]Read from MH i2c: E2 17 00 D5 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F9 [17:17:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:17:40]wFMCommunicate OK [17:17:40]requested_item fd.num is exist - process it [17:17:40]SAM_PROTO_GetFieldsCounters [17:17:40]wFMCommunicate request_size=4 [17:17:40]MH_SAM_APDU [17:17:40]CAPDU: 80 13 00 00 [17:17:40]Write to MH i2c: E2 08 00 D6 4F 80 13 00 00 00 00 00 00 A1 [17:17:40]Write i2c OK [17:17:40]MH_I2C_Read... [17:17:41]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:17:41]Read from MH i2c: E2 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: E2 62 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: E2 62 00 D6 4F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C0 20 02 00 0E 04 04 00 2C 02 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 79 [17:17:41]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C0 20 02 00 0E 04 04 00 2C 02 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 [17:17:41]wFMCommunicate OK [17:17:41]SAM_PROTO_GetFieldsCounters done [17:17:41]requested_item shift.num is exist - process it [17:17:41]requested_item shift.opened is exist - process it [17:17:41]req_shift_opened [17:17:41]FM_GetShiftState [17:17:41]SAM_PROTO_GetShiftState [17:17:41]wFMCommunicate request_size=4 [17:17:41]MH_SAM_APDU [17:17:41]CAPDU: 80 13 01 00 [17:17:41]Write to MH i2c: E2 08 00 D7 4F 80 13 01 00 00 00 00 00 A3 [17:17:41]Write i2c OK [17:17:41]MH_I2C_Read... [17:17:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:17:41]Read from MH i2c: E2 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: E2 0E 00 [17:17:41]MH_I2C_Read... [17:17:41]Read from MH i2c: E2 0E 00 D7 4F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 33 [17:17:41]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:17:41]wFMCommunicate OK [17:17:41]SAM_PROTO_GetShiftState done [17:17:41]FM_GetShiftState done [17:17:41]req_shift_opened done [17:17:41]requested_item shift.open_date is exist - process it [17:17:41]req_shift_open_date [17:17:41]req_shift_open_date done [17:17:41]produce_requested_data done [17:17:41]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139456,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:17:41]process_action_free close_receipt [17:17:41]json_value_free [17:17:41]json_value_free done [17:17:41]process_json_proto returns [17:17:41]Send response to host [17:17:41]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139456,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:17:41]free response buf [17:17:41]execute_script done [17:17:41]execute_script returns [17:17:41]free content buf [17:17:41]Sock 8.Close socket [17:17:41]Sock 8.Thread stoped [17:18:53]ConnectInit Can't connect to host [17:18:53]CommunicateWithHost connect error [17:18:53]CommunicateWithHost err = -1 [17:18:53]OFD Sender: Server communicate error [17:18:53]OFD Sender: Processing packet 139454 [packets to send 36, broken 33] [17:18:53]ProducePacketName [17:18:53]name=ofd_packets/00139454 [17:18:53]OFD Sender: To server: pG, [17:18:53]CommunicateWithHost lk.salyk.kg:30040 [17:18:53]ConnectInit lk.salyk.kg [17:18:53]Connected sock=8 [17:18:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9B 01 00 00 05 03 93 01 8F 1A 5A 03 01 00 03 00 87 01 1E 04 01 00 01 23 04 72 00 8A 04 08 00 34 36 32 35 34 39 34 38 06 04 33 00 D0 94 D1 80 D0 B0 D0 B6 D0 B5 20 6D 65 6E 74 6F 73 20 D0 B6 D0 B5 D0 B2 20 D1 84 D1 80 D1 83 D0 BA D1 82 D1 8B 20 D1 80 D0 BE D0 BB D0 BB 20 33 37 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 30 30 35 32 34 30 33 06 04 24 00 4E 65 73 74 6C 65 20 4B 49 54 2D 4B 41 54 20 D0 BF D0 BB D0 BE D1 81 D0 BA D0 B8 D0 B9 20 34 31 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 23 00 00 00 00 13 04 06 00 28 23 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 74 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 92 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 06 00 00 00 00 07 04 06 00 74 40 00 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 FD 69 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 20 02 00 35 04 06 00 6E A8 81 93 72 72 56 EB DB D8 BC 79 36 05 [17:18:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D2 BC 47 00 98 7B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BE 20 02 00 F4 03 04 00 31 16 22 67 B6 04 01 00 00 85 3F 0C 98 E1 A0 9F 6E [17:18:54]CommunicateWithHost err = 0 [17:18:54]CheckOFDResponse [17:18:54]1017 (14) - 77093643461234 [17:18:54]1041 (16) - 0000000000874669 [17:18:54]1040 (4) - 139454 [17:18:54]1012 (4) - 30.10.2024 11:19 [17:18:54]1206 (1) - 0 [17:18:54]OFD Sender: Remove packet 139454 [17:18:54]ProducePacketName [17:18:54]name=ofd_packets/00139454 [17:18:54]NVStorageDeleteData [17:18:54]OFD Sender: Processing packet 139455 [packets to send 35, broken 33] [17:18:54]ProducePacketName [17:18:54]name=ofd_packets/00139455 [17:18:54]OFD Sender: To server: pG, [17:18:54]CommunicateWithHost lk.salyk.kg:30040 [17:18:54]ConnectInit lk.salyk.kg [17:18:54]Connected sock=8 [17:18:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 BB 11 1D 01 09 9B 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 38 30 30 31 34 32 34 30 34 30 36 06 04 1F 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 53 6F 76 65 72 65 69 67 6E 20 42 6C 75 65 FF 03 08 00 03 A0 0F 00 00 00 00 00 37 04 06 00 58 34 00 00 00 00 13 04 06 00 60 D1 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 60 D1 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 DA 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 3C 16 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 60 D1 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8B 00 00 00 F4 03 04 00 22 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 20 02 00 35 04 06 00 06 08 CE 15 49 62 8A 51 D9 87 0E A4 F0 97 [17:18:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 15 93 47 00 0A 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 BF 20 02 00 F4 03 04 00 32 16 22 67 B6 04 01 00 00 B0 C4 29 D9 96 25 D5 7F [17:18:54]CommunicateWithHost err = 0 [17:18:54]CheckOFDResponse [17:18:54]1017 (14) - 77093643461234 [17:18:54]1041 (16) - 0000000000874669 [17:18:54]1040 (4) - 139455 [17:18:54]1012 (4) - 30.10.2024 11:19 [17:18:54]1206 (1) - 0 [17:18:54]OFD Sender: Remove packet 139455 [17:18:54]ProducePacketName [17:18:54]name=ofd_packets/00139455 [17:18:54]NVStorageDeleteData [17:18:55]OFD Sender: Processing packet 139456 [packets to send 34, broken 33] [17:18:55]ProducePacketName [17:18:55]name=ofd_packets/00139456 [17:18:55]OFD Sender: To server: pG, [17:18:55]CommunicateWithHost lk.salyk.kg:30040 [17:18:55]ConnectInit lk.salyk.kg [17:18:55]Connected sock=8 [17:18:55]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 08 9D 1D 01 06 5D 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 00 00 00 F4 03 04 00 37 6A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C0 20 02 00 35 04 06 00 A7 FF 05 CD A2 2D 58 73 BD 36 D1 4D 20 DE [17:18:55]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 97 05 47 00 6D 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 38 37 34 36 36 39 10 04 04 00 C0 20 02 00 F4 03 04 00 33 16 22 67 B6 04 01 00 00 A1 85 8D 02 33 69 C4 0D [17:18:55]CommunicateWithHost err = 0 [17:18:55]CheckOFDResponse [17:18:55]1017 (14) - 77093643461234 [17:18:55]1041 (16) - 0000000000874669 [17:18:55]1040 (4) - 139456 [17:18:55]1012 (4) - 30.10.2024 11:19 [17:18:55]1206 (1) - 0 [17:18:55]OFD Sender: Remove packet 139456 [17:18:55]ProducePacketName [17:18:55]name=ofd_packets/00139456 [17:18:55]NVStorageDeleteData [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:16]OFD Sender: No OFD packet to send [17:19:21]OFD Sender: No OFD packet to send [17:19:26]OFD Sender: No OFD packet to send [17:19:31]OFD Sender: No OFD packet to send [17:19:36]OFD Sender: No OFD packet to send [17:19:41]OFD Sender: No OFD packet to send [17:19:46]OFD Sender: No OFD packet to send [17:19:51]OFD Sender: No OFD packet to send [17:19:56]OFD Sender: No OFD packet to send [17:20:01]OFD Sender: No OFD packet to send [17:20:06]OFD Sender: No OFD packet to send [17:20:11]OFD Sender: No OFD packet to send [17:20:16]OFD Sender: No OFD packet to send [17:20:21]OFD Sender: No OFD packet to send [17:20:26]OFD Sender: No OFD packet to send [17:20:31]OFD Sender: No OFD packet to send [17:20:36]OFD Sender: No OFD packet to send [17:20:41]OFD Sender: No OFD packet to send [17:20:46]OFD Sender: No OFD packet to send [17:20:51]OFD Sender: No OFD packet to send [17:20:56]OFD Sender: No OFD packet to send [17:21:01]OFD Sender: No OFD packet to send [17:21:06]OFD Sender: No OFD packet to send [17:21:11]OFD Sender: No OFD packet to send [17:21:16]OFD Sender: No OFD packet to send [17:21:21]OFD Sender: No OFD packet to send [17:21:26]OFD Sender: No OFD packet to send [17:21:31]OFD Sender: No OFD packet to send [17:21:36]OFD Sender: No OFD packet to send [17:21:41]OFD Sender: No OFD packet to send [17:21:46]OFD Sender: No OFD packet to send [17:21:51]OFD Sender: No OFD packet to send [17:21:56]OFD Sender: No OFD packet to send [17:22:01]OFD Sender: No OFD packet to send [17:22:06]OFD Sender: No OFD packet to send [17:22:11]OFD Sender: No OFD packet to send [17:22:16]OFD Sender: No OFD packet to send [17:22:21]OFD Sender: No OFD packet to send [17:22:26]OFD Sender: No OFD packet to send [17:22:31]OFD Sender: No OFD packet to send [17:22:36]OFD Sender: No OFD packet to send [17:22:41]OFD Sender: No OFD packet to send [17:22:46]OFD Sender: No OFD packet to send [17:22:51]OFD Sender: No OFD packet to send [17:22:56]OFD Sender: No OFD packet to send [17:23:01]OFD Sender: No OFD packet to send [17:23:06]OFD Sender: No OFD packet to send [17:23:11]OFD Sender: No OFD packet to send [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]accept exits with 9 [17:24:01]New connection [17:24:01]New thread 3067284836 created [17:24:01]Thread 3067141476 joined [17:24:01]Waiting for new connection... [17:24:01] Sock 9.Parse request [17:24:01]Sock 9.Check first char [17:24:01]Sock 9.First char is OK [17:24:01]request: POST /json_proto HTTP/1.0 [17:24:01]Method: POST [17:24:01]URL: /json_proto [17:24:01]Method is POST - this is cgi request [17:24:01]url: /json_proto [17:24:01]query_string will be loaded in cgi processing [17:24:01]execute_cgi json_proto POST (null) [17:24:01]execute_cgi path=json_proto method=POST [17:24:01]POST find Content-Length [17:24:01]Host: 172.17.50.196:8080 [17:24:01]Content-Length: 1391 [17:24:01]Content-Type: application/json [17:24:01] [17:24:01]POST finish read [17:24:01]Found Content-Length = 1391 [17:24:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335349", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.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" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:01]execute_script... [17: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 : (3)335349", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.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" : 339.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:24:01]POST & json_proto [17:24:01]process_json_proto [17:24:01]json parsed OK: [17:24:01]protocol is kg_v1.0 [17:24:01]action value=close_receipt [17:24:01]process_action close_receipt [17:24:01]cmd_close_receipt [17:24:01]MH_GetDate [17:24:01]Write to MH i2c: F0 00 00 D8 4F 16 [17:24:01]Write i2c OK [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: F0 [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: F0 09 00 [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: F0 09 00 D8 4F 00 B7 6B 22 67 72 0D 1C 67 CC [17:24:01]GetLastDocTimeStamp 1730308663 [17:24:01]current date 1730309047 [17:24:01]FM_GetShiftState [17:24:01]SAM_PROTO_GetShiftState [17:24:01]wFMCommunicate request_size=4 [17:24:01]MH_SAM_APDU [17:24:01]CAPDU: 80 13 01 00 [17:24:01]Write to MH i2c: E2 08 00 D9 4F 80 13 01 00 00 00 00 00 A5 [17:24:01]Write i2c OK [17:24:01]MH_I2C_Read... [17:24:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:01]Read from MH i2c: E2 [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: E2 0E 00 [17:24:01]MH_I2C_Read... [17:24:01]Read from MH i2c: E2 0E 00 D9 4F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 35 [17:24:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:24:01]wFMCommunicate OK [17:24:01]SAM_PROTO_GetShiftState done [17:24:01]FM_GetShiftState done [17:24:01]opened in 1730246278 [17:24:01]opened+sec_in_day 1730332678 [17:24:01]quantity*price = 12000 [17:24:01]sum+1 = 12001 [17:24:01]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4630007400990 Семечки ДЖИНН Великан 100гр 1.000 * 120.00 = 120.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4870022003305 Напиток Gorilla эн нат ж/б 0,5/0,45л 1.000 * 99.00 = 99.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 339.00 НСП 1% : 3.00 НДС 12% : 35.99 Наличными: 0.00 Безнал.: 339.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 141 30.10.2024 17:24 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139457 ФПД: 121319535170087 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172407&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139457&fm=121319535170087&tin=02508201610067®Number=0000000000091631&sum=33900 0 [17:24:02]StoreToDocumentArchive [17:24:02]shift 556 fd 139457 [17:24:02]save to /storage/0556/doc_00139457 [17:24:02]save last doc name /storage/0556/doc_00139457 to /storage/kkm_last_doc_name [17:24:02]save OK [17:24:02]Clear old archive folders... [17:24:02]ProcessDocumentItem done err = 0, tmpTLVsize=530 [17:24:02]tlvbuf is 011739E0 [17:24:02]SAM_PROTO_ClearQueue [17:24:02]wFMCommunicate request_size=4 [17:24:02]MH_SAM_APDU [17:24:02]CAPDU: 80 09 00 00 [17:24:02]Write to MH i2c: E2 08 00 E6 4F 80 09 00 00 00 00 00 00 A7 [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:24:02]Read from MH i2c: E2 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 03 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 03 00 E6 4F 00 90 00 A9 [17:24:02]RAPDU: 90 00 [17:24:02]wFMCommunicate OK [17:24:02]SAM_PROTO_ClearQueue done [17:24:02]KKMCreateOFDPacket [17:24:02]OFDProtocolAddRootSTLVToBuf [17:24:02]FM_MakeSignedData [17:24:02]FM_MakeSignedData [17:24:02]SAM_PROTO_SignData [17:24:02]wFMCommunicate request_size=4 [17:24:02]MH_SAM_APDU [17:24:02]CAPDU: 80 0D 01 02 [17:24:02]Write to MH i2c: E2 08 00 E7 4F 80 0D 01 02 00 00 00 00 AF [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:24:02]Read from MH i2c: E2 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 03 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 03 00 E7 4F 00 90 00 AA [17:24:02]RAPDU: 90 00 [17:24:02]wFMCommunicate OK [17:24:02]wFMCommunicate request_size=255 [17:24:02]MH_SAM_APDU [17:24:02]CAPDU: 80 0D 02 02 FA 03 00 12 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 [17:24:02]Write to MH i2c: E2 02 01 E8 4F 80 0D 02 02 FA 00 03 00 12 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 00 00 BD [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:02]Read from MH i2c: E2 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 03 00 [17:24:02]MH_I2C_Read... [17:24:02]Read from MH i2c: E2 03 00 E8 4F 00 90 00 AB [17:24:02]RAPDU: 90 00 [17:24:02]wFMCommunicate OK [17:24:02]wFMCommunicate request_size=255 [17:24:02]MH_SAM_APDU [17:24:02]CAPDU: 80 0D 02 02 FA 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 B7 6B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 [17:24:02]Write to MH i2c: E2 02 01 E9 4F 80 0D 02 02 FA 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 B7 6B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 00 7F [17:24:02]Write i2c OK [17:24:02]MH_I2C_Read... [17:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:03]Read from MH i2c: E2 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 03 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 03 00 E9 4F 00 90 00 AC [17:24:03]RAPDU: 90 00 [17:24:03]wFMCommunicate OK [17:24:03]wFMCommunicate request_size=39 [17:24:03]MH_SAM_APDU [17:24:03]CAPDU: 80 0D 02 02 22 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 20 02 00 35 04 06 00 6E 56 E7 CC 52 27 [17:24:03]Write to MH i2c: E2 2A 00 EA 4F 80 0D 02 02 22 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 20 02 00 35 04 06 00 6E 56 E7 CC 52 27 00 00 49 [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:24:03]Read from MH i2c: E2 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 03 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 03 00 EA 4F 00 90 00 AD [17:24:03]RAPDU: 90 00 [17:24:03]wFMCommunicate OK [17:24:03]wFMCommunicate request_size=4 [17:24:03]MH_SAM_APDU [17:24:03]CAPDU: 80 0D 03 02 [17:24:03]Write to MH i2c: E2 08 00 EB 4F 80 0D 03 02 00 00 00 00 B5 [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:24:03]Read from MH i2c: E2 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 0B 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 0B 00 EB 4F 00 B4 4A 1C C5 F7 39 35 B7 90 00 B1 [17:24:03]RAPDU: B4 4A 1C C5 F7 39 35 B7 90 00 [17:24:03]wFMCommunicate OK [17:24:03]SAM_PROTO_SignData done [17:24:03]FM_MakeSignedData done [17:24:03]CreateOFDProtocolMessage [17:24:03]wFMCommunicate request_size=4 [17:24:03]MH_SAM_APDU [17:24:03]CAPDU: 80 11 00 00 [17:24:03]Write to MH i2c: E2 08 00 EC 4F 80 11 00 00 00 00 00 00 B5 [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:03]Read from MH i2c: E2 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 17 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: E2 17 00 EC 4F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 10 [17:24:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:24:03]wFMCommunicate OK [17:24:03]CreateOFDProtocolMessage done [17:24:03]OFDSenderStorePacket 139457 [17:24:03]StoreOFDPacket docnum=139457 [17:24:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 02 00 00 FE 67 1E 02 B1 99 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 B7 6B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 20 02 00 35 04 06 00 6E 56 E7 CC 52 27 B4 4A 1C C5 F7 39 35 B7 [17:24:03]CheckFolder [17:24:03]dirname=/storage/ofd_packets [17:24:03]CheckFolder done [17:24:03]ProducePacketName [17:24:03]name=ofd_packets/00139457 [17:24:03]NVStorageSaveData ofd_packets/00139457 [17:24:03]File name is /storage/ofd_packets/00139457 [17:24:03]Write 580 bytes [17:24:03]NVStorageSaveData done [17:24:03]OFDSenderStorePacket done [17:24:03]KKMCreateOFDPacket done [17:24:03]NVStorageSaveData kkm_last_timestamp [17:24:03]File name is /storage/kkm_last_timestamp [17:24:03]Write 4 bytes [17:24:03]NVStorageSaveData done [17:24:03]ExternCall_PrintAddStr [17:24:03]wPrintStart [17:24:03]Write to MH i2c: 01 00 00 ED 4F 3C [17:24:03]Write i2c OK [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 07 00 [17:24:03]MH_I2C_Read... [17:24:03]Read from MH i2c: 01 07 00 ED 4F 00 00 00 00 00 FF 0F 51 [17:24:03]RasterBufferAndPrint [17:24:03]line Счет N : (3)335349 [17:24:03]line ИНН: 02508201610067 [17:24:03]line Контрольно-Кассовый Чек [17:24:03]line ПРОДАЖА [17:24:03]line Товар: 5449000189332 [17:24:03]line Холодный чай Fuse персик 1л [17:24:03]line 1.000 * 120.00 [17:24:03]line = 120.00 [17:24:03]line НДС 12% НСП 1% [17:24:03]line > о реализуемом товаре [17:24:03]line Товар: 4630007400990 [17:24:03]line Семечки ДЖИНН Великан 100гр [17:24:03]line 1.000 * 120.00 [17:24:03]line = 120.00 [17:24:03]line НДС 12% НСП 1% [17:24:03]line > о реализуемом товаре [17:24:03]line Товар: 4870022003305 [17:24:03]line Напиток Gorilla эн нат ж/б 0,5/0,45л [17:24:03]line 1.000 * 99.00 [17:24:03]line = 99.00 [17:24:03]line НДС 12% НСП 1% [17:24:03]line > о реализуемом товаре [17:24:03]line ИТОГО: 339.00 [17:24:03]line НСП 1% : 3.00 [17:24:03]line НДС 12% : 35.99 [17:24:03]line Наличными: 0.00 [17:24:03]line Безнал.: 339.00 [17:24:03]line Место: АЗС № 101 "Партнер Нефть" [17:24:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:24:03]line СНО: Общий режим [17:24:03]line Чек 141 30.10.2024 17:24 [17:24:03]line Смена: 556 ФФД: 1.0 [17:24:03]line ЗНМ: 0300000081 [17:24:03]line РНМ: 0000000000091631 [17:24:03]line Версия ККМ: 001 [17:24:03]line Платежная система: Mbank [17:24:03]line ФМ: 0000000000874669 [17:24:03]line ФД: 139457 [17:24:03]line ФПД: 121319535170087 [17:24:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172407&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139457&fm=121319535170087&tin=02508201610067®Number=0000000000091631&sum=33900 [17:24:03]line 0 [17:24:03]written 0, free lines is 4095 [17:24:03]OFD Sender: Processing packet 139457 [packets to send 34, broken 33] [17:24:03]ProducePacketName [17:24:03]name=ofd_packets/00139457 [17:24:03]OFD Sender: To server: pG, [17:24:03]CommunicateWithHost lk.salyk.kg:30040 [17:24:03]ConnectInit lk.salyk.kg [17:24:03]Connected sock=10 [17:24:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 02 00 00 FE 67 1E 02 B1 99 5A 03 01 00 03 00 12 02 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 6C 84 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2C 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0F 0E 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 6C 84 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8D 00 00 00 F4 03 04 00 B7 6B 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 20 02 00 35 04 06 00 6E 56 E7 CC 52 27 B4 4A 1C C5 F7 39 35 B7 [17:24:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D3 1B 47 00 4D 35 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C1 20 02 00 F4 03 04 00 67 17 22 67 B6 04 01 00 00 CD 80 31 D5 58 41 CA 62 [17:24:03]CommunicateWithHost err = 0 [17:24:03]CheckOFDResponse [17:24:03]1017 (14) - 77093643461234 [17:24:03]1041 (16) - 0000000000874669 [17:24:03]1040 (4) - 139457 [17:24:03]1012 (4) - 30.10.2024 11:24 [17:24:03]1206 (1) - 0 [17:24:03]OFD Sender: Remove packet 139457 [17:24:03]ProducePacketName [17:24:03]name=ofd_packets/00139457 [17:24:03]NVStorageDeleteData [17:24:04]Write to MH i2c: 01 00 00 24 50 74 [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: 01 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: 01 07 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: 01 07 00 24 50 00 00 00 00 00 53 0C DA [17:24:04]RasterBufferAndPrint [17:24:04]line [17:24:04]line [17:24:04]line [17:24:04]line [17:24:04]line [17:24:04]written 0, free lines is 3164 [17:24:04]MH_Cut [17:24:04]Write to MH i2c: D1 01 00 2B 50 01 4D [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: D1 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: D1 01 00 [17:24:04]MH_I2C_Read... [17:24:04]Read from MH i2c: D1 01 00 2B 50 00 4C [17:24:04]Write to MH i2c: 01 00 00 2C 50 7C [17:24:04]Write i2c OK [17:24:04]MH_I2C_Read... [17:24:04]OFD Sender: No OFD packet to send [17:24:04]*** Cut start [17:24:04]*** Partial cut [17:24:04]*** CUTSNS_PIN = 1 [17:24:04]*** CUTSNS_PIN = 0 [17:24:05]*** Brake cut motor [17:24:05]Read from MH i2c: 01 [17:24:05]MH_I2C_Read... [17:24:05]*** Stop cut motor [17:24:05]*** Cut end [17:24:05]Read from MH i2c: 01 07 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: 01 07 00 2C 50 00 00 00 00 00 FF 0F 91 [17:24:05]process_action close_receipt done [17:24:05]requested_data is exist [17:24:05]produce_requested_data [17:24:05]requested_item fm.sn is exist - process it [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 11 00 00 [17:24:05]Write to MH i2c: E2 08 00 2D 50 80 11 00 00 00 00 00 00 F7 [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 17 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 17 00 2D 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 52 [17:24:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:24:05]wFMCommunicate OK [17:24:05]requested_item fd.num is exist - process it [17:24:05]SAM_PROTO_GetFieldsCounters [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 13 00 00 [17:24:05]Write to MH i2c: E2 08 00 2E 50 80 13 00 00 00 00 00 00 FA [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 62 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 62 00 2E 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C1 20 02 00 0E 04 04 00 2C 02 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 D6 [17:24:05]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C1 20 02 00 0E 04 04 00 2C 02 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 [17:24:05]wFMCommunicate OK [17:24:05]SAM_PROTO_GetFieldsCounters done [17:24:05]requested_item shift.num is exist - process it [17:24:05]requested_item shift.opened is exist - process it [17:24:05]req_shift_opened [17:24:05]FM_GetShiftState [17:24:05]SAM_PROTO_GetShiftState [17:24:05]wFMCommunicate request_size=4 [17:24:05]MH_SAM_APDU [17:24:05]CAPDU: 80 13 01 00 [17:24:05]Write to MH i2c: E2 08 00 2F 50 80 13 01 00 00 00 00 00 FC [17:24:05]Write i2c OK [17:24:05]MH_I2C_Read... [17:24:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:24:05]Read from MH i2c: E2 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 0E 00 [17:24:05]MH_I2C_Read... [17:24:05]Read from MH i2c: E2 0E 00 2F 50 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8C [17:24:05]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:24:05]wFMCommunicate OK [17:24:05]SAM_PROTO_GetShiftState done [17:24:05]FM_GetShiftState done [17:24:05]req_shift_opened done [17:24:05]requested_item shift.open_date is exist - process it [17:24:05]req_shift_open_date [17:24:05]req_shift_open_date done [17:24:05]produce_requested_data done [17:24:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139457,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:24:05]process_action_free close_receipt [17:24:05]json_value_free [17:24:05]json_value_free done [17:24:05]process_json_proto returns [17:24:05]Send response to host [17:24:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139457,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:24:05]free response buf [17:24:05]execute_script done [17:24:05]execute_script returns [17:24:05]free content buf [17:24:05]Sock 9.Close socket [17:24:05]Sock 9.Thread stoped [17:24:09]OFD Sender: No OFD packet to send [17:24:14]OFD Sender: No OFD packet to send [17:24:19]OFD Sender: No OFD packet to send [17:24:24]OFD Sender: No OFD packet to send [17:24:29]OFD Sender: No OFD packet to send [17:24:34]OFD Sender: No OFD packet to send [17:24:39]OFD Sender: No OFD packet to send [17:24:44]OFD Sender: No OFD packet to send [17:24:49]OFD Sender: No OFD packet to send [17:24:54]OFD Sender: No OFD packet to send [17:24:59]OFD Sender: No OFD packet to send [17:25:04]OFD Sender: No OFD packet to send [17:25:09]OFD Sender: No OFD packet to send [17:25:14]OFD Sender: No OFD packet to send [17:25:19]OFD Sender: No OFD packet to send [17:25:24]OFD Sender: No OFD packet to send [17:25:29]OFD Sender: No OFD packet to send [17:25:33]accept exits with 8 [17:25:33]New connection [17:25:33]New thread 3067141476 created [17:25:33]Thread 3067284836 joined [17:25:33]Waiting for new connection... [17:25:33] Sock 8.Parse request [17:25:33]Sock 8.Check first char [17:25:33]Sock 8.First char is OK [17:25:33]request: POST /json_proto HTTP/1.0 [17:25:33]Method: POST [17:25:33]URL: /json_proto [17:25:33]Method is POST - this is cgi request [17:25:33]url: /json_proto [17:25:33]query_string will be loaded in cgi processing [17:25:33]execute_cgi json_proto POST (null) [17:25:33]execute_cgi path=json_proto method=POST [17:25:33]POST find Content-Length [17:25:33]Host: 172.17.50.196:8080 [17:25:33]Content-Length: 688 [17:25:33]Content-Type: application/json [17:25:33] [17:25:33]POST finish read [17:25:33]Found Content-Length = 688 [17:25:33]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "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" ] } } [17:25:33]execute_script... [17:25:33]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094675", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 61", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 14.440, "sum" : 1100.33, "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" ] } } [17:25:33]POST & json_proto [17:25:33]process_json_proto [17:25:33]json parsed OK: [17:25:33]protocol is kg_v1.0 [17:25:33]action value=close_receipt [17:25:33]process_action close_receipt [17:25:33]cmd_close_receipt [17:25:33]MH_GetDate [17:25:33]Write to MH i2c: F0 00 00 30 50 6F [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: F0 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: F0 09 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: F0 09 00 30 50 00 13 6C 22 67 72 0D 1C 67 82 [17:25:33]GetLastDocTimeStamp 1730309047 [17:25:33]current date 1730309139 [17:25:33]FM_GetShiftState [17:25:33]SAM_PROTO_GetShiftState [17:25:33]wFMCommunicate request_size=4 [17:25:33]MH_SAM_APDU [17:25:33]CAPDU: 80 13 01 00 [17:25:33]Write to MH i2c: E2 08 00 31 50 80 13 01 00 00 00 00 00 FE [17:25:33]Write i2c OK [17:25:33]MH_I2C_Read... [17:25:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:33]Read from MH i2c: E2 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 0E 00 [17:25:33]MH_I2C_Read... [17:25:33]Read from MH i2c: E2 0E 00 31 50 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8E [17:25:33]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:25:33]wFMCommunicate OK [17:25:33]SAM_PROTO_GetShiftState done [17:25:33]FM_GetShiftState done [17:25:33]opened in 1730246278 [17:25:33]opened+sec_in_day 1730332678 [17:25:33]quantity*price = 110032 [17:25:33]sum+1 = 110034 [17:25:33]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.33 ИТОГО: 1100.00 Внесено: 1100.00 СДАЧА: 0.00 НСП 1% : 9.74 НДС 12% : 116.85 Наличными: 1100.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 142 30.10.2024 17:25 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139458 ФПД: 89576422614754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172539&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139458&fm=89576422614754&tin=02508201610067®Number=0000000000091631&sum=110000 [17:25:34]StoreToDocumentArchive [17:25:34]shift 556 fd 139458 [17:25:34]save to /storage/0556/doc_00139458 [17:25:34]save last doc name /storage/0556/doc_00139458 to /storage/kkm_last_doc_name [17:25:34]save OK [17:25:34]Clear old archive folders... [17:25:34]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:25:34]tlvbuf is 01101F20 [17:25:34]SAM_PROTO_ClearQueue [17:25:34]wFMCommunicate request_size=4 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 09 00 00 [17:25:34]Write to MH i2c: E2 08 00 3E 50 80 09 00 00 00 00 00 00 00 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 3E 50 00 90 00 02 [17:25:34]RAPDU: 90 00 [17:25:34]wFMCommunicate OK [17:25:34]SAM_PROTO_ClearQueue done [17:25:34]KKMCreateOFDPacket [17:25:34]OFDProtocolAddRootSTLVToBuf [17:25:34]FM_MakeSignedData [17:25:34]FM_MakeSignedData [17:25:34]SAM_PROTO_SignData [17:25:34]wFMCommunicate request_size=4 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 0D 01 02 [17:25:34]Write to MH i2c: E2 08 00 3F 50 80 0D 01 02 00 00 00 00 08 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 3F 50 00 90 00 03 [17:25:34]RAPDU: 90 00 [17:25:34]wFMCommunicate OK [17:25:34]wFMCommunicate request_size=255 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 13 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 20 02 00 35 04 06 00 [17:25:34]Write to MH i2c: E2 02 01 40 50 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 13 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 20 02 00 35 04 06 00 00 00 54 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 40 50 00 90 00 04 [17:25:34]RAPDU: 90 00 [17:25:34]wFMCommunicate OK [17:25:34]wFMCommunicate request_size=11 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 0D 02 02 06 51 78 22 D9 A6 E2 [17:25:34]Write to MH i2c: E2 0E 00 41 50 80 0D 02 02 06 00 51 78 22 D9 A6 E2 00 00 63 [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 03 00 41 50 00 90 00 05 [17:25:34]RAPDU: 90 00 [17:25:34]wFMCommunicate OK [17:25:34]wFMCommunicate request_size=4 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 0D 03 02 [17:25:34]Write to MH i2c: E2 08 00 42 50 80 0D 03 02 00 00 00 00 0D [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:25:34]Read from MH i2c: E2 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 0B 00 [17:25:34]MH_I2C_Read... [17:25:34]Read from MH i2c: E2 0B 00 42 50 00 1E CE F8 E6 7A 40 73 54 90 00 59 [17:25:34]RAPDU: 1E CE F8 E6 7A 40 73 54 90 00 [17:25:34]wFMCommunicate OK [17:25:34]SAM_PROTO_SignData done [17:25:34]FM_MakeSignedData done [17:25:34]CreateOFDProtocolMessage [17:25:34]wFMCommunicate request_size=4 [17:25:34]MH_SAM_APDU [17:25:34]CAPDU: 80 11 00 00 [17:25:34]Write to MH i2c: E2 08 00 43 50 80 11 00 00 00 00 00 00 0D [17:25:34]Write i2c OK [17:25:34]MH_I2C_Read... [17:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:35]Read from MH i2c: E2 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 17 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: E2 17 00 43 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 68 [17:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:25:35]wFMCommunicate OK [17:25:35]CreateOFDProtocolMessage done [17:25:35]OFDSenderStorePacket 139458 [17:25:35]StoreOFDPacket docnum=139458 [17:25:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 FD 45 08 01 76 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 13 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 20 02 00 35 04 06 00 51 78 22 D9 A6 E2 1E CE F8 E6 7A 40 73 54 [17:25:35]CheckFolder [17:25:35]dirname=/storage/ofd_packets [17:25:35]CheckFolder done [17:25:35]ProducePacketName [17:25:35]name=ofd_packets/00139458 [17:25:35]NVStorageSaveData ofd_packets/00139458 [17:25:35]File name is /storage/ofd_packets/00139458 [17:25:35]Write 302 bytes [17:25:35]NVStorageSaveData done [17:25:35]OFDSenderStorePacket done [17:25:35]KKMCreateOFDPacket done [17:25:35]NVStorageSaveData kkm_last_timestamp [17:25:35]File name is /storage/kkm_last_timestamp [17:25:35]Write 4 bytes [17:25:35]NVStorageSaveData done [17:25:35]ExternCall_PrintAddStr [17:25:35]wPrintStart [17:25:35]Write to MH i2c: 01 00 00 44 50 94 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 44 50 00 00 00 00 00 FF 0F A9 [17:25:35]RasterBufferAndPrint [17:25:35]line Счет N : (1)1094675 [17:25:35]line ИНН: 02508201610067 [17:25:35]line Контрольно-Кассовый Чек [17:25:35]line ПРОДАЖА [17:25:35]line ТРК (МРК, ГНК) : 61 [17:25:35]line Товар: 2710194210 [17:25:35]line ДТ(л)-К-2 [17:25:35]line 14.440 * 76.20 [17:25:35]line = 1100.33 [17:25:35]line НДС 12% НСП 1% [17:25:35]line > о реализуемом товаре [17:25:35]line ОКРУГЛЕНИЕ: -0.33 [17:25:35]line ИТОГО: 1100.00 [17:25:35]line Внесено: 1100.00 [17:25:35]line СДАЧА: 0.00 [17:25:35]line НСП 1% : 9.74 [17:25:35]line НДС 12% : 116.85 [17:25:35]line Наличными: 1100.00 [17:25:35]line Безнал.: 0.00 [17:25:35]line Место: АЗС № 101 "Партнер Нефть" [17:25:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:25:35]line СНО: Общий режим [17:25:35]line Чек 142 30.10.2024 17:25 [17:25:35]line Смена: 556 ФФД: 1.0 [17:25:35]line ЗНМ: 0300000081 [17:25:35]line РНМ: 0000000000091631 [17:25:35]line Версия ККМ: 001 [17:25:35]line ФМ: 0000000000874669 [17:25:35]line ФД: 139458 [17:25:35]line ФПД: 89576422614754 [17:25:35]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172539&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139458&fm=89576422614754&tin=02508201610067®Number=0000000000091631&sum=110000 [17:25:35]OFD Sender: Processing packet 139458 [packets to send 34, broken 33] [17:25:35]ProducePacketName [17:25:35]name=ofd_packets/00139458 [17:25:35]OFD Sender: To server: pG, [17:25:35]CommunicateWithHost lk.salyk.kg:30040 [17:25:35]ConnectInit lk.salyk.kg [17:25:35]written 0, free lines is 4095 [17:25:35]Connected sock=10 [17:25:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 FD 45 08 01 76 9F 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 68 38 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D1 AD 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 B0 AD 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 CE 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A5 2D 00 00 00 00 07 04 06 00 B0 AD 01 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 8E 00 00 00 F4 03 04 00 13 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 20 02 00 35 04 06 00 51 78 22 D9 A6 E2 1E CE F8 E6 7A 40 73 54 [17:25:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6D 53 47 00 CD 24 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C2 20 02 00 F4 03 04 00 C3 17 22 67 B6 04 01 00 00 DE 34 01 AE CB 78 89 D9 [17:25:35]CommunicateWithHost err = 0 [17:25:35]CheckOFDResponse [17:25:35]1017 (14) - 77093643461234 [17:25:35]1041 (16) - 0000000000874669 [17:25:35]1040 (4) - 139458 [17:25:35]1012 (4) - 30.10.2024 11:25 [17:25:35]1206 (1) - 0 [17:25:35]OFD Sender: Remove packet 139458 [17:25:35]ProducePacketName [17:25:35]name=ofd_packets/00139458 [17:25:35]NVStorageDeleteData [17:25:35]Write to MH i2c: 01 00 00 6F 50 BF [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: 01 07 00 6F 50 00 00 00 00 00 03 0D D6 [17:25:35]RasterBufferAndPrint [17:25:35]line [17:25:35]line [17:25:35]line [17:25:35]line [17:25:35]line [17:25:35]written 0, free lines is 3337 [17:25:35]MH_Cut [17:25:35]Write to MH i2c: D1 01 00 76 50 01 98 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: D1 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: D1 01 00 [17:25:35]MH_I2C_Read... [17:25:35]Read from MH i2c: D1 01 00 76 50 00 97 [17:25:35]Write to MH i2c: 01 00 00 77 50 C7 [17:25:35]Write i2c OK [17:25:35]MH_I2C_Read... [17:25:36]OFD Sender: No OFD packet to send [17:25:36]*** Cut start [17:25:36]*** Partial cut [17:25:36]*** CUTSNS_PIN = 1 [17:25:36]*** CUTSNS_PIN = 0 [17:25:36]*** Brake cut motor [17:25:37]Read from MH i2c: 01 [17:25:37]MH_I2C_Read... [17:25:37]*** Stop cut motor [17:25:37]*** Cut end [17:25:37]Read from MH i2c: 01 07 00 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: 01 07 00 77 50 00 00 00 00 00 FF 0F DC [17:25:37]process_action close_receipt done [17:25:37]requested_data is exist [17:25:37]produce_requested_data [17:25:37]requested_item fm.sn is exist - process it [17:25:37]wFMCommunicate request_size=4 [17:25:37]MH_SAM_APDU [17:25:37]CAPDU: 80 11 00 00 [17:25:37]Write to MH i2c: E2 08 00 78 50 80 11 00 00 00 00 00 00 42 [17:25:37]Write i2c OK [17:25:37]MH_I2C_Read... [17:25:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:25:37]Read from MH i2c: E2 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 17 00 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 17 00 78 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9D [17:25:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:25:37]wFMCommunicate OK [17:25:37]requested_item fd.num is exist - process it [17:25:37]SAM_PROTO_GetFieldsCounters [17:25:37]wFMCommunicate request_size=4 [17:25:37]MH_SAM_APDU [17:25:37]CAPDU: 80 13 00 00 [17:25:37]Write to MH i2c: E2 08 00 79 50 80 13 00 00 00 00 00 00 45 [17:25:37]Write i2c OK [17:25:37]MH_I2C_Read... [17:25:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:25:37]Read from MH i2c: E2 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 62 00 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 62 00 79 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C2 20 02 00 0E 04 04 00 2C 02 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 25 [17:25:37]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C2 20 02 00 0E 04 04 00 2C 02 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 [17:25:37]wFMCommunicate OK [17:25:37]SAM_PROTO_GetFieldsCounters done [17:25:37]requested_item shift.num is exist - process it [17:25:37]requested_item shift.opened is exist - process it [17:25:37]req_shift_opened [17:25:37]FM_GetShiftState [17:25:37]SAM_PROTO_GetShiftState [17:25:37]wFMCommunicate request_size=4 [17:25:37]MH_SAM_APDU [17:25:37]CAPDU: 80 13 01 00 [17:25:37]Write to MH i2c: E2 08 00 7A 50 80 13 01 00 00 00 00 00 47 [17:25:37]Write i2c OK [17:25:37]MH_I2C_Read... [17:25:37]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:25:37]Read from MH i2c: E2 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 0E 00 [17:25:37]MH_I2C_Read... [17:25:37]Read from MH i2c: E2 0E 00 7A 50 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D7 [17:25:37]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:25:37]wFMCommunicate OK [17:25:37]SAM_PROTO_GetShiftState done [17:25:37]FM_GetShiftState done [17:25:37]req_shift_opened done [17:25:37]requested_item shift.open_date is exist - process it [17:25:37]req_shift_open_date [17:25:37]req_shift_open_date done [17:25:37]produce_requested_data done [17:25:37]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139458,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:25:37]process_action_free close_receipt [17:25:37]json_value_free [17:25:37]json_value_free done [17:25:37]process_json_proto returns [17:25:37]Send response to host [17:25:37]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139458,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:25:37]free response buf [17:25:37]execute_script done [17:25:37]execute_script returns [17:25:37]free content buf [17:25:37]Sock 8.Close socket [17:25:37]Sock 8.Thread stoped [17:25:41]OFD Sender: No OFD packet to send [17:25:46]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:03]accept exits with 9 [17:26:03]New connection [17:26:03]New thread 3067284836 created [17:26:03]Thread 3067141476 joined [17:26:03]Waiting for new connection... [17:26:03] Sock 9.Parse request [17:26:03]Sock 9.Check first char [17:26:03]Sock 9.First char is OK [17:26:03]request: POST /json_proto HTTP/1.0 [17:26:03]Method: POST [17:26:03]URL: /json_proto [17:26:03]Method is POST - this is cgi request [17:26:03]url: /json_proto [17:26:03]query_string will be loaded in cgi processing [17:26:03]execute_cgi json_proto POST (null) [17:26:03]execute_cgi path=json_proto method=POST [17:26:03]POST find Content-Length [17:26:03]Host: 172.17.50.196:8080 [17:26:03]Content-Length: 775 [17:26:03]Content-Type: application/json [17:26:03] [17:26:03]POST finish read [17:26:03]Found Content-Length = 775 [17:26:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:03]execute_script... [17:26: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)1094674", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 41", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 26.250, "sum" : 2000.25, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 2000.25 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:03]POST & json_proto [17:26:03]process_json_proto [17:26:03]json parsed OK: [17:26:03]protocol is kg_v1.0 [17:26:03]action value=close_receipt [17:26:03]process_action close_receipt [17:26:03]cmd_close_receipt [17:26:03]MH_GetDate [17:26:03]Write to MH i2c: F0 00 00 7B 50 BA [17:26:03]Write i2c OK [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: F0 [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: F0 09 00 [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: F0 09 00 7B 50 00 31 6C 22 67 72 0D 1C 67 EB [17:26:03]GetLastDocTimeStamp 1730309139 [17:26:03]current date 1730309169 [17:26:03]FM_GetShiftState [17:26:03]SAM_PROTO_GetShiftState [17:26:03]wFMCommunicate request_size=4 [17:26:03]MH_SAM_APDU [17:26:03]CAPDU: 80 13 01 00 [17:26:03]Write to MH i2c: E2 08 00 7C 50 80 13 01 00 00 00 00 00 49 [17:26:03]Write i2c OK [17:26:03]MH_I2C_Read... [17:26:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:03]Read from MH i2c: E2 [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: E2 0E 00 [17:26:03]MH_I2C_Read... [17:26:03]Read from MH i2c: E2 0E 00 7C 50 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D9 [17:26:03]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:26:03]wFMCommunicate OK [17:26:03]SAM_PROTO_GetShiftState done [17:26:03]FM_GetShiftState done [17:26:03]opened in 1730246278 [17:26:03]opened+sec_in_day 1730332678 [17:26:03]quantity*price = 200025 [17:26:03]sum+1 = 200026 [17:26:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.25 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 0.00 Безнал.: 2000.25 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 143 30.10.2024 17:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139459 ФПД: 90001194285423 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172609&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139459&fm=90001194285423&tin=02508201610067®Number=0000000000091631&sum=200025 [17:26:04]StoreToDocumentArchive [17:26:04]shift 556 fd 139459 [17:26:04]save to /storage/0556/doc_00139459 [17:26:04]save last doc name /storage/0556/doc_00139459 to /storage/kkm_last_doc_name [17:26:04]save OK [17:26:04]Clear old archive folders... [17:26:04]ProcessDocumentItem done err = 0, tmpTLVsize=252 [17:26:04]tlvbuf is 011248F0 [17:26:04]SAM_PROTO_ClearQueue [17:26:04]wFMCommunicate request_size=4 [17:26:04]MH_SAM_APDU [17:26:04]CAPDU: 80 09 00 00 [17:26:04]Write to MH i2c: E2 08 00 89 50 80 09 00 00 00 00 00 00 4B [17:26:04]Write i2c OK [17:26:04]MH_I2C_Read... [17:26:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:04]Read from MH i2c: E2 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 03 00 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 03 00 89 50 00 90 00 4D [17:26:04]RAPDU: 90 00 [17:26:04]wFMCommunicate OK [17:26:04]SAM_PROTO_ClearQueue done [17:26:04]KKMCreateOFDPacket [17:26:04]OFDProtocolAddRootSTLVToBuf [17:26:04]FM_MakeSignedData [17:26:04]FM_MakeSignedData [17:26:04]SAM_PROTO_SignData [17:26:04]wFMCommunicate request_size=4 [17:26:04]MH_SAM_APDU [17:26:04]CAPDU: 80 0D 01 02 [17:26:04]Write to MH i2c: E2 08 00 8A 50 80 0D 01 02 00 00 00 00 53 [17:26:04]Write i2c OK [17:26:04]MH_I2C_Read... [17:26:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:04]Read from MH i2c: E2 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 03 00 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 03 00 8A 50 00 90 00 4E [17:26:04]RAPDU: 90 00 [17:26:04]wFMCommunicate OK [17:26:04]wFMCommunicate request_size=255 [17:26:04]MH_SAM_APDU [17:26:04]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 31 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 20 02 00 35 04 06 00 [17:26:04]Write to MH i2c: E2 02 01 8B 50 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 31 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 20 02 00 35 04 06 00 00 00 A8 [17:26:04]Write i2c OK [17:26:04]MH_I2C_Read... [17:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:04]Read from MH i2c: E2 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 03 00 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 03 00 8B 50 00 90 00 4F [17:26:04]RAPDU: 90 00 [17:26:04]wFMCommunicate OK [17:26:04]wFMCommunicate request_size=11 [17:26:04]MH_SAM_APDU [17:26:04]CAPDU: 80 0D 02 02 06 51 DB 09 36 F9 6F [17:26:04]Write to MH i2c: E2 0E 00 8C 50 80 0D 02 02 06 00 51 DB 09 36 F9 6F 00 00 35 [17:26:04]Write i2c OK [17:26:04]MH_I2C_Read... [17:26:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:04]Read from MH i2c: E2 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 03 00 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 03 00 8C 50 00 90 00 50 [17:26:04]RAPDU: 90 00 [17:26:04]wFMCommunicate OK [17:26:04]wFMCommunicate request_size=4 [17:26:04]MH_SAM_APDU [17:26:04]CAPDU: 80 0D 03 02 [17:26:04]Write to MH i2c: E2 08 00 8D 50 80 0D 03 02 00 00 00 00 58 [17:26:04]Write i2c OK [17:26:04]MH_I2C_Read... [17:26:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:04]Read from MH i2c: E2 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 0B 00 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 0B 00 8D 50 00 78 75 10 32 0C 4E 29 2B 90 00 36 [17:26:04]RAPDU: 78 75 10 32 0C 4E 29 2B 90 00 [17:26:04]wFMCommunicate OK [17:26:04]SAM_PROTO_SignData done [17:26:04]FM_MakeSignedData done [17:26:04]CreateOFDProtocolMessage [17:26:04]wFMCommunicate request_size=4 [17:26:04]MH_SAM_APDU [17:26:04]CAPDU: 80 11 00 00 [17:26:04]Write to MH i2c: E2 08 00 8E 50 80 11 00 00 00 00 00 00 58 [17:26:04]Write i2c OK [17:26:04]MH_I2C_Read... [17:26:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:04]Read from MH i2c: E2 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 17 00 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: E2 17 00 8E 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B3 [17:26:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:26:04]wFMCommunicate OK [17:26:04]CreateOFDProtocolMessage done [17:26:04]OFDSenderStorePacket 139459 [17:26:04]StoreOFDPacket docnum=139459 [17:26:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 F9 4E 08 01 C3 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 31 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 20 02 00 35 04 06 00 51 DB 09 36 F9 6F 78 75 10 32 0C 4E 29 2B [17:26:04]CheckFolder [17:26:04]dirname=/storage/ofd_packets [17:26:04]CheckFolder done [17:26:04]ProducePacketName [17:26:04]name=ofd_packets/00139459 [17:26:04]NVStorageSaveData ofd_packets/00139459 [17:26:04]File name is /storage/ofd_packets/00139459 [17:26:04]Write 302 bytes [17:26:04]NVStorageSaveData done [17:26:04]OFDSenderStorePacket done [17:26:04]KKMCreateOFDPacket done [17:26:04]NVStorageSaveData kkm_last_timestamp [17:26:04]File name is /storage/kkm_last_timestamp [17:26:04]Write 4 bytes [17:26:04]NVStorageSaveData done [17:26:04]ExternCall_PrintAddStr [17:26:04]wPrintStart [17:26:04]Write to MH i2c: 01 00 00 8F 50 DF [17:26:04]Write i2c OK [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: 01 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: 01 07 00 [17:26:04]MH_I2C_Read... [17:26:04]Read from MH i2c: 01 07 00 8F 50 00 00 00 00 00 FF 0F F4 [17:26:04]RasterBufferAndPrint [17:26:04]line Счет N : (1)1094674 [17:26:04]line ИНН: 02508201610067 [17:26:04]line Контрольно-Кассовый Чек [17:26:04]line ПРОДАЖА [17:26:04]line ТРК (МРК, ГНК) : 41 [17:26:04]line Товар: 2710194210 [17:26:04]line ДТ(л)-К-2 [17:26:04]line 26.250 * 76.20 [17:26:04]line = 2000.25 [17:26:04]line НДС 12% НСП 1% [17:26:04]line > о реализуемом товаре [17:26:04]line ИТОГО: 2000.25 [17:26:04]line НСП 1% : 17.70 [17:26:04]line НДС 12% : 212.42 [17:26:04]line Наличными: 0.00 [17:26:04]line Безнал.: 2000.25 [17:26:04]line Место: АЗС № 101 "Партнер Нефть" [17:26:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:26:04]line СНО: Общий режим [17:26:04]line Чек 143 30.10.2024 17:26 [17:26:04]line Смена: 556 ФФД: 1.0 [17:26:04]line ЗНМ: 0300000081 [17:26:04]line РНМ: 0000000000091631 [17:26:04]line Версия ККМ: 001 [17:26:04]line Платежная система: Mbank [17:26:04]line ФМ: 0000000000874669 [17:26:04]line ФД: 139459 [17:26:04]line ФПД: 90001194285423 [17:26:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172609&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139459&fm=90001194285423&tin=02508201610067®Number=0000000000091631&sum=200025 [17:26:04]written 0, free lines is 4095 [17:26:04]OFD Sender: Processing packet 139459 [packets to send 34, broken 33] [17:26:04]ProducePacketName [17:26:04]name=ofd_packets/00139459 [17:26:04]OFD Sender: To server: pG, [17:26:04]CommunicateWithHost lk.salyk.kg:30040 [17:26:04]ConnectInit lk.salyk.kg [17:26:05]Connected sock=10 [17:26:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 F9 4E 08 01 C3 82 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 59 0D 03 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 52 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 59 0D 03 00 00 00 1F 04 02 00 01 00 12 04 04 00 8F 00 00 00 F4 03 04 00 31 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C3 20 02 00 35 04 06 00 51 DB 09 36 F9 6F 78 75 10 32 0C 4E 29 2B [17:26:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 3C E3 47 00 64 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 38 37 34 36 36 39 10 04 04 00 C3 20 02 00 F4 03 04 00 E1 17 22 67 B6 04 01 00 00 E3 DE 62 97 1F B8 49 89 [17:26:05]CommunicateWithHost err = 0 [17:26:05]CheckOFDResponse [17:26:05]1017 (14) - 77093643461234 [17:26:05]1041 (16) - 0000000000874669 [17:26:05]1040 (4) - 139459 [17:26:05]1012 (4) - 30.10.2024 11:26 [17:26:05]1206 (1) - 0 [17:26:05]OFD Sender: Remove packet 139459 [17:26:05]ProducePacketName [17:26:05]name=ofd_packets/00139459 [17:26:05]NVStorageDeleteData [17:26:05]Write to MH i2c: 01 00 00 B8 50 08 [17:26:05]Write i2c OK [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: 01 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: 01 07 00 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: 01 07 00 B8 50 00 00 00 00 00 28 0D 44 [17:26:05]RasterBufferAndPrint [17:26:05]line [17:26:05]line [17:26:05]line [17:26:05]line [17:26:05]line [17:26:05]written 0, free lines is 3374 [17:26:05]MH_Cut [17:26:05]Write to MH i2c: D1 01 00 BF 50 01 E1 [17:26:05]Write i2c OK [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: D1 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: D1 01 00 [17:26:05]MH_I2C_Read... [17:26:05]Read from MH i2c: D1 01 00 BF 50 00 E0 [17:26:05]Write to MH i2c: 01 00 00 C0 50 10 [17:26:05]Write i2c OK [17:26:05]MH_I2C_Read... [17:26:05]OFD Sender: No OFD packet to send [17:26:05]*** Cut start [17:26:05]*** Partial cut [17:26:05]*** CUTSNS_PIN = 1 [17:26:06]*** CUTSNS_PIN = 0 [17:26:06]*** Brake cut motor [17:26:06]Read from MH i2c: 01 [17:26:06]MH_I2C_Read... [17:26:06]*** Stop cut motor [17:26:06]*** Cut end [17:26:06]Read from MH i2c: 01 07 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: 01 07 00 C0 50 00 00 00 00 00 FF 0F 25 [17:26:06]process_action close_receipt done [17:26:06]requested_data is exist [17:26:06]produce_requested_data [17:26:06]requested_item fm.sn is exist - process it [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 11 00 00 [17:26:06]Write to MH i2c: E2 08 00 C1 50 80 11 00 00 00 00 00 00 8B [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 17 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 17 00 C1 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E6 [17:26:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:26:06]wFMCommunicate OK [17:26:06]requested_item fd.num is exist - process it [17:26:06]SAM_PROTO_GetFieldsCounters [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 13 00 00 [17:26:06]Write to MH i2c: E2 08 00 C2 50 80 13 00 00 00 00 00 00 8E [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 62 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 62 00 C2 50 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C3 20 02 00 0E 04 04 00 2C 02 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 72 [17:26:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C3 20 02 00 0E 04 04 00 2C 02 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 [17:26:06]wFMCommunicate OK [17:26:06]SAM_PROTO_GetFieldsCounters done [17:26:06]requested_item shift.num is exist - process it [17:26:06]requested_item shift.opened is exist - process it [17:26:06]req_shift_opened [17:26:06]FM_GetShiftState [17:26:06]SAM_PROTO_GetShiftState [17:26:06]wFMCommunicate request_size=4 [17:26:06]MH_SAM_APDU [17:26:06]CAPDU: 80 13 01 00 [17:26:06]Write to MH i2c: E2 08 00 C3 50 80 13 01 00 00 00 00 00 90 [17:26:06]Write i2c OK [17:26:06]MH_I2C_Read... [17:26:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:06]Read from MH i2c: E2 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 0E 00 [17:26:06]MH_I2C_Read... [17:26:06]Read from MH i2c: E2 0E 00 C3 50 00 09 00 01 86 76 21 67 00 00 00 00 90 00 20 [17:26:06]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:26:06]wFMCommunicate OK [17:26:06]SAM_PROTO_GetShiftState done [17:26:06]FM_GetShiftState done [17:26:06]req_shift_opened done [17:26:06]requested_item shift.open_date is exist - process it [17:26:06]req_shift_open_date [17:26:06]req_shift_open_date done [17:26:06]produce_requested_data done [17:26:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139459,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:26:06]process_action_free close_receipt [17:26:06]json_value_free [17:26:06]json_value_free done [17:26:06]process_json_proto returns [17:26:06]Send response to host [17:26:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139459,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:26:06]free response buf [17:26:06]execute_script done [17:26:06]execute_script returns [17:26:06]free content buf [17:26:06]Sock 9.Close socket [17:26:06]Sock 9.Thread stoped [17:26:10]OFD Sender: No OFD packet to send [17:26:15]OFD Sender: No OFD packet to send [17:26:20]OFD Sender: No OFD packet to send [17:26:25]OFD Sender: No OFD packet to send [17:26:26]accept exits with 8 [17:26:26]New connection [17:26:26]New thread 3067141476 created [17:26:26]Thread 3067284836 joined [17:26:26]Waiting for new connection... [17:26:26] Sock 8.Parse request [17:26:26]Sock 8.Check first char [17:26:26]Sock 8.First char is OK [17:26:26]request: POST /json_proto HTTP/1.0 [17:26:26]Method: POST [17:26:26]URL: /json_proto [17:26:26]Method is POST - this is cgi request [17:26:26]url: /json_proto [17:26:26]query_string will be loaded in cgi processing [17:26:26]execute_cgi json_proto POST (null) [17:26:26]execute_cgi path=json_proto method=POST [17:26:26]POST find Content-Length [17:26:26]Host: 172.17.50.196:8080 [17:26:26]Content-Length: 678 [17:26:26]Content-Type: application/json [17:26:26] [17:26:26]POST finish read [17:26:26]Found Content-Length = 678 [17:26:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:26]execute_script... [17:26: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)1094676", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:26:26]POST & json_proto [17:26:26]process_json_proto [17:26:26]json parsed OK: [17:26:26]protocol is kg_v1.0 [17:26:26]action value=close_receipt [17:26:26]process_action close_receipt [17:26:26]cmd_close_receipt [17:26:26]MH_GetDate [17:26:26]Write to MH i2c: F0 00 00 C4 50 03 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: F0 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: F0 09 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: F0 09 00 C4 50 00 48 6C 22 67 72 0D 1C 67 4B [17:26:26]GetLastDocTimeStamp 1730309169 [17:26:26]current date 1730309192 [17:26:26]FM_GetShiftState [17:26:26]SAM_PROTO_GetShiftState [17:26:26]wFMCommunicate request_size=4 [17:26:26]MH_SAM_APDU [17:26:26]CAPDU: 80 13 01 00 [17:26:26]Write to MH i2c: E2 08 00 C5 50 80 13 01 00 00 00 00 00 92 [17:26:26]Write i2c OK [17:26:26]MH_I2C_Read... [17:26:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:26]Read from MH i2c: E2 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 0E 00 [17:26:26]MH_I2C_Read... [17:26:26]Read from MH i2c: E2 0E 00 C5 50 00 09 00 01 86 76 21 67 00 00 00 00 90 00 22 [17:26:26]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:26:26]wFMCommunicate OK [17:26:26]SAM_PROTO_GetShiftState done [17:26:26]FM_GetShiftState done [17:26:26]opened in 1730246278 [17:26:26]opened+sec_in_day 1730332678 [17:26:26]quantity*price = 50041 [17:26:26]sum+1 = 50042 [17:26: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 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 144 30.10.2024 17:26 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139460 ФПД: 84570274402574 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172632&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139460&fm=84570274402574&tin=02508201610067®Number=0000000000091631&sum=50000 [17:26:27]StoreToDocumentArchive [17:26:27]shift 556 fd 139460 [17:26:27]save to /storage/0556/doc_00139460 [17:26:27]save last doc name /storage/0556/doc_00139460 to /storage/kkm_last_doc_name [17:26:27]save OK [17:26:27]Clear old archive folders... [17:26:27]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:26:27]tlvbuf is 0131EFE0 [17:26:27]SAM_PROTO_ClearQueue [17:26:27]wFMCommunicate request_size=4 [17:26:27]MH_SAM_APDU [17:26:27]CAPDU: 80 09 00 00 [17:26:27]Write to MH i2c: E2 08 00 D2 50 80 09 00 00 00 00 00 00 94 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:26:27]Read from MH i2c: E2 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 03 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 03 00 D2 50 00 90 00 96 [17:26:27]RAPDU: 90 00 [17:26:27]wFMCommunicate OK [17:26:27]SAM_PROTO_ClearQueue done [17:26:27]KKMCreateOFDPacket [17:26:27]OFDProtocolAddRootSTLVToBuf [17:26:27]FM_MakeSignedData [17:26:27]FM_MakeSignedData [17:26:27]SAM_PROTO_SignData [17:26:27]wFMCommunicate request_size=4 [17:26:27]MH_SAM_APDU [17:26:27]CAPDU: 80 0D 01 02 [17:26:27]Write to MH i2c: E2 08 00 D3 50 80 0D 01 02 00 00 00 00 9C [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:26:27]Read from MH i2c: E2 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 03 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 03 00 D3 50 00 90 00 97 [17:26:27]RAPDU: 90 00 [17:26:27]wFMCommunicate OK [17:26:27]wFMCommunicate request_size=255 [17:26:27]MH_SAM_APDU [17:26:27]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 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 48 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 20 02 00 35 04 06 00 4C [17:26:27]Write to MH i2c: E2 02 01 D4 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 48 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 20 02 00 35 04 06 00 4C 00 00 58 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:27]Read from MH i2c: E2 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 03 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 03 00 D4 50 00 90 00 98 [17:26:27]RAPDU: 90 00 [17:26:27]wFMCommunicate OK [17:26:27]wFMCommunicate request_size=10 [17:26:27]MH_SAM_APDU [17:26:27]CAPDU: 80 0D 02 02 05 EA 8D 2A 11 0E [17:26:27]Write to MH i2c: E2 0D 00 D5 50 80 0D 02 02 05 00 EA 8D 2A 11 0E 00 00 69 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:26:27]Read from MH i2c: E2 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 03 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 03 00 D5 50 00 90 00 99 [17:26:27]RAPDU: 90 00 [17:26:27]wFMCommunicate OK [17:26:27]wFMCommunicate request_size=4 [17:26:27]MH_SAM_APDU [17:26:27]CAPDU: 80 0D 03 02 [17:26:27]Write to MH i2c: E2 08 00 D6 50 80 0D 03 02 00 00 00 00 A1 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:26:27]Read from MH i2c: E2 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 0B 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 0B 00 D6 50 00 BC 31 4C 00 EE 45 8C 85 90 00 1F [17:26:27]RAPDU: BC 31 4C 00 EE 45 8C 85 90 00 [17:26:27]wFMCommunicate OK [17:26:27]SAM_PROTO_SignData done [17:26:27]FM_MakeSignedData done [17:26:27]CreateOFDProtocolMessage [17:26:27]wFMCommunicate request_size=4 [17:26:27]MH_SAM_APDU [17:26:27]CAPDU: 80 11 00 00 [17:26:27]Write to MH i2c: E2 08 00 D7 50 80 11 00 00 00 00 00 00 A1 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:27]Read from MH i2c: E2 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 17 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: E2 17 00 D7 50 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FC [17:26:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:26:27]wFMCommunicate OK [17:26:27]CreateOFDProtocolMessage done [17:26:27]OFDSenderStorePacket 139460 [17:26:27]StoreOFDPacket docnum=139460 [17:26:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 CA 04 07 01 04 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 48 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 20 02 00 35 04 06 00 4C EA 8D 2A 11 0E BC 31 4C 00 EE 45 8C 85 [17:26:27]CheckFolder [17:26:27]dirname=/storage/ofd_packets [17:26:27]CheckFolder done [17:26:27]ProducePacketName [17:26:27]name=ofd_packets/00139460 [17:26:27]NVStorageSaveData ofd_packets/00139460 [17:26:27]File name is /storage/ofd_packets/00139460 [17:26:27]Write 301 bytes [17:26:27]NVStorageSaveData done [17:26:27]OFDSenderStorePacket done [17:26:27]KKMCreateOFDPacket done [17:26:27]NVStorageSaveData kkm_last_timestamp [17:26:27]File name is /storage/kkm_last_timestamp [17:26:27]Write 4 bytes [17:26:27]NVStorageSaveData done [17:26:27]ExternCall_PrintAddStr [17:26:27]wPrintStart [17:26:27]Write to MH i2c: 01 00 00 D8 50 28 [17:26:27]Write i2c OK [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 07 00 [17:26:27]MH_I2C_Read... [17:26:27]Read from MH i2c: 01 07 00 D8 50 00 00 00 00 00 FF 0F 3D [17:26:27]RasterBufferAndPrint [17:26:27]line Счет N : (1)1094676 [17:26:27]line ИНН: 02508201610067 [17:26:27]line Контрольно-Кассовый Чек [17:26:27]line ПРОДАЖА [17:26:27]line ТРК (МРК, ГНК) : 33 [17:26:27]line Товар: 2710124130 [17:26:27]line Аи-92-К-2 [17:26:27]line 7.480 * 66.90 [17:26:27]line = 500.41 [17:26:27]line НДС 12% НСП 1% [17:26:27]line > о реализуемом товаре [17:26:27]line ОКРУГЛЕНИЕ: -0.41 [17:26:27]line ИТОГО: 500.00 [17:26:27]line Внесено: 500.00 [17:26:27]line СДАЧА: 0.00 [17:26:27]line НСП 1% : 4.43 [17:26:27]line НДС 12% : 53.14 [17:26:27]line Наличными: 500.00 [17:26:27]line Безнал.: 0.00 [17:26:27]line Место: АЗС № 101 "Партнер Нефть" [17:26:27]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:26:27]line СНО: Общий режим [17:26:27]line Чек 144 30.10.2024 17:26 [17:26:27]line Смена: 556 ФФД: 1.0 [17:26:27]line ЗНМ: 0300000081 [17:26:27]line РНМ: 0000000000091631 [17:26:27]line Версия ККМ: 001 [17:26:27]line ФМ: 0000000000874669 [17:26:27]line ФД: 139460 [17:26:27]line ФПД: 84570274402574 [17:26:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172632&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139460&fm=84570274402574&tin=02508201610067®Number=0000000000091631&sum=50000 [17:26:28]OFD Sender: Processing packet 139460 [packets to send 34, broken 33] [17:26:28]ProducePacketName [17:26:28]name=ofd_packets/00139460 [17:26:28]OFD Sender: To server: pG, [17:26:28]CommunicateWithHost lk.salyk.kg:30040 [17:26:28]ConnectInit lk.salyk.kg [17:26:28]written 0, free lines is 4095 [17:26:28]Connected sock=10 [17:26:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 CA 04 07 01 04 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 90 00 00 00 F4 03 04 00 48 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 20 02 00 35 04 06 00 4C EA 8D 2A 11 0E BC 31 4C 00 EE 45 8C 85 [17:26:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0B 17 47 00 82 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C4 20 02 00 F4 03 04 00 F8 17 22 67 B6 04 01 00 00 ED A5 51 1E 74 51 3E 05 [17:26:28]CommunicateWithHost err = 0 [17:26:28]CheckOFDResponse [17:26:28]1017 (14) - 77093643461234 [17:26:28]1041 (16) - 0000000000874669 [17:26:28]1040 (4) - 139460 [17:26:28]1012 (4) - 30.10.2024 11:26 [17:26:28]1206 (1) - 0 [17:26:28]OFD Sender: Remove packet 139460 [17:26:28]ProducePacketName [17:26:28]name=ofd_packets/00139460 [17:26:28]NVStorageDeleteData [17:26:28]Write to MH i2c: 01 00 00 03 51 54 [17:26:28]Write i2c OK [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: 01 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: 01 07 00 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: 01 07 00 03 51 00 00 00 00 00 E9 0C 50 [17:26:28]RasterBufferAndPrint [17:26:28]line [17:26:28]line [17:26:28]line [17:26:28]line [17:26:28]line [17:26:28]written 0, free lines is 3311 [17:26:28]MH_Cut [17:26:28]Write to MH i2c: D1 01 00 0A 51 01 2D [17:26:28]Write i2c OK [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: D1 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: D1 01 00 [17:26:28]MH_I2C_Read... [17:26:28]Read from MH i2c: D1 01 00 0A 51 00 2C [17:26:28]Write to MH i2c: 01 00 00 0B 51 5C [17:26:28]Write i2c OK [17:26:28]MH_I2C_Read... [17:26:29]OFD Sender: No OFD packet to send [17:26:29]*** Cut start [17:26:29]*** Partial cut [17:26:29]*** CUTSNS_PIN = 1 [17:26:29]*** CUTSNS_PIN = 0 [17:26:29]*** Brake cut motor [17:26:30]Read from MH i2c: 01 [17:26:30]MH_I2C_Read... [17:26:30]*** Stop cut motor [17:26:30]*** Cut end [17:26:30]Read from MH i2c: 01 07 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: 01 07 00 0B 51 00 00 00 00 00 FF 0F 71 [17:26:30]process_action close_receipt done [17:26:30]requested_data is exist [17:26:30]produce_requested_data [17:26:30]requested_item fm.sn is exist - process it [17:26:30]wFMCommunicate request_size=4 [17:26:30]MH_SAM_APDU [17:26:30]CAPDU: 80 11 00 00 [17:26:30]Write to MH i2c: E2 08 00 0C 51 80 11 00 00 00 00 00 00 D7 [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:26:30]Read from MH i2c: E2 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 17 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 17 00 0C 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 32 [17:26:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:26:30]wFMCommunicate OK [17:26:30]requested_item fd.num is exist - process it [17:26:30]SAM_PROTO_GetFieldsCounters [17:26:30]wFMCommunicate request_size=4 [17:26:30]MH_SAM_APDU [17:26:30]CAPDU: 80 13 00 00 [17:26:30]Write to MH i2c: E2 08 00 0D 51 80 13 00 00 00 00 00 00 DA [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:26:30]Read from MH i2c: E2 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 62 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 62 00 0D 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C4 20 02 00 0E 04 04 00 2C 02 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 C2 [17:26:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C4 20 02 00 0E 04 04 00 2C 02 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 [17:26:30]wFMCommunicate OK [17:26:30]SAM_PROTO_GetFieldsCounters done [17:26:30]requested_item shift.num is exist - process it [17:26:30]requested_item shift.opened is exist - process it [17:26:30]req_shift_opened [17:26:30]FM_GetShiftState [17:26:30]SAM_PROTO_GetShiftState [17:26:30]wFMCommunicate request_size=4 [17:26:30]MH_SAM_APDU [17:26:30]CAPDU: 80 13 01 00 [17:26:30]Write to MH i2c: E2 08 00 0E 51 80 13 01 00 00 00 00 00 DC [17:26:30]Write i2c OK [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 [17:26:30]MH_I2C_Read... [17:26:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:26:30]Read from MH i2c: E2 0E 00 [17:26:30]MH_I2C_Read... [17:26:30]Read from MH i2c: E2 0E 00 0E 51 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6C [17:26:30]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:26:30]wFMCommunicate OK [17:26:30]SAM_PROTO_GetShiftState done [17:26:30]FM_GetShiftState done [17:26:30]req_shift_opened done [17:26:30]requested_item shift.open_date is exist - process it [17:26:30]req_shift_open_date [17:26:30]req_shift_open_date done [17:26:30]produce_requested_data done [17:26:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139460,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:26:30]process_action_free close_receipt [17:26:30]json_value_free [17:26:30]json_value_free done [17:26:30]process_json_proto returns [17:26:30]Send response to host [17:26:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139460,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:26:30]free response buf [17:26:30]execute_script done [17:26:30]execute_script returns [17:26:30]free content buf [17:26:30]Sock 8.Close socket [17:26:30]Sock 8.Thread stoped [17:26:34]OFD Sender: No OFD packet to send [17:26:39]OFD Sender: No OFD packet to send [17:26:44]OFD Sender: No OFD packet to send [17:26:49]OFD Sender: No OFD packet to send [17:26:54]OFD Sender: No OFD packet to send [17:26:59]OFD Sender: No OFD packet to send [17:27:04]OFD Sender: No OFD packet to send [17:27:09]OFD Sender: No OFD packet to send [17:27:14]OFD Sender: No OFD packet to send [17:27:19]OFD Sender: No OFD packet to send [17:27:24]OFD Sender: No OFD packet to send [17:27:29]OFD Sender: No OFD packet to send [17:27:34]OFD Sender: No OFD packet to send [17:27:39]OFD Sender: No OFD packet to send [17:27:44]accept exits with 9 [17:27:44]New connection [17:27:44]New thread 3067284836 created [17:27:44]Thread 3067141476 joined [17:27:44]Waiting for new connection... [17:27:44] Sock 9.Parse request [17:27:44]Sock 9.Check first char [17:27:44]Sock 9.First char is OK [17:27:44]request: POST /json_proto HTTP/1.0 [17:27:44]Method: POST [17:27:44]URL: /json_proto [17:27:44]Method is POST - this is cgi request [17:27:44]url: /json_proto [17:27:44]query_string will be loaded in cgi processing [17:27:44]execute_cgi json_proto POST (null) [17:27:44]execute_cgi path=json_proto method=POST [17:27:44]POST find Content-Length [17:27:44]Host: 172.17.50.196:8080 [17:27:44]Content-Length: 768 [17:27:44]Content-Type: application/json [17:27:44] [17:27:44]POST finish read [17:27:44]Found Content-Length = 768 [17:27:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [17:27:44]execute_script... [17: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)1094677", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" ] } } [17:27:44]POST & json_proto [17:27:44]process_json_proto [17:27:44]json parsed OK: [17:27:44]protocol is kg_v1.0 [17:27:44]action value=close_receipt [17:27:44]process_action close_receipt [17:27:44]cmd_close_receipt [17:27:44]MH_GetDate [17:27:44]Write to MH i2c: F0 00 00 0F 51 4F [17:27:44]Write i2c OK [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 09 00 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: F0 09 00 0F 51 00 96 6C 22 67 72 0D 1C 67 E5 [17:27:44]OFD Sender: No OFD packet to send [17:27:44]GetLastDocTimeStamp 1730309192 [17:27:44]current date 1730309270 [17:27:44]FM_GetShiftState [17:27:44]SAM_PROTO_GetShiftState [17:27:44]wFMCommunicate request_size=4 [17:27:44]MH_SAM_APDU [17:27:44]CAPDU: 80 13 01 00 [17:27:44]Write to MH i2c: E2 08 00 10 51 80 13 01 00 00 00 00 00 DE [17:27:44]Write i2c OK [17:27:44]MH_I2C_Read... [17:27:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:44]Read from MH i2c: E2 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: E2 0E 00 [17:27:44]MH_I2C_Read... [17:27:44]Read from MH i2c: E2 0E 00 10 51 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6E [17:27:44]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:27:44]wFMCommunicate OK [17:27:44]SAM_PROTO_GetShiftState done [17:27:44]FM_GetShiftState done [17:27:44]opened in 1730246278 [17:27:44]opened+sec_in_day 1730332678 [17:27:44]quantity*price = 80012 [17:27:44]sum+1 = 80013 [17:27:44]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 145 30.10.2024 17:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139461 ФПД: 187480816531297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172750&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139461&fm=187480816531297&tin=02508201610067®Number=0000000000091631&sum=80012 [17:27:45]StoreToDocumentArchive [17:27:45]shift 556 fd 139461 [17:27:45]save to /storage/0556/doc_00139461 [17:27:45]save last doc name /storage/0556/doc_00139461 to /storage/kkm_last_doc_name [17:27:45]save OK [17:27:45]Clear old archive folders... [17:27:45]ProcessDocumentItem done err = 0, tmpTLVsize=251 [17:27:45]tlvbuf is 011A9130 [17:27:45]SAM_PROTO_ClearQueue [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 09 00 00 [17:27:45]Write to MH i2c: E2 08 00 1D 51 80 09 00 00 00 00 00 00 E0 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 1D 51 00 90 00 E2 [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]SAM_PROTO_ClearQueue done [17:27:45]KKMCreateOFDPacket [17:27:45]OFDProtocolAddRootSTLVToBuf [17:27:45]FM_MakeSignedData [17:27:45]FM_MakeSignedData [17:27:45]SAM_PROTO_SignData [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 0D 01 02 [17:27:45]Write to MH i2c: E2 08 00 1E 51 80 0D 01 02 00 00 00 00 E8 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 1E 51 00 90 00 E3 [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]wFMCommunicate request_size=255 [17:27:45]MH_SAM_APDU [17:27: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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 91 00 00 00 F4 03 04 00 96 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 20 02 00 35 04 06 00 AA [17:27:45]Write to MH i2c: E2 02 01 1F 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 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 91 00 00 00 F4 03 04 00 96 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 20 02 00 35 04 06 00 AA 00 00 56 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 1F 51 00 90 00 E4 [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]wFMCommunicate request_size=10 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 0D 02 02 05 83 47 78 B7 61 [17:27:45]Write to MH i2c: E2 0D 00 20 51 80 0D 02 02 05 00 83 47 78 B7 61 00 00 4F [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 03 00 20 51 00 90 00 E5 [17:27:45]RAPDU: 90 00 [17:27:45]wFMCommunicate OK [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 0D 03 02 [17:27:45]Write to MH i2c: E2 08 00 21 51 80 0D 03 02 00 00 00 00 ED [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 0B 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 0B 00 21 51 00 DB 02 54 42 BF FF A1 EF 90 00 AF [17:27:45]RAPDU: DB 02 54 42 BF FF A1 EF 90 00 [17:27:45]wFMCommunicate OK [17:27:45]SAM_PROTO_SignData done [17:27:45]FM_MakeSignedData done [17:27:45]CreateOFDProtocolMessage [17:27:45]wFMCommunicate request_size=4 [17:27:45]MH_SAM_APDU [17:27:45]CAPDU: 80 11 00 00 [17:27:45]Write to MH i2c: E2 08 00 22 51 80 11 00 00 00 00 00 00 ED [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:45]Read from MH i2c: E2 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 17 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: E2 17 00 22 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 48 [17:27:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:27:45]wFMCommunicate OK [17:27:45]CreateOFDProtocolMessage done [17:27:45]OFDSenderStorePacket 139461 [17:27:45]StoreOFDPacket docnum=139461 [17:27:45]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 2D B5 07 01 44 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 91 00 00 00 F4 03 04 00 96 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 20 02 00 35 04 06 00 AA 83 47 78 B7 61 DB 02 54 42 BF FF A1 EF [17:27:45]CheckFolder [17:27:45]dirname=/storage/ofd_packets [17:27:45]CheckFolder done [17:27:45]ProducePacketName [17:27:45]name=ofd_packets/00139461 [17:27:45]NVStorageSaveData ofd_packets/00139461 [17:27:45]File name is /storage/ofd_packets/00139461 [17:27:45]Write 301 bytes [17:27:45]NVStorageSaveData done [17:27:45]OFDSenderStorePacket done [17:27:45]KKMCreateOFDPacket done [17:27:45]NVStorageSaveData kkm_last_timestamp [17:27:45]File name is /storage/kkm_last_timestamp [17:27:45]Write 4 bytes [17:27:45]NVStorageSaveData done [17:27:45]ExternCall_PrintAddStr [17:27:45]wPrintStart [17:27:45]Write to MH i2c: 01 00 00 23 51 74 [17:27:45]Write i2c OK [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: 01 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: 01 07 00 [17:27:45]MH_I2C_Read... [17:27:45]Read from MH i2c: 01 07 00 23 51 00 00 00 00 00 FF 0F 89 [17:27:45]RasterBufferAndPrint [17:27:45]line Счет N : (1)1094677 [17:27:45]line ИНН: 02508201610067 [17:27:45]line Контрольно-Кассовый Чек [17:27:45]line ПРОДАЖА [17:27:45]line ТРК (МРК, ГНК) : 63 [17:27:45]line Товар: 2710124130 [17:27:45]line Аи-92-К-2 [17:27:45]line 11.960 * 66.90 [17:27:45]line = 800.12 [17:27:45]line НДС 12% НСП 1% [17:27:45]line > о реализуемом товаре [17:27:45]line ИТОГО: 800.12 [17:27:45]line НСП 1% : 7.08 [17:27:45]line НДС 12% : 84.97 [17:27:45]line Наличными: 0.00 [17:27:45]line Безнал.: 800.12 [17:27:45]line Место: АЗС № 101 "Партнер Нефть" [17:27:45]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:27:45]line СНО: Общий режим [17:27:45]line Чек 145 30.10.2024 17:27 [17:27:45]line Смена: 556 ФФД: 1.0 [17:27:45]line ЗНМ: 0300000081 [17:27:45]line РНМ: 0000000000091631 [17:27:45]line Версия ККМ: 001 [17:27:45]line Платежная система: Mbank [17:27:45]line ФМ: 0000000000874669 [17:27:45]line ФД: 139461 [17:27:45]line ФПД: 187480816531297 [17:27:45]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172750&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139461&fm=187480816531297&tin=02508201610067®Number=0000000000091631&sum=80012 [17:27:45]written 0, free lines is 4095 [17:27:45]OFD Sender: Processing packet 139461 [packets to send 34, broken 33] [17:27:45]ProducePacketName [17:27:45]name=ofd_packets/00139461 [17:27:46]OFD Sender: To server: pG, [17:27:46]CommunicateWithHost lk.salyk.kg:30040 [17:27:46]ConnectInit lk.salyk.kg [17:27:46]Connected sock=10 [17:27:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 2D B5 07 01 44 7E 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 91 00 00 00 F4 03 04 00 96 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 20 02 00 35 04 06 00 AA 83 47 78 B7 61 DB 02 54 42 BF FF A1 EF [17:27:46]Write to MH i2c: 01 00 00 4C 51 9D [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: 01 07 00 4C 51 00 00 00 00 00 16 0D C7 [17:27:46]RasterBufferAndPrint [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]line [17:27:46]written 0, free lines is 3357 [17:27:46]MH_Cut [17:27:46]Write to MH i2c: D1 01 00 53 51 01 76 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 01 00 [17:27:46]MH_I2C_Read... [17:27:46]Read from MH i2c: D1 01 00 53 51 00 75 [17:27:46]Write to MH i2c: 01 00 00 54 51 A5 [17:27:46]Write i2c OK [17:27:46]MH_I2C_Read... [17:27:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 12 52 47 00 84 0E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C5 20 02 00 F4 03 04 00 46 18 22 67 B6 04 01 00 00 56 1C 14 69 C6 54 4E 21 [17:27:46]CommunicateWithHost err = 0 [17:27:46]CheckOFDResponse [17:27:46]1017 (14) - 77093643461234 [17:27:46]1041 (16) - 0000000000874669 [17:27:46]1040 (4) - 139461 [17:27:46]1012 (4) - 30.10.2024 11:28 [17:27:46]1206 (1) - 0 [17:27:46]OFD Sender: Remove packet 139461 [17:27:46]ProducePacketName [17:27:46]name=ofd_packets/00139461 [17:27:46]NVStorageDeleteData [17:27:46]*** Cut start [17:27:46]*** Partial cut [17:27:46]*** CUTSNS_PIN = 1 [17:27:47]OFD Sender: No OFD packet to send [17:27:47]*** CUTSNS_PIN = 0 [17:27:47]*** Brake cut motor [17:27:47]Read from MH i2c: 01 [17:27:47]MH_I2C_Read... [17:27:47]*** Stop cut motor [17:27:47]*** Cut end [17:27:47]Read from MH i2c: 01 07 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: 01 07 00 54 51 00 00 00 00 00 FF 0F BA [17:27:47]process_action close_receipt done [17:27:47]requested_data is exist [17:27:47]produce_requested_data [17:27:47]requested_item fm.sn is exist - process it [17:27:47]wFMCommunicate request_size=4 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 11 00 00 [17:27:47]Write to MH i2c: E2 08 00 55 51 80 11 00 00 00 00 00 00 20 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:27:47]Read from MH i2c: E2 17 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 17 00 55 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7B [17:27:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:27:47]wFMCommunicate OK [17:27:47]requested_item fd.num is exist - process it [17:27:47]SAM_PROTO_GetFieldsCounters [17:27:47]wFMCommunicate request_size=4 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 13 00 00 [17:27:47]Write to MH i2c: E2 08 00 56 51 80 13 00 00 00 00 00 00 23 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 62 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 62 00 56 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C5 20 02 00 0E 04 04 00 2C 02 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 0F [17:27:47]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C5 20 02 00 0E 04 04 00 2C 02 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 [17:27:47]wFMCommunicate OK [17:27:47]SAM_PROTO_GetFieldsCounters done [17:27:47]requested_item shift.num is exist - process it [17:27:47]requested_item shift.opened is exist - process it [17:27:47]req_shift_opened [17:27:47]FM_GetShiftState [17:27:47]SAM_PROTO_GetShiftState [17:27:47]wFMCommunicate request_size=4 [17:27:47]MH_SAM_APDU [17:27:47]CAPDU: 80 13 01 00 [17:27:47]Write to MH i2c: E2 08 00 57 51 80 13 01 00 00 00 00 00 25 [17:27:47]Write i2c OK [17:27:47]MH_I2C_Read... [17:27:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:27:47]Read from MH i2c: E2 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 0E 00 [17:27:47]MH_I2C_Read... [17:27:47]Read from MH i2c: E2 0E 00 57 51 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B5 [17:27:47]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:27:47]wFMCommunicate OK [17:27:47]SAM_PROTO_GetShiftState done [17:27:47]FM_GetShiftState done [17:27:47]req_shift_opened done [17:27:47]requested_item shift.open_date is exist - process it [17:27:47]req_shift_open_date [17:27:47]req_shift_open_date done [17:27:47]produce_requested_data done [17:27:47]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139461,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:27:47]process_action_free close_receipt [17:27:47]json_value_free [17:27:47]json_value_free done [17:27:47]process_json_proto returns [17:27:47]Send response to host [17:27:47]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139461,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:27:47]free response buf [17:27:47]execute_script done [17:27:47]execute_script returns [17:27:47]free content buf [17:27:47]Sock 9.Close socket [17:27:47]Sock 9.Thread stoped [17:27:52]OFD Sender: No OFD packet to send [17:27:57]OFD Sender: No OFD packet to send [17:28:02]OFD Sender: No OFD packet to send [17:28:07]OFD Sender: No OFD packet to send [17:28:12]OFD Sender: No OFD packet to send [17:28:17]OFD Sender: No OFD packet to send [17:28:22]OFD Sender: No OFD packet to send [17:28:27]OFD Sender: No OFD packet to send [17:28:32]OFD Sender: No OFD packet to send [17:28:37]OFD Sender: No OFD packet to send [17:28:42]OFD Sender: No OFD packet to send [17:28:47]OFD Sender: No OFD packet to send [17:28:51]accept exits with 8 [17:28:51]New connection [17:28:51]New thread 3067141476 created [17:28:51]Thread 3067284836 joined [17:28:51]Waiting for new connection... [17:28:51] Sock 8.Parse request [17:28:51]Sock 8.Check first char [17:28:51]Sock 8.First char is OK [17:28:51]request: POST /json_proto HTTP/1.0 [17:28:51]Method: POST [17:28:51]URL: /json_proto [17:28:51]Method is POST - this is cgi request [17:28:51]url: /json_proto [17:28:51]query_string will be loaded in cgi processing [17:28:51]execute_cgi json_proto POST (null) [17:28:51]execute_cgi path=json_proto method=POST [17:28:51]POST find Content-Length [17:28:51]Host: 172.17.50.196:8080 [17:28:51]Content-Length: 1111 [17:28:51]Content-Type: application/json [17:28:51] [17:28:51]POST finish read [17:28:51]Found Content-Length = 1111 [17:28:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335350", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030103", "name": "\u041B\u0435\u0434\u0435\u043D\u0446\u044B JohnyBee AIR PLANE", "price" : 243.00, "quantity" : 1.000, "sum" : 243.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" : 263.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:51]execute_script... [17:28:51]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335350", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904917030103", "name": "\u041B\u0435\u0434\u0435\u043D\u0446\u044B JohnyBee AIR PLANE", "price" : 243.00, "quantity" : 1.000, "sum" : 243.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" : 263.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:28:51]POST & json_proto [17:28:51]process_json_proto [17:28:51]json parsed OK: [17:28:51]protocol is kg_v1.0 [17:28:51]action value=close_receipt [17:28:51]process_action close_receipt [17:28:51]cmd_close_receipt [17:28:51]MH_GetDate [17:28:51]Write to MH i2c: F0 00 00 58 51 98 [17:28:51]Write i2c OK [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: F0 [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: F0 09 00 [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: F0 09 00 58 51 00 D9 6C 22 67 72 0D 1C 67 71 [17:28:51]GetLastDocTimeStamp 1730309270 [17:28:51]current date 1730309337 [17:28:51]FM_GetShiftState [17:28:51]SAM_PROTO_GetShiftState [17:28:51]wFMCommunicate request_size=4 [17:28:51]MH_SAM_APDU [17:28:51]CAPDU: 80 13 01 00 [17:28:51]Write to MH i2c: E2 08 00 59 51 80 13 01 00 00 00 00 00 27 [17:28:51]Write i2c OK [17:28:51]MH_I2C_Read... [17:28:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:51]Read from MH i2c: E2 [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: E2 0E 00 [17:28:51]MH_I2C_Read... [17:28:51]Read from MH i2c: E2 0E 00 59 51 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B7 [17:28:51]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:28:51]wFMCommunicate OK [17:28:51]SAM_PROTO_GetShiftState done [17:28:51]FM_GetShiftState done [17:28:51]opened in 1730246278 [17:28:51]opened+sec_in_day 1730332678 [17:28:51]quantity*price = 2000 [17:28:51]sum+1 = 2001 [17:28:51]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5904917030103 Леденцы JohnyBee AIR PLANE 1.000 * 243.00 = 243.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 263.00 НСП 1% : 2.33 НДС 12% : 27.92 Наличными: 0.00 Безнал.: 263.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 146 30.10.2024 17:28 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139462 ФПД: 115296153713712 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172857&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139462&fm=115296153713712&tin=02508201610067®Number=0000000000091631&sum=26300 0 [17:28:52]StoreToDocumentArchive [17:28:52]shift 556 fd 139462 [17:28:52]save to /storage/0556/doc_00139462 [17:28:52]save last doc name /storage/0556/doc_00139462 to /storage/kkm_last_doc_name [17:28:52]save OK [17:28:52]Clear old archive folders... [17:28:52]ProcessDocumentItem done err = 0, tmpTLVsize=416 [17:28:52]tlvbuf is 0110E550 [17:28:52]SAM_PROTO_ClearQueue [17:28:52]wFMCommunicate request_size=4 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 09 00 00 [17:28:52]Write to MH i2c: E2 08 00 66 51 80 09 00 00 00 00 00 00 29 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 66 51 00 90 00 2B [17:28:52]RAPDU: 90 00 [17:28:52]wFMCommunicate OK [17:28:52]SAM_PROTO_ClearQueue done [17:28:52]KKMCreateOFDPacket [17:28:52]OFDProtocolAddRootSTLVToBuf [17:28:52]FM_MakeSignedData [17:28:52]FM_MakeSignedData [17:28:52]SAM_PROTO_SignData [17:28:52]wFMCommunicate request_size=4 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 0D 01 02 [17:28:52]Write to MH i2c: E2 08 00 67 51 80 0D 01 02 00 00 00 00 31 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 67 51 00 90 00 2C [17:28:52]RAPDU: 90 00 [17:28:52]wFMCommunicate OK [17:28:52]wFMCommunicate request_size=255 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 0D 02 02 FA 03 00 A0 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 31 30 33 06 04 21 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D1 86 D1 8B 20 4A 6F 68 6E 79 42 65 65 20 41 49 52 20 50 4C 41 4E 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 [17:28:52]Write to MH i2c: E2 02 01 68 51 80 0D 02 02 FA 00 03 00 A0 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 31 30 33 06 04 21 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D1 86 D1 8B 20 4A 6F 68 6E 79 42 65 65 20 41 49 52 20 50 4C 41 4E 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 00 00 36 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:52]Read from MH i2c: E2 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 [17:28:52]MH_I2C_Read... [17:28:52]Read from MH i2c: E2 03 00 68 51 00 90 00 2D [17:28:52]RAPDU: 90 00 [17:28:52]wFMCommunicate OK [17:28:52]wFMCommunicate request_size=175 [17:28:52]MH_SAM_APDU [17:28:52]CAPDU: 80 0D 02 02 AA BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 66 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 D9 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 20 02 00 35 04 06 00 68 DC 7A 49 3C 30 [17:28:52]Write to MH i2c: E2 B2 00 69 51 80 0D 02 02 AA 00 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 66 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 D9 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 20 02 00 35 04 06 00 68 DC 7A 49 3C 30 00 00 97 [17:28:52]Write i2c OK [17:28:52]MH_I2C_Read... [17:28:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:28:53]Read from MH i2c: E2 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: E2 03 00 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: E2 03 00 69 51 00 90 00 2E [17:28:53]RAPDU: 90 00 [17:28:53]wFMCommunicate OK [17:28:53]wFMCommunicate request_size=4 [17:28:53]MH_SAM_APDU [17:28:53]CAPDU: 80 0D 03 02 [17:28:53]Write to MH i2c: E2 08 00 6A 51 80 0D 03 02 00 00 00 00 36 [17:28:53]Write i2c OK [17:28:53]MH_I2C_Read... [17:28:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:28:53]Read from MH i2c: E2 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: E2 0B 00 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: E2 0B 00 6A 51 00 67 F1 E9 57 25 5B 9F 4D 90 00 3B [17:28:53]RAPDU: 67 F1 E9 57 25 5B 9F 4D 90 00 [17:28:53]wFMCommunicate OK [17:28:53]SAM_PROTO_SignData done [17:28:53]FM_MakeSignedData done [17:28:53]CreateOFDProtocolMessage [17:28:53]wFMCommunicate request_size=4 [17:28:53]MH_SAM_APDU [17:28:53]CAPDU: 80 11 00 00 [17:28:53]Write to MH i2c: E2 08 00 6B 51 80 11 00 00 00 00 00 00 36 [17:28:53]Write i2c OK [17:28:53]MH_I2C_Read... [17:28:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:53]Read from MH i2c: E2 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: E2 17 00 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: E2 17 00 6B 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 91 [17:28:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:28:53]wFMCommunicate OK [17:28:53]CreateOFDProtocolMessage done [17:28:53]OFDSenderStorePacket 139462 [17:28:53]StoreOFDPacket docnum=139462 [17:28:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B4 01 00 00 2F 21 AC 01 E4 5E 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 31 30 33 06 04 21 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D1 86 D1 8B 20 4A 6F 68 6E 79 42 65 65 20 41 49 52 20 50 4C 41 4E 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 66 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 D9 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 20 02 00 35 04 06 00 68 DC 7A 49 3C 30 67 F1 E9 57 25 5B 9F 4D [17:28:53]CheckFolder [17:28:53]dirname=/storage/ofd_packets [17:28:53]CheckFolder done [17:28:53]ProducePacketName [17:28:53]name=ofd_packets/00139462 [17:28:53]NVStorageSaveData ofd_packets/00139462 [17:28:53]File name is /storage/ofd_packets/00139462 [17:28:53]Write 466 bytes [17:28:53]NVStorageSaveData done [17:28:53]OFDSenderStorePacket done [17:28:53]KKMCreateOFDPacket done [17:28:53]NVStorageSaveData kkm_last_timestamp [17:28:53]File name is /storage/kkm_last_timestamp [17:28:53]Write 4 bytes [17:28:53]NVStorageSaveData done [17:28:53]ExternCall_PrintAddStr [17:28:53]wPrintStart [17:28:53]Write to MH i2c: 01 00 00 6C 51 BD [17:28:53]Write i2c OK [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: 01 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: 01 07 00 [17:28:53]MH_I2C_Read... [17:28:53]Read from MH i2c: 01 07 00 6C 51 00 00 00 00 00 FF 0F D2 [17:28:53]RasterBufferAndPrint [17:28:53]line Счет N : (3)335350 [17:28:53]line ИНН: 02508201610067 [17:28:53]line Контрольно-Кассовый Чек [17:28:53]line ПРОДАЖА [17:28:53]line Товар: 4700003730039 [17:28:53]line Снек Возд пшеница Бадырак сладкая 30гр [17:28:53]line 1.000 * 20.00 [17:28:53]line = 20.00 [17:28:53]line НДС 12% НСП 1% [17:28:53]line > о реализуемом товаре [17:28:53]line Товар: 5904917030103 [17:28:53]line Леденцы JohnyBee AIR PLANE [17:28:53]line 1.000 * 243.00 [17:28:53]line = 243.00 [17:28:53]line НДС 12% НСП 1% [17:28:53]line > о реализуемом товаре [17:28:53]line ИТОГО: 263.00 [17:28:53]line НСП 1% : 2.33 [17:28:53]line НДС 12% : 27.92 [17:28:53]line Наличными: 0.00 [17:28:53]line Безнал.: 263.00 [17:28:53]line Место: АЗС № 101 "Партнер Нефть" [17:28:53]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:28:53]line СНО: Общий режим [17:28:53]line Чек 146 30.10.2024 17:28 [17:28:53]line Смена: 556 ФФД: 1.0 [17:28:53]line ЗНМ: 0300000081 [17:28:53]line РНМ: 0000000000091631 [17:28:53]line Версия ККМ: 001 [17:28:53]line Платежная система: Mbank [17:28:53]line ФМ: 0000000000874669 [17:28:53]line ФД: 139462 [17:28:53]line ФПД: 115296153713712 [17:28:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T172857&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139462&fm=115296153713712&tin=02508201610067®Number=0000000000091631&sum=26300 [17:28:53]line 0 [17:28:53]written 0, free lines is 4095 [17:28:53]OFD Sender: Processing packet 139462 [packets to send 34, broken 33] [17:28:53]ProducePacketName [17:28:53]name=ofd_packets/00139462 [17:28:53]OFD Sender: To server: pG, [17:28:53]CommunicateWithHost lk.salyk.kg:30040 [17:28:53]ConnectInit lk.salyk.kg [17:28:53]Connected sock=10 [17:28:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B4 01 00 00 2F 21 AC 01 E4 5E 5A 03 01 00 03 00 A0 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 35 39 30 34 39 31 37 30 33 30 31 30 33 06 04 21 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D1 86 D1 8B 20 4A 6F 68 6E 79 42 65 65 20 41 49 52 20 50 4C 41 4E 45 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 5E 00 00 00 00 13 04 06 00 EC 5E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E9 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E8 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 BC 66 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 92 00 00 00 F4 03 04 00 D9 6C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 20 02 00 35 04 06 00 68 DC 7A 49 3C 30 67 F1 E9 57 25 5B 9F 4D [17:28:53]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 55 20 47 00 85 84 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C6 20 02 00 F4 03 04 00 89 18 22 67 B6 04 01 00 00 BB BF 4D 4A 2F 1D B0 ED [17:28:53]CommunicateWithHost err = 0 [17:28:53]CheckOFDResponse [17:28:53]1017 (14) - 77093643461234 [17:28:53]1041 (16) - 0000000000874669 [17:28:53]1040 (4) - 139462 [17:28:53]1012 (4) - 30.10.2024 11:29 [17:28:53]1206 (1) - 0 [17:28:53]OFD Sender: Remove packet 139462 [17:28:53]ProducePacketName [17:28:53]name=ofd_packets/00139462 [17:28:53]NVStorageDeleteData [17:28:54]Write to MH i2c: 01 00 00 9C 51 ED [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 07 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: 01 07 00 9C 51 00 00 00 00 00 C0 0C C0 [17:28:54]RasterBufferAndPrint [17:28:54]line [17:28:54]line [17:28:54]line [17:28:54]line [17:28:54]line [17:28:54]written 0, free lines is 3270 [17:28:54]MH_Cut [17:28:54]Write to MH i2c: D1 01 00 A3 51 01 C6 [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: D1 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: D1 01 00 [17:28:54]MH_I2C_Read... [17:28:54]Read from MH i2c: D1 01 00 A3 51 00 C5 [17:28:54]Write to MH i2c: 01 00 00 A4 51 F5 [17:28:54]Write i2c OK [17:28:54]MH_I2C_Read... [17:28:54]OFD Sender: No OFD packet to send [17:28:54]*** Cut start [17:28:54]*** Partial cut [17:28:54]*** CUTSNS_PIN = 1 [17:28:54]*** CUTSNS_PIN = 0 [17:28:55]*** Brake cut motor [17:28:55]Read from MH i2c: 01 [17:28:55]MH_I2C_Read... [17:28:55]*** Stop cut motor [17:28:55]*** Cut end [17:28:55]Read from MH i2c: 01 07 00 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: 01 07 00 A4 51 00 00 00 00 00 FF 0F 0A [17:28:55]process_action close_receipt done [17:28:55]requested_data is exist [17:28:55]produce_requested_data [17:28:55]requested_item fm.sn is exist - process it [17:28:55]wFMCommunicate request_size=4 [17:28:55]MH_SAM_APDU [17:28:55]CAPDU: 80 11 00 00 [17:28:55]Write to MH i2c: E2 08 00 A5 51 80 11 00 00 00 00 00 00 70 [17:28:55]Write i2c OK [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 [17:28:55]MH_I2C_Read... [17:28:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:28:55]Read from MH i2c: E2 17 00 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 17 00 A5 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CB [17:28:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:28:55]wFMCommunicate OK [17:28:55]requested_item fd.num is exist - process it [17:28:55]SAM_PROTO_GetFieldsCounters [17:28:55]wFMCommunicate request_size=4 [17:28:55]MH_SAM_APDU [17:28:55]CAPDU: 80 13 00 00 [17:28:55]Write to MH i2c: E2 08 00 A6 51 80 13 00 00 00 00 00 00 73 [17:28:55]Write i2c OK [17:28:55]MH_I2C_Read... [17:28:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:28:55]Read from MH i2c: E2 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 62 00 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 62 00 A6 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C6 20 02 00 0E 04 04 00 2C 02 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 63 [17:28:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C6 20 02 00 0E 04 04 00 2C 02 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 [17:28:55]wFMCommunicate OK [17:28:55]SAM_PROTO_GetFieldsCounters done [17:28:55]requested_item shift.num is exist - process it [17:28:55]requested_item shift.opened is exist - process it [17:28:55]req_shift_opened [17:28:55]FM_GetShiftState [17:28:55]SAM_PROTO_GetShiftState [17:28:55]wFMCommunicate request_size=4 [17:28:55]MH_SAM_APDU [17:28:55]CAPDU: 80 13 01 00 [17:28:55]Write to MH i2c: E2 08 00 A7 51 80 13 01 00 00 00 00 00 75 [17:28:55]Write i2c OK [17:28:55]MH_I2C_Read... [17:28:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:28:55]Read from MH i2c: E2 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 0E 00 [17:28:55]MH_I2C_Read... [17:28:55]Read from MH i2c: E2 0E 00 A7 51 00 09 00 01 86 76 21 67 00 00 00 00 90 00 05 [17:28:55]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:28:55]wFMCommunicate OK [17:28:55]SAM_PROTO_GetShiftState done [17:28:55]FM_GetShiftState done [17:28:55]req_shift_opened done [17:28:55]requested_item shift.open_date is exist - process it [17:28:55]req_shift_open_date [17:28:55]req_shift_open_date done [17:28:55]produce_requested_data done [17:28:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139462,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:28:55]process_action_free close_receipt [17:28:55]json_value_free [17:28:55]json_value_free done [17:28:55]process_json_proto returns [17:28:55]Send response to host [17:28:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139462,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:28:55]free response buf [17:28:55]execute_script done [17:28:55]execute_script returns [17:28:55]free content buf [17:28:55]Sock 8.Close socket [17:28:55]Sock 8.Thread stoped [17:28:59]OFD Sender: No OFD packet to send [17:29:04]OFD Sender: No OFD packet to send [17:29:09]OFD Sender: No OFD packet to send [17:29:14]OFD Sender: No OFD packet to send [17:29:19]OFD Sender: No OFD packet to send [17:29:24]OFD Sender: No OFD packet to send [17:29:29]OFD Sender: No OFD packet to send [17:29:34]OFD Sender: No OFD packet to send [17:29:39]OFD Sender: No OFD packet to send [17:29:44]OFD Sender: No OFD packet to send [17:29:49]OFD Sender: No OFD packet to send [17:29:54]OFD Sender: No OFD packet to send [17:29:59]OFD Sender: No OFD packet to send [17:30:04]OFD Sender: No OFD packet to send [17:30:09]OFD Sender: No OFD packet to send [17:30:14]OFD Sender: No OFD packet to send [17:30:19]OFD Sender: No OFD packet to send [17:30:24]OFD Sender: No OFD packet to send [17:30:29]OFD Sender: No OFD packet to send [17:30:34]OFD Sender: No OFD packet to send [17:30:39]OFD Sender: No OFD packet to send [17:30:44]OFD Sender: No OFD packet to send [17:30:49]OFD Sender: No OFD packet to send [17:30:54]OFD Sender: No OFD packet to send [17:30:59]OFD Sender: No OFD packet to send [17:31:04]OFD Sender: No OFD packet to send [17:31:09]OFD Sender: No OFD packet to send [17:31:14]OFD Sender: No OFD packet to send [17:31:18]accept exits with 9 [17:31:18]New connection [17:31:18]New thread 3067284836 created [17:31:18]Thread 3067141476 joined [17:31:18]Waiting for new connection... [17:31:18] Sock 9.Parse request [17:31:18]Sock 9.Check first char [17:31:18]Sock 9.First char is OK [17:31:18]request: POST /json_proto HTTP/1.0 [17:31:18]Method: POST [17:31:18]URL: /json_proto [17:31:18]Method is POST - this is cgi request [17:31:18]url: /json_proto [17:31:18]query_string will be loaded in cgi processing [17:31:18]execute_cgi json_proto POST (null) [17:31:18]execute_cgi path=json_proto method=POST [17:31:18]POST find Content-Length [17:31:18]Host: 172.17.50.196:8080 [17:31:18]Content-Length: 748 [17:31:18]Content-Type: application/json [17:31:18] [17:31:18]POST finish read [17:31:18]Found Content-Length = 748 [17:31:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335351", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:18]execute_script... [17:31: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 : (3)335351", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:31:18]POST & json_proto [17:31:18]process_json_proto [17:31:18]json parsed OK: [17:31:18]protocol is kg_v1.0 [17:31:18]action value=close_receipt [17:31:18]process_action close_receipt [17:31:18]cmd_close_receipt [17:31:18]MH_GetDate [17:31:18]Write to MH i2c: F0 00 00 A8 51 E8 [17:31:18]Write i2c OK [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: F0 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: F0 09 00 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: F0 09 00 A8 51 00 6C 6D 22 67 72 0D 1C 67 55 [17:31:18]GetLastDocTimeStamp 1730309337 [17:31:18]current date 1730309484 [17:31:18]FM_GetShiftState [17:31:18]SAM_PROTO_GetShiftState [17:31:18]wFMCommunicate request_size=4 [17:31:18]MH_SAM_APDU [17:31:18]CAPDU: 80 13 01 00 [17:31:18]Write to MH i2c: E2 08 00 A9 51 80 13 01 00 00 00 00 00 77 [17:31:18]Write i2c OK [17:31:18]MH_I2C_Read... [17:31:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:18]Read from MH i2c: E2 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: E2 0E 00 [17:31:18]MH_I2C_Read... [17:31:18]Read from MH i2c: E2 0E 00 A9 51 00 09 00 01 86 76 21 67 00 00 00 00 90 00 07 [17:31:18]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:31:18]wFMCommunicate OK [17:31:18]SAM_PROTO_GetShiftState done [17:31:18]FM_GetShiftState done [17:31:18]opened in 1730246278 [17:31:18]opened+sec_in_day 1730332678 [17:31:18]quantity*price = 14400 [17:31:18]sum+1 = 14401 [17:31:18]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 147 30.10.2024 17:31 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139463 ФПД: 161205948050239 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173124&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139463&fm=161205948050239&tin=02508201610067®Number=0000000000091631&sum=14400 0 [17:31:19]StoreToDocumentArchive [17:31:19]shift 556 fd 139463 [17:31:19]save to /storage/0556/doc_00139463 [17:31:19]save last doc name /storage/0556/doc_00139463 to /storage/kkm_last_doc_name [17:31:19]save OK [17:31:19]Clear old archive folders... [17:31:19]ProcessDocumentItem done err = 0, tmpTLVsize=273 [17:31:19]tlvbuf is 011FBE20 [17:31:19]SAM_PROTO_ClearQueue [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 09 00 00 [17:31:19]Write to MH i2c: E2 08 00 B6 51 80 09 00 00 00 00 00 00 79 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 B6 51 00 90 00 7B [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_ClearQueue done [17:31:19]KKMCreateOFDPacket [17:31:19]OFDProtocolAddRootSTLVToBuf [17:31:19]FM_MakeSignedData [17:31:19]FM_MakeSignedData [17:31:19]SAM_PROTO_SignData [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 01 02 [17:31:19]Write to MH i2c: E2 08 00 B7 51 80 0D 01 02 00 00 00 00 81 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 B7 51 00 90 00 7C [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=255 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 6C 6D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [17:31:19]Write to MH i2c: E2 02 01 B8 51 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 6C 6D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 09 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]OFD Sender: No OFD packet to send [17:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 B8 51 00 90 00 7D [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=32 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 20 02 00 35 04 06 00 92 9D AF 44 EB 3F [17:31:19]Write to MH i2c: E2 23 00 B9 51 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 20 02 00 35 04 06 00 92 9D AF 44 EB 3F 00 00 1E [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 03 00 B9 51 00 90 00 7E [17:31:19]RAPDU: 90 00 [17:31:19]wFMCommunicate OK [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 0D 03 02 [17:31:19]Write to MH i2c: E2 08 00 BA 51 80 0D 03 02 00 00 00 00 86 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0B 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 0B 00 BA 51 00 4D 1D 5F 18 6E 19 F1 56 90 00 36 [17:31:19]RAPDU: 4D 1D 5F 18 6E 19 F1 56 90 00 [17:31:19]wFMCommunicate OK [17:31:19]SAM_PROTO_SignData done [17:31:19]FM_MakeSignedData done [17:31:19]CreateOFDProtocolMessage [17:31:19]wFMCommunicate request_size=4 [17:31:19]MH_SAM_APDU [17:31:19]CAPDU: 80 11 00 00 [17:31:19]Write to MH i2c: E2 08 00 BB 51 80 11 00 00 00 00 00 00 86 [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:19]Read from MH i2c: E2 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 17 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: E2 17 00 BB 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E1 [17:31:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:31:19]wFMCommunicate OK [17:31:19]CreateOFDProtocolMessage done [17:31:19]OFDSenderStorePacket 139463 [17:31:19]StoreOFDPacket docnum=139463 [17:31:19]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 3B 43 1D 01 4D 03 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 6C 6D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 20 02 00 35 04 06 00 92 9D AF 44 EB 3F 4D 1D 5F 18 6E 19 F1 56 [17:31:19]CheckFolder [17:31:19]dirname=/storage/ofd_packets [17:31:19]CheckFolder done [17:31:19]ProducePacketName [17:31:19]name=ofd_packets/00139463 [17:31:19]NVStorageSaveData ofd_packets/00139463 [17:31:19]File name is /storage/ofd_packets/00139463 [17:31:19]Write 323 bytes [17:31:19]NVStorageSaveData done [17:31:19]OFDSenderStorePacket done [17:31:19]KKMCreateOFDPacket done [17:31:19]NVStorageSaveData kkm_last_timestamp [17:31:19]File name is /storage/kkm_last_timestamp [17:31:19]Write 4 bytes [17:31:19]NVStorageSaveData done [17:31:19]ExternCall_PrintAddStr [17:31:19]wPrintStart [17:31:19]Write to MH i2c: 01 00 00 BC 51 0D [17:31:19]Write i2c OK [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 07 00 [17:31:19]MH_I2C_Read... [17:31:19]Read from MH i2c: 01 07 00 BC 51 00 00 00 00 00 FF 0F 22 [17:31:19]RasterBufferAndPrint [17:31:19]line Счет N : (3)335351 [17:31:19]line ИНН: 02508201610067 [17:31:19]line Контрольно-Кассовый Чек [17:31:19]line ПРОДАЖА [17:31:19]line Товар: 48743570 [17:31:19]line Сигареты Winston XStyle Blue [17:31:19]line 1.000 * 144.00 [17:31:19]line = 144.00 [17:31:19]line НДС 12% НСП 1% [17:31:19]line > о реализуемом товаре [17:31:19]line ИТОГО: 144.00 [17:31:19]line НСП 1% : 1.27 [17:31:19]line НДС 12% : 15.29 [17:31:19]line Наличными: 0.00 [17:31:19]line Безнал.: 144.00 [17:31:19]line Место: АЗС № 101 "Партнер Нефть" [17:31:19]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:31:19]line СНО: Общий режим [17:31:19]line Чек 147 30.10.2024 17:31 [17:31:19]line Смена: 556 ФФД: 1.0 [17:31:19]line ЗНМ: 0300000081 [17:31:19]line РНМ: 0000000000091631 [17:31:19]line Версия ККМ: 001 [17:31:19]line Платежная система: Mbank [17:31:19]line ФМ: 0000000000874669 [17:31:19]line ФД: 139463 [17:31:19]line ФПД: 161205948050239 [17:31:19]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173124&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139463&fm=161205948050239&tin=02508201610067®Number=0000000000091631&sum=14400 [17:31:19]OFD Sender: Processing packet 139463 [packets to send 34, broken 33] [17:31:19]ProducePacketName [17:31:19]name=ofd_packets/00139463 [17:31:19]OFD Sender: To server: pG, [17:31:19]CommunicateWithHost lk.salyk.kg:30040 [17:31:19]ConnectInit lk.salyk.kg [17:31:19]line 0 [17:31:19]written 0, free lines is 4095 [17:31:19]Connected sock=10 [17:31:19]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 3B 43 1D 01 4D 03 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 93 00 00 00 F4 03 04 00 6C 6D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 20 02 00 35 04 06 00 92 9D AF 44 EB 3F 4D 1D 5F 18 6E 19 F1 56 [17:31:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 81 61 47 00 20 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C7 20 02 00 F4 03 04 00 1C 19 22 67 B6 04 01 00 00 A8 C4 BB 7E 83 4C D2 B6 [17:31:20]CommunicateWithHost err = 0 [17:31:20]CheckOFDResponse [17:31:20]1017 (14) - 77093643461234 [17:31:20]1041 (16) - 0000000000874669 [17:31:20]1040 (4) - 139463 [17:31:20]1012 (4) - 30.10.2024 11:31 [17:31:20]1206 (1) - 0 [17:31:20]OFD Sender: Remove packet 139463 [17:31:20]ProducePacketName [17:31:20]name=ofd_packets/00139463 [17:31:20]NVStorageDeleteData [17:31:20]Write to MH i2c: 01 00 00 E5 51 36 [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 07 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: 01 07 00 E5 51 00 00 00 00 00 04 0D 4E [17:31:20]RasterBufferAndPrint [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]line [17:31:20]written 0, free lines is 3342 [17:31:20]MH_Cut [17:31:20]Write to MH i2c: D1 01 00 EC 51 01 0F [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 01 00 [17:31:20]MH_I2C_Read... [17:31:20]Read from MH i2c: D1 01 00 EC 51 00 0E [17:31:20]Write to MH i2c: 01 00 00 ED 51 3E [17:31:20]Write i2c OK [17:31:20]MH_I2C_Read... [17:31:20]OFD Sender: No OFD packet to send [17:31:21]*** Cut start [17:31:21]*** Partial cut [17:31:21]*** CUTSNS_PIN = 1 [17:31:21]*** CUTSNS_PIN = 0 [17:31:21]*** Brake cut motor [17:31:21]Read from MH i2c: 01 [17:31:21]MH_I2C_Read... [17:31:21]*** Stop cut motor [17:31:21]*** Cut end [17:31:21]Read from MH i2c: 01 07 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: 01 07 00 ED 51 00 00 00 00 00 FF 0F 53 [17:31:21]process_action close_receipt done [17:31:21]requested_data is exist [17:31:21]produce_requested_data [17:31:21]requested_item fm.sn is exist - process it [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 11 00 00 [17:31:21]Write to MH i2c: E2 08 00 EE 51 80 11 00 00 00 00 00 00 B9 [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 17 00 EE 51 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 14 [17:31:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:31:21]wFMCommunicate OK [17:31:21]requested_item fd.num is exist - process it [17:31:21]SAM_PROTO_GetFieldsCounters [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 13 00 00 [17:31:21]Write to MH i2c: E2 08 00 EF 51 80 13 00 00 00 00 00 00 BC [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 62 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 62 00 EF 51 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C7 20 02 00 0E 04 04 00 2C 02 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 B0 [17:31:21]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C7 20 02 00 0E 04 04 00 2C 02 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 [17:31:21]wFMCommunicate OK [17:31:21]SAM_PROTO_GetFieldsCounters done [17:31:21]requested_item shift.num is exist - process it [17:31:21]requested_item shift.opened is exist - process it [17:31:21]req_shift_opened [17:31:21]FM_GetShiftState [17:31:21]SAM_PROTO_GetShiftState [17:31:21]wFMCommunicate request_size=4 [17:31:21]MH_SAM_APDU [17:31:21]CAPDU: 80 13 01 00 [17:31:21]Write to MH i2c: E2 08 00 F0 51 80 13 01 00 00 00 00 00 BE [17:31:21]Write i2c OK [17:31:21]MH_I2C_Read... [17:31:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:31:21]Read from MH i2c: E2 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0E 00 [17:31:21]MH_I2C_Read... [17:31:21]Read from MH i2c: E2 0E 00 F0 51 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4E [17:31:21]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:31:21]wFMCommunicate OK [17:31:21]SAM_PROTO_GetShiftState done [17:31:21]FM_GetShiftState done [17:31:21]req_shift_opened done [17:31:21]requested_item shift.open_date is exist - process it [17:31:21]req_shift_open_date [17:31:21]req_shift_open_date done [17:31:21]produce_requested_data done [17:31:21]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139463,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:31:21]process_action_free close_receipt [17:31:21]json_value_free [17:31:21]json_value_free done [17:31:21]process_json_proto returns [17:31:21]Send response to host [17:31:21]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139463,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:31:21]free response buf [17:31:21]execute_script done [17:31:21]execute_script returns [17:31:21]free content buf [17:31:21]Sock 9.Close socket [17:31:21]Sock 9.Thread stoped [17:31:25]OFD Sender: No OFD packet to send [17:31:30]OFD Sender: No OFD packet to send [17:31:35]OFD Sender: No OFD packet to send [17:31:40]OFD Sender: No OFD packet to send [17:31:45]OFD Sender: No OFD packet to send [17:31:50]OFD Sender: No OFD packet to send [17:31:55]OFD Sender: No OFD packet to send [17:32:00]OFD Sender: No OFD packet to send [17:32:05]OFD Sender: No OFD packet to send [17:32:10]OFD Sender: No OFD packet to send [17:32:15]OFD Sender: No OFD packet to send [17:32:20]OFD Sender: No OFD packet to send [17:32:25]OFD Sender: No OFD packet to send [17:32:30]OFD Sender: No OFD packet to send [17:32:35]OFD Sender: No OFD packet to send [17:32:40]OFD Sender: No OFD packet to send [17:32:45]OFD Sender: No OFD packet to send [17:32:50]OFD Sender: No OFD packet to send [17:32:55]OFD Sender: No OFD packet to send [17:33:00]OFD Sender: No OFD packet to send [17:33:05]OFD Sender: No OFD packet to send [17:33:10]OFD Sender: No OFD packet to send [17:33:15]OFD Sender: No OFD packet to send [17:33:20]OFD Sender: No OFD packet to send [17:33:25]OFD Sender: No OFD packet to send [17:33:30]OFD Sender: No OFD packet to send [17:33:35]OFD Sender: No OFD packet to send [17:33:40]OFD Sender: No OFD packet to send [17:33:45]OFD Sender: No OFD packet to send [17:33:50]OFD Sender: No OFD packet to send [17:33:55]OFD Sender: No OFD packet to send [17:34:00]OFD Sender: No OFD packet to send [17:34:05]OFD Sender: No OFD packet to send [17:34:10]OFD Sender: No OFD packet to send [17:34:15]OFD Sender: No OFD packet to send [17:34:20]OFD Sender: No OFD packet to send [17:34:25]OFD Sender: No OFD packet to send [17:34:30]OFD Sender: No OFD packet to send [17:34:35]OFD Sender: No OFD packet to send [17:34:40]OFD Sender: No OFD packet to send [17:34:45]OFD Sender: No OFD packet to send [17:34:50]OFD Sender: No OFD packet to send [17:34:55]OFD Sender: No OFD packet to send [17:35:00]OFD Sender: No OFD packet to send [17:35:05]OFD Sender: No OFD packet to send [17:35:10]OFD Sender: No OFD packet to send [17:35:15]OFD Sender: No OFD packet to send [17:35:20]OFD Sender: No OFD packet to send [17:35:25]OFD Sender: No OFD packet to send [17:35:30]OFD Sender: No OFD packet to send [17:35:35]OFD Sender: No OFD packet to send [17:35:40]OFD Sender: No OFD packet to send [17:35:45]OFD Sender: No OFD packet to send [17:35:50]OFD Sender: No OFD packet to send [17:35:55]OFD Sender: No OFD packet to send [17:36:00]OFD Sender: No OFD packet to send [17:36:05]OFD Sender: No OFD packet to send [17:36:10]OFD Sender: No OFD packet to send [17:36:15]OFD Sender: No OFD packet to send [17:36:20]OFD Sender: No OFD packet to send [17:36:25]OFD Sender: No OFD packet to send [17:36:30]OFD Sender: No OFD packet to send [17:36:35]OFD Sender: No OFD packet to send [17:36:40]OFD Sender: No OFD packet to send [17:36:45]OFD Sender: No OFD packet to send [17:36:50]OFD Sender: No OFD packet to send [17:36:55]OFD Sender: No OFD packet to send [17:37:00]OFD Sender: No OFD packet to send [17:37:05]OFD Sender: No OFD packet to send [17:37:10]OFD Sender: No OFD packet to send [17:37:15]OFD Sender: No OFD packet to send [17:37:20]OFD Sender: No OFD packet to send [17:37:25]OFD Sender: No OFD packet to send [17:37:31]OFD Sender: No OFD packet to send [17:37:36]OFD Sender: No OFD packet to send [17:37:41]OFD Sender: No OFD packet to send [17:37:46]OFD Sender: No OFD packet to send [17:37:51]OFD Sender: No OFD packet to send [17:37:56]OFD Sender: No OFD packet to send [17:38:01]OFD Sender: No OFD packet to send [17:38:06]OFD Sender: No OFD packet to send [17:38:11]OFD Sender: No OFD packet to send [17:38:16]OFD Sender: No OFD packet to send [17:38:21]OFD Sender: No OFD packet to send [17:38:26]OFD Sender: No OFD packet to send [17:38:31]OFD Sender: No OFD packet to send [17:38:36]OFD Sender: No OFD packet to send [17:38:41]OFD Sender: No OFD packet to send [17:38:46]OFD Sender: No OFD packet to send [17:38:46]accept exits with 8 [17:38:46]New connection [17:38:46]New thread 3067141476 created [17:38:46]Thread 3067284836 joined [17:38:46]Waiting for new connection... [17:38:46] Sock 8.Parse request [17:38:46]Sock 8.Check first char [17:38:46]Sock 8.First char is OK [17:38:46]request: POST /json_proto HTTP/1.0 [17:38:46]Method: POST [17:38:46]URL: /json_proto [17:38:46]Method is POST - this is cgi request [17:38:46]url: /json_proto [17:38:46]query_string will be loaded in cgi processing [17:38:46]execute_cgi json_proto POST (null) [17:38:46]execute_cgi path=json_proto method=POST [17:38:46]POST find Content-Length [17:38:46]Host: 172.17.50.196:8080 [17:38:46]Content-Length: 1022 [17:38:46]Content-Type: application/json [17:38:46] [17:38:46]POST finish read [17:38:46]Found Content-Length = 1022 [17:38:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335352", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:46]execute_script... [17: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 : (3)335352", "tax_sys" : 0, "items" : [ { "code": "4700040114120", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0447\u0435\u0440 \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 89.00, "quantity" : 2.000, "sum" : 178.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 238.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:38:46]POST & json_proto [17:38:46]process_json_proto [17:38:46]json parsed OK: [17:38:46]protocol is kg_v1.0 [17:38:46]action value=close_receipt [17:38:46]process_action close_receipt [17:38:46]cmd_close_receipt [17:38:46]MH_GetDate [17:38:46]Write to MH i2c: F0 00 00 F1 51 31 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 09 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: F0 09 00 F1 51 00 2C 6F 22 67 72 0D 1C 67 60 [17:38:46]GetLastDocTimeStamp 1730309484 [17:38:46]current date 1730309932 [17:38:46]FM_GetShiftState [17:38:46]SAM_PROTO_GetShiftState [17:38:46]wFMCommunicate request_size=4 [17:38:46]MH_SAM_APDU [17:38:46]CAPDU: 80 13 01 00 [17:38:46]Write to MH i2c: E2 08 00 F2 51 80 13 01 00 00 00 00 00 C0 [17:38:46]Write i2c OK [17:38:46]MH_I2C_Read... [17:38:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:46]Read from MH i2c: E2 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 [17:38:46]MH_I2C_Read... [17:38:46]Read from MH i2c: E2 0E 00 F2 51 00 09 00 01 86 76 21 67 00 00 00 00 90 00 50 [17:38:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:38:46]wFMCommunicate OK [17:38:46]SAM_PROTO_GetShiftState done [17:38:46]FM_GetShiftState done [17:38:46]opened in 1730246278 [17:38:46]opened+sec_in_day 1730332678 [17:38:46]quantity*price = 17800 [17:38:46]sum+1 = 17801 [17:38:46]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160792 Снек Курут классический (круглый) 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 238.00 НСП 1% : 2.10 НДС 12% : 25.27 Наличными: 238.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 148 30.10.2024 17:38 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139464 ФПД: 32536656303240 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173852&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139464&fm=32536656303240&tin=02508201610067®Number=0000000000091631&sum=23800 0 [17:38:47]StoreToDocumentArchive [17:38:47]shift 556 fd 139464 [17:38:47]save to /storage/0556/doc_00139464 [17:38:47]save last doc name /storage/0556/doc_00139464 to /storage/kkm_last_doc_name [17:38:47]save OK [17:38:47]Clear old archive folders... [17:38:47]ProcessDocumentItem done err = 0, tmpTLVsize=419 [17:38:47]tlvbuf is 011938E0 [17:38:47]SAM_PROTO_ClearQueue [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 09 00 00 [17:38:47]Write to MH i2c: E2 08 00 FF 51 80 09 00 00 00 00 00 00 C2 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 FF 51 00 90 00 C4 [17:38:47]RAPDU: 90 00 [17:38:47]wFMCommunicate OK [17:38:47]SAM_PROTO_ClearQueue done [17:38:47]KKMCreateOFDPacket [17:38:47]OFDProtocolAddRootSTLVToBuf [17:38:47]FM_MakeSignedData [17:38:47]FM_MakeSignedData [17:38:47]SAM_PROTO_SignData [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 0D 01 02 [17:38:47]Write to MH i2c: E2 08 00 00 52 80 0D 01 02 00 00 00 00 CB [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 00 52 00 90 00 C6 [17:38:47]RAPDU: 90 00 [17:38:47]wFMCommunicate OK [17:38:47]wFMCommunicate request_size=255 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 0D 02 02 FA 03 00 A3 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 [17:38:47]Write to MH i2c: E2 02 01 01 52 80 0D 02 02 FA 00 03 00 A3 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 00 00 2B [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 01 52 00 90 00 C7 [17:38:47]RAPDU: 90 00 [17:38:47]wFMCommunicate OK [17:38:47]wFMCommunicate request_size=178 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 0D 02 02 AD 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 00 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 2C 6F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 20 02 00 35 04 06 00 1D 97 87 D7 54 88 [17:38:47]Write to MH i2c: E2 B5 00 02 52 80 0D 02 02 AD 00 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 00 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 2C 6F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 20 02 00 35 04 06 00 1D 97 87 D7 54 88 00 00 51 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:38:47]Read from MH i2c: E2 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 [17:38:47]MH_I2C_Read... [17:38:47]Read from MH i2c: E2 03 00 02 52 00 90 00 C8 [17:38:47]RAPDU: 90 00 [17:38:47]wFMCommunicate OK [17:38:47]wFMCommunicate request_size=4 [17:38:47]MH_SAM_APDU [17:38:47]CAPDU: 80 0D 03 02 [17:38:47]Write to MH i2c: E2 08 00 03 52 80 0D 03 02 00 00 00 00 D0 [17:38:47]Write i2c OK [17:38:47]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 0B 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 0B 00 03 52 00 48 E9 B1 F5 5A 90 82 D7 90 00 EB [17:38:48]RAPDU: 48 E9 B1 F5 5A 90 82 D7 90 00 [17:38:48]wFMCommunicate OK [17:38:48]SAM_PROTO_SignData done [17:38:48]FM_MakeSignedData done [17:38:48]CreateOFDProtocolMessage [17:38:48]wFMCommunicate request_size=4 [17:38:48]MH_SAM_APDU [17:38:48]CAPDU: 80 11 00 00 [17:38:48]Write to MH i2c: E2 08 00 04 52 80 11 00 00 00 00 00 00 D0 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:48]Read from MH i2c: E2 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 17 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: E2 17 00 04 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2B [17:38:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:38:48]wFMCommunicate OK [17:38:48]CreateOFDProtocolMessage done [17:38:48]OFDSenderStorePacket 139464 [17:38:48]StoreOFDPacket docnum=139464 [17:38:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B7 01 00 00 EB 23 AF 01 E6 B8 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 00 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 2C 6F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 20 02 00 35 04 06 00 1D 97 87 D7 54 88 48 E9 B1 F5 5A 90 82 D7 [17:38:48]CheckFolder [17:38:48]dirname=/storage/ofd_packets [17:38:48]CheckFolder done [17:38:48]ProducePacketName [17:38:48]name=ofd_packets/00139464 [17:38:48]NVStorageSaveData ofd_packets/00139464 [17:38:48]File name is /storage/ofd_packets/00139464 [17:38:48]Write 469 bytes [17:38:48]NVStorageSaveData done [17:38:48]OFDSenderStorePacket done [17:38:48]KKMCreateOFDPacket done [17:38:48]NVStorageSaveData kkm_last_timestamp [17:38:48]File name is /storage/kkm_last_timestamp [17:38:48]Write 4 bytes [17:38:48]NVStorageSaveData done [17:38:48]ExternCall_PrintAddStr [17:38:48]wPrintStart [17:38:48]Write to MH i2c: 01 00 00 05 52 57 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 [17:38:48]MH_I2C_Read... [17:38:48]OFD Sender: Processing packet 139464 [packets to send 34, broken 33] [17:38:48]ProducePacketName [17:38:48]name=ofd_packets/00139464 [17:38:48]OFD Sender: To server: pG, [17:38:48]CommunicateWithHost lk.salyk.kg:30040 [17:38:48]ConnectInit lk.salyk.kg [17:38:48]Read from MH i2c: 01 07 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 05 52 00 00 00 00 00 FF 0F 6C [17:38:48]RasterBufferAndPrint [17:38:48]line Счет N : (3)335352 [17:38:48]line ИНН: 02508201610067 [17:38:48]line Контрольно-Кассовый Чек [17:38:48]line ПРОДАЖА [17:38:48]line Товар: 4700040114120 [17:38:48]line Султан чай 1л. чер персик [17:38:48]line 2.000 * 89.00 [17:38:48]line = 178.00 [17:38:48]line НДС 12% НСП 1% [17:38:48]line > о реализуемом товаре [17:38:48]line Товар: 4700000160792 [17:38:48]line Снек Курут классический (круглый) [17:38:48]line 1.000 * 60.00 [17:38:48]line = 60.00 [17:38:48]line НДС 12% НСП 1% [17:38:48]line > о реализуемом товаре [17:38:48]line ИТОГО: 238.00 [17:38:48]line НСП 1% : 2.10 [17:38:48]line НДС 12% : 25.27 [17:38:48]line Наличными: 238.00 [17:38:48]line Безнал.: 0.00 [17:38:48]line Место: АЗС № 101 "Партнер Нефть" [17:38:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:38:48]line СНО: Общий режим [17:38:48]line Чек 148 30.10.2024 17:38 [17:38:48]line Смена: 556 ФФД: 1.0 [17:38:48]line ЗНМ: 0300000081 [17:38:48]line РНМ: 0000000000091631 [17:38:48]line Версия ККМ: 001 [17:38:48]line ФМ: 0000000000874669 [17:38:48]line ФД: 139464 [17:38:48]line ФПД: 32536656303240 [17:38:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T173852&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139464&fm=32536656303240&tin=02508201610067®Number=0000000000091631&sum=23800 [17:38:48]line 0 [17:38:48]written 0, free lines is 4095 [17:38:48]Connected sock=10 [17:38:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B7 01 00 00 EB 23 AF 01 E6 B8 5A 03 01 00 03 00 A3 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 32 30 06 04 2C 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D1 87 D0 B5 D1 80 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 88 45 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F8 5C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D2 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 DF 09 00 00 00 00 07 04 06 00 F8 5C 00 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 2C 6F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 20 02 00 35 04 06 00 1D 97 87 D7 54 88 48 E9 B1 F5 5A 90 82 D7 [17:38:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F5 D0 47 00 9F B0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C8 20 02 00 F4 03 04 00 DC 1A 22 67 B6 04 01 00 00 9E 57 A9 80 5D 17 16 16 [17:38:48]CommunicateWithHost err = 0 [17:38:48]CheckOFDResponse [17:38:48]1017 (14) - 77093643461234 [17:38:48]1041 (16) - 0000000000874669 [17:38:48]1040 (4) - 139464 [17:38:48]1012 (4) - 30.10.2024 11:39 [17:38:48]1206 (1) - 0 [17:38:48]OFD Sender: Remove packet 139464 [17:38:48]ProducePacketName [17:38:48]name=ofd_packets/00139464 [17:38:48]NVStorageDeleteData [17:38:48]Write to MH i2c: 01 00 00 34 52 86 [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: 01 07 00 34 52 00 00 00 00 00 D6 0C 6F [17:38:48]RasterBufferAndPrint [17:38:48]line [17:38:48]line [17:38:48]line [17:38:48]line [17:38:48]line [17:38:48]written 0, free lines is 3296 [17:38:48]MH_Cut [17:38:48]Write to MH i2c: D1 01 00 3B 52 01 5F [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: D1 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: D1 01 00 [17:38:48]MH_I2C_Read... [17:38:48]Read from MH i2c: D1 01 00 3B 52 00 5E [17:38:48]Write to MH i2c: 01 00 00 3C 52 8E [17:38:48]Write i2c OK [17:38:48]MH_I2C_Read... [17:38:49]OFD Sender: No OFD packet to send [17:38:49]*** Cut start [17:38:49]*** Partial cut [17:38:49]*** CUTSNS_PIN = 1 [17:38:49]*** CUTSNS_PIN = 0 [17:38:49]*** Brake cut motor [17:38:50]Read from MH i2c: 01 [17:38:50]MH_I2C_Read... [17:38:50]*** Stop cut motor [17:38:50]*** Cut end [17:38:50]Read from MH i2c: 01 07 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: 01 07 00 3C 52 00 00 00 00 00 FF 0F A3 [17:38:50]process_action close_receipt done [17:38:50]requested_data is exist [17:38:50]produce_requested_data [17:38:50]requested_item fm.sn is exist - process it [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 11 00 00 [17:38:50]Write to MH i2c: E2 08 00 3D 52 80 11 00 00 00 00 00 00 09 [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 17 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 17 00 3D 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 64 [17:38:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:38:50]wFMCommunicate OK [17:38:50]requested_item fd.num is exist - process it [17:38:50]SAM_PROTO_GetFieldsCounters [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 13 00 00 [17:38:50]Write to MH i2c: E2 08 00 3E 52 80 13 00 00 00 00 00 00 0C [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 62 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 62 00 3E 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C8 20 02 00 0E 04 04 00 2C 02 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 04 [17:38:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C8 20 02 00 0E 04 04 00 2C 02 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 [17:38:50]wFMCommunicate OK [17:38:50]SAM_PROTO_GetFieldsCounters done [17:38:50]requested_item shift.num is exist - process it [17:38:50]requested_item shift.opened is exist - process it [17:38:50]req_shift_opened [17:38:50]FM_GetShiftState [17:38:50]SAM_PROTO_GetShiftState [17:38:50]wFMCommunicate request_size=4 [17:38:50]MH_SAM_APDU [17:38:50]CAPDU: 80 13 01 00 [17:38:50]Write to MH i2c: E2 08 00 3F 52 80 13 01 00 00 00 00 00 0E [17:38:50]Write i2c OK [17:38:50]MH_I2C_Read... [17:38:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:38:50]Read from MH i2c: E2 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 0E 00 [17:38:50]MH_I2C_Read... [17:38:50]Read from MH i2c: E2 0E 00 3F 52 00 09 00 01 86 76 21 67 00 00 00 00 90 00 9E [17:38:50]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:38:50]wFMCommunicate OK [17:38:50]SAM_PROTO_GetShiftState done [17:38:50]FM_GetShiftState done [17:38:50]req_shift_opened done [17:38:50]requested_item shift.open_date is exist - process it [17:38:50]req_shift_open_date [17:38:50]req_shift_open_date done [17:38:50]produce_requested_data done [17:38:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139464,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:38:50]process_action_free close_receipt [17:38:50]json_value_free [17:38:50]json_value_free done [17:38:50]process_json_proto returns [17:38:50]Send response to host [17:38:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139464,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:38:50]free response buf [17:38:50]execute_script done [17:38:50]execute_script returns [17:38:50]free content buf [17:38:50]Sock 8.Close socket [17:38:50]Sock 8.Thread stoped [17:38:54]OFD Sender: No OFD packet to send [17:38:59]OFD Sender: No OFD packet to send [17:39:04]OFD Sender: No OFD packet to send [17:39:09]OFD Sender: No OFD packet to send [17:39:14]OFD Sender: No OFD packet to send [17:39:19]OFD Sender: No OFD packet to send [17:39:24]OFD Sender: No OFD packet to send [17:39:29]OFD Sender: No OFD packet to send [17:39:34]OFD Sender: No OFD packet to send [17:39:39]OFD Sender: No OFD packet to send [17:39:44]OFD Sender: No OFD packet to send [17:39:49]OFD Sender: No OFD packet to send [17:39:54]OFD Sender: No OFD packet to send [17:39:59]OFD Sender: No OFD packet to send [17:40:04]OFD Sender: No OFD packet to send [17:40:09]OFD Sender: No OFD packet to send [17:40:14]OFD Sender: No OFD packet to send [17:40:19]OFD Sender: No OFD packet to send [17:40:24]OFD Sender: No OFD packet to send [17:40:29]OFD Sender: No OFD packet to send [17:40:34]OFD Sender: No OFD packet to send [17:40:39]OFD Sender: No OFD packet to send [17:40:44]OFD Sender: No OFD packet to send [17:40:49]OFD Sender: No OFD packet to send [17:40:54]OFD Sender: No OFD packet to send [17:40:59]OFD Sender: No OFD packet to send [17:41:04]OFD Sender: No OFD packet to send [17:41:09]OFD Sender: No OFD packet to send [17:41:14]OFD Sender: No OFD packet to send [17:41:19]OFD Sender: No OFD packet to send [17:41:24]OFD Sender: No OFD packet to send [17:41:29]OFD Sender: No OFD packet to send [17:41:34]OFD Sender: No OFD packet to send [17:41:39]OFD Sender: No OFD packet to send [17:41:44]OFD Sender: No OFD packet to send [17:41:49]OFD Sender: No OFD packet to send [17:41:54]OFD Sender: No OFD packet to send [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]accept exits with 9 [17:42:14]New connection [17:42:14]New thread 3067284836 created [17:42:14]Thread 3067141476 joined [17:42:14]Waiting for new connection... [17:42:14] Sock 9.Parse request [17:42:14]Sock 9.Check first char [17:42:14]Sock 9.First char is OK [17:42:14]request: POST /json_proto HTTP/1.0 [17:42:14]Method: POST [17:42:14]URL: /json_proto [17:42:14]Method is POST - this is cgi request [17:42:14]url: /json_proto [17:42:14]query_string will be loaded in cgi processing [17:42:14]execute_cgi json_proto POST (null) [17:42:14]execute_cgi path=json_proto method=POST [17:42:14]POST find Content-Length [17:42:14]Host: 172.17.50.196:8080 [17:42:14]Content-Length: 634 [17:42:14]Content-Type: application/json [17:42:14] [17:42:14]POST finish read [17:42:14]Found Content-Length = 634 [17:42:14]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335353", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:14]execute_script... [17:42: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 : (3)335353", "tax_sys" : 0, "items" : [ { "code": "4700000160211", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 0,5\u043B", "price" : 40.00, "quantity" : 3.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:14]POST & json_proto [17:42:14]process_json_proto [17:42:14]json parsed OK: [17:42:14]protocol is kg_v1.0 [17:42:14]action value=close_receipt [17:42:14]process_action close_receipt [17:42:14]cmd_close_receipt [17:42:14]MH_GetDate [17:42:14]Write to MH i2c: F0 00 00 40 52 81 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: F0 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: F0 09 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: F0 09 00 40 52 00 FC 6F 22 67 72 0D 1C 67 80 [17:42:14]GetLastDocTimeStamp 1730309932 [17:42:14]current date 1730310140 [17:42:14]FM_GetShiftState [17:42:14]SAM_PROTO_GetShiftState [17:42:14]wFMCommunicate request_size=4 [17:42:14]MH_SAM_APDU [17:42:14]CAPDU: 80 13 01 00 [17:42:14]Write to MH i2c: E2 08 00 41 52 80 13 01 00 00 00 00 00 10 [17:42:14]Write i2c OK [17:42:14]MH_I2C_Read... [17:42:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:14]Read from MH i2c: E2 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 0E 00 [17:42:14]MH_I2C_Read... [17:42:14]Read from MH i2c: E2 0E 00 41 52 00 09 00 01 86 76 21 67 00 00 00 00 90 00 A0 [17:42:14]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:42:14]wFMCommunicate OK [17:42:14]SAM_PROTO_GetShiftState done [17:42:14]FM_GetShiftState done [17:42:14]opened in 1730246278 [17:42:14]opened+sec_in_day 1730332678 [17:42:14]quantity*price = 12000 [17:42:14]sum+1 = 12001 [17:42:14]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 149 30.10.2024 17:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139465 ФПД: 139812531202094 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174220&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139465&fm=139812531202094&tin=02508201610067®Number=0000000000091631&sum=12000 0 [17:42:15]StoreToDocumentArchive [17:42:15]shift 556 fd 139465 [17:42:15]save to /storage/0556/doc_00139465 [17:42:15]save last doc name /storage/0556/doc_00139465 to /storage/kkm_last_doc_name [17:42:15]save OK [17:42:15]Clear old archive folders... [17:42:15]ProcessDocumentItem done err = 0, tmpTLVsize=271 [17:42:15]tlvbuf is 011A8D50 [17:42:15]SAM_PROTO_ClearQueue [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 09 00 00 [17:42:15]Write to MH i2c: E2 08 00 4E 52 80 09 00 00 00 00 00 00 12 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 4E 52 00 90 00 14 [17:42:15]RAPDU: 90 00 [17:42:15]wFMCommunicate OK [17:42:15]SAM_PROTO_ClearQueue done [17:42:15]KKMCreateOFDPacket [17:42:15]OFDProtocolAddRootSTLVToBuf [17:42:15]FM_MakeSignedData [17:42:15]FM_MakeSignedData [17:42:15]SAM_PROTO_SignData [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 0D 01 02 [17:42:15]Write to MH i2c: E2 08 00 4F 52 80 0D 01 02 00 00 00 00 1A [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 4F 52 00 90 00 15 [17:42:15]RAPDU: 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=255 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 FC 6F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [17:42:15]Write to MH i2c: E2 02 01 50 52 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 FC 6F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 41 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 50 52 00 90 00 16 [17:42:15]RAPDU: 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=30 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 C9 20 02 00 35 04 06 00 7F 28 A4 41 E8 2E [17:42:15]Write to MH i2c: E2 21 00 51 52 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 C9 20 02 00 35 04 06 00 7F 28 A4 41 E8 2E 00 00 AB [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 03 00 51 52 00 90 00 17 [17:42:15]RAPDU: 90 00 [17:42:15]wFMCommunicate OK [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 0D 03 02 [17:42:15]Write to MH i2c: E2 08 00 52 52 80 0D 03 02 00 00 00 00 1F [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 0B 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 0B 00 52 52 00 6D E1 93 D0 23 A9 DB B6 90 00 2E [17:42:15]RAPDU: 6D E1 93 D0 23 A9 DB B6 90 00 [17:42:15]wFMCommunicate OK [17:42:15]SAM_PROTO_SignData done [17:42:15]FM_MakeSignedData done [17:42:15]CreateOFDProtocolMessage [17:42:15]wFMCommunicate request_size=4 [17:42:15]MH_SAM_APDU [17:42:15]CAPDU: 80 11 00 00 [17:42:15]Write to MH i2c: E2 08 00 53 52 80 11 00 00 00 00 00 00 1F [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:15]Read from MH i2c: E2 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 17 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: E2 17 00 53 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7A [17:42:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:42:15]wFMCommunicate OK [17:42:15]CreateOFDProtocolMessage done [17:42:15]OFDSenderStorePacket 139465 [17:42:15]StoreOFDPacket docnum=139465 [17:42:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 F4 4C 1B 01 4C 74 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 FC 6F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C9 20 02 00 35 04 06 00 7F 28 A4 41 E8 2E 6D E1 93 D0 23 A9 DB B6 [17:42:15]CheckFolder [17:42:15]dirname=/storage/ofd_packets [17:42:15]CheckFolder done [17:42:15]ProducePacketName [17:42:15]name=ofd_packets/00139465 [17:42:15]NVStorageSaveData ofd_packets/00139465 [17:42:15]File name is /storage/ofd_packets/00139465 [17:42:15]Write 321 bytes [17:42:15]NVStorageSaveData done [17:42:15]OFDSenderStorePacket done [17:42:15]KKMCreateOFDPacket done [17:42:15]NVStorageSaveData kkm_last_timestamp [17:42:15]File name is /storage/kkm_last_timestamp [17:42:15]Write 4 bytes [17:42:15]NVStorageSaveData done [17:42:15]ExternCall_PrintAddStr [17:42:15]wPrintStart [17:42:15]Write to MH i2c: 01 00 00 54 52 A6 [17:42:15]Write i2c OK [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 07 00 [17:42:15]MH_I2C_Read... [17:42:15]Read from MH i2c: 01 07 00 54 52 00 00 00 00 00 FF 0F BB [17:42:15]RasterBufferAndPrint [17:42:15]line Счет N : (3)335353 [17:42:15]line ИНН: 02508201610067 [17:42:15]line Контрольно-Кассовый Чек [17:42:15]line ПРОДАЖА [17:42:15]line Товар: 4700000160211 [17:42:15]line Вода Легенда 0,5л [17:42:15]line 3.000 * 40.00 [17:42:15]line = 120.00 [17:42:15]line НДС 12% НСП 1% [17:42:15]line > о реализуемом товаре [17:42:15]line ИТОГО: 120.00 [17:42:15]line НСП 1% : 1.06 [17:42:15]line НДС 12% : 12.74 [17:42:15]line Наличными: 120.00 [17:42:15]line Безнал.: 0.00 [17:42:15]line Место: АЗС № 101 "Партнер Нефть" [17:42:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:42:15]line СНО: Общий режим [17:42:15]line Чек 149 30.10.2024 17:42 [17:42:15]line Смена: 556 ФФД: 1.0 [17:42:15]line ЗНМ: 0300000081 [17:42:15]line РНМ: 0000000000091631 [17:42:15]line Версия ККМ: 001 [17:42:15]line ФМ: 0000000000874669 [17:42:15]line ФД: 139465 [17:42:15]line ФПД: 139812531202094 [17:42:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174220&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139465&fm=139812531202094&tin=02508201610067®Number=0000000000091631&sum=12000 [17:42:16]OFD Sender: Processing packet 139465 [packets to send 34, broken 33] [17:42:16]ProducePacketName [17:42:16]name=ofd_packets/00139465 [17:42:16]OFD Sender: To server: pG, [17:42:16]CommunicateWithHost lk.salyk.kg:30040 [17:42:16]ConnectInit lk.salyk.kg [17:42:16]line 0 [17:42:16]written 0, free lines is 4095 [17:42:16]Connected sock=10 [17:42:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 F4 4C 1B 01 4C 74 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 32 31 31 06 04 1D 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 A0 0F 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 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 FC 6F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 C9 20 02 00 35 04 06 00 7F 28 A4 41 E8 2E 6D E1 93 D0 23 A9 DB B6 [17:42:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DB 61 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 38 37 34 36 36 39 10 04 04 00 C9 20 02 00 F4 03 04 00 AC 1B 22 67 B6 04 01 00 00 60 9B 56 EE 97 5E 11 A7 [17:42:16]CommunicateWithHost err = 0 [17:42:16]CheckOFDResponse [17:42:16]1017 (14) - 77093643461234 [17:42:16]1041 (16) - 0000000000874669 [17:42:16]1040 (4) - 139465 [17:42:16]1012 (4) - 30.10.2024 11:42 [17:42:16]1206 (1) - 0 [17:42:16]OFD Sender: Remove packet 139465 [17:42:16]ProducePacketName [17:42:16]name=ofd_packets/00139465 [17:42:16]NVStorageDeleteData [17:42:16]Write to MH i2c: 01 00 00 7C 52 CE [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 07 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: 01 07 00 7C 52 00 00 00 00 00 0F 0D F1 [17:42:16]RasterBufferAndPrint [17:42:16]line [17:42:16]line [17:42:16]line [17:42:16]line [17:42:16]line [17:42:16]written 0, free lines is 3353 [17:42:16]MH_Cut [17:42:16]Write to MH i2c: D1 01 00 83 52 01 A7 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: D1 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: D1 01 00 [17:42:16]MH_I2C_Read... [17:42:16]Read from MH i2c: D1 01 00 83 52 00 A6 [17:42:16]Write to MH i2c: 01 00 00 84 52 D6 [17:42:16]Write i2c OK [17:42:16]MH_I2C_Read... [17:42:16]OFD Sender: No OFD packet to send [17:42:17]*** Cut start [17:42:17]*** Partial cut [17:42:17]*** CUTSNS_PIN = 1 [17:42:17]*** CUTSNS_PIN = 0 [17:42:17]*** Brake cut motor [17:42:17]Read from MH i2c: 01 [17:42:17]MH_I2C_Read... [17:42:17]*** Stop cut motor [17:42:17]*** Cut end [17:42:17]Read from MH i2c: 01 07 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: 01 07 00 84 52 00 00 00 00 00 FF 0F EB [17:42:17]process_action close_receipt done [17:42:17]requested_data is exist [17:42:17]produce_requested_data [17:42:17]requested_item fm.sn is exist - process it [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 11 00 00 [17:42:17]Write to MH i2c: E2 08 00 85 52 80 11 00 00 00 00 00 00 51 [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:17]Read from MH i2c: E2 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 17 00 [17:42:17]MH_I2C_Read... [17:42:17]Read from MH i2c: E2 17 00 85 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AC [17:42:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:42:17]wFMCommunicate OK [17:42:17]requested_item fd.num is exist - process it [17:42:17]SAM_PROTO_GetFieldsCounters [17:42:17]wFMCommunicate request_size=4 [17:42:17]MH_SAM_APDU [17:42:17]CAPDU: 80 13 00 00 [17:42:17]Write to MH i2c: E2 08 00 86 52 80 13 00 00 00 00 00 00 54 [17:42:17]Write i2c OK [17:42:17]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 62 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 62 00 86 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C9 20 02 00 0E 04 04 00 2C 02 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 50 [17:42:18]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 C9 20 02 00 0E 04 04 00 2C 02 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 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_GetFieldsCounters done [17:42:18]requested_item shift.num is exist - process it [17:42:18]requested_item shift.opened is exist - process it [17:42:18]req_shift_opened [17:42:18]FM_GetShiftState [17:42:18]SAM_PROTO_GetShiftState [17:42:18]wFMCommunicate request_size=4 [17:42:18]MH_SAM_APDU [17:42:18]CAPDU: 80 13 01 00 [17:42:18]Write to MH i2c: E2 08 00 87 52 80 13 01 00 00 00 00 00 56 [17:42:18]Write i2c OK [17:42:18]MH_I2C_Read... [17:42:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:18]Read from MH i2c: E2 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0E 00 [17:42:18]MH_I2C_Read... [17:42:18]Read from MH i2c: E2 0E 00 87 52 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E6 [17:42:18]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:42:18]wFMCommunicate OK [17:42:18]SAM_PROTO_GetShiftState done [17:42:18]FM_GetShiftState done [17:42:18]req_shift_opened done [17:42:18]requested_item shift.open_date is exist - process it [17:42:18]req_shift_open_date [17:42:18]req_shift_open_date done [17:42:18]produce_requested_data done [17:42:18]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139465,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:42:18]process_action_free close_receipt [17:42:18]json_value_free [17:42:18]json_value_free done [17:42:18]process_json_proto returns [17:42:18]Send response to host [17:42:18]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139465,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:42:18]free response buf [17:42:18]execute_script done [17:42:18]execute_script returns [17:42:18]free content buf [17:42:18]Sock 9.Close socket [17:42:18]Sock 9.Thread stoped [17:42:21]OFD Sender: No OFD packet to send [17:42:26]OFD Sender: No OFD packet to send [17:42:31]OFD Sender: No OFD packet to send [17:42:34]accept exits with 8 [17:42:34]New connection [17:42:34]New thread 3067141476 created [17:42:34]Thread 3067284836 joined [17:42:34]Waiting for new connection... [17:42:34] Sock 8.Parse request [17:42:34]Sock 8.Check first char [17:42:34]Sock 8.First char is OK [17:42:34]request: POST /json_proto HTTP/1.0 [17:42:34]Method: POST [17:42:34]URL: /json_proto [17:42:34]Method is POST - this is cgi request [17:42:34]url: /json_proto [17:42:34]query_string will be loaded in cgi processing [17:42:34]execute_cgi json_proto POST (null) [17:42:34]execute_cgi path=json_proto method=POST [17:42:34]POST find Content-Length [17:42:34]Host: 172.17.50.196:8080 [17:42:34]Content-Length: 660 [17:42:34]Content-Type: application/json [17:42:34] [17:42:34]POST finish read [17:42:34]Found Content-Length = 660 [17:42:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335355", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:34]execute_script... [17:42: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 : (3)335355", "tax_sys" : 0, "items" : [ { "code": "46227720", "name": "\u0420/\u0436 mentos pure fresh \u0432\u0438\u043D\u043E\u0433\u0440\u0430\u0434 \u0440\u043E\u043B\u043B 15,5", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 49.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:42:34]POST & json_proto [17:42:34]process_json_proto [17:42:34]json parsed OK: [17:42:34]protocol is kg_v1.0 [17:42:34]action value=close_receipt [17:42:34]process_action close_receipt [17:42:34]cmd_close_receipt [17:42:34]MH_GetDate [17:42:34]Write to MH i2c: F0 00 00 88 52 C9 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: F0 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: F0 09 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: F0 09 00 88 52 00 10 70 22 67 72 0D 1C 67 DD [17:42:34]GetLastDocTimeStamp 1730310140 [17:42:34]current date 1730310160 [17:42:34]FM_GetShiftState [17:42:34]SAM_PROTO_GetShiftState [17:42:34]wFMCommunicate request_size=4 [17:42:34]MH_SAM_APDU [17:42:34]CAPDU: 80 13 01 00 [17:42:34]Write to MH i2c: E2 08 00 89 52 80 13 01 00 00 00 00 00 58 [17:42:34]Write i2c OK [17:42:34]MH_I2C_Read... [17:42:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:34]Read from MH i2c: E2 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 0E 00 [17:42:34]MH_I2C_Read... [17:42:34]Read from MH i2c: E2 0E 00 89 52 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E8 [17:42:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:42:34]wFMCommunicate OK [17:42:34]SAM_PROTO_GetShiftState done [17:42:34]FM_GetShiftState done [17:42:34]opened in 1730246278 [17:42:34]opened+sec_in_day 1730332678 [17:42:34]quantity*price = 4900 [17:42:34]sum+1 = 4901 [17:42:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 49.00 НСП 1% : 0.43 НДС 12% : 5.20 Наличными: 49.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 150 30.10.2024 17:42 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139466 ФПД: 187330481238745 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174240&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139466&fm=187330481238745&tin=02508201610067®Number=0000000000091631&sum=4900 0 [17:42:35]StoreToDocumentArchive [17:42:35]shift 556 fd 139466 [17:42:35]save to /storage/0556/doc_00139466 [17:42:35]save last doc name /storage/0556/doc_00139466 to /storage/kkm_last_doc_name [17:42:35]save OK [17:42:35]Clear old archive folders... [17:42:35]ProcessDocumentItem done err = 0, tmpTLVsize=291 [17:42:35]tlvbuf is 01265170 [17:42:35]SAM_PROTO_ClearQueue [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 09 00 00 [17:42:35]Write to MH i2c: E2 08 00 96 52 80 09 00 00 00 00 00 00 5A [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 96 52 00 90 00 5C [17:42:35]RAPDU: 90 00 [17:42:35]wFMCommunicate OK [17:42:35]SAM_PROTO_ClearQueue done [17:42:35]KKMCreateOFDPacket [17:42:35]OFDProtocolAddRootSTLVToBuf [17:42:35]FM_MakeSignedData [17:42:35]FM_MakeSignedData [17:42:35]SAM_PROTO_SignData [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 0D 01 02 [17:42:35]Write to MH i2c: E2 08 00 97 52 80 0D 01 02 00 00 00 00 62 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 97 52 00 90 00 5D [17:42:35]RAPDU: 90 00 [17:42:35]wFMCommunicate OK [17:42:35]wFMCommunicate request_size=255 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 0D 02 02 FA 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 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 10 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 [17:42:35]Write to MH i2c: E2 02 01 98 52 80 0D 02 02 FA 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 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 10 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 00 00 E1 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 98 52 00 90 00 5E [17:42:35]RAPDU: 90 00 [17:42:35]wFMCommunicate OK [17:42:35]wFMCommunicate request_size=50 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 0D 02 02 2D 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CA 20 02 00 35 04 06 00 AA 60 46 CA 32 D9 [17:42:35]Write to MH i2c: E2 35 00 99 52 80 0D 02 02 2D 00 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CA 20 02 00 35 04 06 00 AA 60 46 CA 32 D9 00 00 D8 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 03 00 99 52 00 90 00 5F [17:42:35]RAPDU: 90 00 [17:42:35]wFMCommunicate OK [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 0D 03 02 [17:42:35]Write to MH i2c: E2 08 00 9A 52 80 0D 03 02 00 00 00 00 67 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0B 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 0B 00 9A 52 00 89 F9 A3 3B 4C D7 4A 19 90 00 4E [17:42:35]RAPDU: 89 F9 A3 3B 4C D7 4A 19 90 00 [17:42:35]wFMCommunicate OK [17:42:35]SAM_PROTO_SignData done [17:42:35]FM_MakeSignedData done [17:42:35]CreateOFDProtocolMessage [17:42:35]wFMCommunicate request_size=4 [17:42:35]MH_SAM_APDU [17:42:35]CAPDU: 80 11 00 00 [17:42:35]Write to MH i2c: E2 08 00 9B 52 80 11 00 00 00 00 00 00 67 [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:35]Read from MH i2c: E2 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 17 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: E2 17 00 9B 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C2 [17:42:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:42:35]wFMCommunicate OK [17:42:35]CreateOFDProtocolMessage done [17:42:35]OFDSenderStorePacket 139466 [17:42:35]StoreOFDPacket docnum=139466 [17:42:35]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 37 01 00 00 CC BD 2F 01 48 6E 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 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 10 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CA 20 02 00 35 04 06 00 AA 60 46 CA 32 D9 89 F9 A3 3B 4C D7 4A 19 [17:42:35]CheckFolder [17:42:35]dirname=/storage/ofd_packets [17:42:35]CheckFolder done [17:42:35]ProducePacketName [17:42:35]name=ofd_packets/00139466 [17:42:35]NVStorageSaveData ofd_packets/00139466 [17:42:35]File name is /storage/ofd_packets/00139466 [17:42:35]Write 341 bytes [17:42:35]NVStorageSaveData done [17:42:35]OFDSenderStorePacket done [17:42:35]KKMCreateOFDPacket done [17:42:35]NVStorageSaveData kkm_last_timestamp [17:42:35]File name is /storage/kkm_last_timestamp [17:42:35]Write 4 bytes [17:42:35]NVStorageSaveData done [17:42:35]ExternCall_PrintAddStr [17:42:35]wPrintStart [17:42:35]Write to MH i2c: 01 00 00 9C 52 EE [17:42:35]Write i2c OK [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 07 00 [17:42:35]MH_I2C_Read... [17:42:35]Read from MH i2c: 01 07 00 9C 52 00 00 00 00 00 FF 0F 03 [17:42:35]RasterBufferAndPrint [17:42:35]line Счет N : (3)335355 [17:42:35]line ИНН: 02508201610067 [17:42:35]line Контрольно-Кассовый Чек [17:42:35]line ПРОДАЖА [17:42:35]line Товар: 46227720 [17:42:35]line Р/ж mentos pure fresh виноград ролл 15,5 [17:42:35]line 1.000 * 49.00 [17:42:35]line = 49.00 [17:42:35]line НДС 12% НСП 1% [17:42:35]line > о реализуемом товаре [17:42:35]line ИТОГО: 49.00 [17:42:35]line НСП 1% : 0.43 [17:42:35]line НДС 12% : 5.20 [17:42:35]line Наличными: 49.00 [17:42:35]line Безнал.: 0.00 [17:42:35]line Место: АЗС № 101 "Партнер Нефть" [17:42:35]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:42:35]line СНО: Общий режим [17:42:35]line Чек 150 30.10.2024 17:42 [17:42:35]line Смена: 556 ФФД: 1.0 [17:42:35]line ЗНМ: 0300000081 [17:42:35]line РНМ: 0000000000091631 [17:42:35]line Версия ККМ: 001 [17:42:35]line ФМ: 0000000000874669 [17:42:35]line ФД: 139466 [17:42:35]line ФПД: 187330481238745 [17:42:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174240&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139466&fm=187330481238745&tin=02508201610067®Number=0000000000091631&sum=4900 [17:42:36]line 0 [17:42:36]OFD Sender: Processing packet 139466 [packets to send 34, broken 33] [17:42:36]ProducePacketName [17:42:36]name=ofd_packets/00139466 [17:42:36]OFD Sender: To server: pG, [17:42:36]CommunicateWithHost lk.salyk.kg:30040 [17:42:36]ConnectInit lk.salyk.kg [17:42:36]written 0, free lines is 4095 [17:42:36]Connected sock=10 [17:42:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 37 01 00 00 CC BD 2F 01 48 6E 5A 03 01 00 03 00 23 01 1E 04 01 00 01 23 04 75 00 8A 04 08 00 34 36 32 32 37 37 32 30 06 04 36 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 66 72 65 73 68 20 D0 B2 D0 B8 D0 BD D0 BE D0 B3 D1 80 D0 B0 D0 B4 20 D1 80 D0 BE D0 BB D0 BB 20 31 35 2C 35 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 24 13 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 2B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 08 02 00 00 00 00 07 04 06 00 24 13 00 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 10 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CA 20 02 00 35 04 06 00 AA 60 46 CA 32 D9 89 F9 A3 3B 4C D7 4A 19 [17:42:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 35 3D 47 00 77 65 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CA 20 02 00 F4 03 04 00 C0 1B 22 67 B6 04 01 00 00 C2 12 D7 2E 1F 7F 90 89 [17:42:36]CommunicateWithHost err = 0 [17:42:36]CheckOFDResponse [17:42:36]1017 (14) - 77093643461234 [17:42:36]1041 (16) - 0000000000874669 [17:42:36]1040 (4) - 139466 [17:42:36]1012 (4) - 30.10.2024 11:42 [17:42:36]1206 (1) - 0 [17:42:36]OFD Sender: Remove packet 139466 [17:42:36]ProducePacketName [17:42:36]name=ofd_packets/00139466 [17:42:36]NVStorageDeleteData [17:42:36]Write to MH i2c: 01 00 00 C5 52 17 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: 01 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: 01 07 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: 01 07 00 C5 52 00 00 00 00 00 F7 0C 21 [17:42:36]RasterBufferAndPrint [17:42:36]line [17:42:36]line [17:42:36]line [17:42:36]line [17:42:36]line [17:42:36]written 0, free lines is 3325 [17:42:36]MH_Cut [17:42:36]Write to MH i2c: D1 01 00 CC 52 01 F0 [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: D1 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: D1 01 00 [17:42:36]MH_I2C_Read... [17:42:36]Read from MH i2c: D1 01 00 CC 52 00 EF [17:42:36]Write to MH i2c: 01 00 00 CD 52 1F [17:42:36]Write i2c OK [17:42:36]MH_I2C_Read... [17:42:36]OFD Sender: No OFD packet to send [17:42:37]*** Cut start [17:42:37]*** Partial cut [17:42:37]*** CUTSNS_PIN = 1 [17:42:37]*** CUTSNS_PIN = 0 [17:42:37]*** Brake cut motor [17:42:37]Read from MH i2c: 01 [17:42:37]MH_I2C_Read... [17:42:37]*** Stop cut motor [17:42:37]*** Cut end [17:42:37]Read from MH i2c: 01 07 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: 01 07 00 CD 52 00 00 00 00 00 FF 0F 34 [17:42:37]process_action close_receipt done [17:42:37]requested_data is exist [17:42:37]produce_requested_data [17:42:37]requested_item fm.sn is exist - process it [17:42:37]wFMCommunicate request_size=4 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 11 00 00 [17:42:37]Write to MH i2c: E2 08 00 CE 52 80 11 00 00 00 00 00 00 9A [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:42:37]Read from MH i2c: E2 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 17 00 [17:42:37]MH_I2C_Read... [17:42:37]Read from MH i2c: E2 17 00 CE 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F5 [17:42:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:42:37]wFMCommunicate OK [17:42:37]requested_item fd.num is exist - process it [17:42:37]SAM_PROTO_GetFieldsCounters [17:42:37]wFMCommunicate request_size=4 [17:42:37]MH_SAM_APDU [17:42:37]CAPDU: 80 13 00 00 [17:42:37]Write to MH i2c: E2 08 00 CF 52 80 13 00 00 00 00 00 00 9D [17:42:37]Write i2c OK [17:42:37]MH_I2C_Read... [17:42:37]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:42:38]Read from MH i2c: E2 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 62 00 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 62 00 CF 52 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CA 20 02 00 0E 04 04 00 2C 02 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 9D [17:42:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CA 20 02 00 0E 04 04 00 2C 02 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 [17:42:38]wFMCommunicate OK [17:42:38]SAM_PROTO_GetFieldsCounters done [17:42:38]requested_item shift.num is exist - process it [17:42:38]requested_item shift.opened is exist - process it [17:42:38]req_shift_opened [17:42:38]FM_GetShiftState [17:42:38]SAM_PROTO_GetShiftState [17:42:38]wFMCommunicate request_size=4 [17:42:38]MH_SAM_APDU [17:42:38]CAPDU: 80 13 01 00 [17:42:38]Write to MH i2c: E2 08 00 D0 52 80 13 01 00 00 00 00 00 9F [17:42:38]Write i2c OK [17:42:38]MH_I2C_Read... [17:42:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:42:38]Read from MH i2c: E2 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 0E 00 [17:42:38]MH_I2C_Read... [17:42:38]Read from MH i2c: E2 0E 00 D0 52 00 09 00 01 86 76 21 67 00 00 00 00 90 00 2F [17:42:38]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:42:38]wFMCommunicate OK [17:42:38]SAM_PROTO_GetShiftState done [17:42:38]FM_GetShiftState done [17:42:38]req_shift_opened done [17:42:38]requested_item shift.open_date is exist - process it [17:42:38]req_shift_open_date [17:42:38]req_shift_open_date done [17:42:38]produce_requested_data done [17:42:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139466,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:42:38]process_action_free close_receipt [17:42:38]json_value_free [17:42:38]json_value_free done [17:42:38]process_json_proto returns [17:42:38]Send response to host [17:42:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139466,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:42:38]free response buf [17:42:38]execute_script done [17:42:38]execute_script returns [17:42:38]free content buf [17:42:38]Sock 8.Close socket [17:42:38]Sock 8.Thread stoped [17:42:41]OFD Sender: No OFD packet to send [17:42:46]OFD Sender: No OFD packet to send [17:42:51]OFD Sender: No OFD packet to send [17:42:56]OFD Sender: No OFD packet to send [17:43:01]OFD Sender: No OFD packet to send [17:43:06]OFD Sender: No OFD packet to send [17:43:11]OFD Sender: No OFD packet to send [17:43:16]OFD Sender: No OFD packet to send [17:43:21]OFD Sender: No OFD packet to send [17:43:26]OFD Sender: No OFD packet to send [17:43:31]OFD Sender: No OFD packet to send [17:43:36]OFD Sender: No OFD packet to send [17:43:41]OFD Sender: No OFD packet to send [17:43:46]OFD Sender: No OFD packet to send [17:43:51]OFD Sender: No OFD packet to send [17:43:56]OFD Sender: No OFD packet to send [17:44:01]OFD Sender: No OFD packet to send [17:44:06]OFD Sender: No OFD packet to send [17:44:11]OFD Sender: No OFD packet to send [17:44:16]OFD Sender: No OFD packet to send [17:44:21]OFD Sender: No OFD packet to send [17:44:26]OFD Sender: No OFD packet to send [17:44:32]OFD Sender: No OFD packet to send [17:44:37]OFD Sender: No OFD packet to send [17:44:42]OFD Sender: No OFD packet to send [17:44:47]OFD Sender: No OFD packet to send [17:44:52]OFD Sender: No OFD packet to send [17:44:57]OFD Sender: No OFD packet to send [17:45:02]OFD Sender: No OFD packet to send [17:45:07]OFD Sender: No OFD packet to send [17:45:12]OFD Sender: No OFD packet to send [17:45:17]OFD Sender: No OFD packet to send [17:45:22]OFD Sender: No OFD packet to send [17:45:24]accept exits with 9 [17:45:24]New connection [17:45:24]New thread 3067284836 created [17:45:24]Thread 3067141476 joined [17:45:24]Waiting for new connection... [17:45:24] Sock 9.Parse request [17:45:24]Sock 9.Check first char [17:45:24]Sock 9.First char is OK [17:45:24]request: POST /json_proto HTTP/1.0 [17:45:24]Method: POST [17:45:24]URL: /json_proto [17:45:24]Method is POST - this is cgi request [17:45:24]url: /json_proto [17:45:24]query_string will be loaded in cgi processing [17:45:24]execute_cgi json_proto POST (null) [17:45:24]execute_cgi path=json_proto method=POST [17:45:24]POST find Content-Length [17:45:24]Host: 172.17.50.196:8080 [17:45:24]Content-Length: 620 [17:45:24]Content-Type: application/json [17:45:24] [17:45:24]POST finish read [17:45:24]Found Content-Length = 620 [17:45:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335356", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:24]execute_script... [17:45: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 : (3)335356", "tax_sys" : 0, "items" : [ { "code": "48745000", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Purple Mix", "price" : 139.00, "quantity" : 1.000, "sum" : 139.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 139.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:45:24]POST & json_proto [17:45:24]process_json_proto [17:45:24]json parsed OK: [17:45:24]protocol is kg_v1.0 [17:45:24]action value=close_receipt [17:45:24]process_action close_receipt [17:45:24]cmd_close_receipt [17:45:24]MH_GetDate [17:45:24]Write to MH i2c: F0 00 00 D1 52 12 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: F0 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: F0 09 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: F0 09 00 D1 52 00 BA 70 22 67 72 0D 1C 67 D0 [17:45:24]GetLastDocTimeStamp 1730310160 [17:45:24]current date 1730310330 [17:45:24]FM_GetShiftState [17:45:24]SAM_PROTO_GetShiftState [17:45:24]wFMCommunicate request_size=4 [17:45:24]MH_SAM_APDU [17:45:24]CAPDU: 80 13 01 00 [17:45:24]Write to MH i2c: E2 08 00 D2 52 80 13 01 00 00 00 00 00 A1 [17:45:24]Write i2c OK [17:45:24]MH_I2C_Read... [17:45:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:24]Read from MH i2c: E2 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 0E 00 [17:45:24]MH_I2C_Read... [17:45:24]Read from MH i2c: E2 0E 00 D2 52 00 09 00 01 86 76 21 67 00 00 00 00 90 00 31 [17:45:24]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:45:24]wFMCommunicate OK [17:45:24]SAM_PROTO_GetShiftState done [17:45:24]FM_GetShiftState done [17:45:24]opened in 1730246278 [17:45:24]opened+sec_in_day 1730332678 [17:45:24]quantity*price = 13900 [17:45:24]sum+1 = 13901 [17:45:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 139.00 НСП 1% : 1.23 НДС 12% : 14.76 Наличными: 139.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 151 30.10.2024 17:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139467 ФПД: 8451961570640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174530&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139467&fm=8451961570640&tin=02508201610067®Number=0000000000091631&sum=13900 0 [17:45:25]StoreToDocumentArchive [17:45:25]shift 556 fd 139467 [17:45:25]save to /storage/0556/doc_00139467 [17:45:25]save last doc name /storage/0556/doc_00139467 to /storage/kkm_last_doc_name [17:45:25]save OK [17:45:25]Clear old archive folders... [17:45:25]ProcessDocumentItem done err = 0, tmpTLVsize=272 [17:45:25]tlvbuf is 0111D190 [17:45:25]SAM_PROTO_ClearQueue [17:45:25]wFMCommunicate request_size=4 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 09 00 00 [17:45:25]Write to MH i2c: E2 08 00 DF 52 80 09 00 00 00 00 00 00 A3 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 DF 52 00 90 00 A5 [17:45:25]RAPDU: 90 00 [17:45:25]wFMCommunicate OK [17:45:25]SAM_PROTO_ClearQueue done [17:45:25]KKMCreateOFDPacket [17:45:25]OFDProtocolAddRootSTLVToBuf [17:45:25]FM_MakeSignedData [17:45:25]FM_MakeSignedData [17:45:25]SAM_PROTO_SignData [17:45:25]wFMCommunicate request_size=4 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 0D 01 02 [17:45:25]Write to MH i2c: E2 08 00 E0 52 80 0D 01 02 00 00 00 00 AB [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 E0 52 00 90 00 A6 [17:45:25]RAPDU: 90 00 [17:45:25]wFMCommunicate OK [17:45:25]wFMCommunicate request_size=255 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 0D 02 02 FA 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 97 00 00 00 F4 03 04 00 BA 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 [17:45:25]Write to MH i2c: E2 02 01 E1 52 80 0D 02 02 FA 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 97 00 00 00 F4 03 04 00 BA 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 00 00 4F [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 E1 52 00 90 00 A7 [17:45:25]RAPDU: 90 00 [17:45:25]wFMCommunicate OK [17:45:25]wFMCommunicate request_size=31 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 0D 02 02 1A 30 30 38 37 34 36 36 39 10 04 04 00 CB 20 02 00 35 04 06 00 07 AF E0 2A C5 50 [17:45:25]Write to MH i2c: E2 22 00 E2 52 80 0D 02 02 1A 00 30 30 38 37 34 36 36 39 10 04 04 00 CB 20 02 00 35 04 06 00 07 AF E0 2A C5 50 00 00 A3 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 03 00 E2 52 00 90 00 A8 [17:45:25]RAPDU: 90 00 [17:45:25]wFMCommunicate OK [17:45:25]wFMCommunicate request_size=4 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 0D 03 02 [17:45:25]Write to MH i2c: E2 08 00 E3 52 80 0D 03 02 00 00 00 00 B0 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 0B 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 0B 00 E3 52 00 DA 81 F5 74 21 80 D9 62 90 00 51 [17:45:25]RAPDU: DA 81 F5 74 21 80 D9 62 90 00 [17:45:25]wFMCommunicate OK [17:45:25]SAM_PROTO_SignData done [17:45:25]FM_MakeSignedData done [17:45:25]CreateOFDProtocolMessage [17:45:25]wFMCommunicate request_size=4 [17:45:25]MH_SAM_APDU [17:45:25]CAPDU: 80 11 00 00 [17:45:25]Write to MH i2c: E2 08 00 E4 52 80 11 00 00 00 00 00 00 B0 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:25]Read from MH i2c: E2 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 17 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: E2 17 00 E4 52 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0B [17:45:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:45:25]wFMCommunicate OK [17:45:25]CreateOFDProtocolMessage done [17:45:25]OFDSenderStorePacket 139467 [17:45:25]StoreOFDPacket docnum=139467 [17:45:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 9B FC 1C 01 80 97 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 97 00 00 00 F4 03 04 00 BA 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CB 20 02 00 35 04 06 00 07 AF E0 2A C5 50 DA 81 F5 74 21 80 D9 62 [17:45:25]CheckFolder [17:45:25]dirname=/storage/ofd_packets [17:45:25]CheckFolder done [17:45:25]ProducePacketName [17:45:25]name=ofd_packets/00139467 [17:45:25]NVStorageSaveData ofd_packets/00139467 [17:45:25]File name is /storage/ofd_packets/00139467 [17:45:25]Write 322 bytes [17:45:25]NVStorageSaveData done [17:45:25]OFDSenderStorePacket done [17:45:25]KKMCreateOFDPacket done [17:45:25]NVStorageSaveData kkm_last_timestamp [17:45:25]File name is /storage/kkm_last_timestamp [17:45:25]Write 4 bytes [17:45:25]NVStorageSaveData done [17:45:25]ExternCall_PrintAddStr [17:45:25]wPrintStart [17:45:25]Write to MH i2c: 01 00 00 E5 52 37 [17:45:25]Write i2c OK [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 [17:45:25]MH_I2C_Read... [17:45:25]Read from MH i2c: 01 07 00 E5 52 00 00 00 00 00 FF 0F 4C [17:45:25]RasterBufferAndPrint [17:45:25]line Счет N : (3)335356 [17:45:25]line ИНН: 02508201610067 [17:45:25]line Контрольно-Кассовый Чек [17:45:25]line ПРОДАЖА [17:45:25]line Товар: 48745000 [17:45:25]line Сигареты Winston Purple Mix [17:45:25]line 1.000 * 139.00 [17:45:25]line = 139.00 [17:45:25]line НДС 12% НСП 1% [17:45:25]line > о реализуемом товаре [17:45:25]line ИТОГО: 139.00 [17:45:25]line НСП 1% : 1.23 [17:45:25]line НДС 12% : 14.76 [17:45:25]line Наличными: 139.00 [17:45:25]line Безнал.: 0.00 [17:45:25]line Место: АЗС № 101 "Партнер Нефть" [17:45:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:45:25]line СНО: Общий режим [17:45:25]line Чек 151 30.10.2024 17:45 [17:45:25]line Смена: 556 ФФД: 1.0 [17:45:25]line ЗНМ: 0300000081 [17:45:25]line РНМ: 0000000000091631 [17:45:25]line Версия ККМ: 001 [17:45:25]line ФМ: 0000000000874669 [17:45:25]line ФД: 139467 [17:45:25]line ФПД: 8451961570640 [17:45:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174530&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139467&fm=8451961570640&tin=02508201610067®Number=0000000000091631&sum=13900 [17:45:26]OFD Sender: Processing packet 139467 [packets to send 34, broken 33] [17:45:26]ProducePacketName [17:45:26]name=ofd_packets/00139467 [17:45:26]OFD Sender: To server: pG, [17:45:26]CommunicateWithHost lk.salyk.kg:30040 [17:45:26]ConnectInit lk.salyk.kg [17:45:26]line 0 [17:45:26]written 0, free lines is 4095 [17:45:26]Connected sock=10 [17:45:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 24 01 00 00 9B FC 1C 01 80 97 5A 03 01 00 03 00 10 01 1E 04 01 00 01 23 04 62 00 8A 04 08 00 34 38 37 34 35 30 30 30 06 04 23 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 50 75 72 70 6C 65 20 4D 69 78 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 36 00 00 00 00 13 04 06 00 4C 36 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 36 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C4 05 00 00 00 00 07 04 06 00 4C 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 97 00 00 00 F4 03 04 00 BA 70 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CB 20 02 00 35 04 06 00 07 AF E0 2A C5 50 DA 81 F5 74 21 80 D9 62 [17:45:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 12 A4 47 00 F6 F4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CB 20 02 00 F4 03 04 00 6A 1C 22 67 B6 04 01 00 00 CE 26 05 09 66 23 F1 6D [17:45:26]CommunicateWithHost err = 0 [17:45:26]CheckOFDResponse [17:45:26]1017 (14) - 77093643461234 [17:45:26]1041 (16) - 0000000000874669 [17:45:26]1040 (4) - 139467 [17:45:26]1012 (4) - 30.10.2024 11:45 [17:45:26]1206 (1) - 0 [17:45:26]OFD Sender: Remove packet 139467 [17:45:26]ProducePacketName [17:45:26]name=ofd_packets/00139467 [17:45:26]NVStorageDeleteData [17:45:26]Write to MH i2c: 01 00 00 0D 53 60 [17:45:26]Write i2c OK [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: 01 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: 01 07 00 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: 01 07 00 0D 53 00 00 00 00 00 0D 0D 81 [17:45:26]RasterBufferAndPrint [17:45:26]line [17:45:26]line [17:45:26]line [17:45:26]line [17:45:26]line [17:45:26]written 0, free lines is 3350 [17:45:26]MH_Cut [17:45:26]Write to MH i2c: D1 01 00 14 53 01 39 [17:45:26]Write i2c OK [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: D1 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: D1 01 00 [17:45:26]MH_I2C_Read... [17:45:26]Read from MH i2c: D1 01 00 14 53 00 38 [17:45:26]Write to MH i2c: 01 00 00 15 53 68 [17:45:26]Write i2c OK [17:45:26]MH_I2C_Read... [17:45:26]OFD Sender: No OFD packet to send [17:45:27]*** Cut start [17:45:27]*** Partial cut [17:45:27]*** CUTSNS_PIN = 1 [17:45:27]*** CUTSNS_PIN = 0 [17:45:27]*** Brake cut motor [17:45:27]Read from MH i2c: 01 [17:45:27]MH_I2C_Read... [17:45:27]*** Stop cut motor [17:45:27]*** Cut end [17:45:27]Read from MH i2c: 01 07 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: 01 07 00 15 53 00 00 00 00 00 FF 0F 7D [17:45:27]process_action close_receipt done [17:45:27]requested_data is exist [17:45:27]produce_requested_data [17:45:27]requested_item fm.sn is exist - process it [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 11 00 00 [17:45:27]Write to MH i2c: E2 08 00 16 53 80 11 00 00 00 00 00 00 E3 [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:45:27]Read from MH i2c: E2 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 17 00 [17:45:27]MH_I2C_Read... [17:45:27]Read from MH i2c: E2 17 00 16 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3E [17:45:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:45:27]wFMCommunicate OK [17:45:27]requested_item fd.num is exist - process it [17:45:27]SAM_PROTO_GetFieldsCounters [17:45:27]wFMCommunicate request_size=4 [17:45:27]MH_SAM_APDU [17:45:27]CAPDU: 80 13 00 00 [17:45:27]Write to MH i2c: E2 08 00 17 53 80 13 00 00 00 00 00 00 E6 [17:45:27]Write i2c OK [17:45:27]MH_I2C_Read... [17:45:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:45:28]Read from MH i2c: E2 [17:45:28]MH_I2C_Read... [17:45:28]Read from MH i2c: E2 62 00 [17:45:28]MH_I2C_Read... [17:45:28]Read from MH i2c: E2 62 00 17 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CB 20 02 00 0E 04 04 00 2C 02 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 EA [17:45:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CB 20 02 00 0E 04 04 00 2C 02 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 [17:45:28]wFMCommunicate OK [17:45:28]SAM_PROTO_GetFieldsCounters done [17:45:28]requested_item shift.num is exist - process it [17:45:28]requested_item shift.opened is exist - process it [17:45:28]req_shift_opened [17:45:28]FM_GetShiftState [17:45:28]SAM_PROTO_GetShiftState [17:45:28]wFMCommunicate request_size=4 [17:45:28]MH_SAM_APDU [17:45:28]CAPDU: 80 13 01 00 [17:45:28]Write to MH i2c: E2 08 00 18 53 80 13 01 00 00 00 00 00 E8 [17:45:28]Write i2c OK [17:45:28]MH_I2C_Read... [17:45:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:45:28]Read from MH i2c: E2 [17:45:28]MH_I2C_Read... [17:45:28]Read from MH i2c: E2 0E 00 [17:45:28]MH_I2C_Read... [17:45:28]Read from MH i2c: E2 0E 00 18 53 00 09 00 01 86 76 21 67 00 00 00 00 90 00 78 [17:45:28]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:45:28]wFMCommunicate OK [17:45:28]SAM_PROTO_GetShiftState done [17:45:28]FM_GetShiftState done [17:45:28]req_shift_opened done [17:45:28]requested_item shift.open_date is exist - process it [17:45:28]req_shift_open_date [17:45:28]req_shift_open_date done [17:45:28]produce_requested_data done [17:45:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139467,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:45:28]process_action_free close_receipt [17:45:28]json_value_free [17:45:28]json_value_free done [17:45:28]process_json_proto returns [17:45:28]Send response to host [17:45:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139467,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:45:28]free response buf [17:45:28]execute_script done [17:45:28]execute_script returns [17:45:28]free content buf [17:45:28]Sock 9.Close socket [17:45:28]Sock 9.Thread stoped [17:45:31]OFD Sender: No OFD packet to send [17:45:36]OFD Sender: No OFD packet to send [17:45:41]OFD Sender: No OFD packet to send [17:45:46]OFD Sender: No OFD packet to send [17:45:51]OFD Sender: No OFD packet to send [17:45:56]OFD Sender: No OFD packet to send [17:46:02]OFD Sender: No OFD packet to send [17:46:07]OFD Sender: No OFD packet to send [17:46:12]OFD Sender: No OFD packet to send [17:46:17]OFD Sender: No OFD packet to send [17:46:22]OFD Sender: No OFD packet to send [17:46:27]OFD Sender: No OFD packet to send [17:46:32]OFD Sender: No OFD packet to send [17:46:37]OFD Sender: No OFD packet to send [17:46:42]OFD Sender: No OFD packet to send [17:46:47]OFD Sender: No OFD packet to send [17:46:52]OFD Sender: No OFD packet to send [17:46:57]OFD Sender: No OFD packet to send [17:47:02]OFD Sender: No OFD packet to send [17:47:07]OFD Sender: No OFD packet to send [17:47:12]OFD Sender: No OFD packet to send [17:47:17]OFD Sender: No OFD packet to send [17:47:22]OFD Sender: No OFD packet to send [17:47:27]OFD Sender: No OFD packet to send [17:47:32]OFD Sender: No OFD packet to send [17:47:37]OFD Sender: No OFD packet to send [17:47:42]OFD Sender: No OFD packet to send [17:47:47]OFD Sender: No OFD packet to send [17:47:52]OFD Sender: No OFD packet to send [17:47:57]OFD Sender: No OFD packet to send [17:48:02]OFD Sender: No OFD packet to send [17:48:07]OFD Sender: No OFD packet to send [17:48:12]OFD Sender: No OFD packet to send [17:48:17]OFD Sender: No OFD packet to send [17:48:22]OFD Sender: No OFD packet to send [17:48:27]OFD Sender: No OFD packet to send [17:48:32]OFD Sender: No OFD packet to send [17:48:36]accept exits with 8 [17:48:36]New connection [17:48:36]New thread 3067141476 created [17:48:36]Thread 3067284836 joined [17:48:36]Waiting for new connection... [17:48:36] Sock 8.Parse request [17:48:36]Sock 8.Check first char [17:48:36]Sock 8.First char is OK [17:48:36]request: POST /json_proto HTTP/1.0 [17:48:36]Method: POST [17:48:36]URL: /json_proto [17:48:36]Method is POST - this is cgi request [17:48:36]url: /json_proto [17:48:36]query_string will be loaded in cgi processing [17:48:36]execute_cgi json_proto POST (null) [17:48:36]execute_cgi path=json_proto method=POST [17:48:36]POST find Content-Length [17:48:36]Host: 172.17.50.196:8080 [17:48:36]Content-Length: 1341 [17:48:36]Content-Type: application/json [17:48:36] [17:48:36]POST finish read [17:48:36]Found Content-Length = 1341 [17:48:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335357", "tax_sys" : 0, "items" : [ { "code": "4600721018818", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u041B\u0430\u0439\u043C\u044A 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.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" : 364.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:36]execute_script... [17:48: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 : (3)335357", "tax_sys" : 0, "items" : [ { "code": "4600721018818", "name": "\u041F\u0438\u0432\u043E \u0421\u0438\u0431.\u041A\u043E\u0440 \u041B\u0430\u0439\u043C\u044A 0,5\u043B \u0441\u0442", "price" : 145.00, "quantity" : 2.000, "sum" : 290.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607065000790", "name": "\u0428\u043E\u043A M\u0026M`s \u0441 \u0430\u0440\u0430\u0445\u0438\u0441\u043E\u043C 45\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.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" : 364.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [17:48:36]POST & json_proto [17:48:36]process_json_proto [17:48:36]json parsed OK: [17:48:36]protocol is kg_v1.0 [17:48:36]action value=close_receipt [17:48:36]process_action close_receipt [17:48:36]cmd_close_receipt [17:48:36]MH_GetDate [17:48:36]Write to MH i2c: F0 00 00 19 53 5B [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: F0 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: F0 09 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: F0 09 00 19 53 00 7A 71 22 67 72 0D 1C 67 DA [17:48:36]GetLastDocTimeStamp 1730310330 [17:48:36]current date 1730310522 [17:48:36]FM_GetShiftState [17:48:36]SAM_PROTO_GetShiftState [17:48:36]wFMCommunicate request_size=4 [17:48:36]MH_SAM_APDU [17:48:36]CAPDU: 80 13 01 00 [17:48:36]Write to MH i2c: E2 08 00 1A 53 80 13 01 00 00 00 00 00 EA [17:48:36]Write i2c OK [17:48:36]MH_I2C_Read... [17:48:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:36]Read from MH i2c: E2 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 0E 00 [17:48:36]MH_I2C_Read... [17:48:36]Read from MH i2c: E2 0E 00 1A 53 00 09 00 01 86 76 21 67 00 00 00 00 90 00 7A [17:48:36]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:48:36]wFMCommunicate OK [17:48:36]SAM_PROTO_GetShiftState done [17:48:36]FM_GetShiftState done [17:48:36]opened in 1730246278 [17:48:36]opened+sec_in_day 1730332678 [17:48:36]quantity*price = 29000 [17:48:36]sum+1 = 29001 [17:48:36]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607065000790 Шок M&M`s с арахисом 45г 1.000 * 70.00 = 70.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 2000031750019 Пакет Партнер Нефть 1.000 * 4.00 = 4.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 364.00 НСП 1% : 3.22 НДС 12% : 38.65 Наличными: 0.00 Безнал.: 364.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 152 30.10.2024 17:48 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139468 ФПД: 268309600855604 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174843&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139468&fm=268309600855604&tin=02508201610067®Number=0000000000091631&sum=36400 0 [17:48:37]StoreToDocumentArchive [17:48:37]shift 556 fd 139468 [17:48:37]save to /storage/0556/doc_00139468 [17:48:37]save last doc name /storage/0556/doc_00139468 to /storage/kkm_last_doc_name [17:48:37]save OK [17:48:37]Clear old archive folders... [17:48:37]ProcessDocumentItem done err = 0, tmpTLVsize=503 [17:48:37]tlvbuf is 01272AC0 [17:48:37]SAM_PROTO_ClearQueue [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 09 00 00 [17:48:37]Write to MH i2c: E2 08 00 27 53 80 09 00 00 00 00 00 00 EC [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 27 53 00 90 00 EE [17:48:37]RAPDU: 90 00 [17:48:37]wFMCommunicate OK [17:48:37]SAM_PROTO_ClearQueue done [17:48:37]KKMCreateOFDPacket [17:48:37]OFDProtocolAddRootSTLVToBuf [17:48:37]FM_MakeSignedData [17:48:37]FM_MakeSignedData [17:48:37]SAM_PROTO_SignData [17:48:37]wFMCommunicate request_size=4 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 0D 01 02 [17:48:37]Write to MH i2c: E2 08 00 28 53 80 0D 01 02 00 00 00 00 F4 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [17:48:37]Read from MH i2c: E2 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 [17:48:37]MH_I2C_Read... [17:48:37]Read from MH i2c: E2 03 00 28 53 00 90 00 EF [17:48:37]RAPDU: 90 00 [17:48:37]wFMCommunicate OK [17:48:37]wFMCommunicate request_size=255 [17:48:37]MH_SAM_APDU [17:48:37]CAPDU: 80 0D 02 02 FA 03 00 F7 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 31 38 06 04 2C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 9B D0 B0 D0 B9 D0 BC D1 8A 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 [17:48:37]Write to MH i2c: E2 02 01 29 53 80 0D 02 02 FA 00 03 00 F7 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 31 38 06 04 2C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 9B D0 B0 D0 B9 D0 BC D1 8A 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 00 00 48 [17:48:37]Write i2c OK [17:48:37]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 29 53 00 90 00 F0 [17:48:38]RAPDU: 90 00 [17:48:38]wFMCommunicate OK [17:48:38]wFMCommunicate request_size=255 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 0D 02 02 FA 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7B 71 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 20 02 00 35 04 06 [17:48:38]Write to MH i2c: E2 02 01 2A 53 80 0D 02 02 FA 00 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7B 71 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 20 02 00 35 04 06 00 00 18 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 2A 53 00 90 00 F1 [17:48:38]RAPDU: 90 00 [17:48:38]wFMCommunicate OK [17:48:38]wFMCommunicate request_size=12 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 0D 02 02 07 00 F4 06 B2 72 E6 34 [17:48:38]Write to MH i2c: E2 0F 00 2B 53 80 0D 02 02 07 00 00 F4 06 B2 72 E6 34 00 00 3E [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 03 00 2B 53 00 90 00 F2 [17:48:38]RAPDU: 90 00 [17:48:38]wFMCommunicate OK [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 0D 03 02 [17:48:38]Write to MH i2c: E2 08 00 2C 53 80 0D 03 02 00 00 00 00 FA [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 0B 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 0B 00 2C 53 00 AF F7 DB AF 0F 27 9B 76 90 00 72 [17:48:38]RAPDU: AF F7 DB AF 0F 27 9B 76 90 00 [17:48:38]wFMCommunicate OK [17:48:38]SAM_PROTO_SignData done [17:48:38]FM_MakeSignedData done [17:48:38]CreateOFDProtocolMessage [17:48:38]wFMCommunicate request_size=4 [17:48:38]MH_SAM_APDU [17:48:38]CAPDU: 80 11 00 00 [17:48:38]Write to MH i2c: E2 08 00 2D 53 80 11 00 00 00 00 00 00 FA [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:38]Read from MH i2c: E2 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 17 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: E2 17 00 2D 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 55 [17:48:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:48:38]wFMCommunicate OK [17:48:38]CreateOFDProtocolMessage done [17:48:38]OFDSenderStorePacket 139468 [17:48:38]StoreOFDPacket docnum=139468 [17:48:38]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0B 02 00 00 8F 40 03 02 21 70 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 31 38 06 04 2C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 9B D0 B0 D0 B9 D0 BC D1 8A 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7B 71 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 20 02 00 35 04 06 00 F4 06 B2 72 E6 34 AF F7 DB AF 0F 27 9B 76 [17:48:38]CheckFolder [17:48:38]dirname=/storage/ofd_packets [17:48:38]CheckFolder done [17:48:38]ProducePacketName [17:48:38]name=ofd_packets/00139468 [17:48:38]NVStorageSaveData ofd_packets/00139468 [17:48:38]File name is /storage/ofd_packets/00139468 [17:48:38]Write 553 bytes [17:48:38]NVStorageSaveData done [17:48:38]OFDSenderStorePacket done [17:48:38]KKMCreateOFDPacket done [17:48:38]NVStorageSaveData kkm_last_timestamp [17:48:38]File name is /storage/kkm_last_timestamp [17:48:38]Write 4 bytes [17:48:38]NVStorageSaveData done [17:48:38]ExternCall_PrintAddStr [17:48:38]wPrintStart [17:48:38]Write to MH i2c: 01 00 00 2E 53 81 [17:48:38]Write i2c OK [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 07 00 [17:48:38]MH_I2C_Read... [17:48:38]Read from MH i2c: 01 07 00 2E 53 00 00 00 00 00 FF 0F 96 [17:48:38]RasterBufferAndPrint [17:48:38]line Счет N : (3)335357 [17:48:38]line ИНН: 02508201610067 [17:48:38]line Контрольно-Кассовый Чек [17:48:38]line ПРОДАЖА [17:48:38]line Товар: 4600721018818 [17:48:38]line Пиво Сиб.Кор Лаймъ 0,5л ст [17:48:38]line 2.000 * 145.00 [17:48:38]line = 290.00 [17:48:38]line НДС 12% НСП 1% [17:48:38]line > о реализуемом товаре [17:48:38]line Товар: 4607065000790 [17:48:38]line Шок M&M`s с арахисом 45г [17:48:38]line 1.000 * 70.00 [17:48:38]line = 70.00 [17:48:38]line НДС 12% НСП 1% [17:48:38]line > о реализуемом товаре [17:48:38]line Товар: 2000031750019 [17:48:38]line Пакет Партнер Нефть [17:48:38]line 1.000 * 4.00 [17:48:38]line = 4.00 [17:48:38]line НДС 12% НСП 1% [17:48:38]line > о реализуемом товаре [17:48:38]line ИТОГО: 364.00 [17:48:38]line НСП 1% : 3.22 [17:48:38]line НДС 12% : 38.65 [17:48:38]line Наличными: 0.00 [17:48:38]line Безнал.: 364.00 [17:48:38]line Место: АЗС № 101 "Партнер Нефть" [17:48:38]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [17:48:38]line СНО: Общий режим [17:48:38]line Чек 152 30.10.2024 17:48 [17:48:38]line Смена: 556 ФФД: 1.0 [17:48:38]line ЗНМ: 0300000081 [17:48:38]line РНМ: 0000000000091631 [17:48:38]line Версия ККМ: 001 [17:48:38]line Платежная система: Mbank [17:48:38]line ФМ: 0000000000874669 [17:48:38]line ФД: 139468 [17:48:38]line ФПД: 268309600855604 [17:48:38]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T174843&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139468&fm=268309600855604&tin=02508201610067®Number=0000000000091631&sum=36400 [17:48:38]line 0 [17:48:38]written 0, free lines is 4095 [17:48:38]OFD Sender: Processing packet 139468 [packets to send 34, broken 33] [17:48:38]ProducePacketName [17:48:38]name=ofd_packets/00139468 [17:48:38]OFD Sender: To server: pG, [17:48:38]CommunicateWithHost lk.salyk.kg:30040 [17:48:38]ConnectInit lk.salyk.kg [17:48:38]Connected sock=10 [17:48:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0B 02 00 00 8F 40 03 02 21 70 5A 03 01 00 03 00 F7 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 36 30 30 37 32 31 30 31 38 38 31 38 06 04 2C 00 D0 9F D0 B8 D0 B2 D0 BE 20 D0 A1 D0 B8 D0 B1 2E D0 9A D0 BE D1 80 20 D0 9B D0 B0 D0 B9 D0 BC D1 8A 20 30 2C 35 D0 BB 20 D1 81 D1 82 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 A4 38 00 00 00 00 13 04 06 00 48 71 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 30 37 39 30 06 04 25 00 D0 A8 D0 BE D0 BA 20 4D 26 4D 60 73 20 D1 81 20 D0 B0 D1 80 D0 B0 D1 85 D0 B8 D1 81 D0 BE D0 BC 20 34 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 30 8E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 19 0F 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 30 8E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 98 00 00 00 F4 03 04 00 7B 71 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 20 02 00 35 04 06 00 F4 06 B2 72 E6 34 AF F7 DB AF 0F 27 9B 76 [17:48:39]Write to MH i2c: 01 00 00 63 53 B6 [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: 01 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: 01 07 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: 01 07 00 63 53 00 00 00 00 00 83 0C 4C [17:48:39]RasterBufferAndPrint [17:48:39]line [17:48:39]line [17:48:39]line [17:48:39]line [17:48:39]line [17:48:39]written 0, free lines is 3212 [17:48:39]MH_Cut [17:48:39]Write to MH i2c: D1 01 00 6A 53 01 8F [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: D1 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: D1 01 00 [17:48:39]MH_I2C_Read... [17:48:39]Read from MH i2c: D1 01 00 6A 53 00 8E [17:48:39]Write to MH i2c: 01 00 00 6B 53 BE [17:48:39]Write i2c OK [17:48:39]MH_I2C_Read... [17:48:39]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0B 30 47 00 14 D4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CC 20 02 00 F4 03 04 00 2B 1D 22 67 B6 04 01 00 00 8E 2A 65 22 26 26 2B A4 [17:48:39]CommunicateWithHost err = 0 [17:48:39]CheckOFDResponse [17:48:39]1017 (14) - 77093643461234 [17:48:39]1041 (16) - 0000000000874669 [17:48:39]1040 (4) - 139468 [17:48:39]1012 (4) - 30.10.2024 11:48 [17:48:39]1206 (1) - 0 [17:48:39]OFD Sender: Remove packet 139468 [17:48:39]ProducePacketName [17:48:39]name=ofd_packets/00139468 [17:48:39]NVStorageDeleteData [17:48:39]OFD Sender: No OFD packet to send [17:48:40]*** Cut start [17:48:40]*** Partial cut [17:48:40]*** CUTSNS_PIN = 1 [17:48:40]*** CUTSNS_PIN = 0 [17:48:40]*** Brake cut motor [17:48:40]Read from MH i2c: 01 [17:48:40]MH_I2C_Read... [17:48:40]*** Stop cut motor [17:48:40]*** Cut end [17:48:40]Read from MH i2c: 01 07 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: 01 07 00 6B 53 00 00 00 00 00 FF 0F D3 [17:48:40]process_action close_receipt done [17:48:40]requested_data is exist [17:48:40]produce_requested_data [17:48:40]requested_item fm.sn is exist - process it [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 11 00 00 [17:48:40]Write to MH i2c: E2 08 00 6C 53 80 11 00 00 00 00 00 00 39 [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 17 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 17 00 6C 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [17:48:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [17:48:40]wFMCommunicate OK [17:48:40]requested_item fd.num is exist - process it [17:48:40]SAM_PROTO_GetFieldsCounters [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 13 00 00 [17:48:40]Write to MH i2c: E2 08 00 6D 53 80 13 00 00 00 00 00 00 3C [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 62 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 62 00 6D 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CC 20 02 00 0E 04 04 00 2C 02 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 44 [17:48:40]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CC 20 02 00 0E 04 04 00 2C 02 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 [17:48:40]wFMCommunicate OK [17:48:40]SAM_PROTO_GetFieldsCounters done [17:48:40]requested_item shift.num is exist - process it [17:48:40]requested_item shift.opened is exist - process it [17:48:40]req_shift_opened [17:48:40]FM_GetShiftState [17:48:40]SAM_PROTO_GetShiftState [17:48:40]wFMCommunicate request_size=4 [17:48:40]MH_SAM_APDU [17:48:40]CAPDU: 80 13 01 00 [17:48:40]Write to MH i2c: E2 08 00 6E 53 80 13 01 00 00 00 00 00 3E [17:48:40]Write i2c OK [17:48:40]MH_I2C_Read... [17:48:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [17:48:40]Read from MH i2c: E2 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 0E 00 [17:48:40]MH_I2C_Read... [17:48:40]Read from MH i2c: E2 0E 00 6E 53 00 09 00 01 86 76 21 67 00 00 00 00 90 00 CE [17:48:40]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [17:48:40]wFMCommunicate OK [17:48:40]SAM_PROTO_GetShiftState done [17:48:40]FM_GetShiftState done [17:48:40]req_shift_opened done [17:48:40]requested_item shift.open_date is exist - process it [17:48:40]req_shift_open_date [17:48:40]req_shift_open_date done [17:48:40]produce_requested_data done [17:48:40]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139468,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [17:48:40]process_action_free close_receipt [17:48:40]json_value_free [17:48:40]json_value_free done [17:48:40]process_json_proto returns [17:48:40]Send response to host [17:48:40]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139468,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [17:48:40]free response buf [17:48:40]execute_script done [17:48:40]execute_script returns [17:48:40]free content buf [17:48:40]Sock 8.Close socket [17:48:40]Sock 8.Thread stoped [17:48:44]OFD Sender: No OFD packet to send [17:48:49]OFD Sender: No OFD packet to send [17:48:54]OFD Sender: No OFD packet to send [17:48:59]OFD Sender: No OFD packet to send [17:49:04]OFD Sender: No OFD packet to send [17:49:09]OFD Sender: No OFD packet to send [17:49:14]OFD Sender: No OFD packet to send [17:49:19]OFD Sender: No OFD packet to send [17:49:24]OFD Sender: No OFD packet to send [17:49:29]OFD Sender: No OFD packet to send [17:49:34]OFD Sender: No OFD packet to send [17:49:39]OFD Sender: No OFD packet to send [17:49:44]OFD Sender: No OFD packet to send [17:49:49]OFD Sender: No OFD packet to send [17:49:54]OFD Sender: No OFD packet to send [17:49:59]OFD Sender: No OFD packet to send [17:50:04]OFD Sender: No OFD packet to send [17:50:09]OFD Sender: No OFD packet to send [17:50:14]OFD Sender: No OFD packet to send [17:50:19]OFD Sender: No OFD packet to send [17:50:24]OFD Sender: No OFD packet to send [17:50:29]OFD Sender: No OFD packet to send [17:50:34]OFD Sender: No OFD packet to send [17:50:39]OFD Sender: No OFD packet to send [17:50:44]OFD Sender: No OFD packet to send [17:50:49]OFD Sender: No OFD packet to send [17:50:54]OFD Sender: No OFD packet to send [17:50:59]OFD Sender: No OFD packet to send [17:51:04]OFD Sender: No OFD packet to send [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:55]OFD Sender: No OFD packet to send [17:52:00]OFD Sender: No OFD packet to send [17:52:05]OFD Sender: No OFD packet to send [17:52:10]OFD Sender: No OFD packet to send [17:52:15]OFD Sender: No OFD packet to send [17:52:20]OFD Sender: No OFD packet to send [17:52:25]OFD Sender: No OFD packet to send [17:52:30]OFD Sender: No OFD packet to send [17:52:35]OFD Sender: No OFD packet to send [17:52:40]OFD Sender: No OFD packet to send [17:52:45]OFD Sender: No OFD packet to send [17:52:50]OFD Sender: No OFD packet to send [17:52:55]OFD Sender: No OFD packet to send [17:53:00]OFD Sender: No OFD packet to send [17:53:05]OFD Sender: No OFD packet to send [17:53:10]OFD Sender: No OFD packet to send [17:53:15]OFD Sender: No OFD packet to send [17:53:20]OFD Sender: No OFD packet to send [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:45]OFD Sender: No OFD packet to send [17:53:50]OFD Sender: No OFD packet to send [17:53:55]OFD Sender: No OFD packet to send [17:54:00]OFD Sender: No OFD packet to send [17:54:05]OFD Sender: No OFD packet to send [17:54:10]OFD Sender: No OFD packet to send [17:54:15]OFD Sender: No OFD packet to send [17:54:20]OFD Sender: No OFD packet to send [17:54:25]OFD Sender: No OFD packet to send [17:54:30]OFD Sender: No OFD packet to send [17:54:35]OFD Sender: No OFD packet to send [17:54:40]OFD Sender: No OFD packet to send [17:54:45]OFD Sender: No OFD packet to send [17:54:50]OFD Sender: No OFD packet to send [17:54:55]OFD Sender: No OFD packet to send [17:55:00]OFD Sender: No OFD packet to send [17:55:05]OFD Sender: No OFD packet to send [17:55:10]OFD Sender: No OFD packet to send [17:55:15]OFD Sender: No OFD packet to send [17:55:20]OFD Sender: No OFD packet to send [17:55:25]OFD Sender: No OFD packet to send [17:55:30]OFD Sender: No OFD packet to send [17:55:35]OFD Sender: No OFD packet to send [17:55:40]OFD Sender: No OFD packet to send [17:55:45]OFD Sender: No OFD packet to send [17:55:50]OFD Sender: No OFD packet to send [17:55:55]OFD Sender: No OFD packet to send [17:56:00]OFD Sender: No OFD packet to send [17:56:05]OFD Sender: No OFD packet to send [17:56:10]OFD Sender: No OFD packet to send [17:56:15]OFD Sender: No OFD packet to send [17:56:20]OFD Sender: No OFD packet to send [17:56:25]OFD Sender: No OFD packet to send [17:56:30]OFD Sender: No OFD packet to send [17:56:35]OFD Sender: No OFD packet to send [17:56:40]OFD Sender: No OFD packet to send [17:56:45]OFD Sender: No OFD packet to send [17:56:50]OFD Sender: No OFD packet to send [17:56:55]OFD Sender: No OFD packet to send [17:57:00]OFD Sender: No OFD packet to send [17:57:05]OFD Sender: No OFD packet to send [17:57:10]OFD Sender: No OFD packet to send [17:57:15]OFD Sender: No OFD packet to send [17:57:20]OFD Sender: No OFD packet to send [17:57:25]OFD Sender: No OFD packet to send [17:57:30]OFD Sender: No OFD packet to send [17:57:35]OFD Sender: No OFD packet to send [17:57:40]OFD Sender: No OFD packet to send [17:57:45]OFD Sender: No OFD packet to send [17:57:50]OFD Sender: No OFD packet to send [17:57:55]OFD Sender: No OFD packet to send [17:58:00]OFD Sender: No OFD packet to send [17:58:05]OFD Sender: No OFD packet to send [17:58:10]OFD Sender: No OFD packet to send [17:58:15]OFD Sender: No OFD packet to send [17:58:20]OFD Sender: No OFD packet to send [17:58:25]OFD Sender: No OFD packet to send [17:58:30]OFD Sender: No OFD packet to send [17:58:35]OFD Sender: No OFD packet to send [17:58:40]OFD Sender: No OFD packet to send [17:58:45]OFD Sender: No OFD packet to send [17:58:50]OFD Sender: No OFD packet to send [17:58:55]OFD Sender: No OFD packet to send [17:59:00]OFD Sender: No OFD packet to send [17:59:05]OFD Sender: No OFD packet to send [17:59:10]OFD Sender: No OFD packet to send [17:59:15]OFD Sender: No OFD packet to send [17:59:20]OFD Sender: No OFD packet to send [17:59:25]OFD Sender: No OFD packet to send [17:59:30]OFD Sender: No OFD packet to send [17:59:35]OFD Sender: No OFD packet to send [17:59:40]OFD Sender: No OFD packet to send [17:59:45]OFD Sender: No OFD packet to send [17:59:50]OFD Sender: No OFD packet to send [17:59:55]OFD Sender: No OFD packet to send [18:00:00]OFD Sender: No OFD packet to send [18:00:05]OFD Sender: No OFD packet to send [18:00:10]OFD Sender: No OFD packet to send [18:00:15]OFD Sender: No OFD packet to send [18:00:20]OFD Sender: No OFD packet to send [18:00:25]OFD Sender: No OFD packet to send [18:00:30]OFD Sender: No OFD packet to send [18:00:35]OFD Sender: No OFD packet to send [18:00:40]OFD Sender: No OFD packet to send [18:00:45]OFD Sender: No OFD packet to send [18:00:50]OFD Sender: No OFD packet to send [18:00:55]OFD Sender: No OFD packet to send [18:01:00]OFD Sender: No OFD packet to send [18:01:05]OFD Sender: No OFD packet to send [18:01:10]OFD Sender: No OFD packet to send [18:01:15]OFD Sender: No OFD packet to send [18:01:20]OFD Sender: No OFD packet to send [18:01:25]OFD Sender: No OFD packet to send [18:01:30]OFD Sender: No OFD packet to send [18:01:35]OFD Sender: No OFD packet to send [18:01:40]OFD Sender: No OFD packet to send [18:01:45]OFD Sender: No OFD packet to send [18:01:50]OFD Sender: No OFD packet to send [18:01:55]OFD Sender: No OFD packet to send [18:02:00]OFD Sender: No OFD packet to send [18:02:05]OFD Sender: No OFD packet to send [18:02:10]OFD Sender: No OFD packet to send [18:02:15]OFD Sender: No OFD packet to send [18:02:20]OFD Sender: No OFD packet to send [18:02:25]OFD Sender: No OFD packet to send [18:02:30]OFD Sender: No OFD packet to send [18:02:35]OFD Sender: No OFD packet to send [18:02:40]OFD Sender: No OFD packet to send [18:02:45]OFD Sender: No OFD packet to send [18:02:50]OFD Sender: No OFD packet to send [18:02:55]OFD Sender: No OFD packet to send [18:03:00]OFD Sender: No OFD packet to send [18:03:05]OFD Sender: No OFD packet to send [18:03:10]OFD Sender: No OFD packet to send [18:03:15]OFD Sender: No OFD packet to send [18:03:20]OFD Sender: No OFD packet to send [18:03:25]OFD Sender: No OFD packet to send [18:03:30]OFD Sender: No OFD packet to send [18:03:35]OFD Sender: No OFD packet to send [18:03:40]OFD Sender: No OFD packet to send [18:03:45]OFD Sender: No OFD packet to send [18:03:50]OFD Sender: No OFD packet to send [18:03:55]OFD Sender: No OFD packet to send [18:04:00]OFD Sender: No OFD packet to send [18:04:05]OFD Sender: No OFD packet to send [18:04:10]OFD Sender: No OFD packet to send [18:04:15]OFD Sender: No OFD packet to send [18:04:20]OFD Sender: No OFD packet to send [18:04:25]OFD Sender: No OFD packet to send [18:04:30]OFD Sender: No OFD packet to send [18:04:35]OFD Sender: No OFD packet to send [18:04:40]OFD Sender: No OFD packet to send [18:04:45]OFD Sender: No OFD packet to send [18:04:50]OFD Sender: No OFD packet to send [18:04:55]OFD Sender: No OFD packet to send [18:05:00]OFD Sender: No OFD packet to send [18:05:05]OFD Sender: No OFD packet to send [18:05:10]OFD Sender: No OFD packet to send [18:05:15]OFD Sender: No OFD packet to send [18:05:20]OFD Sender: No OFD packet to send [18:05:25]OFD Sender: No OFD packet to send [18:05:30]OFD Sender: No OFD packet to send [18:05:35]OFD Sender: No OFD packet to send [18:05:40]OFD Sender: No OFD packet to send [18:05:45]OFD Sender: No OFD packet to send [18:05:50]OFD Sender: No OFD packet to send [18:05:55]OFD Sender: No OFD packet to send [18:06:00]OFD Sender: No OFD packet to send [18:06:05]OFD Sender: No OFD packet to send [18:06:10]OFD Sender: No OFD packet to send [18:06:15]OFD Sender: No OFD packet to send [18:06:20]OFD Sender: No OFD packet to send [18:06:25]OFD Sender: No OFD packet to send [18:06:30]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:35]OFD Sender: No OFD packet to send [18:08:40]OFD Sender: No OFD packet to send [18:08:45]OFD Sender: No OFD packet to send [18:08:50]OFD Sender: No OFD packet to send [18:08:55]OFD Sender: No OFD packet to send [18:09:00]OFD Sender: No OFD packet to send [18:09:05]OFD Sender: No OFD packet to send [18:09:10]OFD Sender: No OFD packet to send [18:09:15]OFD Sender: No OFD packet to send [18:09:20]OFD Sender: No OFD packet to send [18:09:25]OFD Sender: No OFD packet to send [18:09:30]OFD Sender: No OFD packet to send [18:09:35]OFD Sender: No OFD packet to send [18:09:40]OFD Sender: No OFD packet to send [18:09:45]OFD Sender: No OFD packet to send [18:09:50]OFD Sender: No OFD packet to send [18:09:55]OFD Sender: No OFD packet to send [18:10:00]OFD Sender: No OFD packet to send [18:10:05]OFD Sender: No OFD packet to send [18:10:10]OFD Sender: No OFD packet to send [18:10:15]OFD Sender: No OFD packet to send [18:10:20]OFD Sender: No OFD packet to send [18:10:25]OFD Sender: No OFD packet to send [18:10:30]OFD Sender: No OFD packet to send [18:10:35]OFD Sender: No OFD packet to send [18:10:38]accept exits with 9 [18:10:38]New connection [18:10:38]New thread 3067284836 created [18:10:38]Thread 3067141476 joined [18:10:38]Waiting for new connection... [18:10:38] Sock 9.Parse request [18:10:38]Sock 9.Check first char [18:10:38]Sock 9.First char is OK [18:10:38]request: POST /json_proto HTTP/1.0 [18:10:38]Method: POST [18:10:38]URL: /json_proto [18:10:38]Method is POST - this is cgi request [18:10:38]url: /json_proto [18:10:38]query_string will be loaded in cgi processing [18:10:38]execute_cgi json_proto POST (null) [18:10:38]execute_cgi path=json_proto method=POST [18:10:38]POST find Content-Length [18:10:38]Host: 172.17.50.196:8080 [18:10:38]Content-Length: 669 [18:10:38]Content-Type: application/json [18:10:38] [18:10:38]POST finish read [18:10:38]Found Content-Length = 669 [18:10:38]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335358", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:38]execute_script... [18:10: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 : (3)335358", "tax_sys" : 0, "items" : [ { "code": "4700040114137", "name": "\u0421\u0443\u043B\u0442\u0430\u043D \u0447\u0430\u0439 1\u043B. \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D", "price" : 89.00, "quantity" : 1.000, "sum" : 89.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 89.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:10:38]POST & json_proto [18:10:38]process_json_proto [18:10:38]json parsed OK: [18:10:38]protocol is kg_v1.0 [18:10:38]action value=close_receipt [18:10:38]process_action close_receipt [18:10:38]cmd_close_receipt [18:10:38]MH_GetDate [18:10:38]Write to MH i2c: F0 00 00 6F 53 B1 [18:10:38]Write i2c OK [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: F0 [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: F0 09 00 [18:10:38]MH_I2C_Read... [18:10:38]Read from MH i2c: F0 09 00 6F 53 00 A5 76 22 67 72 0D 1C 67 60 [18:10:38]GetLastDocTimeStamp 1730310523 [18:10:38]current date 1730311845 [18:10:38]FM_GetShiftState [18:10:38]SAM_PROTO_GetShiftState [18:10:38]wFMCommunicate request_size=4 [18:10:38]MH_SAM_APDU [18:10:38]CAPDU: 80 13 01 00 [18:10:38]Write to MH i2c: E2 08 00 70 53 80 13 01 00 00 00 00 00 40 [18:10:38]Write i2c OK [18:10:38]MH_I2C_Read... [18:10:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:39]Read from MH i2c: E2 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 0E 00 [18:10:39]MH_I2C_Read... [18:10:39]Read from MH i2c: E2 0E 00 70 53 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D0 [18:10:39]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:10:39]wFMCommunicate OK [18:10:39]SAM_PROTO_GetShiftState done [18:10:39]FM_GetShiftState done [18:10:39]opened in 1730246278 [18:10:39]opened+sec_in_day 1730332678 [18:10:39]quantity*price = 8900 [18:10:39]sum+1 = 8901 [18:10:39]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 89.00 НСП 1% : 0.79 НДС 12% : 9.45 Наличными: 89.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 153 30.10.2024 18:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139469 ФПД: 74551407162730 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181045&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139469&fm=74551407162730&tin=02508201610067®Number=0000000000091631&sum=8900 0 [18:10:40]StoreToDocumentArchive [18:10:40]shift 556 fd 139469 [18:10:40]save to /storage/0556/doc_00139469 [18:10:40]save last doc name /storage/0556/doc_00139469 to /storage/kkm_last_doc_name [18:10:40]save OK [18:10:40]Clear old archive folders... [18:10:40]ProcessDocumentItem done err = 0, tmpTLVsize=284 [18:10:40]tlvbuf is B6FA9230 [18:10:40]SAM_PROTO_ClearQueue [18:10:40]wFMCommunicate request_size=4 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 09 00 00 [18:10:40]Write to MH i2c: E2 08 00 7D 53 80 09 00 00 00 00 00 00 42 [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:10:40]Read from MH i2c: E2 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 7D 53 00 90 00 44 [18:10:40]RAPDU: 90 00 [18:10:40]wFMCommunicate OK [18:10:40]SAM_PROTO_ClearQueue done [18:10:40]KKMCreateOFDPacket [18:10:40]OFDProtocolAddRootSTLVToBuf [18:10:40]FM_MakeSignedData [18:10:40]FM_MakeSignedData [18:10:40]SAM_PROTO_SignData [18:10:40]wFMCommunicate request_size=4 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 0D 01 02 [18:10:40]Write to MH i2c: E2 08 00 7E 53 80 0D 01 02 00 00 00 00 4A [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:10:40]Read from MH i2c: E2 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 7E 53 00 90 00 45 [18:10:40]RAPDU: 90 00 [18:10:40]wFMCommunicate OK [18:10:40]wFMCommunicate request_size=255 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 0D 02 02 FA 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 A5 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [18:10:40]Write to MH i2c: E2 02 01 7F 53 80 0D 02 02 FA 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 A5 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 F6 [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:40]Read from MH i2c: E2 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 7F 53 00 90 00 46 [18:10:40]RAPDU: 90 00 [18:10:40]wFMCommunicate OK [18:10:40]wFMCommunicate request_size=43 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 0D 02 02 26 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 20 02 00 35 04 06 00 43 CD DA 24 35 6A [18:10:40]Write to MH i2c: E2 2E 00 80 53 80 0D 02 02 26 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 20 02 00 35 04 06 00 43 CD DA 24 35 6A 00 00 D9 [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:10:40]Read from MH i2c: E2 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 03 00 80 53 00 90 00 47 [18:10:40]RAPDU: 90 00 [18:10:40]wFMCommunicate OK [18:10:40]wFMCommunicate request_size=4 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 0D 03 02 [18:10:40]Write to MH i2c: E2 08 00 81 53 80 0D 03 02 00 00 00 00 4F [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:10:40]Read from MH i2c: E2 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 0B 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 0B 00 81 53 00 C1 A1 A1 D3 D9 32 A7 47 90 00 1F [18:10:40]RAPDU: C1 A1 A1 D3 D9 32 A7 47 90 00 [18:10:40]wFMCommunicate OK [18:10:40]SAM_PROTO_SignData done [18:10:40]FM_MakeSignedData done [18:10:40]CreateOFDProtocolMessage [18:10:40]wFMCommunicate request_size=4 [18:10:40]MH_SAM_APDU [18:10:40]CAPDU: 80 11 00 00 [18:10:40]Write to MH i2c: E2 08 00 82 53 80 11 00 00 00 00 00 00 4F [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:40]Read from MH i2c: E2 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 17 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: E2 17 00 82 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [18:10:40]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:10:40]wFMCommunicate OK [18:10:40]CreateOFDProtocolMessage done [18:10:40]OFDSenderStorePacket 139469 [18:10:40]StoreOFDPacket docnum=139469 [18:10:40]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 30 01 00 00 47 62 28 01 C7 B6 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 A5 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 20 02 00 35 04 06 00 43 CD DA 24 35 6A C1 A1 A1 D3 D9 32 A7 47 [18:10:40]CheckFolder [18:10:40]dirname=/storage/ofd_packets [18:10:40]CheckFolder done [18:10:40]ProducePacketName [18:10:40]name=ofd_packets/00139469 [18:10:40]NVStorageSaveData ofd_packets/00139469 [18:10:40]File name is /storage/ofd_packets/00139469 [18:10:40]Write 334 bytes [18:10:40]NVStorageSaveData done [18:10:40]OFDSenderStorePacket done [18:10:40]KKMCreateOFDPacket done [18:10:40]NVStorageSaveData kkm_last_timestamp [18:10:40]File name is /storage/kkm_last_timestamp [18:10:40]Write 4 bytes [18:10:40]NVStorageSaveData done [18:10:40]ExternCall_PrintAddStr [18:10:40]wPrintStart [18:10:40]Write to MH i2c: 01 00 00 83 53 D6 [18:10:40]OFD Sender: Processing packet 139469 [packets to send 34, broken 33] [18:10:40]ProducePacketName [18:10:40]name=ofd_packets/00139469 [18:10:40]OFD Sender: To server: pG, [18:10:40]CommunicateWithHost lk.salyk.kg:30040 [18:10:40]ConnectInit lk.salyk.kg [18:10:40]Write i2c OK [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: 01 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: 01 07 00 [18:10:40]MH_I2C_Read... [18:10:40]Read from MH i2c: 01 07 00 83 53 00 00 00 00 00 FF 0F EB [18:10:40]RasterBufferAndPrint [18:10:40]line Счет N : (3)335358 [18:10:40]line ИНН: 02508201610067 [18:10:40]line Контрольно-Кассовый Чек [18:10:40]line ПРОДАЖА [18:10:40]line Товар: 4700040114137 [18:10:40]line Султан чай 1л. зел лимон [18:10:40]line 1.000 * 89.00 [18:10:40]line = 89.00 [18:10:40]line НДС 12% НСП 1% [18:10:40]line > о реализуемом товаре [18:10:40]line ИТОГО: 89.00 [18:10:40]line НСП 1% : 0.79 [18:10:40]line НДС 12% : 9.45 [18:10:40]line Наличными: 89.00 [18:10:40]line Безнал.: 0.00 [18:10:40]line Место: АЗС № 101 "Партнер Нефть" [18:10:40]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:10:40]line СНО: Общий режим [18:10:40]line Чек 153 30.10.2024 18:10 [18:10:40]line Смена: 556 ФФД: 1.0 [18:10:40]line ЗНМ: 0300000081 [18:10:40]line РНМ: 0000000000091631 [18:10:40]line Версия ККМ: 001 [18:10:40]line ФМ: 0000000000874669 [18:10:40]line ФД: 139469 [18:10:40]line ФПД: 74551407162730 [18:10:41]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181045&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139469&fm=74551407162730&tin=02508201610067®Number=0000000000091631&sum=8900 [18:10:41]line 0 [18:10:41]Connected sock=10 [18:10:41]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 30 01 00 00 47 62 28 01 C7 B6 5A 03 01 00 03 00 1C 01 1E 04 01 00 01 23 04 6E 00 8A 04 0D 00 34 37 30 30 30 34 30 31 31 34 31 33 37 06 04 2A 00 D0 A1 D1 83 D0 BB D1 82 D0 B0 D0 BD 20 D1 87 D0 B0 D0 B9 20 31 D0 BB 2E 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C4 22 00 00 00 00 13 04 06 00 C4 22 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 22 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B1 03 00 00 00 00 07 04 06 00 C4 22 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 A5 76 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 20 02 00 35 04 06 00 43 CD DA 24 35 6A C1 A1 A1 D3 D9 32 A7 47 [18:10:41]written 0, free lines is 4095 [18:10:41]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 85 90 47 00 20 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CD 20 02 00 F4 03 04 00 55 22 22 67 B6 04 01 00 00 E9 AC 82 C5 8F 63 EF AA [18:10:41]CommunicateWithHost err = 0 [18:10:41]CheckOFDResponse [18:10:41]1017 (14) - 77093643461234 [18:10:41]1041 (16) - 0000000000874669 [18:10:41]1040 (4) - 139469 [18:10:41]1012 (4) - 30.10.2024 12:11 [18:10:41]1206 (1) - 0 [18:10:41]OFD Sender: Remove packet 139469 [18:10:41]ProducePacketName [18:10:41]name=ofd_packets/00139469 [18:10:41]NVStorageDeleteData [18:10:41]Write to MH i2c: 01 00 00 AB 53 FE [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 07 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: 01 07 00 AB 53 00 00 00 00 00 17 0D 29 [18:10:41]RasterBufferAndPrint [18:10:41]line [18:10:41]line [18:10:41]line [18:10:41]line [18:10:41]line [18:10:41]written 0, free lines is 3360 [18:10:41]MH_Cut [18:10:41]Write to MH i2c: D1 01 00 B2 53 01 D7 [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: D1 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: D1 01 00 [18:10:41]MH_I2C_Read... [18:10:41]Read from MH i2c: D1 01 00 B2 53 00 D6 [18:10:41]Write to MH i2c: 01 00 00 B3 53 06 [18:10:41]Write i2c OK [18:10:41]MH_I2C_Read... [18:10:41]OFD Sender: No OFD packet to send [18:10:42]*** Cut start [18:10:42]*** Partial cut [18:10:42]*** CUTSNS_PIN = 1 [18:10:42]*** CUTSNS_PIN = 0 [18:10:42]*** Brake cut motor [18:10:42]Read from MH i2c: 01 [18:10:42]MH_I2C_Read... [18:10:42]*** Stop cut motor [18:10:42]*** Cut end [18:10:42]Read from MH i2c: 01 07 00 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: 01 07 00 B3 53 00 00 00 00 00 FF 0F 1B [18:10:42]process_action close_receipt done [18:10:42]requested_data is exist [18:10:42]produce_requested_data [18:10:42]requested_item fm.sn is exist - process it [18:10:42]wFMCommunicate request_size=4 [18:10:42]MH_SAM_APDU [18:10:42]CAPDU: 80 11 00 00 [18:10:42]Write to MH i2c: E2 08 00 B4 53 80 11 00 00 00 00 00 00 81 [18:10:42]Write i2c OK [18:10:42]MH_I2C_Read... [18:10:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:10:42]Read from MH i2c: E2 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: E2 17 00 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: E2 17 00 B4 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DC [18:10:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:10:42]wFMCommunicate OK [18:10:42]requested_item fd.num is exist - process it [18:10:42]SAM_PROTO_GetFieldsCounters [18:10:42]wFMCommunicate request_size=4 [18:10:42]MH_SAM_APDU [18:10:42]CAPDU: 80 13 00 00 [18:10:42]Write to MH i2c: E2 08 00 B5 53 80 13 00 00 00 00 00 00 84 [18:10:42]Write i2c OK [18:10:42]MH_I2C_Read... [18:10:42]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:10:42]Read from MH i2c: E2 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: E2 62 00 [18:10:42]MH_I2C_Read... [18:10:42]Read from MH i2c: E2 62 00 B5 53 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CD 20 02 00 0E 04 04 00 2C 02 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 90 [18:10:42]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CD 20 02 00 0E 04 04 00 2C 02 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 [18:10:42]wFMCommunicate OK [18:10:42]SAM_PROTO_GetFieldsCounters done [18:10:42]requested_item shift.num is exist - process it [18:10:42]requested_item shift.opened is exist - process it [18:10:42]req_shift_opened [18:10:42]FM_GetShiftState [18:10:42]SAM_PROTO_GetShiftState [18:10:42]wFMCommunicate request_size=4 [18:10:42]MH_SAM_APDU [18:10:42]CAPDU: 80 13 01 00 [18:10:42]Write to MH i2c: E2 08 00 B6 53 80 13 01 00 00 00 00 00 86 [18:10:42]Write i2c OK [18:10:42]MH_I2C_Read... [18:10:43]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:10:43]Read from MH i2c: E2 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 0E 00 [18:10:43]MH_I2C_Read... [18:10:43]Read from MH i2c: E2 0E 00 B6 53 00 09 00 01 86 76 21 67 00 00 00 00 90 00 16 [18:10:43]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:10:43]wFMCommunicate OK [18:10:43]SAM_PROTO_GetShiftState done [18:10:43]FM_GetShiftState done [18:10:43]req_shift_opened done [18:10:43]requested_item shift.open_date is exist - process it [18:10:43]req_shift_open_date [18:10:43]req_shift_open_date done [18:10:43]produce_requested_data done [18:10:43]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139469,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:10:43]process_action_free close_receipt [18:10:43]json_value_free [18:10:43]json_value_free done [18:10:43]process_json_proto returns [18:10:43]Send response to host [18:10:43]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139469,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:10:43]free response buf [18:10:43]execute_script done [18:10:43]execute_script returns [18:10:43]free content buf [18:10:43]Sock 9.Close socket [18:10:43]Sock 9.Thread stoped [18:10:46]OFD Sender: No OFD packet to send [18:10:51]OFD Sender: No OFD packet to send [18:10:56]OFD Sender: No OFD packet to send [18:11:01]OFD Sender: No OFD packet to send [18:11:06]OFD Sender: No OFD packet to send [18:11:11]OFD Sender: No OFD packet to send [18:11:16]OFD Sender: No OFD packet to send [18:11:21]OFD Sender: No OFD packet to send [18:11:26]OFD Sender: No OFD packet to send [18:11:31]OFD Sender: No OFD packet to send [18:11:36]OFD Sender: No OFD packet to send [18:11:41]OFD Sender: No OFD packet to send [18:11:46]OFD Sender: No OFD packet to send [18:11:51]OFD Sender: No OFD packet to send [18:11:56]OFD Sender: No OFD packet to send [18:12:01]OFD Sender: No OFD packet to send [18:12:06]OFD Sender: No OFD packet to send [18:12:11]OFD Sender: No OFD packet to send [18:12:16]OFD Sender: No OFD packet to send [18:12:21]OFD Sender: No OFD packet to send [18:12:26]accept exits with 8 [18:12:26]New connection [18:12:26]New thread 3067141476 created [18:12:26]Thread 3067284836 joined [18:12:26]Waiting for new connection... [18:12:26] Sock 8.Parse request [18:12:26]Sock 8.Check first char [18:12:26]Sock 8.First char is OK [18:12:26]request: POST /json_proto HTTP/1.0 [18:12:26]Method: POST [18:12:26]URL: /json_proto [18:12:26]Method is POST - this is cgi request [18:12:26]url: /json_proto [18:12:26]query_string will be loaded in cgi processing [18:12:26]execute_cgi json_proto POST (null) [18:12:26]execute_cgi path=json_proto method=POST [18:12:26]POST find Content-Length [18:12:26]Host: 172.17.50.196:8080 [18:12:26]Content-Length: 1108 [18:12:26]Content-Type: application/json [18:12:26] [18:12:26]POST finish read [18:12:26]Found Content-Length = 1108 [18:12:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335359", "tax_sys" : 0, "items" : [ { "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 2.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740016", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0431\u0435\u043A\u043E\u043D 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:26]execute_script... [18: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 : (3)335359", "tax_sys" : 0, "items" : [ { "code": "4607010740191", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0441\u0430\u043B\u044F\u043C\u0438 40\u0433", "price" : 21.00, "quantity" : 2.000, "sum" : 42.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4607010740016", "name": "\u0421\u0443\u0445 \u041A\u0438\u0440\u0438\u0435\u0448\u043A\u0438 \u0431\u0435\u043A\u043E\u043D 40\u0433", "price" : 21.00, "quantity" : 1.000, "sum" : 21.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 63.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:12:26]POST & json_proto [18:12:26]process_json_proto [18:12:26]json parsed OK: [18:12:26]protocol is kg_v1.0 [18:12:26]action value=close_receipt [18:12:26]process_action close_receipt [18:12:26]cmd_close_receipt [18:12:26]MH_GetDate [18:12:26]Write to MH i2c: F0 00 00 B7 53 F9 [18:12:26]Write i2c OK [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: F0 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: F0 09 00 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: F0 09 00 B7 53 00 10 77 22 67 72 0D 1C 67 14 [18:12:26]GetLastDocTimeStamp 1730311845 [18:12:26]current date 1730311952 [18:12:26]FM_GetShiftState [18:12:26]SAM_PROTO_GetShiftState [18:12:26]wFMCommunicate request_size=4 [18:12:26]MH_SAM_APDU [18:12:26]CAPDU: 80 13 01 00 [18:12:26]Write to MH i2c: E2 08 00 B8 53 80 13 01 00 00 00 00 00 88 [18:12:26]Write i2c OK [18:12:26]MH_I2C_Read... [18:12:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:26]Read from MH i2c: E2 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 0E 00 [18:12:26]MH_I2C_Read... [18:12:26]Read from MH i2c: E2 0E 00 B8 53 00 09 00 01 86 76 21 67 00 00 00 00 90 00 18 [18:12:26]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:12:26]wFMCommunicate OK [18:12:26]SAM_PROTO_GetShiftState done [18:12:26]FM_GetShiftState done [18:12:26]opened in 1730246278 [18:12:26]opened+sec_in_day 1730332678 [18:12:26]quantity*price = 4200 [18:12:26]sum+1 = 4201 [18:12:26]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4607010740016 Сух Кириешки бекон 40г 1.000 * 21.00 = 21.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 63.00 НСП 1% : 0.56 НДС 12% : 6.69 Наличными: 0.00 Безнал.: 63.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 154 30.10.2024 18:12 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874669 ФД: 139470 ФПД: 179498020810042 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181232&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139470&fm=179498020810042&tin=02508201610067®Number=0000000000091631&sum=6300 0 [18:12:27]StoreToDocumentArchive [18:12:27]shift 556 fd 139470 [18:12:27]save to /storage/0556/doc_00139470 [18:12:27]save last doc name /storage/0556/doc_00139470 to /storage/kkm_last_doc_name [18:12:27]save OK [18:12:27]Clear old archive folders... [18:12:27]ProcessDocumentItem done err = 0, tmpTLVsize=394 [18:12:27]tlvbuf is 0110A310 [18:12:27]SAM_PROTO_ClearQueue [18:12:27]wFMCommunicate request_size=4 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 09 00 00 [18:12:27]Write to MH i2c: E2 08 00 C5 53 80 09 00 00 00 00 00 00 8A [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 C5 53 00 90 00 8C [18:12:27]RAPDU: 90 00 [18:12:27]wFMCommunicate OK [18:12:27]SAM_PROTO_ClearQueue done [18:12:27]KKMCreateOFDPacket [18:12:27]OFDProtocolAddRootSTLVToBuf [18:12:27]FM_MakeSignedData [18:12:27]FM_MakeSignedData [18:12:27]SAM_PROTO_SignData [18:12:27]wFMCommunicate request_size=4 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 0D 01 02 [18:12:27]Write to MH i2c: E2 08 00 C6 53 80 0D 01 02 00 00 00 00 92 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 C6 53 00 90 00 8D [18:12:27]RAPDU: 90 00 [18:12:27]wFMCommunicate OK [18:12:27]wFMCommunicate request_size=255 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 0D 02 02 FA 03 00 8A 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F [18:12:27]Write to MH i2c: E2 02 01 C7 53 80 0D 02 02 FA 00 03 00 8A 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 D7 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 C7 53 00 90 00 8E [18:12:27]RAPDU: 90 00 [18:12:27]wFMCommunicate OK [18:12:27]wFMCommunicate request_size=153 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 0D 02 02 94 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 18 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 10 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 20 02 00 35 04 06 00 A3 40 A3 C4 AD 3A [18:12:27]Write to MH i2c: E2 9C 00 C8 53 80 0D 02 02 94 00 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 18 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 10 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 20 02 00 35 04 06 00 A3 40 A3 C4 AD 3A 00 00 6C [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 03 00 C8 53 00 90 00 8F [18:12:27]RAPDU: 90 00 [18:12:27]wFMCommunicate OK [18:12:27]wFMCommunicate request_size=4 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 0D 03 02 [18:12:27]Write to MH i2c: E2 08 00 C9 53 80 0D 03 02 00 00 00 00 97 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 0B 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 0B 00 C9 53 00 E6 E0 8B A3 8B 37 5A 5F 90 00 07 [18:12:27]RAPDU: E6 E0 8B A3 8B 37 5A 5F 90 00 [18:12:27]wFMCommunicate OK [18:12:27]SAM_PROTO_SignData done [18:12:27]FM_MakeSignedData done [18:12:27]CreateOFDProtocolMessage [18:12:27]wFMCommunicate request_size=4 [18:12:27]MH_SAM_APDU [18:12:27]CAPDU: 80 11 00 00 [18:12:27]Write to MH i2c: E2 08 00 CA 53 80 11 00 00 00 00 00 00 97 [18:12:27]Write i2c OK [18:12:27]MH_I2C_Read... [18:12:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:27]Read from MH i2c: E2 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 17 00 [18:12:27]MH_I2C_Read... [18:12:27]Read from MH i2c: E2 17 00 CA 53 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F2 [18:12:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:12:27]wFMCommunicate OK [18:12:27]CreateOFDProtocolMessage done [18:12:27]OFDSenderStorePacket 139470 [18:12:27]StoreOFDPacket docnum=139470 [18:12:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9E 01 00 00 1A D9 96 01 A1 47 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 18 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 10 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 20 02 00 35 04 06 00 A3 40 A3 C4 AD 3A E6 E0 8B A3 8B 37 5A 5F [18:12:27]CheckFolder [18:12:27]dirname=/storage/ofd_packets [18:12:27]CheckFolder done [18:12:27]ProducePacketName [18:12:27]name=ofd_packets/00139470 [18:12:27]NVStorageSaveData ofd_packets/00139470 [18:12:27]File name is /storage/ofd_packets/00139470 [18:12:27]Write 444 bytes [18:12:27]NVStorageSaveData done [18:12:27]OFDSenderStorePacket done [18:12:27]KKMCreateOFDPacket done [18:12:28]NVStorageSaveData kkm_last_timestamp [18:12:28]File name is /storage/kkm_last_timestamp [18:12:28]Write 4 bytes [18:12:28]NVStorageSaveData done [18:12:28]ExternCall_PrintAddStr [18:12:28]wPrintStart [18:12:28]Write to MH i2c: 01 00 00 CB 53 1E [18:12:28]OFD Sender: Processing packet 139470 [packets to send 34, broken 33] [18:12:28]ProducePacketName [18:12:28]name=ofd_packets/00139470 [18:12:28]OFD Sender: To server: pG, [18:12:28]CommunicateWithHost lk.salyk.kg:30040 [18:12:28]ConnectInit lk.salyk.kg [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 07 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 07 00 CB 53 00 00 00 00 00 FF 0F 33 [18:12:28]RasterBufferAndPrint [18:12:28]line Счет N : (3)335359 [18:12:28]line ИНН: 02508201610067 [18:12:28]line Контрольно-Кассовый Чек [18:12:28]line ПРОДАЖА [18:12:28]line Товар: 4607010740191 [18:12:28]line Сух Кириешки салями 40г [18:12:28]line 2.000 * 21.00 [18:12:28]line = 42.00 [18:12:28]line НДС 12% НСП 1% [18:12:28]line > о реализуемом товаре [18:12:28]line Товар: 4607010740016 [18:12:28]line Сух Кириешки бекон 40г [18:12:28]line 1.000 * 21.00 [18:12:28]line = 21.00 [18:12:28]line НДС 12% НСП 1% [18:12:28]line > о реализуемом товаре [18:12:28]line ИТОГО: 63.00 [18:12:28]line НСП 1% : 0.56 [18:12:28]line НДС 12% : 6.69 [18:12:28]line Наличными: 0.00 [18:12:28]line Безнал.: 63.00 [18:12:28]line Место: АЗС № 101 "Партнер Нефть" [18:12:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:12:28]line СНО: Общий режим [18:12:28]line Чек 154 30.10.2024 18:12 [18:12:28]line Смена: 556 ФФД: 1.0 [18:12:28]line ЗНМ: 0300000081 [18:12:28]line РНМ: 0000000000091631 [18:12:28]line Версия ККМ: 001 [18:12:28]line Платежная система: O! деньги [18:12:28]line ФМ: 0000000000874669 [18:12:28]line ФД: 139470 [18:12:28]line ФПД: 179498020810042 [18:12:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181232&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139470&fm=179498020810042&tin=02508201610067®Number=0000000000091631&sum=6300 [18:12:28]line 0 [18:12:28]written 0, free lines is 4095 [18:12:28]Connected sock=10 [18:12:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9E 01 00 00 1A D9 96 01 A1 47 5A 03 01 00 03 00 8A 01 1E 04 01 00 01 23 04 6D 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 31 39 31 06 04 29 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D1 81 D0 B0 D0 BB D1 8F D0 BC D0 B8 20 34 30 D0 B3 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 68 10 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 31 30 37 34 30 30 31 36 06 04 27 00 D0 A1 D1 83 D1 85 20 D0 9A D0 B8 D1 80 D0 B8 D0 B5 D1 88 D0 BA D0 B8 20 D0 B1 D0 B5 D0 BA D0 BE D0 BD 20 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 08 00 00 00 00 13 04 06 00 34 08 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 9C 18 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 38 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 9D 02 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 9C 18 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9A 00 00 00 F4 03 04 00 10 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 20 02 00 35 04 06 00 A3 40 A3 C4 AD 3A E6 E0 8B A3 8B 37 5A 5F [18:12:28]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 25 B2 47 00 6C 80 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CE 20 02 00 F4 03 04 00 C0 22 22 67 B6 04 01 00 00 2E D2 18 95 E0 D1 49 95 [18:12:28]CommunicateWithHost err = 0 [18:12:28]CheckOFDResponse [18:12:28]1017 (14) - 77093643461234 [18:12:28]1041 (16) - 0000000000874669 [18:12:28]1040 (4) - 139470 [18:12:28]1012 (4) - 30.10.2024 12:12 [18:12:28]1206 (1) - 0 [18:12:28]OFD Sender: Remove packet 139470 [18:12:28]ProducePacketName [18:12:28]name=ofd_packets/00139470 [18:12:28]NVStorageDeleteData [18:12:28]Write to MH i2c: 01 00 00 FB 53 4E [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 07 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: 01 07 00 FB 53 00 00 00 00 00 B2 0C 13 [18:12:28]RasterBufferAndPrint [18:12:28]line [18:12:28]line [18:12:28]line [18:12:28]line [18:12:28]line [18:12:28]written 0, free lines is 3259 [18:12:28]MH_Cut [18:12:28]Write to MH i2c: D1 01 00 02 54 01 28 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: D1 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: D1 01 00 [18:12:28]MH_I2C_Read... [18:12:28]Read from MH i2c: D1 01 00 02 54 00 27 [18:12:28]Write to MH i2c: 01 00 00 03 54 57 [18:12:28]Write i2c OK [18:12:28]MH_I2C_Read... [18:12:29]OFD Sender: No OFD packet to send [18:12:29]*** Cut start [18:12:29]*** Partial cut [18:12:29]*** CUTSNS_PIN = 1 [18:12:29]*** CUTSNS_PIN = 0 [18:12:29]*** Brake cut motor [18:12:30]Read from MH i2c: 01 [18:12:30]MH_I2C_Read... [18:12:30]*** Stop cut motor [18:12:30]*** Cut end [18:12:30]Read from MH i2c: 01 07 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: 01 07 00 03 54 00 00 00 00 00 FF 0F 6C [18:12:30]process_action close_receipt done [18:12:30]requested_data is exist [18:12:30]produce_requested_data [18:12:30]requested_item fm.sn is exist - process it [18:12:30]wFMCommunicate request_size=4 [18:12:30]MH_SAM_APDU [18:12:30]CAPDU: 80 11 00 00 [18:12:30]Write to MH i2c: E2 08 00 04 54 80 11 00 00 00 00 00 00 D2 [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 17 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 17 00 04 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2D [18:12:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:12:30]wFMCommunicate OK [18:12:30]requested_item fd.num is exist - process it [18:12:30]SAM_PROTO_GetFieldsCounters [18:12:30]wFMCommunicate request_size=4 [18:12:30]MH_SAM_APDU [18:12:30]CAPDU: 80 13 00 00 [18:12:30]Write to MH i2c: E2 08 00 05 54 80 13 00 00 00 00 00 00 D5 [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 62 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 62 00 05 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CE 20 02 00 0E 04 04 00 2C 02 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 E5 [18:12:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CE 20 02 00 0E 04 04 00 2C 02 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 [18:12:30]wFMCommunicate OK [18:12:30]SAM_PROTO_GetFieldsCounters done [18:12:30]requested_item shift.num is exist - process it [18:12:30]requested_item shift.opened is exist - process it [18:12:30]req_shift_opened [18:12:30]FM_GetShiftState [18:12:30]SAM_PROTO_GetShiftState [18:12:30]wFMCommunicate request_size=4 [18:12:30]MH_SAM_APDU [18:12:30]CAPDU: 80 13 01 00 [18:12:30]Write to MH i2c: E2 08 00 06 54 80 13 01 00 00 00 00 00 D7 [18:12:30]Write i2c OK [18:12:30]MH_I2C_Read... [18:12:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:12:30]Read from MH i2c: E2 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 0E 00 [18:12:30]MH_I2C_Read... [18:12:30]Read from MH i2c: E2 0E 00 06 54 00 09 00 01 86 76 21 67 00 00 00 00 90 00 67 [18:12:30]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:12:30]wFMCommunicate OK [18:12:30]SAM_PROTO_GetShiftState done [18:12:30]FM_GetShiftState done [18:12:30]req_shift_opened done [18:12:30]requested_item shift.open_date is exist - process it [18:12:30]req_shift_open_date [18:12:30]req_shift_open_date done [18:12:30]produce_requested_data done [18:12:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139470,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:12:30]process_action_free close_receipt [18:12:30]json_value_free [18:12:30]json_value_free done [18:12:30]process_json_proto returns [18:12:30]Send response to host [18:12:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139470,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:12:30]free response buf [18:12:30]execute_script done [18:12:30]execute_script returns [18:12:30]free content buf [18:12:30]Sock 8.Close socket [18:12:30]Sock 8.Thread stoped [18:12:34]OFD Sender: No OFD packet to send [18:12:39]OFD Sender: No OFD packet to send [18:12:44]OFD Sender: No OFD packet to send [18:12:49]OFD Sender: No OFD packet to send [18:12:54]OFD Sender: No OFD packet to send [18:12:59]OFD Sender: No OFD packet to send [18:13:04]OFD Sender: No OFD packet to send [18:13:09]OFD Sender: No OFD packet to send [18:13:14]OFD Sender: No OFD packet to send [18:13:19]OFD Sender: No OFD packet to send [18:13:24]OFD Sender: No OFD packet to send [18:13:29]OFD Sender: No OFD packet to send [18:13:34]OFD Sender: No OFD packet to send [18:13:39]OFD Sender: No OFD packet to send [18:13:44]OFD Sender: No OFD packet to send [18:13:49]OFD Sender: No OFD packet to send [18:13:54]OFD Sender: No OFD packet to send [18:13:58]accept exits with 9 [18:13:58]New connection [18:13:58]New thread 3067284836 created [18:13:58]Thread 3067141476 joined [18:13:58]Waiting for new connection... [18:13:58] Sock 9.Parse request [18:13:58]Sock 9.Check first char [18:13:58]Sock 9.First char is OK [18:13:58]request: POST /json_proto HTTP/1.0 [18:13:58]Method: POST [18:13:58]URL: /json_proto [18:13:58]Method is POST - this is cgi request [18:13:58]url: /json_proto [18:13:58]query_string will be loaded in cgi processing [18:13:58]execute_cgi json_proto POST (null) [18:13:58]execute_cgi path=json_proto method=POST [18:13:58]POST find Content-Length [18:13:58]Host: 172.17.50.196:8080 [18:13:58]Content-Length: 802 [18:13:58]Content-Type: application/json [18:13:58] [18:13:58]POST finish read [18:13:58]Found Content-Length = 802 [18:13:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:58]execute_script... [18: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)1094703", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 11.960, "sum" : 800.12, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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" : 800.12 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:13:58]POST & json_proto [18:13:58]process_json_proto [18:13:58]json parsed OK: [18:13:58]protocol is kg_v1.0 [18:13:58]action value=close_receipt [18:13:58]process_action close_receipt [18:13:58]cmd_close_receipt [18:13:58]MH_GetDate [18:13:58]Write to MH i2c: F0 00 00 07 54 4A [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: F0 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: F0 09 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: F0 09 00 07 54 00 6C 77 22 67 72 0D 1C 67 C1 [18:13:58]GetLastDocTimeStamp 1730311952 [18:13:58]current date 1730312044 [18:13:58]FM_GetShiftState [18:13:58]SAM_PROTO_GetShiftState [18:13:58]wFMCommunicate request_size=4 [18:13:58]MH_SAM_APDU [18:13:58]CAPDU: 80 13 01 00 [18:13:58]Write to MH i2c: E2 08 00 08 54 80 13 01 00 00 00 00 00 D9 [18:13:58]Write i2c OK [18:13:58]MH_I2C_Read... [18:13:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:13:58]Read from MH i2c: E2 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 0E 00 [18:13:58]MH_I2C_Read... [18:13:58]Read from MH i2c: E2 0E 00 08 54 00 09 00 01 86 76 21 67 00 00 00 00 90 00 69 [18:13:58]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:13:58]wFMCommunicate OK [18:13:58]SAM_PROTO_GetShiftState done [18:13:58]FM_GetShiftState done [18:13:58]opened in 1730246278 [18:13:58]opened+sec_in_day 1730332678 [18:13:58]quantity*price = 80012 [18:13:58]sum+1 = 80013 [18:13:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 800.12 НСП 1% : 7.08 НДС 12% : 84.97 Наличными: 0.00 Безнал.: 800.12 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 155 30.10.2024 18:14 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874669 ФД: 139471 ФПД: 145537529025706 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181404&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139471&fm=145537529025706&tin=02508201610067®Number=0000000000091631&sum=80012 [18:13:59]StoreToDocumentArchive [18:13:59]shift 556 fd 139471 [18:13:59]save to /storage/0556/doc_00139471 [18:13:59]save last doc name /storage/0556/doc_00139471 to /storage/kkm_last_doc_name [18:13:59]save OK [18:13:59]Clear old archive folders... [18:13:59]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:13:59]tlvbuf is 011D7AF0 [18:13:59]SAM_PROTO_ClearQueue [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 09 00 00 [18:13:59]Write to MH i2c: E2 08 00 15 54 80 09 00 00 00 00 00 00 DB [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 15 54 00 90 00 DD [18:13:59]RAPDU: 90 00 [18:13:59]wFMCommunicate OK [18:13:59]SAM_PROTO_ClearQueue done [18:13:59]KKMCreateOFDPacket [18:13:59]OFDProtocolAddRootSTLVToBuf [18:13:59]FM_MakeSignedData [18:13:59]FM_MakeSignedData [18:13:59]SAM_PROTO_SignData [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 0D 01 02 [18:13:59]Write to MH i2c: E2 08 00 16 54 80 0D 01 02 00 00 00 00 E3 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 16 54 00 90 00 DE [18:13:59]RAPDU: 90 00 [18:13:59]wFMCommunicate OK [18:13:59]wFMCommunicate request_size=255 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 9B 00 00 00 F4 03 04 00 6C 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 20 02 00 35 04 06 00 84 [18:13:59]Write to MH i2c: E2 02 01 17 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9B 00 00 00 F4 03 04 00 6C 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 20 02 00 35 04 06 00 84 00 00 20 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 17 54 00 90 00 DF [18:13:59]RAPDU: 90 00 [18:13:59]wFMCommunicate OK [18:13:59]wFMCommunicate request_size=10 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 0D 02 02 05 5D 98 B8 14 AA [18:13:59]Write to MH i2c: E2 0D 00 18 54 80 0D 02 02 05 00 5D 98 B8 14 AA 00 00 5B [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 03 00 18 54 00 90 00 E0 [18:13:59]RAPDU: 90 00 [18:13:59]wFMCommunicate OK [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 0D 03 02 [18:13:59]Write to MH i2c: E2 08 00 19 54 80 0D 03 02 00 00 00 00 E8 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:13:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:13:59]Read from MH i2c: E2 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 0B 00 [18:13:59]MH_I2C_Read... [18:13:59]Read from MH i2c: E2 0B 00 19 54 00 B8 75 5B B4 AC 70 85 2A 90 00 F0 [18:13:59]RAPDU: B8 75 5B B4 AC 70 85 2A 90 00 [18:13:59]wFMCommunicate OK [18:13:59]SAM_PROTO_SignData done [18:13:59]FM_MakeSignedData done [18:13:59]CreateOFDProtocolMessage [18:13:59]wFMCommunicate request_size=4 [18:13:59]MH_SAM_APDU [18:13:59]CAPDU: 80 11 00 00 [18:13:59]Write to MH i2c: E2 08 00 1A 54 80 11 00 00 00 00 00 00 E8 [18:13:59]Write i2c OK [18:13:59]MH_I2C_Read... [18:14:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:00]Read from MH i2c: E2 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 17 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: E2 17 00 1A 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 43 [18:14:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:14:00]wFMCommunicate OK [18:14:00]CreateOFDProtocolMessage done [18:14:00]OFDSenderStorePacket 139471 [18:14:00]StoreOFDPacket docnum=139471 [18:14:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 39 15 07 01 32 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9B 00 00 00 F4 03 04 00 6C 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 20 02 00 35 04 06 00 84 5D 98 B8 14 AA B8 75 5B B4 AC 70 85 2A [18:14:00]CheckFolder [18:14:00]dirname=/storage/ofd_packets [18:14:00]CheckFolder done [18:14:00]ProducePacketName [18:14:00]name=ofd_packets/00139471 [18:14:00]NVStorageSaveData ofd_packets/00139471 [18:14:00]File name is /storage/ofd_packets/00139471 [18:14:00]Write 301 bytes [18:14:00]NVStorageSaveData done [18:14:00]OFDSenderStorePacket done [18:14:00]KKMCreateOFDPacket done [18:14:00]NVStorageSaveData kkm_last_timestamp [18:14:00]File name is /storage/kkm_last_timestamp [18:14:00]Write 4 bytes [18:14:00]NVStorageSaveData done [18:14:00]ExternCall_PrintAddStr [18:14:00]wPrintStart [18:14:00]Write to MH i2c: 01 00 00 1B 54 6F [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 07 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 07 00 1B 54 00 00 00 00 00 FF 0F 84 [18:14:00]RasterBufferAndPrint [18:14:00]line Счет N : (1)1094703 [18:14:00]line ИНН: 02508201610067 [18:14:00]line Контрольно-Кассовый Чек [18:14:00]line ПРОДАЖА [18:14:00]line ТРК (МРК, ГНК) : 63 [18:14:00]line Товар: 2710124130 [18:14:00]line Аи-92-К-2 [18:14:00]line 11.960 * 66.90 [18:14:00]line = 800.12 [18:14:00]line НДС 12% НСП 1% [18:14:00]line > о реализуемом товаре [18:14:00]line ИТОГО: 800.12 [18:14:00]line НСП 1% : 7.08 [18:14:00]line НДС 12% : 84.97 [18:14:00]line Наличными: 0.00 [18:14:00]line Безнал.: 800.12 [18:14:00]line Место: АЗС № 101 "Партнер Нефть" [18:14:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:14:00]line СНО: Общий режим [18:14:00]line Чек 155 30.10.2024 18:14 [18:14:00]line Смена: 556 ФФД: 1.0 [18:14:00]line ЗНМ: 0300000081 [18:14:00]line РНМ: 0000000000091631 [18:14:00]line Версия ККМ: 001 [18:14:00]line Платежная система: O! деньги [18:14:00]line ФМ: 0000000000874669 [18:14:00]line ФД: 139471 [18:14:00]line ФПД: 145537529025706 [18:14:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181404&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139471&fm=145537529025706&tin=02508201610067®Number=0000000000091631&sum=80012 [18:14:00]written 0, free lines is 4095 [18:14:00]OFD Sender: Processing packet 139471 [packets to send 34, broken 33] [18:14:00]ProducePacketName [18:14:00]name=ofd_packets/00139471 [18:14:00]OFD Sender: To server: pG, [18:14:00]CommunicateWithHost lk.salyk.kg:30040 [18:14:00]ConnectInit lk.salyk.kg [18:14:00]Connected sock=8 [18:14:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 39 15 07 01 32 86 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 B8 2E 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 8C 38 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 9B 00 00 00 F4 03 04 00 6C 77 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 20 02 00 35 04 06 00 84 5D 98 B8 14 AA B8 75 5B B4 AC 70 85 2A [18:14:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0B 0C 47 00 25 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 CF 20 02 00 F4 03 04 00 1C 23 22 67 B6 04 01 00 00 12 60 FC 66 A9 3D E9 FB [18:14:00]CommunicateWithHost err = 0 [18:14:00]CheckOFDResponse [18:14:00]1017 (14) - 77093643461234 [18:14:00]1041 (16) - 0000000000874669 [18:14:00]1040 (4) - 139471 [18:14:00]1012 (4) - 30.10.2024 12:14 [18:14:00]1206 (1) - 0 [18:14:00]OFD Sender: Remove packet 139471 [18:14:00]ProducePacketName [18:14:00]name=ofd_packets/00139471 [18:14:00]NVStorageDeleteData [18:14:00]Write to MH i2c: 01 00 00 45 54 99 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 07 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: 01 07 00 45 54 00 00 00 00 00 FF 0C AB [18:14:00]RasterBufferAndPrint [18:14:00]line [18:14:00]line [18:14:00]line [18:14:00]line [18:14:00]line [18:14:00]written 0, free lines is 3336 [18:14:00]MH_Cut [18:14:00]Write to MH i2c: D1 01 00 4C 54 01 72 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: D1 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: D1 01 00 [18:14:00]MH_I2C_Read... [18:14:00]Read from MH i2c: D1 01 00 4C 54 00 71 [18:14:00]Write to MH i2c: 01 00 00 4D 54 A1 [18:14:00]Write i2c OK [18:14:00]MH_I2C_Read... [18:14:01]OFD Sender: No OFD packet to send [18:14:01]*** Cut start [18:14:01]*** Partial cut [18:14:01]*** CUTSNS_PIN = 1 [18:14:01]*** CUTSNS_PIN = 0 [18:14:01]*** Brake cut motor [18:14:02]Read from MH i2c: 01 [18:14:02]MH_I2C_Read... [18:14:02]*** Stop cut motor [18:14:02]*** Cut end [18:14:02]Read from MH i2c: 01 07 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: 01 07 00 4D 54 00 00 00 00 00 FF 0F B6 [18:14:02]process_action close_receipt done [18:14:02]requested_data is exist [18:14:02]produce_requested_data [18:14:02]requested_item fm.sn is exist - process it [18:14:02]wFMCommunicate request_size=4 [18:14:02]MH_SAM_APDU [18:14:02]CAPDU: 80 11 00 00 [18:14:02]Write to MH i2c: E2 08 00 4E 54 80 11 00 00 00 00 00 00 1C [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:14:02]Read from MH i2c: E2 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 17 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 17 00 4E 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 77 [18:14:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:14:02]wFMCommunicate OK [18:14:02]requested_item fd.num is exist - process it [18:14:02]SAM_PROTO_GetFieldsCounters [18:14:02]wFMCommunicate request_size=4 [18:14:02]MH_SAM_APDU [18:14:02]CAPDU: 80 13 00 00 [18:14:02]Write to MH i2c: E2 08 00 4F 54 80 13 00 00 00 00 00 00 1F [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:14:02]Read from MH i2c: E2 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 62 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 62 00 4F 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CF 20 02 00 0E 04 04 00 2C 02 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 33 [18:14:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 CF 20 02 00 0E 04 04 00 2C 02 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 [18:14:02]wFMCommunicate OK [18:14:02]SAM_PROTO_GetFieldsCounters done [18:14:02]requested_item shift.num is exist - process it [18:14:02]requested_item shift.opened is exist - process it [18:14:02]req_shift_opened [18:14:02]FM_GetShiftState [18:14:02]SAM_PROTO_GetShiftState [18:14:02]wFMCommunicate request_size=4 [18:14:02]MH_SAM_APDU [18:14:02]CAPDU: 80 13 01 00 [18:14:02]Write to MH i2c: E2 08 00 50 54 80 13 01 00 00 00 00 00 21 [18:14:02]Write i2c OK [18:14:02]MH_I2C_Read... [18:14:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:14:02]Read from MH i2c: E2 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 0E 00 [18:14:02]MH_I2C_Read... [18:14:02]Read from MH i2c: E2 0E 00 50 54 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B1 [18:14:02]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:14:02]wFMCommunicate OK [18:14:02]SAM_PROTO_GetShiftState done [18:14:02]FM_GetShiftState done [18:14:02]req_shift_opened done [18:14:02]requested_item shift.open_date is exist - process it [18:14:02]req_shift_open_date [18:14:02]req_shift_open_date done [18:14:02]produce_requested_data done [18:14:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139471,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:14:02]process_action_free close_receipt [18:14:02]json_value_free [18:14:02]json_value_free done [18:14:02]process_json_proto returns [18:14:02]Send response to host [18:14:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139471,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:14:02]free response buf [18:14:02]execute_script done [18:14:02]execute_script returns [18:14:02]free content buf [18:14:02]Sock 9.Close socket [18:14:02]Sock 9.Thread stoped [18:14:06]OFD Sender: No OFD packet to send [18:14:11]OFD Sender: No OFD packet to send [18:14:16]OFD Sender: No OFD packet to send [18:14:21]OFD Sender: No OFD packet to send [18:14:26]OFD Sender: No OFD packet to send [18:14:31]OFD Sender: No OFD packet to send [18:14:36]OFD Sender: No OFD packet to send [18:14:41]OFD Sender: No OFD packet to send [18:14:46]OFD Sender: No OFD packet to send [18:14:51]OFD Sender: No OFD packet to send [18:14:56]OFD Sender: No OFD packet to send [18:15:01]OFD Sender: No OFD packet to send [18:15:06]OFD Sender: No OFD packet to send [18:15:11]OFD Sender: No OFD packet to send [18:15:16]OFD Sender: No OFD packet to send [18:15:21]OFD Sender: No OFD packet to send [18:15:26]OFD Sender: No OFD packet to send [18:15:31]OFD Sender: No OFD packet to send [18:15:36]OFD Sender: No OFD packet to send [18:15:41]OFD Sender: No OFD packet to send [18:15:46]OFD Sender: No OFD packet to send [18:15:51]OFD Sender: No OFD packet to send [18:15:56]OFD Sender: No OFD packet to send [18:16:01]OFD Sender: No OFD packet to send [18:16:06]OFD Sender: No OFD packet to send [18:16:11]OFD Sender: No OFD packet to send [18:16:16]OFD Sender: No OFD packet to send [18:16:21]OFD Sender: No OFD packet to send [18:16:26]OFD Sender: No OFD packet to send [18:16:31]OFD Sender: No OFD packet to send [18:16:36]OFD Sender: No OFD packet to send [18:16:41]OFD Sender: No OFD packet to send [18:16:46]OFD Sender: No OFD packet to send [18:16:51]OFD Sender: No OFD packet to send [18:16:56]OFD Sender: No OFD packet to send [18:17:00]accept exits with 10 [18:17:00]New connection [18:17:00]New thread 3067141476 created [18:17:00]Thread 3067284836 joined [18:17:00]Waiting for new connection... [18:17:00] Sock 10.Parse request [18:17:00]Sock 10.Check first char [18:17:00]Sock 10.First char is OK [18:17:00]request: POST /json_proto HTTP/1.0 [18:17:00]Method: POST [18:17:00]URL: /json_proto [18:17:00]Method is POST - this is cgi request [18:17:00]url: /json_proto [18:17:00]query_string will be loaded in cgi processing [18:17:00]execute_cgi json_proto POST (null) [18:17:00]execute_cgi path=json_proto method=POST [18:17:00]POST find Content-Length [18:17:00]Host: 172.17.50.196:8080 [18:17:00]Content-Length: 718 [18:17:00]Content-Type: application/json [18:17:00] [18:17:00]POST finish read [18:17:00]Found Content-Length = 718 [18:17:00]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335360", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:00]execute_script... [18:17: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 : (3)335360", "tax_sys" : 0, "items" : [ { "code": "4606532000189", "name": "\u0422\u043E\u0440\u043C\u043E\u0437\u043D\u0430\u044F \u0436\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0420\u043E\u0441\u0414\u043E\u0442-4 0,455\u043A\u0433", "price" : 250.00, "quantity" : 1.000, "sum" : 250.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 250.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:17:00]POST & json_proto [18:17:00]process_json_proto [18:17:00]json parsed OK: [18:17:00]protocol is kg_v1.0 [18:17:00]action value=close_receipt [18:17:00]process_action close_receipt [18:17:00]cmd_close_receipt [18:17:00]MH_GetDate [18:17:00]Write to MH i2c: F0 00 00 51 54 94 [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: F0 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: F0 09 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: F0 09 00 51 54 00 23 78 22 67 72 0D 1C 67 C3 [18:17:00]GetLastDocTimeStamp 1730312044 [18:17:00]current date 1730312227 [18:17:00]FM_GetShiftState [18:17:00]SAM_PROTO_GetShiftState [18:17:00]wFMCommunicate request_size=4 [18:17:00]MH_SAM_APDU [18:17:00]CAPDU: 80 13 01 00 [18:17:00]Write to MH i2c: E2 08 00 52 54 80 13 01 00 00 00 00 00 23 [18:17:00]Write i2c OK [18:17:00]MH_I2C_Read... [18:17:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:00]Read from MH i2c: E2 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 0E 00 [18:17:00]MH_I2C_Read... [18:17:00]Read from MH i2c: E2 0E 00 52 54 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B3 [18:17:00]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:17:00]wFMCommunicate OK [18:17:00]SAM_PROTO_GetShiftState done [18:17:00]FM_GetShiftState done [18:17:00]opened in 1730246278 [18:17:00]opened+sec_in_day 1730332678 [18:17:00]quantity*price = 25000 [18:17:00]sum+1 = 25001 [18:17:00]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 250.00 НСП 1% : 2.21 НДС 12% : 26.55 Наличными: 250.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 156 30.10.2024 18:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139472 ФПД: 80189702016156 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181707&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139472&fm=80189702016156&tin=02508201610067®Number=0000000000091631&sum=25000 0 [18:17:02]StoreToDocumentArchive [18:17:02]shift 556 fd 139472 [18:17:02]save to /storage/0556/doc_00139472 [18:17:02]save last doc name /storage/0556/doc_00139472 to /storage/kkm_last_doc_name [18:17:02]save OK [18:17:02]Clear old archive folders... [18:17:02]ProcessDocumentItem done err = 0, tmpTLVsize=302 [18:17:02]tlvbuf is 013055F0 [18:17:02]SAM_PROTO_ClearQueue [18:17:02]wFMCommunicate request_size=4 [18:17:02]MH_SAM_APDU [18:17:02]CAPDU: 80 09 00 00 [18:17:02]Write to MH i2c: E2 08 00 5F 54 80 09 00 00 00 00 00 00 25 [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:17:02]Read from MH i2c: E2 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 03 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 03 00 5F 54 00 90 00 27 [18:17:02]RAPDU: 90 00 [18:17:02]wFMCommunicate OK [18:17:02]SAM_PROTO_ClearQueue done [18:17:02]KKMCreateOFDPacket [18:17:02]OFDProtocolAddRootSTLVToBuf [18:17:02]FM_MakeSignedData [18:17:02]FM_MakeSignedData [18:17:02]SAM_PROTO_SignData [18:17:02]wFMCommunicate request_size=4 [18:17:02]MH_SAM_APDU [18:17:02]CAPDU: 80 0D 01 02 [18:17:02]Write to MH i2c: E2 08 00 60 54 80 0D 01 02 00 00 00 00 2D [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:17:02]Read from MH i2c: E2 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 03 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 03 00 60 54 00 90 00 28 [18:17:02]RAPDU: 90 00 [18:17:02]wFMCommunicate OK [18:17:02]wFMCommunicate request_size=255 [18:17:02]MH_SAM_APDU [18:17:02]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 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 9C 00 00 00 F4 03 04 00 23 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 [18:17:02]Write to MH i2c: E2 02 01 61 54 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 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 9C 00 00 00 F4 03 04 00 23 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 00 00 E5 [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:02]Read from MH i2c: E2 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 03 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 03 00 61 54 00 90 00 29 [18:17:02]RAPDU: 90 00 [18:17:02]wFMCommunicate OK [18:17:02]wFMCommunicate request_size=61 [18:17:02]MH_SAM_APDU [18:17:02]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 20 02 00 35 04 06 00 48 EE 9E B4 0C 9C [18:17:02]Write to MH i2c: E2 40 00 62 54 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 20 02 00 35 04 06 00 48 EE 9E B4 0C 9C 00 00 8A [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:17:02]Read from MH i2c: E2 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 03 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 03 00 62 54 00 90 00 2A [18:17:02]RAPDU: 90 00 [18:17:02]wFMCommunicate OK [18:17:02]wFMCommunicate request_size=4 [18:17:02]MH_SAM_APDU [18:17:02]CAPDU: 80 0D 03 02 [18:17:02]Write to MH i2c: E2 08 00 63 54 80 0D 03 02 00 00 00 00 32 [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:17:02]Read from MH i2c: E2 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 0B 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 0B 00 63 54 00 C7 0B 52 D6 D0 09 77 17 90 00 94 [18:17:02]RAPDU: C7 0B 52 D6 D0 09 77 17 90 00 [18:17:02]wFMCommunicate OK [18:17:02]SAM_PROTO_SignData done [18:17:02]FM_MakeSignedData done [18:17:02]CreateOFDProtocolMessage [18:17:02]wFMCommunicate request_size=4 [18:17:02]MH_SAM_APDU [18:17:02]CAPDU: 80 11 00 00 [18:17:02]Write to MH i2c: E2 08 00 64 54 80 11 00 00 00 00 00 00 32 [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:02]Read from MH i2c: E2 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 17 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: E2 17 00 64 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8D [18:17:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:17:02]wFMCommunicate OK [18:17:02]CreateOFDProtocolMessage done [18:17:02]OFDSenderStorePacket 139472 [18:17:02]StoreOFDPacket docnum=139472 [18:17:02]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 42 01 00 00 BD B6 3A 01 C4 3C 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 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 9C 00 00 00 F4 03 04 00 23 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 20 02 00 35 04 06 00 48 EE 9E B4 0C 9C C7 0B 52 D6 D0 09 77 17 [18:17:02]CheckFolder [18:17:02]dirname=/storage/ofd_packets [18:17:02]CheckFolder done [18:17:02]ProducePacketName [18:17:02]name=ofd_packets/00139472 [18:17:02]NVStorageSaveData ofd_packets/00139472 [18:17:02]File name is /storage/ofd_packets/00139472 [18:17:02]Write 352 bytes [18:17:02]NVStorageSaveData done [18:17:02]OFDSenderStorePacket done [18:17:02]KKMCreateOFDPacket done [18:17:02]NVStorageSaveData kkm_last_timestamp [18:17:02]File name is /storage/kkm_last_timestamp [18:17:02]Write 4 bytes [18:17:02]NVStorageSaveData done [18:17:02]ExternCall_PrintAddStr [18:17:02]wPrintStart [18:17:02]Write to MH i2c: 01 00 00 65 54 B9 [18:17:02]Write i2c OK [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: 01 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: 01 07 00 [18:17:02]MH_I2C_Read... [18:17:02]Read from MH i2c: 01 07 00 65 54 00 00 00 00 00 FF 0F CE [18:17:02]RasterBufferAndPrint [18:17:02]line Счет N : (3)335360 [18:17:02]line ИНН: 02508201610067 [18:17:02]line Контрольно-Кассовый Чек [18:17:02]line ПРОДАЖА [18:17:02]line Товар: 4606532000189 [18:17:02]line Тормозная жидкость РосДот-4 0,455кг [18:17:02]line 1.000 * 250.00 [18:17:02]line = 250.00 [18:17:02]line НДС 12% НСП 1% [18:17:02]line > о реализуемом товаре [18:17:02]line ИТОГО: 250.00 [18:17:02]line НСП 1% : 2.21 [18:17:02]line НДС 12% : 26.55 [18:17:02]line Наличными: 250.00 [18:17:02]line Безнал.: 0.00 [18:17:02]line Место: АЗС № 101 "Партнер Нефть" [18:17:02]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:17:02]line СНО: Общий режим [18:17:02]line Чек 156 30.10.2024 18:17 [18:17:02]line Смена: 556 ФФД: 1.0 [18:17:02]line ЗНМ: 0300000081 [18:17:02]line РНМ: 0000000000091631 [18:17:02]line Версия ККМ: 001 [18:17:02]line ФМ: 0000000000874669 [18:17:02]line ФД: 139472 [18:17:02]line ФПД: 80189702016156 [18:17:03]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181707&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139472&fm=80189702016156&tin=02508201610067®Number=0000000000091631&sum=25000 [18:17:03]line 0 [18:17:03]OFD Sender: Processing packet 139472 [packets to send 34, broken 33] [18:17:03]ProducePacketName [18:17:03]name=ofd_packets/00139472 [18:17:03]OFD Sender: To server: pG, [18:17:03]CommunicateWithHost lk.salyk.kg:30040 [18:17:03]ConnectInit lk.salyk.kg [18:17:03]written 0, free lines is 4095 [18:17:03]Connected sock=8 [18:17:03]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 42 01 00 00 BD B6 3A 01 C4 3C 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 36 30 36 35 33 32 30 30 30 31 38 39 06 04 3C 00 D0 A2 D0 BE D1 80 D0 BC D0 BE D0 B7 D0 BD D0 B0 D1 8F 20 D0 B6 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D0 A0 D0 BE D1 81 D0 94 D0 BE D1 82 2D 34 20 30 2C 34 35 35 D0 BA D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A8 61 00 00 00 00 13 04 06 00 A8 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 5F 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 9C 00 00 00 F4 03 04 00 23 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 20 02 00 35 04 06 00 48 EE 9E B4 0C 9C C7 0B 52 D6 D0 09 77 17 [18:17:03]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 77 98 47 00 B5 48 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D0 20 02 00 F4 03 04 00 D3 23 22 67 B6 04 01 00 00 95 90 F6 72 22 32 87 10 [18:17:03]CommunicateWithHost err = 0 [18:17:03]CheckOFDResponse [18:17:03]1017 (14) - 77093643461234 [18:17:03]1041 (16) - 0000000000874669 [18:17:03]1040 (4) - 139472 [18:17:03]1012 (4) - 30.10.2024 12:17 [18:17:03]1206 (1) - 0 [18:17:03]OFD Sender: Remove packet 139472 [18:17:03]ProducePacketName [18:17:03]name=ofd_packets/00139472 [18:17:03]NVStorageDeleteData [18:17:03]Write to MH i2c: 01 00 00 8E 54 E2 [18:17:03]Write i2c OK [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: 01 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: 01 07 00 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: 01 07 00 8E 54 00 00 00 00 00 00 0D F6 [18:17:03]RasterBufferAndPrint [18:17:03]line [18:17:03]line [18:17:03]line [18:17:03]line [18:17:03]line [18:17:03]written 0, free lines is 3334 [18:17:03]MH_Cut [18:17:03]Write to MH i2c: D1 01 00 95 54 01 BB [18:17:03]Write i2c OK [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: D1 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: D1 01 00 [18:17:03]MH_I2C_Read... [18:17:03]Read from MH i2c: D1 01 00 95 54 00 BA [18:17:03]Write to MH i2c: 01 00 00 96 54 EA [18:17:03]Write i2c OK [18:17:03]MH_I2C_Read... [18:17:03]OFD Sender: No OFD packet to send [18:17:04]*** Cut start [18:17:04]*** Partial cut [18:17:04]*** CUTSNS_PIN = 1 [18:17:04]*** CUTSNS_PIN = 0 [18:17:04]*** Brake cut motor [18:17:04]Read from MH i2c: 01 [18:17:04]MH_I2C_Read... [18:17:04]*** Stop cut motor [18:17:04]*** Cut end [18:17:04]Read from MH i2c: 01 07 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: 01 07 00 96 54 00 00 00 00 00 FF 0F FF [18:17:04]process_action close_receipt done [18:17:04]requested_data is exist [18:17:04]produce_requested_data [18:17:04]requested_item fm.sn is exist - process it [18:17:04]wFMCommunicate request_size=4 [18:17:04]MH_SAM_APDU [18:17:04]CAPDU: 80 11 00 00 [18:17:04]Write to MH i2c: E2 08 00 97 54 80 11 00 00 00 00 00 00 65 [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:17:04]Read from MH i2c: E2 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 17 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 17 00 97 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C0 [18:17:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:17:04]wFMCommunicate OK [18:17:04]requested_item fd.num is exist - process it [18:17:04]SAM_PROTO_GetFieldsCounters [18:17:04]wFMCommunicate request_size=4 [18:17:04]MH_SAM_APDU [18:17:04]CAPDU: 80 13 00 00 [18:17:04]Write to MH i2c: E2 08 00 98 54 80 13 00 00 00 00 00 00 68 [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:04]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:17:04]Read from MH i2c: E2 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 62 00 [18:17:04]MH_I2C_Read... [18:17:04]Read from MH i2c: E2 62 00 98 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D0 20 02 00 0E 04 04 00 2C 02 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 80 [18:17:04]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D0 20 02 00 0E 04 04 00 2C 02 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 [18:17:04]wFMCommunicate OK [18:17:04]SAM_PROTO_GetFieldsCounters done [18:17:04]requested_item shift.num is exist - process it [18:17:04]requested_item shift.opened is exist - process it [18:17:04]req_shift_opened [18:17:04]FM_GetShiftState [18:17:04]SAM_PROTO_GetShiftState [18:17:04]wFMCommunicate request_size=4 [18:17:04]MH_SAM_APDU [18:17:04]CAPDU: 80 13 01 00 [18:17:04]Write to MH i2c: E2 08 00 99 54 80 13 01 00 00 00 00 00 6A [18:17:04]Write i2c OK [18:17:04]MH_I2C_Read... [18:17:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:17:05]Read from MH i2c: E2 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: E2 0E 00 [18:17:05]MH_I2C_Read... [18:17:05]Read from MH i2c: E2 0E 00 99 54 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FA [18:17:05]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:17:05]wFMCommunicate OK [18:17:05]SAM_PROTO_GetShiftState done [18:17:05]FM_GetShiftState done [18:17:05]req_shift_opened done [18:17:05]requested_item shift.open_date is exist - process it [18:17:05]req_shift_open_date [18:17:05]req_shift_open_date done [18:17:05]produce_requested_data done [18:17:05]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139472,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:17:05]process_action_free close_receipt [18:17:05]json_value_free [18:17:05]json_value_free done [18:17:05]process_json_proto returns [18:17:05]Send response to host [18:17:05]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139472,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:17:05]free response buf [18:17:05]execute_script done [18:17:05]execute_script returns [18:17:05]free content buf [18:17:05]Sock 10.Close socket [18:17:05]Sock 10.Thread stoped [18:17:08]OFD Sender: No OFD packet to send [18:17:13]OFD Sender: No OFD packet to send [18:17:18]OFD Sender: No OFD packet to send [18:17:23]OFD Sender: No OFD packet to send [18:17:28]OFD Sender: No OFD packet to send [18:17:33]OFD Sender: No OFD packet to send [18:17:38]OFD Sender: No OFD packet to send [18:17:43]OFD Sender: No OFD packet to send [18:17:48]OFD Sender: No OFD packet to send [18:17:53]OFD Sender: No OFD packet to send [18:17:58]OFD Sender: No OFD packet to send [18:18:03]OFD Sender: No OFD packet to send [18:18:13]OFD Sender: No OFD packet to send [18:18:18]OFD Sender: No OFD packet to send [18:18:23]OFD Sender: No OFD packet to send [18:18:28]OFD Sender: No OFD packet to send [18:18:33]OFD Sender: No OFD packet to send [18:18:38]OFD Sender: No OFD packet to send [18:18:43]OFD Sender: No OFD packet to send [18:18:48]OFD Sender: No OFD packet to send [18:18:49]accept exits with 9 [18:18:49]New connection [18:18:49]New thread 3067284836 created [18:18:49]Thread 3067141476 joined [18:18:49]Waiting for new connection... [18:18:49] Sock 9.Parse request [18:18:49]Sock 9.Check first char [18:18:49]Sock 9.First char is OK [18:18:49]request: POST /json_proto HTTP/1.0 [18:18:49]Method: POST [18:18:49]URL: /json_proto [18:18:49]Method is POST - this is cgi request [18:18:49]url: /json_proto [18:18:49]query_string will be loaded in cgi processing [18:18:49]execute_cgi json_proto POST (null) [18:18:49]execute_cgi path=json_proto method=POST [18:18:49]POST find Content-Length [18:18:49]Host: 172.17.50.196:8080 [18:18:49]Content-Length: 770 [18:18:49]Content-Type: application/json [18:18:49] [18:18:49]POST finish read [18:18:49]Found Content-Length = 770 [18:18:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:49]execute_script... [18:18: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)1094707", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 17.940, "sum" : 1200.19, "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" : 1200.19 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:18:49]POST & json_proto [18:18:49]process_json_proto [18:18:49]json parsed OK: [18:18:49]protocol is kg_v1.0 [18:18:49]action value=close_receipt [18:18:49]process_action close_receipt [18:18:49]cmd_close_receipt [18:18:49]MH_GetDate [18:18:49]Write to MH i2c: F0 00 00 9A 54 DD [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: F0 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: F0 09 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: F0 09 00 9A 54 00 8F 78 22 67 72 0D 1C 67 78 [18:18:49]GetLastDocTimeStamp 1730312227 [18:18:49]current date 1730312335 [18:18:49]FM_GetShiftState [18:18:49]SAM_PROTO_GetShiftState [18:18:49]wFMCommunicate request_size=4 [18:18:49]MH_SAM_APDU [18:18:49]CAPDU: 80 13 01 00 [18:18:49]Write to MH i2c: E2 08 00 9B 54 80 13 01 00 00 00 00 00 6C [18:18:49]Write i2c OK [18:18:49]MH_I2C_Read... [18:18:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:49]Read from MH i2c: E2 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 0E 00 [18:18:49]MH_I2C_Read... [18:18:49]Read from MH i2c: E2 0E 00 9B 54 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FC [18:18:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:18:49]wFMCommunicate OK [18:18:49]SAM_PROTO_GetShiftState done [18:18:49]FM_GetShiftState done [18:18:49]opened in 1730246278 [18:18:49]opened+sec_in_day 1730332678 [18:18:49]quantity*price = 120018 [18:18:49]sum+1 = 120020 [18:18:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1200.19 НСП 1% : 10.62 НДС 12% : 127.45 Наличными: 0.00 Безнал.: 1200.19 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 157 30.10.2024 18:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139473 ФПД: 217879635539588 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181855&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139473&fm=217879635539588&tin=02508201610067®Number=0000000000091631&sum=120019 [18:18:50]StoreToDocumentArchive [18:18:50]shift 556 fd 139473 [18:18:50]save to /storage/0556/doc_00139473 [18:18:50]save last doc name /storage/0556/doc_00139473 to /storage/kkm_last_doc_name [18:18:50]save OK [18:18:50]Clear old archive folders... [18:18:50]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:18:50]tlvbuf is 01112F80 [18:18:50]SAM_PROTO_ClearQueue [18:18:50]wFMCommunicate request_size=4 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 09 00 00 [18:18:50]Write to MH i2c: E2 08 00 A8 54 80 09 00 00 00 00 00 00 6E [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 A8 54 00 90 00 70 [18:18:50]RAPDU: 90 00 [18:18:50]wFMCommunicate OK [18:18:50]SAM_PROTO_ClearQueue done [18:18:50]KKMCreateOFDPacket [18:18:50]OFDProtocolAddRootSTLVToBuf [18:18:50]FM_MakeSignedData [18:18:50]FM_MakeSignedData [18:18:50]SAM_PROTO_SignData [18:18:50]wFMCommunicate request_size=4 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 0D 01 02 [18:18:50]Write to MH i2c: E2 08 00 A9 54 80 0D 01 02 00 00 00 00 76 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 A9 54 00 90 00 71 [18:18:50]RAPDU: 90 00 [18:18:50]wFMCommunicate OK [18:18:50]wFMCommunicate request_size=255 [18:18:50]MH_SAM_APDU [18:18: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 32 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 D3 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 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 8F 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 20 02 00 35 04 06 00 C6 [18:18:50]Write to MH i2c: E2 02 01 AA 54 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 D3 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 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 8F 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 20 02 00 35 04 06 00 C6 00 00 46 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 AA 54 00 90 00 72 [18:18:50]RAPDU: 90 00 [18:18:50]wFMCommunicate OK [18:18:50]wFMCommunicate request_size=10 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 0D 02 02 05 29 0E 47 B6 84 [18:18:50]Write to MH i2c: E2 0D 00 AB 54 80 0D 02 02 05 00 29 0E 47 B6 84 00 00 3B [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 03 00 AB 54 00 90 00 73 [18:18:50]RAPDU: 90 00 [18:18:50]wFMCommunicate OK [18:18:50]wFMCommunicate request_size=4 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 0D 03 02 [18:18:50]Write to MH i2c: E2 08 00 AC 54 80 0D 03 02 00 00 00 00 7B [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 0B 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 0B 00 AC 54 00 A0 C7 2B 88 B2 6D F6 D6 90 00 81 [18:18:50]RAPDU: A0 C7 2B 88 B2 6D F6 D6 90 00 [18:18:50]wFMCommunicate OK [18:18:50]SAM_PROTO_SignData done [18:18:50]FM_MakeSignedData done [18:18:50]CreateOFDProtocolMessage [18:18:50]wFMCommunicate request_size=4 [18:18:50]MH_SAM_APDU [18:18:50]CAPDU: 80 11 00 00 [18:18:50]Write to MH i2c: E2 08 00 AD 54 80 11 00 00 00 00 00 00 7B [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:50]Read from MH i2c: E2 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 17 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: E2 17 00 AD 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D6 [18:18:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:18:50]wFMCommunicate OK [18:18:50]CreateOFDProtocolMessage done [18:18:50]OFDSenderStorePacket 139473 [18:18:50]StoreOFDPacket docnum=139473 [18:18:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 B2 52 07 01 DE 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 32 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 D3 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 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 8F 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 20 02 00 35 04 06 00 C6 29 0E 47 B6 84 A0 C7 2B 88 B2 6D F6 D6 [18:18:50]CheckFolder [18:18:50]dirname=/storage/ofd_packets [18:18:50]CheckFolder done [18:18:50]ProducePacketName [18:18:50]name=ofd_packets/00139473 [18:18:50]NVStorageSaveData ofd_packets/00139473 [18:18:50]File name is /storage/ofd_packets/00139473 [18:18:50]Write 301 bytes [18:18:50]NVStorageSaveData done [18:18:50]OFDSenderStorePacket done [18:18:50]KKMCreateOFDPacket done [18:18:50]NVStorageSaveData kkm_last_timestamp [18:18:50]File name is /storage/kkm_last_timestamp [18:18:50]Write 4 bytes [18:18:50]NVStorageSaveData done [18:18:50]ExternCall_PrintAddStr [18:18:50]wPrintStart [18:18:50]Write to MH i2c: 01 00 00 AE 54 02 [18:18:50]Write i2c OK [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 07 00 [18:18:50]MH_I2C_Read... [18:18:50]Read from MH i2c: 01 07 00 AE 54 00 00 00 00 00 FF 0F 17 [18:18:50]RasterBufferAndPrint [18:18:50]line Счет N : (1)1094707 [18:18:50]line ИНН: 02508201610067 [18:18:50]line Контрольно-Кассовый Чек [18:18:50]line ПРОДАЖА [18:18:50]line ТРК (МРК, ГНК) : 53 [18:18:50]line Товар: 2710124130 [18:18:50]line Аи-92-К-2 [18:18:50]line 17.940 * 66.90 [18:18:50]line = 1200.19 [18:18:50]line НДС 12% НСП 1% [18:18:50]line > о реализуемом товаре [18:18:50]line ИТОГО: 1200.19 [18:18:50]line НСП 1% : 10.62 [18:18:50]line НДС 12% : 127.45 [18:18:50]line Наличными: 0.00 [18:18:50]line Безнал.: 1200.19 [18:18:50]line Место: АЗС № 101 "Партнер Нефть" [18:18:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:18:50]line СНО: Общий режим [18:18:50]line Чек 157 30.10.2024 18:18 [18:18:50]line Смена: 556 ФФД: 1.0 [18:18:50]line ЗНМ: 0300000081 [18:18:50]line РНМ: 0000000000091631 [18:18:50]line Версия ККМ: 001 [18:18:50]line Платежная система: Mbank [18:18:50]line ФМ: 0000000000874669 [18:18:50]line ФД: 139473 [18:18:50]line ФПД: 217879635539588 [18:18:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T181855&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139473&fm=217879635539588&tin=02508201610067®Number=0000000000091631&sum=120019 [18:18:51]written 0, free lines is 4095 [18:18:51]OFD Sender: Processing packet 139473 [packets to send 34, broken 33] [18:18:51]ProducePacketName [18:18:51]name=ofd_packets/00139473 [18:18:51]OFD Sender: To server: pG, [18:18:51]CommunicateWithHost lk.salyk.kg:30040 [18:18:51]ConnectInit lk.salyk.kg [18:18:51]Connected sock=11 [18:18:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 B2 52 07 01 DE 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 32 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 D3 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 00 00 00 00 00 00 39 04 06 00 D3 D4 01 00 00 00 1F 04 02 00 01 00 12 04 04 00 9D 00 00 00 F4 03 04 00 8F 78 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 20 02 00 35 04 06 00 C6 29 0E 47 B6 84 A0 C7 2B 88 B2 6D F6 D6 [18:18:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DA 18 47 00 E7 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D1 20 02 00 F4 03 04 00 3F 24 22 67 B6 04 01 00 00 1C 57 2F 35 48 BF F6 16 [18:18:51]CommunicateWithHost err = 0 [18:18:51]CheckOFDResponse [18:18:51]1017 (14) - 77093643461234 [18:18:51]1041 (16) - 0000000000874669 [18:18:51]1040 (4) - 139473 [18:18:51]1012 (4) - 30.10.2024 12:19 [18:18:51]1206 (1) - 0 [18:18:51]OFD Sender: Remove packet 139473 [18:18:51]ProducePacketName [18:18:51]name=ofd_packets/00139473 [18:18:51]NVStorageDeleteData [18:18:51]Write to MH i2c: 01 00 00 D7 54 2B [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: 01 07 00 D7 54 00 00 00 00 00 23 0D 62 [18:18:51]RasterBufferAndPrint [18:18:51]line [18:18:51]line [18:18:51]line [18:18:51]line [18:18:51]line [18:18:51]written 0, free lines is 3370 [18:18:51]MH_Cut [18:18:51]Write to MH i2c: D1 01 00 DE 54 01 04 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: D1 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: D1 01 00 [18:18:51]MH_I2C_Read... [18:18:51]Read from MH i2c: D1 01 00 DE 54 00 03 [18:18:51]Write to MH i2c: 01 00 00 DF 54 33 [18:18:51]Write i2c OK [18:18:51]MH_I2C_Read... [18:18:51]OFD Sender: No OFD packet to send [18:18:52]*** Cut start [18:18:52]*** Partial cut [18:18:52]*** CUTSNS_PIN = 1 [18:18:52]*** CUTSNS_PIN = 0 [18:18:52]*** Brake cut motor [18:18:52]Read from MH i2c: 01 [18:18:52]MH_I2C_Read... [18:18:52]*** Stop cut motor [18:18:52]*** Cut end [18:18:52]Read from MH i2c: 01 07 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: 01 07 00 DF 54 00 00 00 00 00 FF 0F 48 [18:18:52]process_action close_receipt done [18:18:52]requested_data is exist [18:18:52]produce_requested_data [18:18:52]requested_item fm.sn is exist - process it [18:18:52]wFMCommunicate request_size=4 [18:18:52]MH_SAM_APDU [18:18:52]CAPDU: 80 11 00 00 [18:18:52]Write to MH i2c: E2 08 00 E0 54 80 11 00 00 00 00 00 00 AE [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:18:52]Read from MH i2c: E2 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 17 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 17 00 E0 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 09 [18:18:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:18:52]wFMCommunicate OK [18:18:52]requested_item fd.num is exist - process it [18:18:52]SAM_PROTO_GetFieldsCounters [18:18:52]wFMCommunicate request_size=4 [18:18:52]MH_SAM_APDU [18:18:52]CAPDU: 80 13 00 00 [18:18:52]Write to MH i2c: E2 08 00 E1 54 80 13 00 00 00 00 00 00 B1 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:18:52]Read from MH i2c: E2 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 62 00 [18:18:52]MH_I2C_Read... [18:18:52]Read from MH i2c: E2 62 00 E1 54 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D1 20 02 00 0E 04 04 00 2C 02 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 CD [18:18:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D1 20 02 00 0E 04 04 00 2C 02 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 [18:18:52]wFMCommunicate OK [18:18:52]SAM_PROTO_GetFieldsCounters done [18:18:52]requested_item shift.num is exist - process it [18:18:52]requested_item shift.opened is exist - process it [18:18:52]req_shift_opened [18:18:52]FM_GetShiftState [18:18:52]SAM_PROTO_GetShiftState [18:18:52]wFMCommunicate request_size=4 [18:18:52]MH_SAM_APDU [18:18:52]CAPDU: 80 13 01 00 [18:18:52]Write to MH i2c: E2 08 00 E2 54 80 13 01 00 00 00 00 00 B3 [18:18:52]Write i2c OK [18:18:52]MH_I2C_Read... [18:18:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:18:53]Read from MH i2c: E2 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: E2 0E 00 [18:18:53]MH_I2C_Read... [18:18:53]Read from MH i2c: E2 0E 00 E2 54 00 09 00 01 86 76 21 67 00 00 00 00 90 00 43 [18:18:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:18:53]wFMCommunicate OK [18:18:53]SAM_PROTO_GetShiftState done [18:18:53]FM_GetShiftState done [18:18:53]req_shift_opened done [18:18:53]requested_item shift.open_date is exist - process it [18:18:53]req_shift_open_date [18:18:53]req_shift_open_date done [18:18:53]produce_requested_data done [18:18:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139473,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:18:53]process_action_free close_receipt [18:18:53]json_value_free [18:18:53]json_value_free done [18:18:53]process_json_proto returns [18:18:53]Send response to host [18:18:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139473,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:18:53]free response buf [18:18:53]execute_script done [18:18:53]execute_script returns [18:18:53]free content buf [18:18:53]Sock 9.Close socket [18:18:53]Sock 9.Thread stoped [18:18:56]OFD Sender: No OFD packet to send [18:19:01]OFD Sender: No OFD packet to send [18:19:06]OFD Sender: No OFD packet to send [18:19:11]OFD Sender: No OFD packet to send [18:19:16]OFD Sender: No OFD packet to send [18:19:21]OFD Sender: No OFD packet to send [18:19:26]OFD Sender: No OFD packet to send [18:19:31]OFD Sender: No OFD packet to send [18:19:36]OFD Sender: No OFD packet to send [18:19:41]OFD Sender: No OFD packet to send [18:19:46]OFD Sender: No OFD packet to send [18:19:51]OFD Sender: No OFD packet to send [18:19:56]OFD Sender: No OFD packet to send [18:20:01]OFD Sender: No OFD packet to send [18:20:06]OFD Sender: No OFD packet to send [18:20:11]OFD Sender: No OFD packet to send [18:20:16]OFD Sender: No OFD packet to send [18:20:20]ConnectInit Can't connect to host [18:20:21]OFD Sender: No OFD packet to send [18:20:26]OFD Sender: No OFD packet to send [18:20:31]OFD Sender: No OFD packet to send [18:20:36]OFD Sender: No OFD packet to send [18:20:41]OFD Sender: No OFD packet to send [18:20:46]OFD Sender: No OFD packet to send [18:20:51]OFD Sender: No OFD packet to send [18:20:56]OFD Sender: No OFD packet to send [18:21:01]OFD Sender: No OFD packet to send [18:21:06]OFD Sender: No OFD packet to send [18:21:11]OFD Sender: No OFD packet to send [18:21:16]OFD Sender: No OFD packet to send [18:21:21]OFD Sender: No OFD packet to send [18:21:26]OFD Sender: No OFD packet to send [18:21:31]OFD Sender: No OFD packet to send [18:21:32]accept exits with 10 [18:21:32]New connection [18:21:32]New thread 3067141476 created [18:21:32]Thread 3067284836 joined [18:21:32]Waiting for new connection... [18:21:32] Sock 10.Parse request [18:21:32]Sock 10.Check first char [18:21:32]Sock 10.First char is OK [18:21:32]request: POST /json_proto HTTP/1.0 [18:21:32]Method: POST [18:21:32]URL: /json_proto [18:21:32]Method is POST - this is cgi request [18:21:32]url: /json_proto [18:21:32]query_string will be loaded in cgi processing [18:21:32]execute_cgi json_proto POST (null) [18:21:32]execute_cgi path=json_proto method=POST [18:21:32]POST find Content-Length [18:21:32]Host: 172.17.50.196:8080 [18:21:32]Content-Length: 774 [18:21:32]Content-Type: application/json [18:21:32] [18:21:32]POST finish read [18:21:32]Found Content-Length = 774 [18:21:32]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335361", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.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" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:32]execute_script... [18:21: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 : (3)335361", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.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" : 265.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:21:32]POST & json_proto [18:21:32]process_json_proto [18:21:32]json parsed OK: [18:21:32]protocol is kg_v1.0 [18:21:32]action value=close_receipt [18:21:32]process_action close_receipt [18:21:32]cmd_close_receipt [18:21:32]MH_GetDate [18:21:32]Write to MH i2c: F0 00 00 E3 54 26 [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: F0 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: F0 09 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: F0 09 00 E3 54 00 33 79 22 67 72 0D 1C 67 66 [18:21:32]GetLastDocTimeStamp 1730312335 [18:21:32]current date 1730312499 [18:21:32]FM_GetShiftState [18:21:32]SAM_PROTO_GetShiftState [18:21:32]wFMCommunicate request_size=4 [18:21:32]MH_SAM_APDU [18:21:32]CAPDU: 80 13 01 00 [18:21:32]Write to MH i2c: E2 08 00 E4 54 80 13 01 00 00 00 00 00 B5 [18:21:32]Write i2c OK [18:21:32]MH_I2C_Read... [18:21:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:32]Read from MH i2c: E2 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 0E 00 [18:21:32]MH_I2C_Read... [18:21:32]Read from MH i2c: E2 0E 00 E4 54 00 09 00 01 86 76 21 67 00 00 00 00 90 00 45 [18:21:32]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:21:32]wFMCommunicate OK [18:21:32]SAM_PROTO_GetShiftState done [18:21:32]FM_GetShiftState done [18:21:32]opened in 1730246278 [18:21:32]opened+sec_in_day 1730332678 [18:21:32]quantity*price = 26500 [18:21:32]sum+1 = 26501 [18:21:32]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 265.00 НСП 1% : 2.34 НДС 12% : 28.14 Наличными: 0.00 Безнал.: 265.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 158 30.10.2024 18:21 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139474 ФПД: 255036520878355 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182139&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139474&fm=255036520878355&tin=02508201610067®Number=0000000000091631&sum=26500 0 [18:21:34]StoreToDocumentArchive [18:21:34]shift 556 fd 139474 [18:21:34]save to /storage/0556/doc_00139474 [18:21:34]save last doc name /storage/0556/doc_00139474 to /storage/kkm_last_doc_name [18:21:34]save OK [18:21:34]Clear old archive folders... [18:21:34]ProcessDocumentItem done err = 0, tmpTLVsize=279 [18:21:34]tlvbuf is 0112D020 [18:21:34]SAM_PROTO_ClearQueue [18:21:34]wFMCommunicate request_size=4 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 09 00 00 [18:21:34]Write to MH i2c: E2 08 00 F1 54 80 09 00 00 00 00 00 00 B7 [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 03 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 03 00 F1 54 00 90 00 B9 [18:21:34]RAPDU: 90 00 [18:21:34]wFMCommunicate OK [18:21:34]SAM_PROTO_ClearQueue done [18:21:34]KKMCreateOFDPacket [18:21:34]OFDProtocolAddRootSTLVToBuf [18:21:34]FM_MakeSignedData [18:21:34]FM_MakeSignedData [18:21:34]SAM_PROTO_SignData [18:21:34]wFMCommunicate request_size=4 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 0D 01 02 [18:21:34]Write to MH i2c: E2 08 00 F2 54 80 0D 01 02 00 00 00 00 BF [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 03 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 03 00 F2 54 00 90 00 BA [18:21:34]RAPDU: 90 00 [18:21:34]wFMCommunicate OK [18:21:34]wFMCommunicate request_size=255 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 33 79 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 [18:21:34]Write to MH i2c: E2 02 01 F3 54 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 33 79 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 00 00 2A [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 03 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 03 00 F3 54 00 90 00 BB [18:21:34]RAPDU: 90 00 [18:21:34]wFMCommunicate OK [18:21:34]wFMCommunicate request_size=38 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 20 02 00 35 04 06 00 E7 F4 51 3B 51 13 [18:21:34]Write to MH i2c: E2 29 00 F4 54 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 20 02 00 35 04 06 00 E7 F4 51 3B 51 13 00 00 12 [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 03 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 03 00 F4 54 00 90 00 BC [18:21:34]RAPDU: 90 00 [18:21:34]wFMCommunicate OK [18:21:34]wFMCommunicate request_size=4 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 0D 03 02 [18:21:34]Write to MH i2c: E2 08 00 F5 54 80 0D 03 02 00 00 00 00 C4 [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 0B 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 0B 00 F5 54 00 6F 0E D0 BD E0 80 0C 06 90 00 41 [18:21:34]RAPDU: 6F 0E D0 BD E0 80 0C 06 90 00 [18:21:34]wFMCommunicate OK [18:21:34]SAM_PROTO_SignData done [18:21:34]FM_MakeSignedData done [18:21:34]CreateOFDProtocolMessage [18:21:34]wFMCommunicate request_size=4 [18:21:34]MH_SAM_APDU [18:21:34]CAPDU: 80 11 00 00 [18:21:34]Write to MH i2c: E2 08 00 F6 54 80 11 00 00 00 00 00 00 C4 [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:34]Read from MH i2c: E2 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 17 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: E2 17 00 F6 54 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [18:21:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:21:34]wFMCommunicate OK [18:21:34]CreateOFDProtocolMessage done [18:21:34]OFDSenderStorePacket 139474 [18:21:34]StoreOFDPacket docnum=139474 [18:21:34]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 24 D6 23 01 70 44 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 33 79 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 20 02 00 35 04 06 00 E7 F4 51 3B 51 13 6F 0E D0 BD E0 80 0C 06 [18:21:34]CheckFolder [18:21:34]dirname=/storage/ofd_packets [18:21:34]CheckFolder done [18:21:34]ProducePacketName [18:21:34]name=ofd_packets/00139474 [18:21:34]NVStorageSaveData ofd_packets/00139474 [18:21:34]File name is /storage/ofd_packets/00139474 [18:21:34]Write 329 bytes [18:21:34]NVStorageSaveData done [18:21:34]OFDSenderStorePacket done [18:21:34]KKMCreateOFDPacket done [18:21:34]NVStorageSaveData kkm_last_timestamp [18:21:34]File name is /storage/kkm_last_timestamp [18:21:34]Write 4 bytes [18:21:34]NVStorageSaveData done [18:21:34]ExternCall_PrintAddStr [18:21:34]wPrintStart [18:21:34]Write to MH i2c: 01 00 00 F7 54 4B [18:21:34]Write i2c OK [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: 01 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: 01 07 00 [18:21:34]MH_I2C_Read... [18:21:34]Read from MH i2c: 01 07 00 F7 54 00 00 00 00 00 FF 0F 60 [18:21:34]RasterBufferAndPrint [18:21:34]line Счет N : (3)335361 [18:21:34]line ИНН: 02508201610067 [18:21:34]line Контрольно-Кассовый Чек [18:21:34]line ПРОДАЖА [18:21:34]line Товар: 90448300 [18:21:34]line Энерг напиток Red Bull 0,355л [18:21:34]line 1.000 * 265.00 [18:21:34]line = 265.00 [18:21:34]line НДС 12% НСП 1% [18:21:34]line > о реализуемом товаре [18:21:34]line ИТОГО: 265.00 [18:21:34]line НСП 1% : 2.34 [18:21:34]line НДС 12% : 28.14 [18:21:34]line Наличными: 0.00 [18:21:34]line Безнал.: 265.00 [18:21:34]line Место: АЗС № 101 "Партнер Нефть" [18:21:34]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:21:34]line СНО: Общий режим [18:21:34]line Чек 158 30.10.2024 18:21 [18:21:34]line Смена: 556 ФФД: 1.0 [18:21:34]line ЗНМ: 0300000081 [18:21:34]line РНМ: 0000000000091631 [18:21:34]line Версия ККМ: 001 [18:21:34]line Платежная система: Mbank [18:21:34]line ФМ: 0000000000874669 [18:21:34]line ФД: 139474 [18:21:34]line ФПД: 255036520878355 [18:21:34]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182139&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139474&fm=255036520878355&tin=02508201610067®Number=0000000000091631&sum=26500 [18:21:34]OFD Sender: Processing packet 139474 [packets to send 34, broken 33] [18:21:34]ProducePacketName [18:21:34]name=ofd_packets/00139474 [18:21:34]OFD Sender: To server: pG, [18:21:34]CommunicateWithHost lk.salyk.kg:30040 [18:21:34]ConnectInit lk.salyk.kg [18:21:34]line 0 [18:21:34]written 0, free lines is 4095 [18:21:35]Connected sock=9 [18:21:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 24 D6 23 01 70 44 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 84 67 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 EA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 84 67 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 9E 00 00 00 F4 03 04 00 33 79 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D2 20 02 00 35 04 06 00 E7 F4 51 3B 51 13 6F 0E D0 BD E0 80 0C 06 [18:21:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 90 80 47 00 1F 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 38 37 34 36 36 39 10 04 04 00 D2 20 02 00 F4 03 04 00 E3 24 22 67 B6 04 01 00 00 CF 7F 13 FB 05 FC 31 17 [18:21:35]CommunicateWithHost err = 0 [18:21:35]CheckOFDResponse [18:21:35]1017 (14) - 77093643461234 [18:21:35]1041 (16) - 0000000000874669 [18:21:35]1040 (4) - 139474 [18:21:35]1012 (4) - 30.10.2024 12:21 [18:21:35]1206 (1) - 0 [18:21:35]OFD Sender: Remove packet 139474 [18:21:35]ProducePacketName [18:21:35]name=ofd_packets/00139474 [18:21:35]NVStorageDeleteData [18:21:35]Write to MH i2c: 01 00 00 20 55 75 [18:21:35]Write i2c OK [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: 01 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: 01 07 00 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: 01 07 00 20 55 00 00 00 00 00 1A 0D A3 [18:21:35]RasterBufferAndPrint [18:21:35]line [18:21:35]line [18:21:35]line [18:21:35]line [18:21:35]line [18:21:35]written 0, free lines is 3362 [18:21:35]MH_Cut [18:21:35]Write to MH i2c: D1 01 00 27 55 01 4E [18:21:35]Write i2c OK [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: D1 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: D1 01 00 [18:21:35]MH_I2C_Read... [18:21:35]Read from MH i2c: D1 01 00 27 55 00 4D [18:21:35]Write to MH i2c: 01 00 00 28 55 7D [18:21:35]Write i2c OK [18:21:35]MH_I2C_Read... [18:21:35]OFD Sender: No OFD packet to send [18:21:36]*** Cut start [18:21:36]*** Partial cut [18:21:36]*** CUTSNS_PIN = 1 [18:21:36]*** CUTSNS_PIN = 0 [18:21:36]*** Brake cut motor [18:21:36]Read from MH i2c: 01 [18:21:36]MH_I2C_Read... [18:21:36]*** Stop cut motor [18:21:36]*** Cut end [18:21:36]Read from MH i2c: 01 07 00 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: 01 07 00 28 55 00 00 00 00 00 FF 0F 92 [18:21:36]process_action close_receipt done [18:21:36]requested_data is exist [18:21:36]produce_requested_data [18:21:36]requested_item fm.sn is exist - process it [18:21:36]wFMCommunicate request_size=4 [18:21:36]MH_SAM_APDU [18:21:36]CAPDU: 80 11 00 00 [18:21:36]Write to MH i2c: E2 08 00 29 55 80 11 00 00 00 00 00 00 F8 [18:21:36]Write i2c OK [18:21:36]MH_I2C_Read... [18:21:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:21:36]Read from MH i2c: E2 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 17 00 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 17 00 29 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 53 [18:21:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:21:36]wFMCommunicate OK [18:21:36]requested_item fd.num is exist - process it [18:21:36]SAM_PROTO_GetFieldsCounters [18:21:36]wFMCommunicate request_size=4 [18:21:36]MH_SAM_APDU [18:21:36]CAPDU: 80 13 00 00 [18:21:36]Write to MH i2c: E2 08 00 2A 55 80 13 00 00 00 00 00 00 FB [18:21:36]Write i2c OK [18:21:36]MH_I2C_Read... [18:21:36]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:21:36]Read from MH i2c: E2 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 62 00 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 62 00 2A 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D2 20 02 00 0E 04 04 00 2C 02 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 1B [18:21:36]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D2 20 02 00 0E 04 04 00 2C 02 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 [18:21:36]wFMCommunicate OK [18:21:36]SAM_PROTO_GetFieldsCounters done [18:21:36]requested_item shift.num is exist - process it [18:21:36]requested_item shift.opened is exist - process it [18:21:36]req_shift_opened [18:21:36]FM_GetShiftState [18:21:36]SAM_PROTO_GetShiftState [18:21:36]wFMCommunicate request_size=4 [18:21:36]MH_SAM_APDU [18:21:36]CAPDU: 80 13 01 00 [18:21:36]Write to MH i2c: E2 08 00 2B 55 80 13 01 00 00 00 00 00 FD [18:21:36]Write i2c OK [18:21:36]MH_I2C_Read... [18:21:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:21:36]Read from MH i2c: E2 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 0E 00 [18:21:36]MH_I2C_Read... [18:21:36]Read from MH i2c: E2 0E 00 2B 55 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8D [18:21:36]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:21:36]wFMCommunicate OK [18:21:36]SAM_PROTO_GetShiftState done [18:21:36]FM_GetShiftState done [18:21:36]req_shift_opened done [18:21:36]requested_item shift.open_date is exist - process it [18:21:36]req_shift_open_date [18:21:36]req_shift_open_date done [18:21:36]produce_requested_data done [18:21:36]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139474,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:21:36]process_action_free close_receipt [18:21:36]json_value_free [18:21:36]json_value_free done [18:21:36]process_json_proto returns [18:21:36]Send response to host [18:21:36]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139474,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:21:36]free response buf [18:21:36]execute_script done [18:21:36]execute_script returns [18:21:36]free content buf [18:21:36]Sock 10.Close socket [18:21:36]Sock 10.Thread stoped [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:15]OFD Sender: No OFD packet to send [18:22:20]OFD Sender: No OFD packet to send [18:22:25]OFD Sender: No OFD packet to send [18:22:30]OFD Sender: No OFD packet to send [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:22:57]accept exits with 8 [18:22:57]New connection [18:22:57]New thread 3067284836 created [18:22:57]Thread 3067141476 joined [18:22:57]Waiting for new connection... [18:22:57] Sock 8.Parse request [18:22:57]Sock 8.Check first char [18:22:57]Sock 8.First char is OK [18:22:57]request: POST /json_proto HTTP/1.0 [18:22:57]Method: POST [18:22:57]URL: /json_proto [18:22:57]Method is POST - this is cgi request [18:22:57]url: /json_proto [18:22:57]query_string will be loaded in cgi processing [18:22:57]execute_cgi json_proto POST (null) [18:22:57]execute_cgi path=json_proto method=POST [18:22:57]POST find Content-Length [18:22:57]Host: 172.17.50.196:8080 [18:22:57]Content-Length: 770 [18:22:57]Content-Type: application/json [18:22:57] [18:22:57]POST finish read [18:22:57]Found Content-Length = 770 [18:22:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 23.390, "sum" : 1735.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" : 1735.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:57]execute_script... [18:22: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)1094711", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "code": "2710124500", "name": "\u0410\u0438-95-\u041A-3", "price" : 74.20, "quantity" : 23.390, "sum" : 1735.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" : 1735.54 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:22:57]POST & json_proto [18:22:57]process_json_proto [18:22:57]json parsed OK: [18:22:57]protocol is kg_v1.0 [18:22:57]action value=close_receipt [18:22:57]process_action close_receipt [18:22:57]cmd_close_receipt [18:22:57]MH_GetDate [18:22:57]Write to MH i2c: F0 00 00 2C 55 70 [18:22:57]Write i2c OK [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: F0 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: F0 09 00 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: F0 09 00 2C 55 00 87 79 22 67 72 0D 1C 67 04 [18:22:57]GetLastDocTimeStamp 1730312499 [18:22:57]current date 1730312583 [18:22:57]FM_GetShiftState [18:22:57]SAM_PROTO_GetShiftState [18:22:57]wFMCommunicate request_size=4 [18:22:57]MH_SAM_APDU [18:22:57]CAPDU: 80 13 01 00 [18:22:57]Write to MH i2c: E2 08 00 2D 55 80 13 01 00 00 00 00 00 FF [18:22:57]Write i2c OK [18:22:57]MH_I2C_Read... [18:22:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:22:57]Read from MH i2c: E2 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 0E 00 [18:22:57]MH_I2C_Read... [18:22:57]Read from MH i2c: E2 0E 00 2D 55 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8F [18:22:57]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:22:57]wFMCommunicate OK [18:22:57]SAM_PROTO_GetShiftState done [18:22:57]FM_GetShiftState done [18:22:57]opened in 1730246278 [18:22:57]opened+sec_in_day 1730332678 [18:22:57]quantity*price = 173553 [18:22:57]sum+1 = 173555 [18:22:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1735.54 НСП 1% : 15.36 НДС 12% : 184.30 Наличными: 0.00 Безнал.: 1735.54 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 159 30.10.2024 18:23 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139475 ФПД: 263907309475249 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182303&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139475&fm=263907309475249&tin=02508201610067®Number=0000000000091631&sum=173554 [18:22:58]StoreToDocumentArchive [18:22:58]shift 556 fd 139475 [18:22:58]save to /storage/0556/doc_00139475 [18:22:58]save last doc name /storage/0556/doc_00139475 to /storage/kkm_last_doc_name [18:22:58]save OK [18:22:58]Clear old archive folders... [18:22:58]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:22:58]tlvbuf is 0120E8C0 [18:22:58]SAM_PROTO_ClearQueue [18:22:58]wFMCommunicate request_size=4 [18:22:58]MH_SAM_APDU [18:22:58]CAPDU: 80 09 00 00 [18:22:58]Write to MH i2c: E2 08 00 3A 55 80 09 00 00 00 00 00 00 01 [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:22:58]Read from MH i2c: E2 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 3A 55 00 90 00 03 [18:22:58]RAPDU: 90 00 [18:22:58]wFMCommunicate OK [18:22:58]SAM_PROTO_ClearQueue done [18:22:58]KKMCreateOFDPacket [18:22:58]OFDProtocolAddRootSTLVToBuf [18:22:58]FM_MakeSignedData [18:22:58]FM_MakeSignedData [18:22:58]SAM_PROTO_SignData [18:22:58]wFMCommunicate request_size=4 [18:22:58]MH_SAM_APDU [18:22:58]CAPDU: 80 0D 01 02 [18:22:58]Write to MH i2c: E2 08 00 3B 55 80 0D 01 02 00 00 00 00 09 [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:22:58]Read from MH i2c: E2 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 3B 55 00 90 00 04 [18:22:58]RAPDU: 90 00 [18:22:58]wFMCommunicate OK [18:22:58]wFMCommunicate request_size=255 [18:22:58]MH_SAM_APDU [18:22: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 5E 5B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F2 A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 A5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 87 79 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 20 02 00 35 04 06 00 F0 [18:22:58]Write to MH i2c: E2 02 01 3C 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 5B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F2 A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 A5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 87 79 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 20 02 00 35 04 06 00 F0 00 00 3A [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:58]Read from MH i2c: E2 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 3C 55 00 90 00 05 [18:22:58]RAPDU: 90 00 [18:22:58]wFMCommunicate OK [18:22:58]wFMCommunicate request_size=10 [18:22:58]MH_SAM_APDU [18:22:58]CAPDU: 80 0D 02 02 05 05 B5 6F 55 B1 [18:22:58]Write to MH i2c: E2 0D 00 3D 55 80 0D 02 02 05 00 05 B5 6F 55 B1 00 00 45 [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:22:58]Read from MH i2c: E2 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 03 00 3D 55 00 90 00 06 [18:22:58]RAPDU: 90 00 [18:22:58]wFMCommunicate OK [18:22:58]wFMCommunicate request_size=4 [18:22:58]MH_SAM_APDU [18:22:58]CAPDU: 80 0D 03 02 [18:22:58]Write to MH i2c: E2 08 00 3E 55 80 0D 03 02 00 00 00 00 0E [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:22:58]Read from MH i2c: E2 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 0B 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 0B 00 3E 55 00 E1 92 BC 00 F5 C3 56 1A 90 00 66 [18:22:58]RAPDU: E1 92 BC 00 F5 C3 56 1A 90 00 [18:22:58]wFMCommunicate OK [18:22:58]SAM_PROTO_SignData done [18:22:58]FM_MakeSignedData done [18:22:58]CreateOFDProtocolMessage [18:22:58]wFMCommunicate request_size=4 [18:22:58]MH_SAM_APDU [18:22:58]CAPDU: 80 11 00 00 [18:22:58]Write to MH i2c: E2 08 00 3F 55 80 11 00 00 00 00 00 00 0E [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:22:58]Read from MH i2c: E2 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 17 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: E2 17 00 3F 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 69 [18:22:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:22:58]wFMCommunicate OK [18:22:58]CreateOFDProtocolMessage done [18:22:58]OFDSenderStorePacket 139475 [18:22:58]StoreOFDPacket docnum=139475 [18:22:58]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 3C 2C 07 01 35 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 5B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F2 A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 A5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 87 79 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 20 02 00 35 04 06 00 F0 05 B5 6F 55 B1 E1 92 BC 00 F5 C3 56 1A [18:22:58]CheckFolder [18:22:58]dirname=/storage/ofd_packets [18:22:58]CheckFolder done [18:22:58]ProducePacketName [18:22:58]name=ofd_packets/00139475 [18:22:58]NVStorageSaveData ofd_packets/00139475 [18:22:58]File name is /storage/ofd_packets/00139475 [18:22:58]Write 301 bytes [18:22:58]NVStorageSaveData done [18:22:58]OFDSenderStorePacket done [18:22:58]KKMCreateOFDPacket done [18:22:58]NVStorageSaveData kkm_last_timestamp [18:22:58]File name is /storage/kkm_last_timestamp [18:22:58]Write 4 bytes [18:22:58]NVStorageSaveData done [18:22:58]ExternCall_PrintAddStr [18:22:58]wPrintStart [18:22:58]Write to MH i2c: 01 00 00 40 55 95 [18:22:58]Write i2c OK [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: 01 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: 01 07 00 [18:22:58]MH_I2C_Read... [18:22:58]Read from MH i2c: 01 07 00 40 55 00 00 00 00 00 FF 0F AA [18:22:58]RasterBufferAndPrint [18:22:58]line Счет N : (1)1094711 [18:22:58]line ИНН: 02508201610067 [18:22:58]line Контрольно-Кассовый Чек [18:22:58]line ПРОДАЖА [18:22:58]line ТРК (МРК, ГНК) : 34 [18:22:58]line Товар: 2710124500 [18:22:58]line Аи-95-К-3 [18:22:58]line 23.390 * 74.20 [18:22:58]line = 1735.54 [18:22:58]line НДС 12% НСП 1% [18:22:58]line > о реализуемом товаре [18:22:58]line ИТОГО: 1735.54 [18:22:58]line НСП 1% : 15.36 [18:22:58]line НДС 12% : 184.30 [18:22:58]line Наличными: 0.00 [18:22:58]line Безнал.: 1735.54 [18:22:58]line Место: АЗС № 101 "Партнер Нефть" [18:22:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:22:58]line СНО: Общий режим [18:22:58]line Чек 159 30.10.2024 18:23 [18:22:58]line Смена: 556 ФФД: 1.0 [18:22:58]line ЗНМ: 0300000081 [18:22:58]line РНМ: 0000000000091631 [18:22:58]line Версия ККМ: 001 [18:22:58]line Платежная система: Mbank [18:22:58]line ФМ: 0000000000874669 [18:22:58]line ФД: 139475 [18:22:58]line ФПД: 263907309475249 [18:22:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T182303&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139475&fm=263907309475249&tin=02508201610067®Number=0000000000091631&sum=173554 [18:22:59]OFD Sender: Processing packet 139475 [packets to send 34, broken 33] [18:22:59]ProducePacketName [18:22:59]name=ofd_packets/00139475 [18:22:59]OFD Sender: To server: pG, [18:22:59]CommunicateWithHost lk.salyk.kg:30040 [18:22:59]ConnectInit lk.salyk.kg [18:22:59]written 0, free lines is 4095 [18:22:59]Connected sock=10 [18:22:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 3C 2C 07 01 35 F3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 35 30 30 06 04 0C 00 D0 90 D0 B8 2D 39 35 2D D0 9A 2D 33 FF 03 08 00 03 5E 5B 00 00 00 00 00 37 04 06 00 FC 1C 00 00 00 00 13 04 06 00 F2 A5 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 F2 A5 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 00 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FE 47 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 F2 A5 02 00 00 00 1F 04 02 00 01 00 12 04 04 00 9F 00 00 00 F4 03 04 00 87 79 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 20 02 00 35 04 06 00 F0 05 B5 6F 55 B1 E1 92 BC 00 F5 C3 56 1A [18:22:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 48 51 47 00 2F 97 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D3 20 02 00 F4 03 04 00 37 25 22 67 B6 04 01 00 00 C3 41 AA 75 CA BC 87 5E [18:22:59]CommunicateWithHost err = 0 [18:22:59]CheckOFDResponse [18:22:59]1017 (14) - 77093643461234 [18:22:59]1041 (16) - 0000000000874669 [18:22:59]1040 (4) - 139475 [18:22:59]1012 (4) - 30.10.2024 12:23 [18:22:59]1206 (1) - 0 [18:22:59]OFD Sender: Remove packet 139475 [18:22:59]ProducePacketName [18:22:59]name=ofd_packets/00139475 [18:22:59]NVStorageDeleteData [18:22:59]Write to MH i2c: 01 00 00 69 55 BE [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: 01 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: 01 07 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: 01 07 00 69 55 00 00 00 00 00 21 0D F3 [18:22:59]RasterBufferAndPrint [18:22:59]line [18:22:59]line [18:22:59]line [18:22:59]line [18:22:59]line [18:22:59]written 0, free lines is 3370 [18:22:59]MH_Cut [18:22:59]Write to MH i2c: D1 01 00 70 55 01 97 [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: D1 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: D1 01 00 [18:22:59]MH_I2C_Read... [18:22:59]Read from MH i2c: D1 01 00 70 55 00 96 [18:22:59]Write to MH i2c: 01 00 00 71 55 C6 [18:22:59]Write i2c OK [18:22:59]MH_I2C_Read... [18:22:59]OFD Sender: No OFD packet to send [18:23:00]*** Cut start [18:23:00]*** Partial cut [18:23:00]*** CUTSNS_PIN = 1 [18:23:00]*** CUTSNS_PIN = 0 [18:23:00]*** Brake cut motor [18:23:00]Read from MH i2c: 01 [18:23:00]MH_I2C_Read... [18:23:00]*** Stop cut motor [18:23:00]*** Cut end [18:23:00]Read from MH i2c: 01 07 00 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: 01 07 00 71 55 00 00 00 00 00 FF 0F DB [18:23:00]process_action close_receipt done [18:23:00]requested_data is exist [18:23:00]produce_requested_data [18:23:00]requested_item fm.sn is exist - process it [18:23:00]wFMCommunicate request_size=4 [18:23:00]MH_SAM_APDU [18:23:00]CAPDU: 80 11 00 00 [18:23:00]Write to MH i2c: E2 08 00 72 55 80 11 00 00 00 00 00 00 41 [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:23:00]Read from MH i2c: E2 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 17 00 [18:23:00]MH_I2C_Read... [18:23:00]Read from MH i2c: E2 17 00 72 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9C [18:23:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:23:00]wFMCommunicate OK [18:23:00]requested_item fd.num is exist - process it [18:23:00]SAM_PROTO_GetFieldsCounters [18:23:00]wFMCommunicate request_size=4 [18:23:00]MH_SAM_APDU [18:23:00]CAPDU: 80 13 00 00 [18:23:00]Write to MH i2c: E2 08 00 73 55 80 13 00 00 00 00 00 00 44 [18:23:00]Write i2c OK [18:23:00]MH_I2C_Read... [18:23:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:23:01]Read from MH i2c: E2 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 62 00 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 62 00 73 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D3 20 02 00 0E 04 04 00 2C 02 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 68 [18:23:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D3 20 02 00 0E 04 04 00 2C 02 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 [18:23:01]wFMCommunicate OK [18:23:01]SAM_PROTO_GetFieldsCounters done [18:23:01]requested_item shift.num is exist - process it [18:23:01]requested_item shift.opened is exist - process it [18:23:01]req_shift_opened [18:23:01]FM_GetShiftState [18:23:01]SAM_PROTO_GetShiftState [18:23:01]wFMCommunicate request_size=4 [18:23:01]MH_SAM_APDU [18:23:01]CAPDU: 80 13 01 00 [18:23:01]Write to MH i2c: E2 08 00 74 55 80 13 01 00 00 00 00 00 46 [18:23:01]Write i2c OK [18:23:01]MH_I2C_Read... [18:23:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:23:01]Read from MH i2c: E2 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 0E 00 [18:23:01]MH_I2C_Read... [18:23:01]Read from MH i2c: E2 0E 00 74 55 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D6 [18:23:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:23:01]wFMCommunicate OK [18:23:01]SAM_PROTO_GetShiftState done [18:23:01]FM_GetShiftState done [18:23:01]req_shift_opened done [18:23:01]requested_item shift.open_date is exist - process it [18:23:01]req_shift_open_date [18:23:01]req_shift_open_date done [18:23:01]produce_requested_data done [18:23:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139475,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:23:01]process_action_free close_receipt [18:23:01]json_value_free [18:23:01]json_value_free done [18:23:01]process_json_proto returns [18:23:01]Send response to host [18:23:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139475,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:23:01]free response buf [18:23:01]execute_script done [18:23:01]execute_script returns [18:23:01]free content buf [18:23:01]Sock 8.Close socket [18:23:01]Sock 8.Thread stoped [18:23:04]OFD Sender: No OFD packet to send [18:23:09]OFD Sender: No OFD packet to send [18:23:14]OFD Sender: No OFD packet to send [18:23:19]OFD Sender: No OFD packet to send [18:23:24]OFD Sender: No OFD packet to send [18:23:29]OFD Sender: No OFD packet to send [18:23:34]OFD Sender: No OFD packet to send [18:23:39]OFD Sender: No OFD packet to send [18:23:44]OFD Sender: No OFD packet to send [18:23:49]OFD Sender: No OFD packet to send [18:23:54]OFD Sender: No OFD packet to send [18:23:59]OFD Sender: No OFD packet to send [18:24:04]OFD Sender: No OFD packet to send [18:24:09]OFD Sender: No OFD packet to send [18:24:14]OFD Sender: No OFD packet to send [18:24:19]OFD Sender: No OFD packet to send [18:24:24]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:45]OFD Sender: No OFD packet to send [18:24:50]OFD Sender: No OFD packet to send [18:24:55]OFD Sender: No OFD packet to send [18:25:00]OFD Sender: No OFD packet to send [18:25:05]OFD Sender: No OFD packet to send [18:25:10]OFD Sender: No OFD packet to send [18:25:15]OFD Sender: No OFD packet to send [18:25:20]OFD Sender: No OFD packet to send [18:25:25]OFD Sender: No OFD packet to send [18:25:30]OFD Sender: No OFD packet to send [18:25:35]OFD Sender: No OFD packet to send [18:25:40]OFD Sender: No OFD packet to send [18:25:45]OFD Sender: No OFD packet to send [18:25:50]OFD Sender: No OFD packet to send [18:25:55]OFD Sender: No OFD packet to send [18:26:00]OFD Sender: No OFD packet to send [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:00]OFD Sender: No OFD packet to send [18:27:05]OFD Sender: No OFD packet to send [18:27:10]OFD Sender: No OFD packet to send [18:27:15]OFD Sender: No OFD packet to send [18:27:20]OFD Sender: No OFD packet to send [18:27:25]OFD Sender: No OFD packet to send [18:27:30]OFD Sender: No OFD packet to send [18:27:35]OFD Sender: No OFD packet to send [18:27:40]OFD Sender: No OFD packet to send [18:27:45]OFD Sender: No OFD packet to send [18:27:50]OFD Sender: No OFD packet to send [18:27:55]OFD Sender: No OFD packet to send [18:28:00]OFD Sender: No OFD packet to send [18:28:05]OFD Sender: No OFD packet to send [18:28:10]OFD Sender: No OFD packet to send [18:28:15]OFD Sender: No OFD packet to send [18:28:20]OFD Sender: No OFD packet to send [18:28:25]OFD Sender: No OFD packet to send [18:28:30]OFD Sender: No OFD packet to send [18:28:35]OFD Sender: No OFD packet to send [18:28:40]OFD Sender: No OFD packet to send [18:28:45]OFD Sender: No OFD packet to send [18:28:50]OFD Sender: No OFD packet to send [18:28:55]OFD Sender: No OFD packet to send [18:29:00]OFD Sender: No OFD packet to send [18:29:05]OFD Sender: No OFD packet to send [18:29:10]OFD Sender: No OFD packet to send [18:29:15]OFD Sender: No OFD packet to send [18:29:20]OFD Sender: No OFD packet to send [18:29:25]OFD Sender: No OFD packet to send [18:29:30]OFD Sender: No OFD packet to send [18:29:35]OFD Sender: No OFD packet to send [18:29:40]OFD Sender: No OFD packet to send [18:29:45]OFD Sender: No OFD packet to send [18:29:50]OFD Sender: No OFD packet to send [18:29:55]OFD Sender: No OFD packet to send [18:30:00]OFD Sender: No OFD packet to send [18:30:05]OFD Sender: No OFD packet to send [18:30:10]OFD Sender: No OFD packet to send [18:30:15]OFD Sender: No OFD packet to send [18:30:20]OFD Sender: No OFD packet to send [18:30:25]OFD Sender: No OFD packet to send [18:30:30]OFD Sender: No OFD packet to send [18:30:35]OFD Sender: No OFD packet to send [18:30:40]OFD Sender: No OFD packet to send [18:30:45]OFD Sender: No OFD packet to send [18:30:50]OFD Sender: No OFD packet to send [18:30:55]OFD Sender: No OFD packet to send [18:31:00]OFD Sender: No OFD packet to send [18:31:05]OFD Sender: No OFD packet to send [18:31:10]OFD Sender: No OFD packet to send [18:31:15]OFD Sender: No OFD packet to send [18:31:20]OFD Sender: No OFD packet to send [18:31:25]OFD Sender: No OFD packet to send [18:31:30]OFD Sender: No OFD packet to send [18:31:35]OFD Sender: No OFD packet to send [18:31:40]OFD Sender: No OFD packet to send [18:31:45]OFD Sender: No OFD packet to send [18:31:50]OFD Sender: No OFD packet to send [18:31:55]OFD Sender: No OFD packet to send [18:32:00]OFD Sender: No OFD packet to send [18:32:05]OFD Sender: No OFD packet to send [18:32:10]OFD Sender: No OFD packet to send [18:32:15]OFD Sender: No OFD packet to send [18:32:20]OFD Sender: No OFD packet to send [18:32:25]OFD Sender: No OFD packet to send [18:32:30]OFD Sender: No OFD packet to send [18:32:35]OFD Sender: No OFD packet to send [18:32:40]OFD Sender: No OFD packet to send [18:32:45]OFD Sender: No OFD packet to send [18:32:50]OFD Sender: No OFD packet to send [18:32:55]OFD Sender: No OFD packet to send [18:33:00]OFD Sender: No OFD packet to send [18:33:05]OFD Sender: No OFD packet to send [18:33:10]OFD Sender: No OFD packet to send [18:33:15]OFD Sender: No OFD packet to send [18:33:20]OFD Sender: No OFD packet to send [18:33:25]OFD Sender: No OFD packet to send [18:33:30]OFD Sender: No OFD packet to send [18:33:35]OFD Sender: No OFD packet to send [18:33:40]OFD Sender: No OFD packet to send [18:33:45]OFD Sender: No OFD packet to send [18:33:50]OFD Sender: No OFD packet to send [18:33:55]OFD Sender: No OFD packet to send [18:34:00]OFD Sender: No OFD packet to send [18:34:05]OFD Sender: No OFD packet to send [18:34:10]OFD Sender: No OFD packet to send [18:34:15]OFD Sender: No OFD packet to send [18:34:20]OFD Sender: No OFD packet to send [18:34:25]OFD Sender: No OFD packet to send [18:34:30]OFD Sender: No OFD packet to send [18:34:35]OFD Sender: No OFD packet to send [18:34:40]OFD Sender: No OFD packet to send [18:34:45]OFD Sender: No OFD packet to send [18:34:50]OFD Sender: No OFD packet to send [18:34:55]OFD Sender: No OFD packet to send [18:35:00]OFD Sender: No OFD packet to send [18:35:05]OFD Sender: No OFD packet to send [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:05]OFD Sender: No OFD packet to send [18:36:10]OFD Sender: No OFD packet to send [18:36:15]OFD Sender: No OFD packet to send [18:36:20]OFD Sender: No OFD packet to send [18:36:25]OFD Sender: No OFD packet to send [18:36:30]OFD Sender: No OFD packet to send [18:36:35]OFD Sender: No OFD packet to send [18:36:40]OFD Sender: No OFD packet to send [18:36:45]OFD Sender: No OFD packet to send [18:36:50]OFD Sender: No OFD packet to send [18:36:55]OFD Sender: No OFD packet to send [18:36:57]accept exits with 9 [18:36:57]New connection [18:36:57]New thread 3067141476 created [18:36:57]Thread 3067284836 joined [18:36:57]Waiting for new connection... [18:36:57] Sock 9.Parse request [18:36:57]Sock 9.Check first char [18:36:57]Sock 9.First char is OK [18:36:57]request: POST /json_proto HTTP/1.0 [18:36:57]Method: POST [18:36:57]URL: /json_proto [18:36:57]Method is POST - this is cgi request [18:36:57]url: /json_proto [18:36:57]query_string will be loaded in cgi processing [18:36:57]execute_cgi json_proto POST (null) [18:36:57]execute_cgi path=json_proto method=POST [18:36:57]POST find Content-Length [18:36:57]Host: 172.17.50.196:8080 [18:36:57]Content-Length: 777 [18:36:57]Content-Type: application/json [18:36:57] [18:36:57]POST finish read [18:36:57]Found Content-Length = 777 [18:36:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335362", "tax_sys" : 0, "items" : [ { "code": "4870216765057", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Green Zing", "price" : 141.00, "quantity" : 2.000, "sum" : 282.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" : 282.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:57]execute_script... [18:36: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 : (3)335362", "tax_sys" : 0, "items" : [ { "code": "4870216765057", "name": "\u041D\u0430\u0433\u0440.\u0422\u0430\u0431.\u041F\u0430\u043B\u043E\u0447. HEETS Green Zing", "price" : 141.00, "quantity" : 2.000, "sum" : 282.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" : 282.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:36:57]POST & json_proto [18:36:57]process_json_proto [18:36:57]json parsed OK: [18:36:57]protocol is kg_v1.0 [18:36:57]action value=close_receipt [18:36:57]process_action close_receipt [18:36:57]cmd_close_receipt [18:36:57]MH_GetDate [18:36:57]Write to MH i2c: F0 00 00 75 55 B9 [18:36:57]Write i2c OK [18:36:57]MH_I2C_Read... [18:36:57]Read from MH i2c: F0 [18:36:57]MH_I2C_Read... [18:36:57]Read from MH i2c: F0 09 00 [18:36:57]MH_I2C_Read... [18:36:57]Read from MH i2c: F0 09 00 75 55 00 D0 7C 22 67 72 0D 1C 67 99 [18:36:57]GetLastDocTimeStamp 1730312583 [18:36:57]current date 1730313424 [18:36:57]FM_GetShiftState [18:36:57]SAM_PROTO_GetShiftState [18:36:57]wFMCommunicate request_size=4 [18:36:57]MH_SAM_APDU [18:36:57]CAPDU: 80 13 01 00 [18:36:57]Write to MH i2c: E2 08 00 76 55 80 13 01 00 00 00 00 00 48 [18:36:57]Write i2c OK [18:36:57]MH_I2C_Read... [18:36:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:36:57]Read from MH i2c: E2 [18:36:57]MH_I2C_Read... [18:36:57]Read from MH i2c: E2 0E 00 [18:36:57]MH_I2C_Read... [18:36:57]Read from MH i2c: E2 0E 00 76 55 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D8 [18:36:57]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:36:57]wFMCommunicate OK [18:36:57]SAM_PROTO_GetShiftState done [18:36:57]FM_GetShiftState done [18:36:57]opened in 1730246278 [18:36:57]opened+sec_in_day 1730332678 [18:36:57]quantity*price = 28200 [18:36:57]sum+1 = 28201 [18:36:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 282.00 НСП 1% : 2.50 НДС 12% : 29.95 Наличными: 0.00 Безнал.: 282.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 160 30.10.2024 18:37 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139476 ФПД: 69515659308443 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T183704&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139476&fm=69515659308443&tin=02508201610067®Number=0000000000091631&sum=28200 0 [18:36:58]StoreToDocumentArchive [18:36:58]shift 556 fd 139476 [18:36:58]save to /storage/0556/doc_00139476 [18:36:58]save last doc name /storage/0556/doc_00139476 to /storage/kkm_last_doc_name [18:36:58]save OK [18:36:58]Clear old archive folders... [18:36:58]ProcessDocumentItem done err = 0, tmpTLVsize=286 [18:36:58]tlvbuf is 01265AA0 [18:36:58]SAM_PROTO_ClearQueue [18:36:58]wFMCommunicate request_size=4 [18:36:58]MH_SAM_APDU [18:36:58]CAPDU: 80 09 00 00 [18:36:58]Write to MH i2c: E2 08 00 83 55 80 09 00 00 00 00 00 00 4A [18:36:58]Write i2c OK [18:36:58]MH_I2C_Read... [18:36:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:36:59]Read from MH i2c: E2 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 03 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 03 00 83 55 00 90 00 4C [18:36:59]RAPDU: 90 00 [18:36:59]wFMCommunicate OK [18:36:59]SAM_PROTO_ClearQueue done [18:36:59]KKMCreateOFDPacket [18:36:59]OFDProtocolAddRootSTLVToBuf [18:36:59]FM_MakeSignedData [18:36:59]FM_MakeSignedData [18:36:59]SAM_PROTO_SignData [18:36:59]wFMCommunicate request_size=4 [18:36:59]MH_SAM_APDU [18:36:59]CAPDU: 80 0D 01 02 [18:36:59]Write to MH i2c: E2 08 00 84 55 80 0D 01 02 00 00 00 00 52 [18:36:59]Write i2c OK [18:36:59]MH_I2C_Read... [18:36:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:36:59]Read from MH i2c: E2 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 03 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 03 00 84 55 00 90 00 4D [18:36:59]RAPDU: 90 00 [18:36:59]wFMCommunicate OK [18:36:59]wFMCommunicate request_size=255 [18:36:59]MH_SAM_APDU [18:36:59]CAPDU: 80 0D 02 02 FA 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D0 7C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 [18:36:59]Write to MH i2c: E2 02 01 85 55 80 0D 02 02 FA 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D0 7C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 00 00 BC [18:36:59]Write i2c OK [18:36:59]MH_I2C_Read... [18:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:59]Read from MH i2c: E2 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 03 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 03 00 85 55 00 90 00 4E [18:36:59]RAPDU: 90 00 [18:36:59]wFMCommunicate OK [18:36:59]wFMCommunicate request_size=45 [18:36:59]MH_SAM_APDU [18:36:59]CAPDU: 80 0D 02 02 28 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 20 02 00 35 04 06 00 3F 39 60 2D ED 9B [18:36:59]Write to MH i2c: E2 30 00 86 55 80 0D 02 02 28 00 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 20 02 00 35 04 06 00 3F 39 60 2D ED 9B 00 00 30 [18:36:59]Write i2c OK [18:36:59]MH_I2C_Read... [18:36:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:36:59]Read from MH i2c: E2 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 03 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 03 00 86 55 00 90 00 4F [18:36:59]RAPDU: 90 00 [18:36:59]wFMCommunicate OK [18:36:59]wFMCommunicate request_size=4 [18:36:59]MH_SAM_APDU [18:36:59]CAPDU: 80 0D 03 02 [18:36:59]Write to MH i2c: E2 08 00 87 55 80 0D 03 02 00 00 00 00 57 [18:36:59]Write i2c OK [18:36:59]MH_I2C_Read... [18:36:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:36:59]Read from MH i2c: E2 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 0B 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 0B 00 87 55 00 E7 71 FF 37 A0 6B 9A E6 90 00 71 [18:36:59]RAPDU: E7 71 FF 37 A0 6B 9A E6 90 00 [18:36:59]wFMCommunicate OK [18:36:59]SAM_PROTO_SignData done [18:36:59]FM_MakeSignedData done [18:36:59]CreateOFDProtocolMessage [18:36:59]wFMCommunicate request_size=4 [18:36:59]MH_SAM_APDU [18:36:59]CAPDU: 80 11 00 00 [18:36:59]Write to MH i2c: E2 08 00 88 55 80 11 00 00 00 00 00 00 57 [18:36:59]Write i2c OK [18:36:59]MH_I2C_Read... [18:36:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:36:59]Read from MH i2c: E2 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 17 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: E2 17 00 88 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B2 [18:36:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:36:59]wFMCommunicate OK [18:36:59]CreateOFDProtocolMessage done [18:36:59]OFDSenderStorePacket 139476 [18:36:59]StoreOFDPacket docnum=139476 [18:36:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 32 01 00 00 D9 32 2A 01 2E 45 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D0 7C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 20 02 00 35 04 06 00 3F 39 60 2D ED 9B E7 71 FF 37 A0 6B 9A E6 [18:36:59]CheckFolder [18:36:59]dirname=/storage/ofd_packets [18:36:59]CheckFolder done [18:36:59]ProducePacketName [18:36:59]name=ofd_packets/00139476 [18:36:59]NVStorageSaveData ofd_packets/00139476 [18:36:59]File name is /storage/ofd_packets/00139476 [18:36:59]Write 336 bytes [18:36:59]NVStorageSaveData done [18:36:59]OFDSenderStorePacket done [18:36:59]KKMCreateOFDPacket done [18:36:59]NVStorageSaveData kkm_last_timestamp [18:36:59]File name is /storage/kkm_last_timestamp [18:36:59]Write 4 bytes [18:36:59]NVStorageSaveData done [18:36:59]ExternCall_PrintAddStr [18:36:59]wPrintStart [18:36:59]Write to MH i2c: 01 00 00 89 55 DE [18:36:59]Write i2c OK [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: 01 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: 01 07 00 [18:36:59]MH_I2C_Read... [18:36:59]Read from MH i2c: 01 07 00 89 55 00 00 00 00 00 FF 0F F3 [18:36:59]RasterBufferAndPrint [18:36:59]line Счет N : (3)335362 [18:36:59]line ИНН: 02508201610067 [18:36:59]line Контрольно-Кассовый Чек [18:36:59]line ПРОДАЖА [18:36:59]line Товар: 4870216765057 [18:36:59]line Нагр.Таб.Палоч. HEETS Green Zing [18:36:59]line 2.000 * 141.00 [18:36:59]line = 282.00 [18:36:59]line НДС 12% НСП 1% [18:36:59]line > о реализуемом товаре [18:36:59]line ИТОГО: 282.00 [18:36:59]line НСП 1% : 2.50 [18:36:59]line НДС 12% : 29.95 [18:36:59]line Наличными: 0.00 [18:36:59]line Безнал.: 282.00 [18:36:59]line Место: АЗС № 101 "Партнер Нефть" [18:36:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:36:59]line СНО: Общий режим [18:36:59]line Чек 160 30.10.2024 18:37 [18:36:59]line Смена: 556 ФФД: 1.0 [18:36:59]line ЗНМ: 0300000081 [18:36:59]line РНМ: 0000000000091631 [18:36:59]line Версия ККМ: 001 [18:36:59]line Платежная система: Mbank [18:36:59]line ФМ: 0000000000874669 [18:36:59]line ФД: 139476 [18:36:59]line ФПД: 69515659308443 [18:36:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T183704&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139476&fm=69515659308443&tin=02508201610067®Number=0000000000091631&sum=28200 [18:36:59]line 0 [18:36:59]OFD Sender: Processing packet 139476 [packets to send 34, broken 33] [18:36:59]ProducePacketName [18:36:59]name=ofd_packets/00139476 [18:36:59]OFD Sender: To server: pG, [18:36:59]CommunicateWithHost lk.salyk.kg:30040 [18:36:59]ConnectInit lk.salyk.kg [18:36:59]written 0, free lines is 4095 [18:36:59]Connected sock=10 [18:36:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 32 01 00 00 D9 32 2A 01 2E 45 5A 03 01 00 03 00 1E 01 1E 04 01 00 01 23 04 70 00 8A 04 0D 00 34 38 37 30 32 31 36 37 36 35 30 35 37 06 04 2C 00 D0 9D D0 B0 D0 B3 D1 80 2E D0 A2 D0 B0 D0 B1 2E D0 9F D0 B0 D0 BB D0 BE D1 87 2E 20 48 45 45 54 53 20 47 72 65 65 6E 20 5A 69 6E 67 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 14 37 00 00 00 00 13 04 06 00 28 6E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 28 6E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FA 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B3 0B 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 28 6E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A0 00 00 00 F4 03 04 00 D0 7C 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 20 02 00 35 04 06 00 3F 39 60 2D ED 9B E7 71 FF 37 A0 6B 9A E6 [18:37:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 BA AF 47 00 EB E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D4 20 02 00 F4 03 04 00 80 28 22 67 B6 04 01 00 00 E1 81 21 EB 81 7C EA D0 [18:37:00]CommunicateWithHost err = 0 [18:37:00]CheckOFDResponse [18:37:00]1017 (14) - 77093643461234 [18:37:00]1041 (16) - 0000000000874669 [18:37:00]1040 (4) - 139476 [18:37:00]1012 (4) - 30.10.2024 12:37 [18:37:00]1206 (1) - 0 [18:37:00]OFD Sender: Remove packet 139476 [18:37:00]ProducePacketName [18:37:00]name=ofd_packets/00139476 [18:37:00]NVStorageDeleteData [18:37:00]Write to MH i2c: 01 00 00 B3 55 08 [18:37:00]Write i2c OK [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: 01 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: 01 07 00 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: 01 07 00 B3 55 00 00 00 00 00 0D 0D 29 [18:37:00]RasterBufferAndPrint [18:37:00]line [18:37:00]line [18:37:00]line [18:37:00]line [18:37:00]line [18:37:00]written 0, free lines is 3348 [18:37:00]MH_Cut [18:37:00]Write to MH i2c: D1 01 00 BA 55 01 E1 [18:37:00]Write i2c OK [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: D1 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: D1 01 00 [18:37:00]MH_I2C_Read... [18:37:00]Read from MH i2c: D1 01 00 BA 55 00 E0 [18:37:00]Write to MH i2c: 01 00 00 BB 55 10 [18:37:00]Write i2c OK [18:37:00]MH_I2C_Read... [18:37:00]OFD Sender: No OFD packet to send [18:37:00]*** Cut start [18:37:00]*** Partial cut [18:37:00]*** CUTSNS_PIN = 1 [18:37:01]*** CUTSNS_PIN = 0 [18:37:01]*** Brake cut motor [18:37:01]Read from MH i2c: 01 [18:37:01]MH_I2C_Read... [18:37:01]*** Stop cut motor [18:37:01]*** Cut end [18:37:01]Read from MH i2c: 01 07 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: 01 07 00 BB 55 00 00 00 00 00 FF 0F 25 [18:37:01]process_action close_receipt done [18:37:01]requested_data is exist [18:37:01]produce_requested_data [18:37:01]requested_item fm.sn is exist - process it [18:37:01]wFMCommunicate request_size=4 [18:37:01]MH_SAM_APDU [18:37:01]CAPDU: 80 11 00 00 [18:37:01]Write to MH i2c: E2 08 00 BC 55 80 11 00 00 00 00 00 00 8B [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:37:01]Read from MH i2c: E2 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 17 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 17 00 BC 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E6 [18:37:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:37:01]wFMCommunicate OK [18:37:01]requested_item fd.num is exist - process it [18:37:01]SAM_PROTO_GetFieldsCounters [18:37:01]wFMCommunicate request_size=4 [18:37:01]MH_SAM_APDU [18:37:01]CAPDU: 80 13 00 00 [18:37:01]Write to MH i2c: E2 08 00 BD 55 80 13 00 00 00 00 00 00 8E [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:37:01]Read from MH i2c: E2 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 62 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 62 00 BD 55 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D4 20 02 00 0E 04 04 00 2C 02 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 B6 [18:37:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D4 20 02 00 0E 04 04 00 2C 02 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 [18:37:01]wFMCommunicate OK [18:37:01]SAM_PROTO_GetFieldsCounters done [18:37:01]requested_item shift.num is exist - process it [18:37:01]requested_item shift.opened is exist - process it [18:37:01]req_shift_opened [18:37:01]FM_GetShiftState [18:37:01]SAM_PROTO_GetShiftState [18:37:01]wFMCommunicate request_size=4 [18:37:01]MH_SAM_APDU [18:37:01]CAPDU: 80 13 01 00 [18:37:01]Write to MH i2c: E2 08 00 BE 55 80 13 01 00 00 00 00 00 90 [18:37:01]Write i2c OK [18:37:01]MH_I2C_Read... [18:37:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:37:01]Read from MH i2c: E2 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 0E 00 [18:37:01]MH_I2C_Read... [18:37:01]Read from MH i2c: E2 0E 00 BE 55 00 09 00 01 86 76 21 67 00 00 00 00 90 00 20 [18:37:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:37:01]wFMCommunicate OK [18:37:01]SAM_PROTO_GetShiftState done [18:37:01]FM_GetShiftState done [18:37:01]req_shift_opened done [18:37:01]requested_item shift.open_date is exist - process it [18:37:01]req_shift_open_date [18:37:01]req_shift_open_date done [18:37:01]produce_requested_data done [18:37:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139476,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:37:01]process_action_free close_receipt [18:37:01]json_value_free [18:37:01]json_value_free done [18:37:01]process_json_proto returns [18:37:01]Send response to host [18:37:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139476,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:37:01]free response buf [18:37:01]execute_script done [18:37:01]execute_script returns [18:37:01]free content buf [18:37:01]Sock 9.Close socket [18:37:01]Sock 9.Thread stoped [18:37:05]OFD Sender: No OFD packet to send [18:37:10]OFD Sender: No OFD packet to send [18:37:15]OFD Sender: No OFD packet to send [18:37:20]OFD Sender: No OFD packet to send [18:37:25]OFD Sender: No OFD packet to send [18:37:30]OFD Sender: No OFD packet to send [18:37:35]OFD Sender: No OFD packet to send [18:37:40]OFD Sender: No OFD packet to send [18:37:45]OFD Sender: No OFD packet to send [18:37:50]OFD Sender: No OFD packet to send [18:37:55]OFD Sender: No OFD packet to send [18:38:00]OFD Sender: No OFD packet to send [18:38:05]OFD Sender: No OFD packet to send [18:38:10]OFD Sender: No OFD packet to send [18:38:15]OFD Sender: No OFD packet to send [18:38:20]OFD Sender: No OFD packet to send [18:38:25]OFD Sender: No OFD packet to send [18:38:28]accept exits with 8 [18:38:28]New connection [18:38:28]New thread 3067284836 created [18:38:28]Thread 3067141476 joined [18:38:28]Waiting for new connection... [18:38:28] Sock 8.Parse request [18:38:28]Sock 8.Check first char [18:38:28]Sock 8.First char is OK [18:38:28]request: POST /json_proto HTTP/1.0 [18:38:28]Method: POST [18:38:28]URL: /json_proto [18:38:28]Method is POST - this is cgi request [18:38:28]url: /json_proto [18:38:28]query_string will be loaded in cgi processing [18:38:28]execute_cgi json_proto POST (null) [18:38:28]execute_cgi path=json_proto method=POST [18:38:28]POST find Content-Length [18:38:28]Host: 172.17.50.196:8080 [18:38:28]Content-Length: 767 [18:38:28]Content-Type: application/json [18:38:28] [18:38:28]POST finish read [18:38:28]Found Content-Length = 767 [18:38:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:28]execute_script... [18:38:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094716", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 53", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 8.970, "sum" : 600.09, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 600.09 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:38:28]POST & json_proto [18:38:28]process_json_proto [18:38:28]json parsed OK: [18:38:28]protocol is kg_v1.0 [18:38:28]action value=close_receipt [18:38:28]process_action close_receipt [18:38:28]cmd_close_receipt [18:38:28]MH_GetDate [18:38:28]Write to MH i2c: F0 00 00 BF 55 03 [18:38:28]Write i2c OK [18:38:28]MH_I2C_Read... [18:38:28]Read from MH i2c: F0 [18:38:28]MH_I2C_Read... [18:38:28]Read from MH i2c: F0 09 00 [18:38:28]MH_I2C_Read... [18:38:28]Read from MH i2c: F0 09 00 BF 55 00 2A 7D 22 67 72 0D 1C 67 3E [18:38:28]GetLastDocTimeStamp 1730313424 [18:38:28]current date 1730313514 [18:38:28]FM_GetShiftState [18:38:28]SAM_PROTO_GetShiftState [18:38:28]wFMCommunicate request_size=4 [18:38:28]MH_SAM_APDU [18:38:28]CAPDU: 80 13 01 00 [18:38:28]Write to MH i2c: E2 08 00 C0 55 80 13 01 00 00 00 00 00 92 [18:38:28]Write i2c OK [18:38:28]MH_I2C_Read... [18:38:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:28]Read from MH i2c: E2 [18:38:28]MH_I2C_Read... [18:38:28]Read from MH i2c: E2 0E 00 [18:38:28]MH_I2C_Read... [18:38:28]Read from MH i2c: E2 0E 00 C0 55 00 09 00 01 86 76 21 67 00 00 00 00 90 00 22 [18:38:28]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:38:28]wFMCommunicate OK [18:38:28]SAM_PROTO_GetShiftState done [18:38:28]FM_GetShiftState done [18:38:28]opened in 1730246278 [18:38:28]opened+sec_in_day 1730332678 [18:38:28]quantity*price = 60009 [18:38:28]sum+1 = 60010 [18:38:28]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 600.09 НСП 1% : 5.31 НДС 12% : 63.73 Наличными: 0.00 Безнал.: 600.09 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 161 30.10.2024 18:38 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139477 ФПД: 18822716684951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T183834&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139477&fm=18822716684951&tin=02508201610067®Number=0000000000091631&sum=60009 [18:38:29]StoreToDocumentArchive [18:38:29]shift 556 fd 139477 [18:38:29]save to /storage/0556/doc_00139477 [18:38:29]save last doc name /storage/0556/doc_00139477 to /storage/kkm_last_doc_name [18:38:29]save OK [18:38:29]Clear old archive folders... [18:38:29]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:38:29]tlvbuf is 01265790 [18:38:29]SAM_PROTO_ClearQueue [18:38:29]wFMCommunicate request_size=4 [18:38:29]MH_SAM_APDU [18:38:29]CAPDU: 80 09 00 00 [18:38:29]Write to MH i2c: E2 08 00 CD 55 80 09 00 00 00 00 00 00 94 [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:38:29]Read from MH i2c: E2 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 03 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 03 00 CD 55 00 90 00 96 [18:38:29]RAPDU: 90 00 [18:38:29]wFMCommunicate OK [18:38:29]SAM_PROTO_ClearQueue done [18:38:29]KKMCreateOFDPacket [18:38:29]OFDProtocolAddRootSTLVToBuf [18:38:29]FM_MakeSignedData [18:38:29]FM_MakeSignedData [18:38:29]SAM_PROTO_SignData [18:38:29]wFMCommunicate request_size=4 [18:38:29]MH_SAM_APDU [18:38:29]CAPDU: 80 0D 01 02 [18:38:29]Write to MH i2c: E2 08 00 CE 55 80 0D 01 02 00 00 00 00 9C [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:38:29]Read from MH i2c: E2 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 03 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 03 00 CE 55 00 90 00 97 [18:38:29]RAPDU: 90 00 [18:38:29]wFMCommunicate OK [18:38:29]wFMCommunicate request_size=255 [18:38:29]MH_SAM_APDU [18:38:29]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2A 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D5 20 02 00 35 04 06 00 11 [18:38:29]Write to MH i2c: E2 02 01 CF 55 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2A 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D5 20 02 00 35 04 06 00 11 00 00 21 [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:29]Read from MH i2c: E2 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 03 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 03 00 CF 55 00 90 00 98 [18:38:29]RAPDU: 90 00 [18:38:29]wFMCommunicate OK [18:38:29]wFMCommunicate request_size=10 [18:38:29]MH_SAM_APDU [18:38:29]CAPDU: 80 0D 02 02 05 1E 81 57 7A 97 [18:38:29]Write to MH i2c: E2 0D 00 D0 55 80 0D 02 02 05 00 1E 81 57 7A 97 00 00 B0 [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:38:29]Read from MH i2c: E2 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 03 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 03 00 D0 55 00 90 00 99 [18:38:29]RAPDU: 90 00 [18:38:29]wFMCommunicate OK [18:38:29]wFMCommunicate request_size=4 [18:38:29]MH_SAM_APDU [18:38:29]CAPDU: 80 0D 03 02 [18:38:29]Write to MH i2c: E2 08 00 D1 55 80 0D 03 02 00 00 00 00 A1 [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:38:29]Read from MH i2c: E2 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 0B 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 0B 00 D1 55 00 A5 F9 FA D0 39 CC C2 E3 90 00 B4 [18:38:29]RAPDU: A5 F9 FA D0 39 CC C2 E3 90 00 [18:38:29]wFMCommunicate OK [18:38:29]SAM_PROTO_SignData done [18:38:29]FM_MakeSignedData done [18:38:29]CreateOFDProtocolMessage [18:38:29]wFMCommunicate request_size=4 [18:38:29]MH_SAM_APDU [18:38:29]CAPDU: 80 11 00 00 [18:38:29]Write to MH i2c: E2 08 00 D2 55 80 11 00 00 00 00 00 00 A1 [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:29]Read from MH i2c: E2 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 17 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: E2 17 00 D2 55 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FC [18:38:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:38:29]wFMCommunicate OK [18:38:29]CreateOFDProtocolMessage done [18:38:29]OFDSenderStorePacket 139477 [18:38:29]StoreOFDPacket docnum=139477 [18:38:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 F0 26 07 01 F1 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2A 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D5 20 02 00 35 04 06 00 11 1E 81 57 7A 97 A5 F9 FA D0 39 CC C2 E3 [18:38:29]CheckFolder [18:38:29]dirname=/storage/ofd_packets [18:38:29]CheckFolder done [18:38:29]ProducePacketName [18:38:29]name=ofd_packets/00139477 [18:38:29]NVStorageSaveData ofd_packets/00139477 [18:38:29]File name is /storage/ofd_packets/00139477 [18:38:29]Write 301 bytes [18:38:29]NVStorageSaveData done [18:38:29]OFDSenderStorePacket done [18:38:29]KKMCreateOFDPacket done [18:38:29]NVStorageSaveData kkm_last_timestamp [18:38:29]File name is /storage/kkm_last_timestamp [18:38:29]Write 4 bytes [18:38:29]NVStorageSaveData done [18:38:29]ExternCall_PrintAddStr [18:38:29]wPrintStart [18:38:29]Write to MH i2c: 01 00 00 D3 55 28 [18:38:29]Write i2c OK [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: 01 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: 01 07 00 [18:38:29]MH_I2C_Read... [18:38:29]Read from MH i2c: 01 07 00 D3 55 00 00 00 00 00 FF 0F 3D [18:38:29]RasterBufferAndPrint [18:38:29]line Счет N : (1)1094716 [18:38:29]line ИНН: 02508201610067 [18:38:29]line Контрольно-Кассовый Чек [18:38:29]line ПРОДАЖА [18:38:29]line ТРК (МРК, ГНК) : 53 [18:38:29]line Товар: 2710124130 [18:38:29]line Аи-92-К-2 [18:38:29]line 8.970 * 66.90 [18:38:29]line = 600.09 [18:38:29]line НДС 12% НСП 1% [18:38:29]line > о реализуемом товаре [18:38:29]line ИТОГО: 600.09 [18:38:29]line НСП 1% : 5.31 [18:38:29]line НДС 12% : 63.73 [18:38:29]line Наличными: 0.00 [18:38:29]line Безнал.: 600.09 [18:38:29]line Место: АЗС № 101 "Партнер Нефть" [18:38:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:38:29]line СНО: Общий режим [18:38:29]line Чек 161 30.10.2024 18:38 [18:38:29]line Смена: 556 ФФД: 1.0 [18:38:29]line ЗНМ: 0300000081 [18:38:29]line РНМ: 0000000000091631 [18:38:29]line Версия ККМ: 001 [18:38:29]line Платежная система: Mbank [18:38:29]line ФМ: 0000000000874669 [18:38:29]line ФД: 139477 [18:38:29]line ФПД: 18822716684951 [18:38:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T183834&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139477&fm=18822716684951&tin=02508201610067®Number=0000000000091631&sum=60009 [18:38:29]OFD Sender: Processing packet 139477 [packets to send 34, broken 33] [18:38:29]ProducePacketName [18:38:29]name=ofd_packets/00139477 [18:38:30]OFD Sender: To server: pG, [18:38:30]CommunicateWithHost lk.salyk.kg:30040 [18:38:30]ConnectInit lk.salyk.kg [18:38:30]written 0, free lines is 4095 [18:38:30]Connected sock=10 [18:38:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 F0 26 07 01 F1 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 32 FF 03 08 00 03 0A 23 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 69 EA 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 69 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 00 00 00 00 00 00 39 04 06 00 69 EA 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A1 00 00 00 F4 03 04 00 2A 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D5 20 02 00 35 04 06 00 11 1E 81 57 7A 97 A5 F9 FA D0 39 CC C2 E3 [18:38:30]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 28 C2 47 00 62 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 38 37 34 36 36 39 10 04 04 00 D5 20 02 00 F4 03 04 00 DA 28 22 67 B6 04 01 00 00 9F 32 64 10 15 39 15 C2 [18:38:30]CommunicateWithHost err = 0 [18:38:30]CheckOFDResponse [18:38:30]1017 (14) - 77093643461234 [18:38:30]1041 (16) - 0000000000874669 [18:38:30]1040 (4) - 139477 [18:38:30]1012 (4) - 30.10.2024 12:38 [18:38:30]1206 (1) - 0 [18:38:30]OFD Sender: Remove packet 139477 [18:38:30]ProducePacketName [18:38:30]name=ofd_packets/00139477 [18:38:30]NVStorageDeleteData [18:38:30]Write to MH i2c: 01 00 00 FC 55 51 [18:38:30]Write i2c OK [18:38:30]MH_I2C_Read... [18:38:30]Read from MH i2c: 01 [18:38:30]MH_I2C_Read... [18:38:30]Read from MH i2c: 01 07 00 [18:38:30]MH_I2C_Read... [18:38:30]Read from MH i2c: 01 07 00 FC 55 00 00 00 00 00 1C 0D 81 [18:38:30]RasterBufferAndPrint [18:38:30]line [18:38:30]line [18:38:30]line [18:38:30]line [18:38:30]line [18:38:30]written 0, free lines is 3365 [18:38:30]MH_Cut [18:38:30]Write to MH i2c: D1 01 00 03 56 01 2B [18:38:30]Write i2c OK [18:38:30]MH_I2C_Read... [18:38:30]Read from MH i2c: D1 [18:38:30]MH_I2C_Read... [18:38:30]Read from MH i2c: D1 01 00 [18:38:30]MH_I2C_Read... [18:38:30]Read from MH i2c: D1 01 00 03 56 00 2A [18:38:30]Write to MH i2c: 01 00 00 04 56 5A [18:38:30]Write i2c OK [18:38:30]MH_I2C_Read... [18:38:30]OFD Sender: No OFD packet to send [18:38:31]*** Cut start [18:38:31]*** Partial cut [18:38:31]*** CUTSNS_PIN = 1 [18:38:31]*** CUTSNS_PIN = 0 [18:38:31]*** Brake cut motor [18:38:31]Read from MH i2c: 01 [18:38:31]MH_I2C_Read... [18:38:31]*** Stop cut motor [18:38:31]*** Cut end [18:38:31]Read from MH i2c: 01 07 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: 01 07 00 04 56 00 00 00 00 00 FF 0F 6F [18:38:31]process_action close_receipt done [18:38:31]requested_data is exist [18:38:31]produce_requested_data [18:38:31]requested_item fm.sn is exist - process it [18:38:31]wFMCommunicate request_size=4 [18:38:31]MH_SAM_APDU [18:38:31]CAPDU: 80 11 00 00 [18:38:31]Write to MH i2c: E2 08 00 05 56 80 11 00 00 00 00 00 00 D5 [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:38:31]Read from MH i2c: E2 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 17 00 [18:38:31]MH_I2C_Read... [18:38:31]Read from MH i2c: E2 17 00 05 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 30 [18:38:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:38:31]wFMCommunicate OK [18:38:31]requested_item fd.num is exist - process it [18:38:31]SAM_PROTO_GetFieldsCounters [18:38:31]wFMCommunicate request_size=4 [18:38:31]MH_SAM_APDU [18:38:31]CAPDU: 80 13 00 00 [18:38:31]Write to MH i2c: E2 08 00 06 56 80 13 00 00 00 00 00 00 D8 [18:38:31]Write i2c OK [18:38:31]MH_I2C_Read... [18:38:32]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:38:32]Read from MH i2c: E2 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: E2 62 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: E2 62 00 06 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D5 20 02 00 0E 04 04 00 2C 02 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 04 [18:38:32]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D5 20 02 00 0E 04 04 00 2C 02 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 [18:38:32]wFMCommunicate OK [18:38:32]SAM_PROTO_GetFieldsCounters done [18:38:32]requested_item shift.num is exist - process it [18:38:32]requested_item shift.opened is exist - process it [18:38:32]req_shift_opened [18:38:32]FM_GetShiftState [18:38:32]SAM_PROTO_GetShiftState [18:38:32]wFMCommunicate request_size=4 [18:38:32]MH_SAM_APDU [18:38:32]CAPDU: 80 13 01 00 [18:38:32]Write to MH i2c: E2 08 00 07 56 80 13 01 00 00 00 00 00 DA [18:38:32]Write i2c OK [18:38:32]MH_I2C_Read... [18:38:32]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:38:32]Read from MH i2c: E2 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: E2 0E 00 [18:38:32]MH_I2C_Read... [18:38:32]Read from MH i2c: E2 0E 00 07 56 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6A [18:38:32]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:38:32]wFMCommunicate OK [18:38:32]SAM_PROTO_GetShiftState done [18:38:32]FM_GetShiftState done [18:38:32]req_shift_opened done [18:38:32]requested_item shift.open_date is exist - process it [18:38:32]req_shift_open_date [18:38:32]req_shift_open_date done [18:38:32]produce_requested_data done [18:38:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139477,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:38:32]process_action_free close_receipt [18:38:32]json_value_free [18:38:32]json_value_free done [18:38:32]process_json_proto returns [18:38:32]Send response to host [18:38:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139477,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:38:32]free response buf [18:38:32]execute_script done [18:38:32]execute_script returns [18:38:32]free content buf [18:38:32]Sock 8.Close socket [18:38:32]Sock 8.Thread stoped [18:38:35]OFD Sender: No OFD packet to send [18:38:40]OFD Sender: No OFD packet to send [18:38:45]OFD Sender: No OFD packet to send [18:38:50]OFD Sender: No OFD packet to send [18:38:55]OFD Sender: No OFD packet to send [18:39:00]OFD Sender: No OFD packet to send [18:39:05]OFD Sender: No OFD packet to send [18:39:10]OFD Sender: No OFD packet to send [18:39:15]OFD Sender: No OFD packet to send [18:39:20]OFD Sender: No OFD packet to send [18:39:25]OFD Sender: No OFD packet to send [18:39:30]OFD Sender: No OFD packet to send [18:39:35]OFD Sender: No OFD packet to send [18:39:40]OFD Sender: No OFD packet to send [18:39:41]accept exits with 9 [18:39:41]New connection [18:39:41]New thread 3067141476 created [18:39:41]Thread 3067284836 joined [18:39:41]Waiting for new connection... [18:39:41] Sock 9.Parse request [18:39:41]Sock 9.Check first char [18:39:41]Sock 9.First char is OK [18:39:41]request: POST /json_proto HTTP/1.0 [18:39:41]Method: POST [18:39:41]URL: /json_proto [18:39:41]Method is POST - this is cgi request [18:39:41]url: /json_proto [18:39:41]query_string will be loaded in cgi processing [18:39:41]execute_cgi json_proto POST (null) [18:39:41]execute_cgi path=json_proto method=POST [18:39:41]POST find Content-Length [18:39:41]Host: 172.17.50.196:8080 [18:39:41]Content-Length: 770 [18:39:41]Content-Type: application/json [18:39:41] [18:39:41]POST finish read [18:39:41]Found Content-Length = 770 [18:39:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:39:41]execute_script... [18: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)1094717", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 14.950, "sum" : 1000.16, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "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:39:41]POST & json_proto [18:39:41]process_json_proto [18:39:41]json parsed OK: [18:39:41]protocol is kg_v1.0 [18:39:41]action value=close_receipt [18:39:41]process_action close_receipt [18:39:41]cmd_close_receipt [18:39:41]MH_GetDate [18:39:41]Write to MH i2c: F0 00 00 08 56 4D [18:39:41]Write i2c OK [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: F0 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: F0 09 00 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: F0 09 00 08 56 00 74 7D 22 67 72 0D 1C 67 D2 [18:39:41]GetLastDocTimeStamp 1730313514 [18:39:41]current date 1730313588 [18:39:41]FM_GetShiftState [18:39:41]SAM_PROTO_GetShiftState [18:39:41]wFMCommunicate request_size=4 [18:39:41]MH_SAM_APDU [18:39:41]CAPDU: 80 13 01 00 [18:39:41]Write to MH i2c: E2 08 00 09 56 80 13 01 00 00 00 00 00 DC [18:39:41]Write i2c OK [18:39:41]MH_I2C_Read... [18:39:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:41]Read from MH i2c: E2 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: E2 0E 00 [18:39:41]MH_I2C_Read... [18:39:41]Read from MH i2c: E2 0E 00 09 56 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6C [18:39:41]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:39:41]wFMCommunicate OK [18:39:41]SAM_PROTO_GetShiftState done [18:39:41]FM_GetShiftState done [18:39:41]opened in 1730246278 [18:39:41]opened+sec_in_day 1730332678 [18:39:41]quantity*price = 100015 [18:39:41]sum+1 = 100017 [18:39:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.16 НСП 1% : 8.85 НДС 12% : 106.21 Наличными: 0.00 Безнал.: 1000.16 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 162 30.10.2024 18:39 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139478 ФПД: 7509375604289 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T183948&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139478&fm=7509375604289&tin=02508201610067®Number=0000000000091631&sum=100016 [18:39:42]StoreToDocumentArchive [18:39:42]shift 556 fd 139478 [18:39:42]save to /storage/0556/doc_00139478 [18:39:42]save last doc name /storage/0556/doc_00139478 to /storage/kkm_last_doc_name [18:39:42]save OK [18:39:42]Clear old archive folders... [18:39:42]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:39:42]tlvbuf is 01112FA0 [18:39:42]SAM_PROTO_ClearQueue [18:39:42]wFMCommunicate request_size=4 [18:39:42]MH_SAM_APDU [18:39:42]CAPDU: 80 09 00 00 [18:39:42]Write to MH i2c: E2 08 00 16 56 80 09 00 00 00 00 00 00 DE [18:39:42]Write i2c OK [18:39:42]MH_I2C_Read... [18:39:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:39:42]Read from MH i2c: E2 [18:39:42]MH_I2C_Read... [18:39:42]Read from MH i2c: E2 03 00 [18:39:42]MH_I2C_Read... [18:39:42]Read from MH i2c: E2 03 00 16 56 00 90 00 E0 [18:39:42]RAPDU: 90 00 [18:39:42]wFMCommunicate OK [18:39:42]SAM_PROTO_ClearQueue done [18:39:42]KKMCreateOFDPacket [18:39:42]OFDProtocolAddRootSTLVToBuf [18:39:42]FM_MakeSignedData [18:39:42]FM_MakeSignedData [18:39:42]SAM_PROTO_SignData [18:39:42]wFMCommunicate request_size=4 [18:39:42]MH_SAM_APDU [18:39:42]CAPDU: 80 0D 01 02 [18:39:42]Write to MH i2c: E2 08 00 17 56 80 0D 01 02 00 00 00 00 E6 [18:39:42]Write i2c OK [18:39:42]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 17 56 00 90 00 E1 [18:39:43]RAPDU: 90 00 [18:39:43]wFMCommunicate OK [18:39:43]wFMCommunicate request_size=255 [18:39:43]MH_SAM_APDU [18:39: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 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A2 00 00 00 F4 03 04 00 74 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 20 02 00 35 04 06 00 06 [18:39:43]Write to MH i2c: E2 02 01 18 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A2 00 00 00 F4 03 04 00 74 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 20 02 00 35 04 06 00 06 00 00 D7 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 18 56 00 90 00 E2 [18:39:43]RAPDU: 90 00 [18:39:43]wFMCommunicate OK [18:39:43]wFMCommunicate request_size=10 [18:39:43]MH_SAM_APDU [18:39:43]CAPDU: 80 0D 02 02 05 D4 69 AA 56 41 [18:39:43]Write to MH i2c: E2 0D 00 19 56 80 0D 02 02 05 00 D4 69 AA 56 41 00 00 71 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 03 00 19 56 00 90 00 E3 [18:39:43]RAPDU: 90 00 [18:39:43]wFMCommunicate OK [18:39:43]wFMCommunicate request_size=4 [18:39:43]MH_SAM_APDU [18:39:43]CAPDU: 80 0D 03 02 [18:39:43]Write to MH i2c: E2 08 00 1A 56 80 0D 03 02 00 00 00 00 EB [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 0B 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 0B 00 1A 56 00 CC D0 BD 33 E9 09 CE B8 90 00 F0 [18:39:43]RAPDU: CC D0 BD 33 E9 09 CE B8 90 00 [18:39:43]wFMCommunicate OK [18:39:43]SAM_PROTO_SignData done [18:39:43]FM_MakeSignedData done [18:39:43]CreateOFDProtocolMessage [18:39:43]wFMCommunicate request_size=4 [18:39:43]MH_SAM_APDU [18:39:43]CAPDU: 80 11 00 00 [18:39:43]Write to MH i2c: E2 08 00 1B 56 80 11 00 00 00 00 00 00 EB [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:43]Read from MH i2c: E2 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 17 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: E2 17 00 1B 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 46 [18:39:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:39:43]wFMCommunicate OK [18:39:43]CreateOFDProtocolMessage done [18:39:43]OFDSenderStorePacket 139478 [18:39:43]StoreOFDPacket docnum=139478 [18:39:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 7D D3 07 01 D8 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A2 00 00 00 F4 03 04 00 74 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 20 02 00 35 04 06 00 06 D4 69 AA 56 41 CC D0 BD 33 E9 09 CE B8 [18:39:43]CheckFolder [18:39:43]dirname=/storage/ofd_packets [18:39:43]CheckFolder done [18:39:43]ProducePacketName [18:39:43]name=ofd_packets/00139478 [18:39:43]NVStorageSaveData ofd_packets/00139478 [18:39:43]File name is /storage/ofd_packets/00139478 [18:39:43]Write 301 bytes [18:39:43]NVStorageSaveData done [18:39:43]OFDSenderStorePacket done [18:39:43]KKMCreateOFDPacket done [18:39:43]NVStorageSaveData kkm_last_timestamp [18:39:43]File name is /storage/kkm_last_timestamp [18:39:43]Write 4 bytes [18:39:43]NVStorageSaveData done [18:39:43]ExternCall_PrintAddStr [18:39:43]wPrintStart [18:39:43]Write to MH i2c: 01 00 00 1C 56 72 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 07 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 07 00 1C 56 00 00 00 00 00 FF 0F 87 [18:39:43]RasterBufferAndPrint [18:39:43]line Счет N : (1)1094717 [18:39:43]line ИНН: 02508201610067 [18:39:43]line Контрольно-Кассовый Чек [18:39:43]line ПРОДАЖА [18:39:43]line ТРК (МРК, ГНК) : 63 [18:39:43]line Товар: 2710124130 [18:39:43]line Аи-92-К-2 [18:39:43]line 14.950 * 66.90 [18:39:43]line = 1000.16 [18:39:43]line НДС 12% НСП 1% [18:39:43]line > о реализуемом товаре [18:39:43]line ИТОГО: 1000.16 [18:39:43]line НСП 1% : 8.85 [18:39:43]line НДС 12% : 106.21 [18:39:43]line Наличными: 0.00 [18:39:43]line Безнал.: 1000.16 [18:39:43]line Место: АЗС № 101 "Партнер Нефть" [18:39:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:39:43]line СНО: Общий режим [18:39:43]line Чек 162 30.10.2024 18:39 [18:39:43]line Смена: 556 ФФД: 1.0 [18:39:43]line ЗНМ: 0300000081 [18:39:43]line РНМ: 0000000000091631 [18:39:43]line Версия ККМ: 001 [18:39:43]line Платежная система: Mbank [18:39:43]line ФМ: 0000000000874669 [18:39:43]line ФД: 139478 [18:39:43]line ФПД: 7509375604289 [18:39:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T183948&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139478&fm=7509375604289&tin=02508201610067®Number=0000000000091631&sum=100016 [18:39:43]written 0, free lines is 4095 [18:39:43]OFD Sender: Processing packet 139478 [packets to send 34, broken 33] [18:39:43]ProducePacketName [18:39:43]name=ofd_packets/00139478 [18:39:43]OFD Sender: To server: pG, [18:39:43]CommunicateWithHost lk.salyk.kg:30040 [18:39:43]ConnectInit lk.salyk.kg [18:39:43]Connected sock=10 [18:39:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 7D D3 07 01 D8 EB 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 66 3A 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 B0 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 A2 00 00 00 F4 03 04 00 74 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D6 20 02 00 35 04 06 00 06 D4 69 AA 56 41 CC D0 BD 33 E9 09 CE B8 [18:39:43]Write to MH i2c: 01 00 00 45 56 9B [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 07 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: 01 07 00 45 56 00 00 00 00 00 13 0D C2 [18:39:43]RasterBufferAndPrint [18:39:43]line [18:39:43]line [18:39:43]line [18:39:43]line [18:39:43]line [18:39:43]written 0, free lines is 3353 [18:39:43]MH_Cut [18:39:43]Write to MH i2c: D1 01 00 4C 56 01 74 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: D1 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: D1 01 00 [18:39:43]MH_I2C_Read... [18:39:43]Read from MH i2c: D1 01 00 4C 56 00 73 [18:39:43]Write to MH i2c: 01 00 00 4D 56 A3 [18:39:43]Write i2c OK [18:39:43]MH_I2C_Read... [18:39:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 88 3E 47 00 25 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 38 37 34 36 36 39 10 04 04 00 D6 20 02 00 F4 03 04 00 24 29 22 67 B6 04 01 00 00 37 5B 87 8E 29 AC DA 27 [18:39:44]CommunicateWithHost err = 0 [18:39:44]CheckOFDResponse [18:39:44]1017 (14) - 77093643461234 [18:39:44]1041 (16) - 0000000000874669 [18:39:44]1040 (4) - 139478 [18:39:44]1012 (4) - 30.10.2024 12:40 [18:39:44]1206 (1) - 0 [18:39:44]OFD Sender: Remove packet 139478 [18:39:44]ProducePacketName [18:39:44]name=ofd_packets/00139478 [18:39:44]NVStorageDeleteData [18:39:44]*** Cut start [18:39:44]*** Partial cut [18:39:44]*** CUTSNS_PIN = 1 [18:39:44]OFD Sender: No OFD packet to send [18:39:44]*** CUTSNS_PIN = 0 [18:39:44]*** Brake cut motor [18:39:45]Read from MH i2c: 01 [18:39:45]MH_I2C_Read... [18:39:45]*** Stop cut motor [18:39:45]*** Cut end [18:39:45]Read from MH i2c: 01 07 00 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: 01 07 00 4D 56 00 00 00 00 00 FF 0F B8 [18:39:45]process_action close_receipt done [18:39:45]requested_data is exist [18:39:45]produce_requested_data [18:39:45]requested_item fm.sn is exist - process it [18:39:45]wFMCommunicate request_size=4 [18:39:45]MH_SAM_APDU [18:39:45]CAPDU: 80 11 00 00 [18:39:45]Write to MH i2c: E2 08 00 4E 56 80 11 00 00 00 00 00 00 1E [18:39:45]Write i2c OK [18:39:45]MH_I2C_Read... [18:39:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:39:45]Read from MH i2c: E2 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: E2 17 00 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: E2 17 00 4E 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 79 [18:39:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:39:45]wFMCommunicate OK [18:39:45]requested_item fd.num is exist - process it [18:39:45]SAM_PROTO_GetFieldsCounters [18:39:45]wFMCommunicate request_size=4 [18:39:45]MH_SAM_APDU [18:39:45]CAPDU: 80 13 00 00 [18:39:45]Write to MH i2c: E2 08 00 4F 56 80 13 00 00 00 00 00 00 21 [18:39:45]Write i2c OK [18:39:45]MH_I2C_Read... [18:39:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:39:45]Read from MH i2c: E2 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: E2 62 00 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: E2 62 00 4F 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D6 20 02 00 0E 04 04 00 2C 02 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 51 [18:39:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D6 20 02 00 0E 04 04 00 2C 02 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 [18:39:45]wFMCommunicate OK [18:39:45]SAM_PROTO_GetFieldsCounters done [18:39:45]requested_item shift.num is exist - process it [18:39:45]requested_item shift.opened is exist - process it [18:39:45]req_shift_opened [18:39:45]FM_GetShiftState [18:39:45]SAM_PROTO_GetShiftState [18:39:45]wFMCommunicate request_size=4 [18:39:45]MH_SAM_APDU [18:39:45]CAPDU: 80 13 01 00 [18:39:45]Write to MH i2c: E2 08 00 50 56 80 13 01 00 00 00 00 00 23 [18:39:45]Write i2c OK [18:39:45]MH_I2C_Read... [18:39:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:39:45]Read from MH i2c: E2 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: E2 0E 00 [18:39:45]MH_I2C_Read... [18:39:45]Read from MH i2c: E2 0E 00 50 56 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B3 [18:39:45]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:39:45]wFMCommunicate OK [18:39:45]SAM_PROTO_GetShiftState done [18:39:45]FM_GetShiftState done [18:39:45]req_shift_opened done [18:39:45]requested_item shift.open_date is exist - process it [18:39:45]req_shift_open_date [18:39:45]req_shift_open_date done [18:39:45]produce_requested_data done [18:39:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139478,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:39:45]process_action_free close_receipt [18:39:45]json_value_free [18:39:45]json_value_free done [18:39:45]process_json_proto returns [18:39:45]Send response to host [18:39:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139478,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:39:45]free response buf [18:39:45]execute_script done [18:39:45]execute_script returns [18:39:45]free content buf [18:39:45]Sock 9.Close socket [18:39:45]Sock 9.Thread stoped [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:22]accept exits with 8 [18:40:22]New connection [18:40:22]New thread 3067284836 created [18:40:22]Thread 3067141476 joined [18:40:22]Waiting for new connection... [18:40:22] Sock 8.Parse request [18:40:22]Sock 8.Check first char [18:40:22]Sock 8.First char is OK [18:40:22]request: POST /json_proto HTTP/1.0 [18:40:22]Method: POST [18:40:22]URL: /json_proto [18:40:22]Method is POST - this is cgi request [18:40:22]url: /json_proto [18:40:22]query_string will be loaded in cgi processing [18:40:22]execute_cgi json_proto POST (null) [18:40:22]execute_cgi path=json_proto method=POST [18:40:22]POST find Content-Length [18:40:22]Host: 172.17.50.196:8080 [18:40:22]Content-Length: 784 [18:40:22]Content-Type: application/json [18:40:22] [18:40:22]POST finish read [18:40:22]Found Content-Length = 784 [18:40:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335363", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:22]execute_script... [18: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 : (3)335363", "tax_sys" : 0, "items" : [ { "code": "4700000481453", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro Max 0,45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.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" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:40:22]POST & json_proto [18:40:22]process_json_proto [18:40:22]json parsed OK: [18:40:22]protocol is kg_v1.0 [18:40:22]action value=close_receipt [18:40:22]process_action close_receipt [18:40:22]cmd_close_receipt [18:40:22]MH_GetDate [18:40:22]Write to MH i2c: F0 00 00 51 56 96 [18:40:22]Write i2c OK [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: F0 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: F0 09 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: F0 09 00 51 56 00 9D 7D 22 67 72 0D 1C 67 44 [18:40:22]GetLastDocTimeStamp 1730313588 [18:40:22]current date 1730313629 [18:40:22]FM_GetShiftState [18:40:22]SAM_PROTO_GetShiftState [18:40:22]wFMCommunicate request_size=4 [18:40:22]MH_SAM_APDU [18:40:22]CAPDU: 80 13 01 00 [18:40:22]Write to MH i2c: E2 08 00 52 56 80 13 01 00 00 00 00 00 25 [18:40:22]Write i2c OK [18:40:22]MH_I2C_Read... [18:40:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:22]Read from MH i2c: E2 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 0E 00 [18:40:22]MH_I2C_Read... [18:40:22]Read from MH i2c: E2 0E 00 52 56 00 09 00 01 86 76 21 67 00 00 00 00 90 00 B5 [18:40:22]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:40:22]wFMCommunicate OK [18:40:22]SAM_PROTO_GetShiftState done [18:40:22]FM_GetShiftState done [18:40:22]opened in 1730246278 [18:40:22]opened+sec_in_day 1730332678 [18:40:22]quantity*price = 9500 [18:40:22]sum+1 = 9501 [18:40:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 0.00 Безнал.: 95.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 163 30.10.2024 18:40 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139479 ФПД: 251639205605072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184029&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139479&fm=251639205605072&tin=02508201610067®Number=0000000000091631&sum=9500 0 [18:40:24]StoreToDocumentArchive [18:40:24]shift 556 fd 139479 [18:40:24]save to /storage/0556/doc_00139479 [18:40:24]save last doc name /storage/0556/doc_00139479 to /storage/kkm_last_doc_name [18:40:24]save OK [18:40:24]Clear old archive folders... [18:40:24]ProcessDocumentItem done err = 0, tmpTLVsize=288 [18:40:24]tlvbuf is 011D77D0 [18:40:24]SAM_PROTO_ClearQueue [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 09 00 00 [18:40:24]Write to MH i2c: E2 08 00 5F 56 80 09 00 00 00 00 00 00 27 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 03 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 03 00 5F 56 00 90 00 29 [18:40:24]RAPDU: 90 00 [18:40:24]wFMCommunicate OK [18:40:24]SAM_PROTO_ClearQueue done [18:40:24]KKMCreateOFDPacket [18:40:24]OFDProtocolAddRootSTLVToBuf [18:40:24]FM_MakeSignedData [18:40:24]FM_MakeSignedData [18:40:24]SAM_PROTO_SignData [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 0D 01 02 [18:40:24]Write to MH i2c: E2 08 00 60 56 80 0D 01 02 00 00 00 00 2F [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 03 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 03 00 60 56 00 90 00 2A [18:40:24]RAPDU: 90 00 [18:40:24]wFMCommunicate OK [18:40:24]wFMCommunicate request_size=255 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 0D 02 02 FA 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9D 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 [18:40:24]Write to MH i2c: E2 02 01 61 56 80 0D 02 02 FA 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9D 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 00 00 8E [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 03 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 03 00 61 56 00 90 00 2B [18:40:24]RAPDU: 90 00 [18:40:24]wFMCommunicate OK [18:40:24]wFMCommunicate request_size=47 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 0D 02 02 2A 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 20 02 00 35 04 06 00 E4 DD 51 76 2E D0 [18:40:24]Write to MH i2c: E2 32 00 62 56 80 0D 02 02 2A 00 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 20 02 00 35 04 06 00 E4 DD 51 76 2E D0 00 00 74 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:40:24]Read from MH i2c: E2 03 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 03 00 62 56 00 90 00 2C [18:40:24]RAPDU: 90 00 [18:40:24]wFMCommunicate OK [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 0D 03 02 [18:40:24]Write to MH i2c: E2 08 00 63 56 80 0D 03 02 00 00 00 00 34 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 0B 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 0B 00 63 56 00 BF 60 0C 37 59 D8 A8 86 90 00 F6 [18:40:24]RAPDU: BF 60 0C 37 59 D8 A8 86 90 00 [18:40:24]wFMCommunicate OK [18:40:24]SAM_PROTO_SignData done [18:40:24]FM_MakeSignedData done [18:40:24]CreateOFDProtocolMessage [18:40:24]wFMCommunicate request_size=4 [18:40:24]MH_SAM_APDU [18:40:24]CAPDU: 80 11 00 00 [18:40:24]Write to MH i2c: E2 08 00 64 56 80 11 00 00 00 00 00 00 34 [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]OFD Sender: No OFD packet to send [18:40:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:24]Read from MH i2c: E2 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: E2 17 00 64 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8F [18:40:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:40:24]wFMCommunicate OK [18:40:24]CreateOFDProtocolMessage done [18:40:24]OFDSenderStorePacket 139479 [18:40:24]StoreOFDPacket docnum=139479 [18:40:24]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 34 01 00 00 77 28 2C 01 2A BB 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9D 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 20 02 00 35 04 06 00 E4 DD 51 76 2E D0 BF 60 0C 37 59 D8 A8 86 [18:40:24]CheckFolder [18:40:24]dirname=/storage/ofd_packets [18:40:24]CheckFolder done [18:40:24]ProducePacketName [18:40:24]name=ofd_packets/00139479 [18:40:24]NVStorageSaveData ofd_packets/00139479 [18:40:24]File name is /storage/ofd_packets/00139479 [18:40:24]Write 338 bytes [18:40:24]NVStorageSaveData done [18:40:24]OFDSenderStorePacket done [18:40:24]KKMCreateOFDPacket done [18:40:24]NVStorageSaveData kkm_last_timestamp [18:40:24]File name is /storage/kkm_last_timestamp [18:40:24]Write 4 bytes [18:40:24]NVStorageSaveData done [18:40:24]ExternCall_PrintAddStr [18:40:24]wPrintStart [18:40:24]Write to MH i2c: 01 00 00 65 56 BB [18:40:24]Write i2c OK [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: 01 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: 01 07 00 [18:40:24]MH_I2C_Read... [18:40:24]Read from MH i2c: 01 07 00 65 56 00 00 00 00 00 FF 0F D0 [18:40:24]RasterBufferAndPrint [18:40:24]line Счет N : (3)335363 [18:40:24]line ИНН: 02508201610067 [18:40:24]line Контрольно-Кассовый Чек [18:40:24]line ПРОДАЖА [18:40:24]line Товар: 4700000481453 [18:40:24]line Напиток энерг Nitro Max 0,45 ж/б [18:40:24]line 1.000 * 95.00 [18:40:24]line = 95.00 [18:40:24]line НДС 12% НСП 1% [18:40:24]line > о реализуемом товаре [18:40:24]line ИТОГО: 95.00 [18:40:24]line НСП 1% : 0.84 [18:40:24]line НДС 12% : 10.09 [18:40:24]line Наличными: 0.00 [18:40:24]line Безнал.: 95.00 [18:40:24]line Место: АЗС № 101 "Партнер Нефть" [18:40:24]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:40:24]line СНО: Общий режим [18:40:24]line Чек 163 30.10.2024 18:40 [18:40:24]line Смена: 556 ФФД: 1.0 [18:40:24]line ЗНМ: 0300000081 [18:40:24]line РНМ: 0000000000091631 [18:40:24]line Версия ККМ: 001 [18:40:24]line Платежная система: Mbank [18:40:24]line ФМ: 0000000000874669 [18:40:24]line ФД: 139479 [18:40:24]line ФПД: 251639205605072 [18:40:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184029&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139479&fm=251639205605072&tin=02508201610067®Number=0000000000091631&sum=9500 [18:40:25]OFD Sender: Processing packet 139479 [packets to send 34, broken 33] [18:40:25]ProducePacketName [18:40:25]name=ofd_packets/00139479 [18:40:25]OFD Sender: To server: pG, [18:40:25]CommunicateWithHost lk.salyk.kg:30040 [18:40:25]ConnectInit lk.salyk.kg [18:40:25]line 0 [18:40:25]written 0, free lines is 4095 [18:40:25]Connected sock=10 [18:40:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 34 01 00 00 77 28 2C 01 2A BB 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9D 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 20 02 00 35 04 06 00 E4 DD 51 76 2E D0 BF 60 0C 37 59 D8 A8 86 [18:40:25]recv_with_timeout no data received [18:40:25]CommunicateWithHost answer receiving error [18:40:25]CommunicateWithHost err = -3 [18:40:25]OFD Sender: Server communicate error [18:40:25]Write to MH i2c: 01 00 00 8F 56 E5 [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 07 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: 01 07 00 8F 56 00 00 00 00 00 F4 0C EC [18:40:25]RasterBufferAndPrint [18:40:25]line [18:40:25]line [18:40:25]line [18:40:25]line [18:40:25]line [18:40:25]written 0, free lines is 3322 [18:40:25]MH_Cut [18:40:25]Write to MH i2c: D1 01 00 96 56 01 BE [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: D1 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: D1 01 00 [18:40:25]MH_I2C_Read... [18:40:25]Read from MH i2c: D1 01 00 96 56 00 BD [18:40:25]Write to MH i2c: 01 00 00 97 56 ED [18:40:25]Write i2c OK [18:40:25]MH_I2C_Read... [18:40:26]*** Cut start [18:40:26]*** Partial cut [18:40:26]*** CUTSNS_PIN = 1 [18:40:26]*** CUTSNS_PIN = 0 [18:40:26]*** Brake cut motor [18:40:26]Read from MH i2c: 01 [18:40:26]MH_I2C_Read... [18:40:26]*** Stop cut motor [18:40:26]*** Cut end [18:40:26]Read from MH i2c: 01 07 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: 01 07 00 97 56 00 00 00 00 00 FF 0F 02 [18:40:26]process_action close_receipt done [18:40:26]requested_data is exist [18:40:26]produce_requested_data [18:40:26]requested_item fm.sn is exist - process it [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 11 00 00 [18:40:26]Write to MH i2c: E2 08 00 98 56 80 11 00 00 00 00 00 00 68 [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 17 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 17 00 98 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C3 [18:40:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:40:26]wFMCommunicate OK [18:40:26]requested_item fd.num is exist - process it [18:40:26]SAM_PROTO_GetFieldsCounters [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 13 00 00 [18:40:26]Write to MH i2c: E2 08 00 99 56 80 13 00 00 00 00 00 00 6B [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 62 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 62 00 99 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D7 20 02 00 0E 04 04 00 2C 02 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 9F [18:40:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D7 20 02 00 0E 04 04 00 2C 02 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 [18:40:26]wFMCommunicate OK [18:40:26]SAM_PROTO_GetFieldsCounters done [18:40:26]requested_item shift.num is exist - process it [18:40:26]requested_item shift.opened is exist - process it [18:40:26]req_shift_opened [18:40:26]FM_GetShiftState [18:40:26]SAM_PROTO_GetShiftState [18:40:26]wFMCommunicate request_size=4 [18:40:26]MH_SAM_APDU [18:40:26]CAPDU: 80 13 01 00 [18:40:26]Write to MH i2c: E2 08 00 9A 56 80 13 01 00 00 00 00 00 6D [18:40:26]Write i2c OK [18:40:26]MH_I2C_Read... [18:40:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:40:26]Read from MH i2c: E2 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 0E 00 [18:40:26]MH_I2C_Read... [18:40:26]Read from MH i2c: E2 0E 00 9A 56 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FD [18:40:26]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:40:27]wFMCommunicate OK [18:40:27]SAM_PROTO_GetShiftState done [18:40:27]FM_GetShiftState done [18:40:27]req_shift_opened done [18:40:27]requested_item shift.open_date is exist - process it [18:40:27]req_shift_open_date [18:40:27]req_shift_open_date done [18:40:27]produce_requested_data done [18:40:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139479,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:40:27]process_action_free close_receipt [18:40:27]json_value_free [18:40:27]json_value_free done [18:40:27]process_json_proto returns [18:40:27]Send response to host [18:40:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139479,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:40:27]free response buf [18:40:27]execute_script done [18:40:27]execute_script returns [18:40:27]free content buf [18:40:27]Sock 8.Close socket [18:40:27]Sock 8.Thread stoped [18:40:30]OFD Sender: Processing packet 139479 [packets to send 34, broken 33] [18:40:30]ProducePacketName [18:40:30]name=ofd_packets/00139479 [18:40:30]OFD Sender: To server: pG, [18:40:30]CommunicateWithHost lk.salyk.kg:30040 [18:40:30]ConnectInit lk.salyk.kg [18:40:30]Connected sock=8 [18:40:30]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 34 01 00 00 77 28 2C 01 2A BB 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9D 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 20 02 00 35 04 06 00 E4 DD 51 76 2E D0 BF 60 0C 37 59 D8 A8 86 [18:40:30]recv_with_timeout no data received [18:40:30]CommunicateWithHost answer receiving error [18:40:30]CommunicateWithHost err = -3 [18:40:30]OFD Sender: Server communicate error [18:40:35]OFD Sender: Processing packet 139479 [packets to send 34, broken 33] [18:40:35]ProducePacketName [18:40:35]name=ofd_packets/00139479 [18:40:35]OFD Sender: To server: pG, [18:40:35]CommunicateWithHost lk.salyk.kg:30040 [18:40:35]ConnectInit lk.salyk.kg [18:40:35]Connected sock=8 [18:40:35]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 34 01 00 00 77 28 2C 01 2A BB 5A 03 01 00 03 00 20 01 1E 04 01 00 01 23 04 72 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 31 34 35 33 06 04 2E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 4D 61 78 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 25 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A3 00 00 00 F4 03 04 00 9D 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 20 02 00 35 04 06 00 E4 DD 51 76 2E D0 BF 60 0C 37 59 D8 A8 86 [18:40:35]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8D 9E 47 00 C4 45 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D7 20 02 00 F4 03 04 00 57 29 22 67 B6 04 01 00 00 B4 26 B6 BC 3B 4F 50 9B [18:40:35]CommunicateWithHost err = 0 [18:40:35]CheckOFDResponse [18:40:35]1017 (14) - 77093643461234 [18:40:35]1041 (16) - 0000000000874669 [18:40:35]1040 (4) - 139479 [18:40:35]1012 (4) - 30.10.2024 12:40 [18:40:35]1206 (1) - 0 [18:40:35]OFD Sender: Remove packet 139479 [18:40:35]ProducePacketName [18:40:35]name=ofd_packets/00139479 [18:40:35]NVStorageDeleteData [18:40:36]OFD Sender: No OFD packet to send [18:40:41]OFD Sender: No OFD packet to send [18:40:46]OFD Sender: No OFD packet to send [18:40:51]OFD Sender: No OFD packet to send [18:40:56]OFD Sender: No OFD packet to send [18:41:01]OFD Sender: No OFD packet to send [18:41:06]OFD Sender: No OFD packet to send [18:41:11]OFD Sender: No OFD packet to send [18:41:16]OFD Sender: No OFD packet to send [18:41:21]OFD Sender: No OFD packet to send [18:41:26]OFD Sender: No OFD packet to send [18:41:31]OFD Sender: No OFD packet to send [18:41:36]OFD Sender: No OFD packet to send [18:41:36]accept exits with 9 [18:41:36]New connection [18:41:36]New thread 3067141476 created [18:41:36]Thread 3067284836 joined [18:41:36]Waiting for new connection... [18:41:36] Sock 9.Parse request [18:41:36]Sock 9.Check first char [18:41:36]Sock 9.First char is OK [18:41:36]request: POST /json_proto HTTP/1.0 [18:41:36]Method: POST [18:41:36]URL: /json_proto [18:41:36]Method is POST - this is cgi request [18:41:36]url: /json_proto [18:41:36]query_string will be loaded in cgi processing [18:41:36]execute_cgi json_proto POST (null) [18:41:36]execute_cgi path=json_proto method=POST [18:41:36]POST find Content-Length [18:41:36]Host: 172.17.50.196:8080 [18:41:36]Content-Length: 767 [18:41:36]Content-Type: application/json [18:41:36] [18:41:36]POST finish read [18:41:36]Found Content-Length = 767 [18:41:36]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.060, "sum" : 405.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" : 405.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:36]execute_script... [18: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)1094718", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 6.060, "sum" : 405.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" : 405.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:41:36]POST & json_proto [18:41:36]process_json_proto [18:41:36]json parsed OK: [18:41:36]protocol is kg_v1.0 [18:41:36]action value=close_receipt [18:41:36]process_action close_receipt [18:41:36]cmd_close_receipt [18:41:36]MH_GetDate [18:41:36]Write to MH i2c: F0 00 00 9B 56 E0 [18:41:36]Write i2c OK [18:41:36]MH_I2C_Read... [18:41:36]Read from MH i2c: F0 [18:41:36]MH_I2C_Read... [18:41:36]Read from MH i2c: F0 09 00 [18:41:36]MH_I2C_Read... [18:41:36]Read from MH i2c: F0 09 00 9B 56 00 E6 7D 22 67 72 0D 1C 67 D7 [18:41:36]GetLastDocTimeStamp 1730313629 [18:41:36]current date 1730313702 [18:41:36]FM_GetShiftState [18:41:36]SAM_PROTO_GetShiftState [18:41:36]wFMCommunicate request_size=4 [18:41:36]MH_SAM_APDU [18:41:36]CAPDU: 80 13 01 00 [18:41:36]Write to MH i2c: E2 08 00 9C 56 80 13 01 00 00 00 00 00 6F [18:41:36]Write i2c OK [18:41:36]MH_I2C_Read... [18:41:36]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:36]Read from MH i2c: E2 [18:41:36]MH_I2C_Read... [18:41:36]Read from MH i2c: E2 0E 00 [18:41:36]MH_I2C_Read... [18:41:36]Read from MH i2c: E2 0E 00 9C 56 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FF [18:41:36]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:41:36]wFMCommunicate OK [18:41:36]SAM_PROTO_GetShiftState done [18:41:36]FM_GetShiftState done [18:41:36]opened in 1730246278 [18:41:36]opened+sec_in_day 1730332678 [18:41:36]quantity*price = 40541 [18:41:36]sum+1 = 40542 [18:41:36]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 405.41 НСП 1% : 3.59 НДС 12% : 43.05 Наличными: 0.00 Безнал.: 405.41 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 164 30.10.2024 18:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139480 ФПД: 244940259397722 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184142&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139480&fm=244940259397722&tin=02508201610067®Number=0000000000091631&sum=40541 [18:41:37]StoreToDocumentArchive [18:41:37]shift 556 fd 139480 [18:41:37]save to /storage/0556/doc_00139480 [18:41:37]save last doc name /storage/0556/doc_00139480 to /storage/kkm_last_doc_name [18:41:37]save OK [18:41:37]Clear old archive folders... [18:41:37]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:41:37]tlvbuf is B6FA9290 [18:41:37]SAM_PROTO_ClearQueue [18:41:37]wFMCommunicate request_size=4 [18:41:37]MH_SAM_APDU [18:41:37]CAPDU: 80 09 00 00 [18:41:37]Write to MH i2c: E2 08 00 A9 56 80 09 00 00 00 00 00 00 71 [18:41:37]Write i2c OK [18:41:37]MH_I2C_Read... [18:41:37]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:41:37]Read from MH i2c: E2 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 03 00 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 03 00 A9 56 00 90 00 73 [18:41:37]RAPDU: 90 00 [18:41:37]wFMCommunicate OK [18:41:37]SAM_PROTO_ClearQueue done [18:41:37]KKMCreateOFDPacket [18:41:37]OFDProtocolAddRootSTLVToBuf [18:41:37]FM_MakeSignedData [18:41:37]FM_MakeSignedData [18:41:37]SAM_PROTO_SignData [18:41:37]wFMCommunicate request_size=4 [18:41:37]MH_SAM_APDU [18:41:37]CAPDU: 80 0D 01 02 [18:41:37]Write to MH i2c: E2 08 00 AA 56 80 0D 01 02 00 00 00 00 79 [18:41:37]Write i2c OK [18:41:37]MH_I2C_Read... [18:41:37]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:41:37]Read from MH i2c: E2 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 03 00 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 03 00 AA 56 00 90 00 74 [18:41:37]RAPDU: 90 00 [18:41:37]wFMCommunicate OK [18:41:37]wFMCommunicate request_size=255 [18:41:37]MH_SAM_APDU [18:41:37]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AC 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E6 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D8 20 02 00 35 04 06 00 DE [18:41:37]Write to MH i2c: E2 02 01 AB 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AC 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E6 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D8 20 02 00 35 04 06 00 DE 00 00 52 [18:41:37]Write i2c OK [18:41:37]MH_I2C_Read... [18:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:37]Read from MH i2c: E2 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 03 00 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 03 00 AB 56 00 90 00 75 [18:41:37]RAPDU: 90 00 [18:41:37]wFMCommunicate OK [18:41:37]wFMCommunicate request_size=10 [18:41:37]MH_SAM_APDU [18:41:37]CAPDU: 80 0D 02 02 05 C5 99 27 10 5A [18:41:37]Write to MH i2c: E2 0D 00 AC 56 80 0D 02 02 05 00 C5 99 27 10 5A 00 00 75 [18:41:37]Write i2c OK [18:41:37]MH_I2C_Read... [18:41:37]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:41:37]Read from MH i2c: E2 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 03 00 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 03 00 AC 56 00 90 00 76 [18:41:37]RAPDU: 90 00 [18:41:37]wFMCommunicate OK [18:41:37]wFMCommunicate request_size=4 [18:41:37]MH_SAM_APDU [18:41:37]CAPDU: 80 0D 03 02 [18:41:37]Write to MH i2c: E2 08 00 AD 56 80 0D 03 02 00 00 00 00 7E [18:41:37]Write i2c OK [18:41:37]MH_I2C_Read... [18:41:37]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:41:37]Read from MH i2c: E2 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 0B 00 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 0B 00 AD 56 00 4A E6 17 31 82 C7 A0 AC 90 00 8C [18:41:37]RAPDU: 4A E6 17 31 82 C7 A0 AC 90 00 [18:41:37]wFMCommunicate OK [18:41:37]SAM_PROTO_SignData done [18:41:37]FM_MakeSignedData done [18:41:37]CreateOFDProtocolMessage [18:41:37]wFMCommunicate request_size=4 [18:41:37]MH_SAM_APDU [18:41:37]CAPDU: 80 11 00 00 [18:41:37]Write to MH i2c: E2 08 00 AE 56 80 11 00 00 00 00 00 00 7E [18:41:37]Write i2c OK [18:41:37]MH_I2C_Read... [18:41:37]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:37]Read from MH i2c: E2 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 17 00 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: E2 17 00 AE 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D9 [18:41:37]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:41:37]wFMCommunicate OK [18:41:37]CreateOFDProtocolMessage done [18:41:37]OFDSenderStorePacket 139480 [18:41:37]StoreOFDPacket docnum=139480 [18:41:37]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 64 B4 07 01 E4 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AC 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E6 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D8 20 02 00 35 04 06 00 DE C5 99 27 10 5A 4A E6 17 31 82 C7 A0 AC [18:41:37]CheckFolder [18:41:37]dirname=/storage/ofd_packets [18:41:37]CheckFolder done [18:41:37]ProducePacketName [18:41:37]name=ofd_packets/00139480 [18:41:37]NVStorageSaveData ofd_packets/00139480 [18:41:37]File name is /storage/ofd_packets/00139480 [18:41:37]Write 301 bytes [18:41:37]NVStorageSaveData done [18:41:37]OFDSenderStorePacket done [18:41:37]KKMCreateOFDPacket done [18:41:37]NVStorageSaveData kkm_last_timestamp [18:41:37]File name is /storage/kkm_last_timestamp [18:41:37]Write 4 bytes [18:41:37]NVStorageSaveData done [18:41:37]ExternCall_PrintAddStr [18:41:37]wPrintStart [18:41:37]Write to MH i2c: 01 00 00 AF 56 05 [18:41:37]Write i2c OK [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: 01 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: 01 07 00 [18:41:37]MH_I2C_Read... [18:41:37]Read from MH i2c: 01 07 00 AF 56 00 00 00 00 00 FF 0F 1A [18:41:37]RasterBufferAndPrint [18:41:37]line Счет N : (1)1094718 [18:41:37]line ИНН: 02508201610067 [18:41:37]line Контрольно-Кассовый Чек [18:41:37]line ПРОДАЖА [18:41:37]line ТРК (МРК, ГНК) : 33 [18:41:37]line Товар: 2710124130 [18:41:37]line Аи-92-К-2 [18:41:37]line 6.060 * 66.90 [18:41:37]line = 405.41 [18:41:37]line НДС 12% НСП 1% [18:41:37]line > о реализуемом товаре [18:41:37]line ИТОГО: 405.41 [18:41:37]line НСП 1% : 3.59 [18:41:37]line НДС 12% : 43.05 [18:41:37]line Наличными: 0.00 [18:41:37]line Безнал.: 405.41 [18:41:37]line Место: АЗС № 101 "Партнер Нефть" [18:41:37]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:41:37]line СНО: Общий режим [18:41:37]line Чек 164 30.10.2024 18:41 [18:41:37]line Смена: 556 ФФД: 1.0 [18:41:37]line ЗНМ: 0300000081 [18:41:37]line РНМ: 0000000000091631 [18:41:37]line Версия ККМ: 001 [18:41:37]line Платежная система: Mbank [18:41:37]line ФМ: 0000000000874669 [18:41:37]line ФД: 139480 [18:41:37]line ФПД: 244940259397722 [18:41:37]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184142&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139480&fm=244940259397722&tin=02508201610067®Number=0000000000091631&sum=40541 [18:41:37]written 0, free lines is 4095 [18:41:37]OFD Sender: Processing packet 139480 [packets to send 34, broken 33] [18:41:37]ProducePacketName [18:41:37]name=ofd_packets/00139480 [18:41:38]OFD Sender: To server: pG, [18:41:38]CommunicateWithHost lk.salyk.kg:30040 [18:41:38]ConnectInit lk.salyk.kg [18:41:38]Connected sock=10 [18:41:38]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 64 B4 07 01 E4 9A 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 AC 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 5D 9E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5D 9E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 67 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D1 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 5D 9E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A4 00 00 00 F4 03 04 00 E6 7D 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D8 20 02 00 35 04 06 00 DE C5 99 27 10 5A 4A E6 17 31 82 C7 A0 AC [18:41:38]Write to MH i2c: 01 00 00 D8 56 2E [18:41:38]Write i2c OK [18:41:38]MH_I2C_Read... [18:41:38]Read from MH i2c: 01 [18:41:38]MH_I2C_Read... [18:41:38]Read from MH i2c: 01 07 00 [18:41:38]MH_I2C_Read... [18:41:38]Read from MH i2c: 01 07 00 D8 56 00 00 00 00 00 0D 0D 4F [18:41:38]RasterBufferAndPrint [18:41:38]line [18:41:38]line [18:41:38]line [18:41:38]line [18:41:38]line [18:41:38]written 0, free lines is 3347 [18:41:38]MH_Cut [18:41:38]Write to MH i2c: D1 01 00 DF 56 01 07 [18:41:38]Write i2c OK [18:41:38]MH_I2C_Read... [18:41:38]Read from MH i2c: D1 [18:41:38]MH_I2C_Read... [18:41:38]Read from MH i2c: D1 01 00 [18:41:38]MH_I2C_Read... [18:41:38]Read from MH i2c: D1 01 00 DF 56 00 06 [18:41:38]Write to MH i2c: 01 00 00 E0 56 36 [18:41:38]Write i2c OK [18:41:38]MH_I2C_Read... [18:41:38]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A2 3A 47 00 39 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 38 37 34 36 36 39 10 04 04 00 D8 20 02 00 F4 03 04 00 96 29 22 67 B6 04 01 00 00 E1 BD 6E 67 13 12 69 2F [18:41:38]CommunicateWithHost err = 0 [18:41:38]CheckOFDResponse [18:41:38]1017 (14) - 77093643461234 [18:41:38]1041 (16) - 0000000000874669 [18:41:38]1040 (4) - 139480 [18:41:38]1012 (4) - 30.10.2024 12:41 [18:41:38]1206 (1) - 0 [18:41:38]OFD Sender: Remove packet 139480 [18:41:38]ProducePacketName [18:41:38]name=ofd_packets/00139480 [18:41:38]NVStorageDeleteData [18:41:39]*** Cut start [18:41:39]*** Partial cut [18:41:39]*** CUTSNS_PIN = 1 [18:41:39]OFD Sender: No OFD packet to send [18:41:39]*** CUTSNS_PIN = 0 [18:41:39]*** Brake cut motor [18:41:39]Read from MH i2c: 01 [18:41:39]MH_I2C_Read... [18:41:39]*** Stop cut motor [18:41:39]*** Cut end [18:41:39]Read from MH i2c: 01 07 00 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: 01 07 00 E0 56 00 00 00 00 00 FF 0F 4B [18:41:39]process_action close_receipt done [18:41:39]requested_data is exist [18:41:39]produce_requested_data [18:41:39]requested_item fm.sn is exist - process it [18:41:39]wFMCommunicate request_size=4 [18:41:39]MH_SAM_APDU [18:41:39]CAPDU: 80 11 00 00 [18:41:39]Write to MH i2c: E2 08 00 E1 56 80 11 00 00 00 00 00 00 B1 [18:41:39]Write i2c OK [18:41:39]MH_I2C_Read... [18:41:39]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:41:39]Read from MH i2c: E2 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 17 00 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 17 00 E1 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0C [18:41:39]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:41:39]wFMCommunicate OK [18:41:39]requested_item fd.num is exist - process it [18:41:39]SAM_PROTO_GetFieldsCounters [18:41:39]wFMCommunicate request_size=4 [18:41:39]MH_SAM_APDU [18:41:39]CAPDU: 80 13 00 00 [18:41:39]Write to MH i2c: E2 08 00 E2 56 80 13 00 00 00 00 00 00 B4 [18:41:39]Write i2c OK [18:41:39]MH_I2C_Read... [18:41:39]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:41:39]Read from MH i2c: E2 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 62 00 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 62 00 E2 56 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D8 20 02 00 0E 04 04 00 2C 02 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 EC [18:41:39]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D8 20 02 00 0E 04 04 00 2C 02 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 [18:41:39]wFMCommunicate OK [18:41:39]SAM_PROTO_GetFieldsCounters done [18:41:39]requested_item shift.num is exist - process it [18:41:39]requested_item shift.opened is exist - process it [18:41:39]req_shift_opened [18:41:39]FM_GetShiftState [18:41:39]SAM_PROTO_GetShiftState [18:41:39]wFMCommunicate request_size=4 [18:41:39]MH_SAM_APDU [18:41:39]CAPDU: 80 13 01 00 [18:41:39]Write to MH i2c: E2 08 00 E3 56 80 13 01 00 00 00 00 00 B6 [18:41:39]Write i2c OK [18:41:39]MH_I2C_Read... [18:41:39]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:41:39]Read from MH i2c: E2 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 0E 00 [18:41:39]MH_I2C_Read... [18:41:39]Read from MH i2c: E2 0E 00 E3 56 00 09 00 01 86 76 21 67 00 00 00 00 90 00 46 [18:41:39]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:41:39]wFMCommunicate OK [18:41:39]SAM_PROTO_GetShiftState done [18:41:39]FM_GetShiftState done [18:41:39]req_shift_opened done [18:41:39]requested_item shift.open_date is exist - process it [18:41:39]req_shift_open_date [18:41:39]req_shift_open_date done [18:41:39]produce_requested_data done [18:41:39]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139480,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:41:39]process_action_free close_receipt [18:41:39]json_value_free [18:41:39]json_value_free done [18:41:39]process_json_proto returns [18:41:39]Send response to host [18:41:39]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139480,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:41:39]free response buf [18:41:39]execute_script done [18:41:39]execute_script returns [18:41:39]free content buf [18:41:39]Sock 9.Close socket [18:41:39]Sock 9.Thread stoped [18:41:44]OFD Sender: No OFD packet to send [18:41:49]OFD Sender: No OFD packet to send [18:41:54]OFD Sender: No OFD packet to send [18:41:59]OFD Sender: No OFD packet to send [18:42:04]OFD Sender: No OFD packet to send [18:42:09]OFD Sender: No OFD packet to send [18:42:14]OFD Sender: No OFD packet to send [18:42:19]OFD Sender: No OFD packet to send [18:42:24]OFD Sender: No OFD packet to send [18:42:29]OFD Sender: No OFD packet to send [18:42:34]OFD Sender: No OFD packet to send [18:42:39]OFD Sender: No OFD packet to send [18:42:44]OFD Sender: No OFD packet to send [18:42:49]OFD Sender: No OFD packet to send [18:42:54]OFD Sender: No OFD packet to send [18:42:59]OFD Sender: No OFD packet to send [18:43:04]OFD Sender: No OFD packet to send [18:43:09]OFD Sender: No OFD packet to send [18:43:14]OFD Sender: No OFD packet to send [18:43:19]OFD Sender: No OFD packet to send [18:43:24]OFD Sender: No OFD packet to send [18:43:29]OFD Sender: No OFD packet to send [18:43:34]OFD Sender: No OFD packet to send [18:43:39]OFD Sender: No OFD packet to send [18:43:44]OFD Sender: No OFD packet to send [18:43:49]OFD Sender: No OFD packet to send [18:43:54]OFD Sender: No OFD packet to send [18:43:59]OFD Sender: No OFD packet to send [18:44:04]OFD Sender: No OFD packet to send [18:44:09]OFD Sender: No OFD packet to send [18:44:14]OFD Sender: No OFD packet to send [18:44:19]OFD Sender: No OFD packet to send [18:44:24]OFD Sender: No OFD packet to send [18:44:29]OFD Sender: No OFD packet to send [18:44:34]OFD Sender: No OFD packet to send [18:44:39]OFD Sender: No OFD packet to send [18:44:44]OFD Sender: No OFD packet to send [18:44:49]OFD Sender: No OFD packet to send [18:44:54]OFD Sender: No OFD packet to send [18:44:59]OFD Sender: No OFD packet to send [18:45:04]OFD Sender: No OFD packet to send [18:45:09]OFD Sender: No OFD packet to send [18:45:14]OFD Sender: No OFD packet to send [18:45:19]OFD Sender: No OFD packet to send [18:45:24]OFD Sender: No OFD packet to send [18:45:29]OFD Sender: No OFD packet to send [18:45:30]accept exits with 8 [18:45:30]New connection [18:45:30]New thread 3067284836 created [18:45:30]Thread 3067141476 joined [18:45:30]Waiting for new connection... [18:45:30] Sock 8.Parse request [18:45:30]Sock 8.Check first char [18:45:30]Sock 8.First char is OK [18:45:30]request: POST /json_proto HTTP/1.0 [18:45:30]Method: POST [18:45:30]URL: /json_proto [18:45:30]Method is POST - this is cgi request [18:45:30]url: /json_proto [18:45:30]query_string will be loaded in cgi processing [18:45:30]execute_cgi json_proto POST (null) [18:45:30]execute_cgi path=json_proto method=POST [18:45:30]POST find Content-Length [18:45:30]Host: 172.17.50.196:8080 [18:45:30]Content-Length: 767 [18:45:30]Content-Type: application/json [18:45:30] [18:45:30]POST finish read [18:45:30]Found Content-Length = 767 [18:45:30]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:30]execute_script... [18:45: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)1094720", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 5.980, "sum" : 400.06, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 400.06 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:45:30]POST & json_proto [18:45:30]process_json_proto [18:45:30]json parsed OK: [18:45:30]protocol is kg_v1.0 [18:45:30]action value=close_receipt [18:45:30]process_action close_receipt [18:45:30]cmd_close_receipt [18:45:30]MH_GetDate [18:45:30]Write to MH i2c: F0 00 00 E4 56 29 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 09 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: F0 09 00 E4 56 00 D0 7E 22 67 72 0D 1C 67 0B [18:45:30]GetLastDocTimeStamp 1730313702 [18:45:30]current date 1730313936 [18:45:30]FM_GetShiftState [18:45:30]SAM_PROTO_GetShiftState [18:45:30]wFMCommunicate request_size=4 [18:45:30]MH_SAM_APDU [18:45:30]CAPDU: 80 13 01 00 [18:45:30]Write to MH i2c: E2 08 00 E5 56 80 13 01 00 00 00 00 00 B8 [18:45:30]Write i2c OK [18:45:30]MH_I2C_Read... [18:45:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:30]Read from MH i2c: E2 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 [18:45:30]MH_I2C_Read... [18:45:30]Read from MH i2c: E2 0E 00 E5 56 00 09 00 01 86 76 21 67 00 00 00 00 90 00 48 [18:45:30]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:45:30]wFMCommunicate OK [18:45:30]SAM_PROTO_GetShiftState done [18:45:30]FM_GetShiftState done [18:45:30]opened in 1730246278 [18:45:30]opened+sec_in_day 1730332678 [18:45:30]quantity*price = 40006 [18:45:30]sum+1 = 40007 [18:45:30]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 400.06 НСП 1% : 3.54 НДС 12% : 42.48 Наличными: 0.00 Безнал.: 400.06 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 165 30.10.2024 18:45 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139481 ФПД: 19809966468960 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184536&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139481&fm=19809966468960&tin=02508201610067®Number=0000000000091631&sum=40006 [18:45:31]StoreToDocumentArchive [18:45:31]shift 556 fd 139481 [18:45:31]save to /storage/0556/doc_00139481 [18:45:31]save last doc name /storage/0556/doc_00139481 to /storage/kkm_last_doc_name [18:45:31]save OK [18:45:31]Clear old archive folders... [18:45:31]ProcessDocumentItem done err = 0, tmpTLVsize=251 [18:45:31]tlvbuf is 012DDC60 [18:45:31]SAM_PROTO_ClearQueue [18:45:31]wFMCommunicate request_size=4 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 09 00 00 [18:45:31]Write to MH i2c: E2 08 00 F2 56 80 09 00 00 00 00 00 00 BA [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 F2 56 00 90 00 BC [18:45:31]RAPDU: 90 00 [18:45:31]wFMCommunicate OK [18:45:31]SAM_PROTO_ClearQueue done [18:45:31]KKMCreateOFDPacket [18:45:31]OFDProtocolAddRootSTLVToBuf [18:45:31]FM_MakeSignedData [18:45:31]FM_MakeSignedData [18:45:31]SAM_PROTO_SignData [18:45:31]wFMCommunicate request_size=4 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 0D 01 02 [18:45:31]Write to MH i2c: E2 08 00 F3 56 80 0D 01 02 00 00 00 00 C2 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 F3 56 00 90 00 BD [18:45:31]RAPDU: 90 00 [18:45:31]wFMCommunicate OK [18:45:31]wFMCommunicate request_size=255 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 A5 00 00 00 F4 03 04 00 D0 7E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 20 02 00 35 04 06 00 12 [18:45:31]Write to MH i2c: E2 02 01 F4 56 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D0 7E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 20 02 00 35 04 06 00 12 00 00 E3 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 F4 56 00 90 00 BE [18:45:31]RAPDU: 90 00 [18:45:31]wFMCommunicate OK [18:45:31]wFMCommunicate request_size=10 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 0D 02 02 05 04 5E 03 AF 60 [18:45:31]Write to MH i2c: E2 0D 00 F5 56 80 0D 02 02 05 00 04 5E 03 AF 60 00 00 43 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 03 00 F5 56 00 90 00 BF [18:45:31]RAPDU: 90 00 [18:45:31]wFMCommunicate OK [18:45:31]wFMCommunicate request_size=4 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 0D 03 02 [18:45:31]Write to MH i2c: E2 08 00 F6 56 80 0D 03 02 00 00 00 00 C7 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:31]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:45:31]Read from MH i2c: E2 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 0B 00 [18:45:31]MH_I2C_Read... [18:45:31]Read from MH i2c: E2 0B 00 F6 56 00 6D 29 D2 F9 C7 63 AB 9E 90 00 9C [18:45:31]RAPDU: 6D 29 D2 F9 C7 63 AB 9E 90 00 [18:45:31]wFMCommunicate OK [18:45:31]SAM_PROTO_SignData done [18:45:31]FM_MakeSignedData done [18:45:31]CreateOFDProtocolMessage [18:45:31]wFMCommunicate request_size=4 [18:45:31]MH_SAM_APDU [18:45:31]CAPDU: 80 11 00 00 [18:45:31]Write to MH i2c: E2 08 00 F7 56 80 11 00 00 00 00 00 00 C7 [18:45:31]Write i2c OK [18:45:31]MH_I2C_Read... [18:45:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:32]Read from MH i2c: E2 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 17 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: E2 17 00 F7 56 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 22 [18:45:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:45:32]wFMCommunicate OK [18:45:32]CreateOFDProtocolMessage done [18:45:32]OFDSenderStorePacket 139481 [18:45:32]StoreOFDPacket docnum=139481 [18:45:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 4B 38 07 01 90 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D0 7E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 20 02 00 35 04 06 00 12 04 5E 03 AF 60 6D 29 D2 F9 C7 63 AB 9E [18:45:32]CheckFolder [18:45:32]dirname=/storage/ofd_packets [18:45:32]CheckFolder done [18:45:32]ProducePacketName [18:45:32]name=ofd_packets/00139481 [18:45:32]NVStorageSaveData ofd_packets/00139481 [18:45:32]File name is /storage/ofd_packets/00139481 [18:45:32]Write 301 bytes [18:45:32]NVStorageSaveData done [18:45:32]OFDSenderStorePacket done [18:45:32]KKMCreateOFDPacket done [18:45:32]NVStorageSaveData kkm_last_timestamp [18:45:32]File name is /storage/kkm_last_timestamp [18:45:32]Write 4 bytes [18:45:32]NVStorageSaveData done [18:45:32]ExternCall_PrintAddStr [18:45:32]wPrintStart [18:45:32]Write to MH i2c: 01 00 00 F8 56 4E [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 F8 56 00 00 00 00 00 FF 0F 63 [18:45:32]RasterBufferAndPrint [18:45:32]line Счет N : (1)1094720 [18:45:32]line ИНН: 02508201610067 [18:45:32]line Контрольно-Кассовый Чек [18:45:32]line ПРОДАЖА [18:45:32]line ТРК (МРК, ГНК) : 43 [18:45:32]line Товар: 2710124130 [18:45:32]line Аи-92-К-2 [18:45:32]line 5.980 * 66.90 [18:45:32]line = 400.06 [18:45:32]line НДС 12% НСП 1% [18:45:32]line > о реализуемом товаре [18:45:32]line ИТОГО: 400.06 [18:45:32]line НСП 1% : 3.54 [18:45:32]line НДС 12% : 42.48 [18:45:32]line Наличными: 0.00 [18:45:32]line Безнал.: 400.06 [18:45:32]line Место: АЗС № 101 "Партнер Нефть" [18:45:32]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:45:32]line СНО: Общий режим [18:45:32]line Чек 165 30.10.2024 18:45 [18:45:32]line Смена: 556 ФФД: 1.0 [18:45:32]line ЗНМ: 0300000081 [18:45:32]line РНМ: 0000000000091631 [18:45:32]line Версия ККМ: 001 [18:45:32]line Платежная система: Mbank [18:45:32]line ФМ: 0000000000874669 [18:45:32]line ФД: 139481 [18:45:32]line ФПД: 19809966468960 [18:45:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T184536&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139481&fm=19809966468960&tin=02508201610067®Number=0000000000091631&sum=40006 [18:45:32]written 0, free lines is 4095 [18:45:32]OFD Sender: Processing packet 139481 [packets to send 34, broken 33] [18:45:32]ProducePacketName [18:45:32]name=ofd_packets/00139481 [18:45:32]OFD Sender: To server: pG, [18:45:32]CommunicateWithHost lk.salyk.kg:30040 [18:45:32]ConnectInit lk.salyk.kg [18:45:32]Connected sock=11 [18:45:32]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 4B 38 07 01 90 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 32 FF 03 08 00 03 5C 17 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 46 9C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 46 9C 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 62 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 10 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 46 9C 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A5 00 00 00 F4 03 04 00 D0 7E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 20 02 00 35 04 06 00 12 04 5E 03 AF 60 6D 29 D2 F9 C7 63 AB 9E [18:45:32]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 71 3B 47 00 42 63 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 D9 20 02 00 F4 03 04 00 80 2A 22 67 B6 04 01 00 00 FE B8 53 48 C5 EC F2 E7 [18:45:32]CommunicateWithHost err = 0 [18:45:32]CheckOFDResponse [18:45:32]1017 (14) - 77093643461234 [18:45:32]1041 (16) - 0000000000874669 [18:45:32]1040 (4) - 139481 [18:45:32]1012 (4) - 30.10.2024 12:45 [18:45:32]1206 (1) - 0 [18:45:32]OFD Sender: Remove packet 139481 [18:45:32]ProducePacketName [18:45:32]name=ofd_packets/00139481 [18:45:32]NVStorageDeleteData [18:45:32]Write to MH i2c: 01 00 00 21 57 78 [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: 01 07 00 21 57 00 00 00 00 00 20 0D AC [18:45:32]RasterBufferAndPrint [18:45:32]line [18:45:32]line [18:45:32]line [18:45:32]line [18:45:32]line [18:45:32]written 0, free lines is 3366 [18:45:32]MH_Cut [18:45:32]Write to MH i2c: D1 01 00 28 57 01 51 [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: D1 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: D1 01 00 [18:45:32]MH_I2C_Read... [18:45:32]Read from MH i2c: D1 01 00 28 57 00 50 [18:45:32]Write to MH i2c: 01 00 00 29 57 80 [18:45:32]Write i2c OK [18:45:32]MH_I2C_Read... [18:45:32]OFD Sender: No OFD packet to send [18:45:33]*** Cut start [18:45:33]*** Partial cut [18:45:33]*** CUTSNS_PIN = 1 [18:45:33]*** CUTSNS_PIN = 0 [18:45:33]*** Brake cut motor [18:45:33]Read from MH i2c: 01 [18:45:33]MH_I2C_Read... [18:45:33]*** Stop cut motor [18:45:33]*** Cut end [18:45:33]Read from MH i2c: 01 07 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: 01 07 00 29 57 00 00 00 00 00 FF 0F 95 [18:45:33]process_action close_receipt done [18:45:33]requested_data is exist [18:45:33]produce_requested_data [18:45:33]requested_item fm.sn is exist - process it [18:45:33]wFMCommunicate request_size=4 [18:45:33]MH_SAM_APDU [18:45:33]CAPDU: 80 11 00 00 [18:45:33]Write to MH i2c: E2 08 00 2A 57 80 11 00 00 00 00 00 00 FB [18:45:33]Write i2c OK [18:45:33]MH_I2C_Read... [18:45:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:45:33]Read from MH i2c: E2 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 17 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 17 00 2A 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 56 [18:45:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:45:33]wFMCommunicate OK [18:45:33]requested_item fd.num is exist - process it [18:45:33]SAM_PROTO_GetFieldsCounters [18:45:33]wFMCommunicate request_size=4 [18:45:33]MH_SAM_APDU [18:45:33]CAPDU: 80 13 00 00 [18:45:33]Write to MH i2c: E2 08 00 2B 57 80 13 00 00 00 00 00 00 FE [18:45:33]Write i2c OK [18:45:33]MH_I2C_Read... [18:45:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:45:33]Read from MH i2c: E2 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 62 00 [18:45:33]MH_I2C_Read... [18:45:33]Read from MH i2c: E2 62 00 2B 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D9 20 02 00 0E 04 04 00 2C 02 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 3A [18:45:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 D9 20 02 00 0E 04 04 00 2C 02 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 [18:45:33]wFMCommunicate OK [18:45:33]SAM_PROTO_GetFieldsCounters done [18:45:33]requested_item shift.num is exist - process it [18:45:33]requested_item shift.opened is exist - process it [18:45:33]req_shift_opened [18:45:33]FM_GetShiftState [18:45:33]SAM_PROTO_GetShiftState [18:45:33]wFMCommunicate request_size=4 [18:45:33]MH_SAM_APDU [18:45:33]CAPDU: 80 13 01 00 [18:45:33]Write to MH i2c: E2 08 00 2C 57 80 13 01 00 00 00 00 00 00 [18:45:33]Write i2c OK [18:45:33]MH_I2C_Read... [18:45:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:45:34]Read from MH i2c: E2 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 0E 00 [18:45:34]MH_I2C_Read... [18:45:34]Read from MH i2c: E2 0E 00 2C 57 00 09 00 01 86 76 21 67 00 00 00 00 90 00 90 [18:45:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:45:34]wFMCommunicate OK [18:45:34]SAM_PROTO_GetShiftState done [18:45:34]FM_GetShiftState done [18:45:34]req_shift_opened done [18:45:34]requested_item shift.open_date is exist - process it [18:45:34]req_shift_open_date [18:45:34]req_shift_open_date done [18:45:34]produce_requested_data done [18:45:34]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139481,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:45:34]process_action_free close_receipt [18:45:34]json_value_free [18:45:34]json_value_free done [18:45:34]process_json_proto returns [18:45:34]Send response to host [18:45:34]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139481,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:45:34]free response buf [18:45:34]execute_script done [18:45:34]execute_script returns [18:45:34]free content buf [18:45:34]Sock 8.Close socket [18:45:34]Sock 8.Thread stoped [18:45:37]OFD Sender: No OFD packet to send [18:45:42]OFD Sender: No OFD packet to send [18:45:47]OFD Sender: No OFD packet to send [18:45:52]OFD Sender: No OFD packet to send [18:45:57]OFD Sender: No OFD packet to send [18:46:02]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:37]OFD Sender: No OFD packet to send [18:47:42]OFD Sender: No OFD packet to send [18:47:47]OFD Sender: No OFD packet to send [18:47:52]OFD Sender: No OFD packet to send [18:47:57]OFD Sender: No OFD packet to send [18:48:02]OFD Sender: No OFD packet to send [18:48:07]OFD Sender: No OFD packet to send [18:48:12]OFD Sender: No OFD packet to send [18:48:17]OFD Sender: No OFD packet to send [18:48:23]OFD Sender: No OFD packet to send [18:48:28]OFD Sender: No OFD packet to send [18:48:33]OFD Sender: No OFD packet to send [18:48:38]OFD Sender: No OFD packet to send [18:48:43]OFD Sender: No OFD packet to send [18:48:48]OFD Sender: No OFD packet to send [18:48:53]OFD Sender: No OFD packet to send [18:48:58]OFD Sender: No OFD packet to send [18:49:03]OFD Sender: No OFD packet to send [18:49:08]OFD Sender: No OFD packet to send [18:49:13]OFD Sender: No OFD packet to send [18:49:18]OFD Sender: No OFD packet to send [18:49:23]OFD Sender: No OFD packet to send [18:49:28]OFD Sender: No OFD packet to send [18:49:33]OFD Sender: No OFD packet to send [18:49:38]OFD Sender: No OFD packet to send [18:49:43]OFD Sender: No OFD packet to send [18:49:48]OFD Sender: No OFD packet to send [18:49:53]OFD Sender: No OFD packet to send [18:49:58]OFD Sender: No OFD packet to send [18:50:03]OFD Sender: No OFD packet to send [18:50:08]OFD Sender: No OFD packet to send [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:23]OFD Sender: No OFD packet to send [18:52:28]OFD Sender: No OFD packet to send [18:52:33]OFD Sender: No OFD packet to send [18:52:38]OFD Sender: No OFD packet to send [18:52:43]OFD Sender: No OFD packet to send [18:52:48]OFD Sender: No OFD packet to send [18:52:53]OFD Sender: No OFD packet to send [18:52:58]OFD Sender: No OFD packet to send [18:53:03]OFD Sender: No OFD packet to send [18:53:08]OFD Sender: No OFD packet to send [18:53:13]OFD Sender: No OFD packet to send [18:53:18]OFD Sender: No OFD packet to send [18:53:23]OFD Sender: No OFD packet to send [18:53:28]OFD Sender: No OFD packet to send [18:53:33]OFD Sender: No OFD packet to send [18:53:38]OFD Sender: No OFD packet to send [18:53:43]OFD Sender: No OFD packet to send [18:53:48]OFD Sender: No OFD packet to send [18:53:53]OFD Sender: No OFD packet to send [18:53:58]OFD Sender: No OFD packet to send [18:54:03]OFD Sender: No OFD packet to send [18:54:08]OFD Sender: No OFD packet to send [18:54:13]OFD Sender: No OFD packet to send [18:54:18]OFD Sender: No OFD packet to send [18:54:23]OFD Sender: No OFD packet to send [18:54:28]OFD Sender: No OFD packet to send [18:54:33]OFD Sender: No OFD packet to send [18:54:38]OFD Sender: No OFD packet to send [18:54:43]OFD Sender: No OFD packet to send [18:54:48]OFD Sender: No OFD packet to send [18:54:53]OFD Sender: No OFD packet to send [18:54:58]OFD Sender: No OFD packet to send [18:55:03]OFD Sender: No OFD packet to send [18:55:08]OFD Sender: No OFD packet to send [18:55:13]OFD Sender: No OFD packet to send [18:55:18]OFD Sender: No OFD packet to send [18:55:23]OFD Sender: No OFD packet to send [18:55:28]OFD Sender: No OFD packet to send [18:55:33]OFD Sender: No OFD packet to send [18:55:38]OFD Sender: No OFD packet to send [18:55:43]OFD Sender: No OFD packet to send [18:55:48]OFD Sender: No OFD packet to send [18:55:53]OFD Sender: No OFD packet to send [18:55:58]OFD Sender: No OFD packet to send [18:56:03]OFD Sender: No OFD packet to send [18:56:08]OFD Sender: No OFD packet to send [18:56:13]OFD Sender: No OFD packet to send [18:56:18]OFD Sender: No OFD packet to send [18:56:23]OFD Sender: No OFD packet to send [18:56:28]OFD Sender: No OFD packet to send [18:56:33]OFD Sender: No OFD packet to send [18:56:38]OFD Sender: No OFD packet to send [18:56:43]OFD Sender: No OFD packet to send [18:56:48]OFD Sender: No OFD packet to send [18:56:53]OFD Sender: No OFD packet to send [18:56:58]OFD Sender: No OFD packet to send [18:57:03]OFD Sender: No OFD packet to send [18:57:08]OFD Sender: No OFD packet to send [18:57:13]OFD Sender: No OFD packet to send [18:57:18]OFD Sender: No OFD packet to send [18:57:23]OFD Sender: No OFD packet to send [18:57:28]OFD Sender: No OFD packet to send [18:57:33]OFD Sender: No OFD packet to send [18:57:38]OFD Sender: No OFD packet to send [18:57:43]OFD Sender: No OFD packet to send [18:57:48]OFD Sender: No OFD packet to send [18:57:53]OFD Sender: No OFD packet to send [18:57:58]OFD Sender: No OFD packet to send [18:58:03]OFD Sender: No OFD packet to send [18:58:08]OFD Sender: No OFD packet to send [18:58:13]OFD Sender: No OFD packet to send [18:58:18]OFD Sender: No OFD packet to send [18:58:23]OFD Sender: No OFD packet to send [18:58:28]OFD Sender: No OFD packet to send [18:58:33]OFD Sender: No OFD packet to send [18:58:38]OFD Sender: No OFD packet to send [18:58:43]OFD Sender: No OFD packet to send [18:58:48]OFD Sender: No OFD packet to send [18:58:53]OFD Sender: No OFD packet to send [18:58:55]accept exits with 9 [18:58:55]New connection [18:58:55]New thread 3067141476 created [18:58:55]Thread 3067284836 joined [18:58:55]Waiting for new connection... [18:58:55] Sock 9.Parse request [18:58:55]Sock 9.Check first char [18:58:55]Sock 9.First char is OK [18:58:55]request: POST /json_proto HTTP/1.0 [18:58:55]Method: POST [18:58:55]URL: /json_proto [18:58:55]Method is POST - this is cgi request [18:58:55]url: /json_proto [18:58:55]query_string will be loaded in cgi processing [18:58:55]execute_cgi json_proto POST (null) [18:58:55]execute_cgi path=json_proto method=POST [18:58:55]POST find Content-Length [18:58:55]Host: 172.17.50.196:8080 [18:58:55]Content-Length: 658 [18:58:55]Content-Type: application/json [18:58:55] [18:58:55]POST finish read [18:58:55]Found Content-Length = 658 [18:58:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335364", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:55]execute_script... [18:58: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 : (3)335364", "tax_sys" : 0, "items" : [ { "code": "5449000000996", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,33\u043B", "price" : 85.00, "quantity" : 1.000, "sum" : 85.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 85.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [18:58:55]POST & json_proto [18:58:55]process_json_proto [18:58:55]json parsed OK: [18:58:55]protocol is kg_v1.0 [18:58:55]action value=close_receipt [18:58:55]process_action close_receipt [18:58:55]cmd_close_receipt [18:58:55]MH_GetDate [18:58:55]Write to MH i2c: F0 00 00 2D 57 73 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: F0 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: F0 09 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: F0 09 00 2D 57 00 F6 81 22 67 72 0D 1C 67 7E [18:58:55]GetLastDocTimeStamp 1730313936 [18:58:55]current date 1730314742 [18:58:55]FM_GetShiftState [18:58:55]SAM_PROTO_GetShiftState [18:58:55]wFMCommunicate request_size=4 [18:58:55]MH_SAM_APDU [18:58:55]CAPDU: 80 13 01 00 [18:58:55]Write to MH i2c: E2 08 00 2E 57 80 13 01 00 00 00 00 00 02 [18:58:55]Write i2c OK [18:58:55]MH_I2C_Read... [18:58:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:55]Read from MH i2c: E2 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 0E 00 [18:58:55]MH_I2C_Read... [18:58:55]Read from MH i2c: E2 0E 00 2E 57 00 09 00 01 86 76 21 67 00 00 00 00 90 00 92 [18:58:55]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:58:55]wFMCommunicate OK [18:58:55]SAM_PROTO_GetShiftState done [18:58:55]FM_GetShiftState done [18:58:55]opened in 1730246278 [18:58:55]opened+sec_in_day 1730332678 [18:58:55]quantity*price = 8500 [18:58:55]sum+1 = 8501 [18:58:55]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 85.00 НСП 1% : 0.75 НДС 12% : 9.03 Наличными: 85.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 166 30.10.2024 18:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139482 ФПД: 110771642750072 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T185902&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139482&fm=110771642750072&tin=02508201610067®Number=0000000000091631&sum=8500 0 [18:58:56]StoreToDocumentArchive [18:58:56]shift 556 fd 139482 [18:58:56]save to /storage/0556/doc_00139482 [18:58:56]save last doc name /storage/0556/doc_00139482 to /storage/kkm_last_doc_name [18:58:56]save OK [18:58:56]Clear old archive folders... [18:58:56]ProcessDocumentItem done err = 0, tmpTLVsize=281 [18:58:56]tlvbuf is 01264F70 [18:58:56]SAM_PROTO_ClearQueue [18:58:56]wFMCommunicate request_size=4 [18:58:56]MH_SAM_APDU [18:58:56]CAPDU: 80 09 00 00 [18:58:56]Write to MH i2c: E2 08 00 3B 57 80 09 00 00 00 00 00 00 04 [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [18:58:56]Read from MH i2c: E2 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 03 00 [18:58:56]MH_I2C_Read... [18:58:56]Read from MH i2c: E2 03 00 3B 57 00 90 00 06 [18:58:56]RAPDU: 90 00 [18:58:56]wFMCommunicate OK [18:58:56]SAM_PROTO_ClearQueue done [18:58:56]KKMCreateOFDPacket [18:58:56]OFDProtocolAddRootSTLVToBuf [18:58:56]FM_MakeSignedData [18:58:56]FM_MakeSignedData [18:58:56]SAM_PROTO_SignData [18:58:56]wFMCommunicate request_size=4 [18:58:56]MH_SAM_APDU [18:58:56]CAPDU: 80 0D 01 02 [18:58:56]Write to MH i2c: E2 08 00 3C 57 80 0D 01 02 00 00 00 00 0C [18:58:56]Write i2c OK [18:58:56]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 3C 57 00 90 00 07 [18:58:57]RAPDU: 90 00 [18:58:57]wFMCommunicate OK [18:58:57]wFMCommunicate request_size=255 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 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 F6 81 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 [18:58:57]Write to MH i2c: E2 02 01 3D 57 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 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 F6 81 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 3B [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 3D 57 00 90 00 08 [18:58:57]RAPDU: 90 00 [18:58:57]wFMCommunicate OK [18:58:57]wFMCommunicate request_size=40 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 20 02 00 35 04 06 00 64 BF 08 6A D4 78 [18:58:57]Write to MH i2c: E2 2B 00 3E 57 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 20 02 00 35 04 06 00 64 BF 08 6A D4 78 00 00 B1 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 03 00 3E 57 00 90 00 09 [18:58:57]RAPDU: 90 00 [18:58:57]wFMCommunicate OK [18:58:57]wFMCommunicate request_size=4 [18:58:57]MH_SAM_APDU [18:58:57]CAPDU: 80 0D 03 02 [18:58:57]Write to MH i2c: E2 08 00 3F 57 80 0D 03 02 00 00 00 00 11 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [18:58:57]Read from MH i2c: E2 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 0B 00 [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: E2 0B 00 3F 57 00 5E 5E 17 9C C9 CE AD A6 90 00 6B [18:58:57]RAPDU: 5E 5E 17 9C C9 CE AD A6 90 00 [18:58:57]wFMCommunicate OK [18:58:57]SAM_PROTO_SignData done [18:58:57]FM_MakeSignedData done [18:58:57]CreateOFDProtocolMessage [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 40 57 80 11 00 00 00 00 00 00 11 [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 40 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6C [18:58:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:58:57]wFMCommunicate OK [18:58:57]CreateOFDProtocolMessage done [18:58:57]OFDSenderStorePacket 139482 [18:58:57]StoreOFDPacket docnum=139482 [18:58:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2D 01 00 00 21 FE 25 01 EA 99 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 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 F6 81 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 20 02 00 35 04 06 00 64 BF 08 6A D4 78 5E 5E 17 9C C9 CE AD A6 [18:58:57]CheckFolder [18:58:57]dirname=/storage/ofd_packets [18:58:57]CheckFolder done [18:58:57]ProducePacketName [18:58:57]name=ofd_packets/00139482 [18:58:57]NVStorageSaveData ofd_packets/00139482 [18:58:57]File name is /storage/ofd_packets/00139482 [18:58:57]Write 331 bytes [18:58:57]NVStorageSaveData done [18:58:57]OFDSenderStorePacket done [18:58:57]KKMCreateOFDPacket done [18:58:57]NVStorageSaveData kkm_last_timestamp [18:58:57]File name is /storage/kkm_last_timestamp [18:58:57]Write 4 bytes [18:58:57]NVStorageSaveData done [18:58:57]ExternCall_PrintAddStr [18:58:57]wPrintStart [18:58:57]Write to MH i2c: 01 00 00 41 57 98 [18:58:57]Write i2c OK [18:58:57]MH_I2C_Read... [18:58:57]Read from MH i2c: 01 [18:58:57]MH_I2C_Read... [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 41 57 00 00 00 00 00 FF 0F AD [18:58:57]RasterBufferAndPrint [18:58:57]line Счет N : (3)335364 [18:58:57]line ИНН: 02508201610067 [18:58:57]line Контрольно-Кассовый Чек [18:58:57]line ПРОДАЖА [18:58:57]line Товар: 5449000000996 [18:58:57]line Напиток Кока-Кола 0,33л [18:58:57]line 1.000 * 85.00 [18:58:57]line = 85.00 [18:58:57]line НДС 12% НСП 1% [18:58:57]line > о реализуемом товаре [18:58:57]line ИТОГО: 85.00 [18:58:57]line НСП 1% : 0.75 [18:58:57]line НДС 12% : 9.03 [18:58:57]line Наличными: 85.00 [18:58:57]line Безнал.: 0.00 [18:58:57]line Место: АЗС № 101 "Партнер Нефть" [18:58:57]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [18:58:57]line СНО: Общий режим [18:58:57]line Чек 166 30.10.2024 18:59 [18:58:57]line Смена: 556 ФФД: 1.0 [18:58:57]line ЗНМ: 0300000081 [18:58:57]line РНМ: 0000000000091631 [18:58:57]line Версия ККМ: 001 [18:58:57]line ФМ: 0000000000874669 [18:58:57]line ФД: 139482 [18:58:57]line ФПД: 110771642750072 [18:58:57]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T185902&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139482&fm=110771642750072&tin=02508201610067®Number=0000000000091631&sum=8500 [18:58:57]line 0 [18:58:57]OFD Sender: Processing packet 139482 [packets to send 34, broken 33] [18:58:57]ProducePacketName [18:58:57]name=ofd_packets/00139482 [18:58:57]OFD Sender: To server: pG, [18:58:57]CommunicateWithHost lk.salyk.kg:30040 [18:58:57]ConnectInit lk.salyk.kg [18:58:57]written 0, free lines is 4095 [18:58:57]Connected sock=10 [18:58:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2D 01 00 00 21 FE 25 01 EA 99 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 30 39 39 36 06 04 27 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 33 33 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 21 00 00 00 00 13 04 06 00 34 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 21 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4B 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 87 03 00 00 00 00 07 04 06 00 34 21 00 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 F6 81 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 20 02 00 35 04 06 00 64 BF 08 6A D4 78 5E 5E 17 9C C9 CE AD A6 [18:58:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 61 90 47 00 7D 71 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DA 20 02 00 F4 03 04 00 A6 2D 22 67 B6 04 01 00 00 EB 2D 1B 7D 98 7B A0 35 [18:58:58]CommunicateWithHost err = 0 [18:58:58]CheckOFDResponse [18:58:58]1017 (14) - 77093643461234 [18:58:58]1041 (16) - 0000000000874669 [18:58:58]1040 (4) - 139482 [18:58:58]1012 (4) - 30.10.2024 12:59 [18:58:58]1206 (1) - 0 [18:58:58]OFD Sender: Remove packet 139482 [18:58:58]ProducePacketName [18:58:58]name=ofd_packets/00139482 [18:58:58]NVStorageDeleteData [18:58:58]Write to MH i2c: 01 00 00 69 57 C0 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: 01 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: 01 07 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: 01 07 00 69 57 00 00 00 00 00 24 0D F8 [18:58:58]RasterBufferAndPrint [18:58:58]line [18:58:58]line [18:58:58]line [18:58:58]line [18:58:58]line [18:58:58]written 0, free lines is 3370 [18:58:58]MH_Cut [18:58:58]Write to MH i2c: D1 01 00 70 57 01 99 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: D1 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: D1 01 00 [18:58:58]MH_I2C_Read... [18:58:58]Read from MH i2c: D1 01 00 70 57 00 98 [18:58:58]Write to MH i2c: 01 00 00 71 57 C8 [18:58:58]Write i2c OK [18:58:58]MH_I2C_Read... [18:58:58]OFD Sender: No OFD packet to send [18:58:58]*** Cut start [18:58:58]*** Partial cut [18:58:58]*** CUTSNS_PIN = 1 [18:58:58]*** CUTSNS_PIN = 0 [18:58:59]*** Brake cut motor [18:58:59]Read from MH i2c: 01 [18:58:59]MH_I2C_Read... [18:58:59]*** Stop cut motor [18:58:59]*** Cut end [18:58:59]Read from MH i2c: 01 07 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: 01 07 00 71 57 00 00 00 00 00 FF 0F DD [18:58:59]process_action close_receipt done [18:58:59]requested_data is exist [18:58:59]produce_requested_data [18:58:59]requested_item fm.sn is exist - process it [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 11 00 00 [18:58:59]Write to MH i2c: E2 08 00 72 57 80 11 00 00 00 00 00 00 43 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 17 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 17 00 72 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9E [18:58:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [18:58:59]wFMCommunicate OK [18:58:59]requested_item fd.num is exist - process it [18:58:59]SAM_PROTO_GetFieldsCounters [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 13 00 00 [18:58:59]Write to MH i2c: E2 08 00 73 57 80 13 00 00 00 00 00 00 46 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 62 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 62 00 73 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DA 20 02 00 0E 04 04 00 2C 02 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 86 [18:58:59]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DA 20 02 00 0E 04 04 00 2C 02 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 [18:58:59]wFMCommunicate OK [18:58:59]SAM_PROTO_GetFieldsCounters done [18:58:59]requested_item shift.num is exist - process it [18:58:59]requested_item shift.opened is exist - process it [18:58:59]req_shift_opened [18:58:59]FM_GetShiftState [18:58:59]SAM_PROTO_GetShiftState [18:58:59]wFMCommunicate request_size=4 [18:58:59]MH_SAM_APDU [18:58:59]CAPDU: 80 13 01 00 [18:58:59]Write to MH i2c: E2 08 00 74 57 80 13 01 00 00 00 00 00 48 [18:58:59]Write i2c OK [18:58:59]MH_I2C_Read... [18:58:59]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [18:58:59]Read from MH i2c: E2 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 0E 00 [18:58:59]MH_I2C_Read... [18:58:59]Read from MH i2c: E2 0E 00 74 57 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D8 [18:58:59]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [18:58:59]wFMCommunicate OK [18:58:59]SAM_PROTO_GetShiftState done [18:58:59]FM_GetShiftState done [18:58:59]req_shift_opened done [18:58:59]requested_item shift.open_date is exist - process it [18:58:59]req_shift_open_date [18:58:59]req_shift_open_date done [18:58:59]produce_requested_data done [18:58:59]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139482,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [18:58:59]process_action_free close_receipt [18:58:59]json_value_free [18:58:59]json_value_free done [18:58:59]process_json_proto returns [18:58:59]Send response to host [18:58:59]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139482,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [18:58:59]free response buf [18:58:59]execute_script done [18:58:59]execute_script returns [18:58:59]free content buf [18:58:59]Sock 9.Close socket [18:58:59]Sock 9.Thread stoped [18:59:03]OFD Sender: No OFD packet to send [18:59:08]OFD Sender: No OFD packet to send [18:59:13]OFD Sender: No OFD packet to send [18:59:18]OFD Sender: No OFD packet to send [18:59:23]OFD Sender: No OFD packet to send [18:59:28]OFD Sender: No OFD packet to send [18:59:33]OFD Sender: No OFD packet to send [18:59:38]OFD Sender: No OFD packet to send [18:59:43]OFD Sender: No OFD packet to send [18:59:48]OFD Sender: No OFD packet to send [18:59:53]OFD Sender: No OFD packet to send [18:59:58]OFD Sender: No OFD packet to send [19:00:03]OFD Sender: No OFD packet to send [19:00:08]OFD Sender: No OFD packet to send [19:00:13]OFD Sender: No OFD packet to send [19:00:18]OFD Sender: No OFD packet to send [19:00:23]OFD Sender: No OFD packet to send [19:00:28]OFD Sender: No OFD packet to send [19:00:33]OFD Sender: No OFD packet to send [19:00:38]OFD Sender: No OFD packet to send [19:00:43]OFD Sender: No OFD packet to send [19:00:48]OFD Sender: No OFD packet to send [19:00:53]OFD Sender: No OFD packet to send [19:00:58]OFD Sender: No OFD packet to send [19:01:03]OFD Sender: No OFD packet to send [19:01:08]OFD Sender: No OFD packet to send [19:01:13]OFD Sender: No OFD packet to send [19:01:18]OFD Sender: No OFD packet to send [19:01:23]OFD Sender: No OFD packet to send [19:01:28]OFD Sender: No OFD packet to send [19:01:33]OFD Sender: No OFD packet to send [19:01:38]OFD Sender: No OFD packet to send [19:01:43]OFD Sender: No OFD packet to send [19:01:48]OFD Sender: No OFD packet to send [19:01:53]OFD Sender: No OFD packet to send [19:01:58]OFD Sender: No OFD packet to send [19:02:03]OFD Sender: No OFD packet to send [19:02:08]OFD Sender: No OFD packet to send [19:02:13]OFD Sender: No OFD packet to send [19:02:18]OFD Sender: No OFD packet to send [19:02:23]OFD Sender: No OFD packet to send [19:02:28]OFD Sender: No OFD packet to send [19:02:33]OFD Sender: No OFD packet to send [19:02:38]OFD Sender: No OFD packet to send [19:02:43]OFD Sender: No OFD packet to send [19:02:48]OFD Sender: No OFD packet to send [19:02:53]OFD Sender: No OFD packet to send [19:02:57]accept exits with 8 [19:02:57]New connection [19:02:57]New thread 3067284836 created [19:02:57]Thread 3067141476 joined [19:02:57]Waiting for new connection... [19:02:57] Sock 8.Parse request [19:02:57]Sock 8.Check first char [19:02:57]Sock 8.First char is OK [19:02:57]request: POST /json_proto HTTP/1.0 [19:02:57]Method: POST [19:02:57]URL: /json_proto [19:02:57]Method is POST - this is cgi request [19:02:57]url: /json_proto [19:02:57]query_string will be loaded in cgi processing [19:02:57]execute_cgi json_proto POST (null) [19:02:57]execute_cgi path=json_proto method=POST [19:02:57]POST find Content-Length [19:02:57]Host: 172.17.50.196:8080 [19:02:57]Content-Length: 682 [19:02:57]Content-Type: application/json [19:02:57] [19:02:57]POST finish read [19:02:57]Found Content-Length = 682 [19:02:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 13.060, "sum" : 500.20, "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:02:57]execute_script... [19:02: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)1094728", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 71", "code": "2711190000", "name": "\u0413\u0410\u0417-\u041A-5", "price" : 38.30, "quantity" : 13.060, "sum" : 500.20, "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:02:57]POST & json_proto [19:02:57]process_json_proto [19:02:57]json parsed OK: [19:02:57]protocol is kg_v1.0 [19:02:57]action value=close_receipt [19:02:57]process_action close_receipt [19:02:57]cmd_close_receipt [19:02:57]MH_GetDate [19:02:57]Write to MH i2c: F0 00 00 75 57 BB [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: F0 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: F0 09 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: F0 09 00 75 57 00 E8 82 22 67 72 0D 1C 67 B9 [19:02:57]GetLastDocTimeStamp 1730314742 [19:02:57]current date 1730314984 [19:02:57]FM_GetShiftState [19:02:57]SAM_PROTO_GetShiftState [19:02:57]wFMCommunicate request_size=4 [19:02:57]MH_SAM_APDU [19:02:57]CAPDU: 80 13 01 00 [19:02:57]Write to MH i2c: E2 08 00 76 57 80 13 01 00 00 00 00 00 4A [19:02:57]Write i2c OK [19:02:57]MH_I2C_Read... [19:02:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:02:57]Read from MH i2c: E2 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 0E 00 [19:02:57]MH_I2C_Read... [19:02:57]Read from MH i2c: E2 0E 00 76 57 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DA [19:02:57]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:02:57]wFMCommunicate OK [19:02:57]SAM_PROTO_GetShiftState done [19:02:57]FM_GetShiftState done [19:02:57]opened in 1730246278 [19:02:57]opened+sec_in_day 1730332678 [19:02:57]quantity*price = 50019 [19:02:57]sum+1 = 50021 [19:02:57]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.20 ИТОГО: 500.00 Внесено: 500.00 СДАЧА: 0.00 НСП 1% : 4.43 НДС 12% : 53.12 Наличными: 500.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 167 30.10.2024 19:03 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139483 ФПД: 210213335010510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190304&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139483&fm=210213335010510&tin=02508201610067®Number=0000000000091631&sum=50000 [19:02:58]StoreToDocumentArchive [19:02:58]shift 556 fd 139483 [19:02:58]save to /storage/0556/doc_00139483 [19:02:58]save last doc name /storage/0556/doc_00139483 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=250 [19:02:58]tlvbuf is 01124670 [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 83 57 80 09 00 00 00 00 00 00 4C [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 83 57 00 90 00 4E [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 84 57 80 0D 01 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 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 84 57 00 90 00 4F [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 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 04 33 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A7 00 00 00 F4 03 04 00 E8 82 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 20 02 00 35 04 06 00 BF 30 [19:02:58]Write to MH i2c: E2 02 01 85 57 80 0D 02 02 FA 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 04 33 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A7 00 00 00 F4 03 04 00 E8 82 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 20 02 00 35 04 06 00 BF 30 00 00 D4 [19:02:58]Write i2c OK [19:02:58]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 03 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 03 00 85 57 00 90 00 50 [19:02:59]RAPDU: 90 00 [19:02:59]wFMCommunicate OK [19:02:59]wFMCommunicate request_size=9 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 0D 02 02 04 1B 29 0C CE [19:02:59]Write to MH i2c: E2 0C 00 86 57 80 0D 02 02 04 00 1B 29 0C CE 00 00 7D [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 03 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 03 00 86 57 00 90 00 51 [19:02:59]RAPDU: 90 00 [19:02:59]wFMCommunicate OK [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 0D 03 02 [19:02:59]Write to MH i2c: E2 08 00 87 57 80 0D 03 02 00 00 00 00 59 [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 0B 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 0B 00 87 57 00 11 0E 50 5B 1B 8B D8 D7 90 00 79 [19:02:59]RAPDU: 11 0E 50 5B 1B 8B D8 D7 90 00 [19:02:59]wFMCommunicate OK [19:02:59]SAM_PROTO_SignData done [19:02:59]FM_MakeSignedData done [19:02:59]CreateOFDProtocolMessage [19:02:59]wFMCommunicate request_size=4 [19:02:59]MH_SAM_APDU [19:02:59]CAPDU: 80 11 00 00 [19:02:59]Write to MH i2c: E2 08 00 88 57 80 11 00 00 00 00 00 00 59 [19:02:59]Write i2c OK [19:02:59]MH_I2C_Read... [19:02:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:02:59]Read from MH i2c: E2 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 17 00 [19:02:59]MH_I2C_Read... [19:02:59]Read from MH i2c: E2 17 00 88 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B4 [19:02:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:02:59]wFMCommunicate OK [19:02:59]CreateOFDProtocolMessage done [19:02:59]OFDSenderStorePacket 139483 [19:02:59]StoreOFDPacket docnum=139483 [19:02:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 1B FF 06 01 47 AE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 04 33 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A7 00 00 00 F4 03 04 00 E8 82 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 20 02 00 35 04 06 00 BF 30 1B 29 0C CE 11 0E 50 5B 1B 8B D8 D7 [19:02:59]CheckFolder [19:02:59]dirname=/storage/ofd_packets [19:02:59]CheckFolder done [19:02:59]ProducePacketName [19:02:59]name=ofd_packets/00139483 [19:02:59]NVStorageSaveData ofd_packets/00139483 [19:02:59]File name is /storage/ofd_packets/00139483 [19:02:59]Write 300 bytes [19:02:59]NVStorageSaveData done [19:02:59]OFDSenderStorePacket done [19:02:59]KKMCreateOFDPacket done [19:02:59]NVStorageSaveData kkm_last_timestamp [19:02:59]File name is /storage/kkm_last_timestamp [19:02:59]Write 4 bytes [19:02:59]NVStorageSaveData done [19:02:59]ExternCall_PrintAddStr [19:02:59]wPrintStart [19:02:59]Write to MH i2c: 01 00 00 89 57 E0 [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 89 57 00 00 00 00 00 FF 0F F5 [19:02:59]RasterBufferAndPrint [19:02:59]line Счет N : (1)1094728 [19:02:59]line ИНН: 02508201610067 [19:02:59]line Контрольно-Кассовый Чек [19:02:59]line ПРОДАЖА [19:02:59]line ТРК (МРК, ГНК) : 71 [19:02:59]line Товар: 2711190000 [19:02:59]line ГАЗ-К-5 [19:02:59]line 13.060 * 38.30 [19:02:59]line = 500.20 [19:02:59]line НДС 12% НСП 1% [19:02:59]line > о реализуемом товаре [19:02:59]line ОКРУГЛЕНИЕ: -0.20 [19:02:59]line ИТОГО: 500.00 [19:02:59]line Внесено: 500.00 [19:02:59]line СДАЧА: 0.00 [19:02:59]line НСП 1% : 4.43 [19:02:59]line НДС 12% : 53.12 [19:02:59]line Наличными: 500.00 [19:02:59]line Безнал.: 0.00 [19:02:59]line Место: АЗС № 101 "Партнер Нефть" [19:02:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:02:59]line СНО: Общий режим [19:02:59]line Чек 167 30.10.2024 19:03 [19:02:59]line Смена: 556 ФФД: 1.0 [19:02:59]line ЗНМ: 0300000081 [19:02:59]line РНМ: 0000000000091631 [19:02:59]line Версия ККМ: 001 [19:02:59]line ФМ: 0000000000874669 [19:02:59]line ФД: 139483 [19:02:59]line ФПД: 210213335010510 [19:02:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T190304&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139483&fm=210213335010510&tin=02508201610067®Number=0000000000091631&sum=50000 [19:02:59]OFD Sender: Processing packet 139483 [packets to send 34, broken 33] [19:02:59]ProducePacketName [19:02:59]name=ofd_packets/00139483 [19:02:59]OFD Sender: To server: pG, [19:02:59]CommunicateWithHost lk.salyk.kg:30040 [19:02:59]ConnectInit lk.salyk.kg [19:02:59]written 0, free lines is 4095 [19:02:59]Connected sock=10 [19:02:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 01 00 00 1B FF 06 01 47 AE 5A 03 01 00 03 00 FA 00 1E 04 01 00 01 23 04 4C 00 8A 04 0A 00 32 37 31 31 31 39 30 30 30 30 06 04 0B 00 D0 93 D0 90 D0 97 2D D0 9A 2D 35 FF 03 08 00 03 04 33 00 00 00 00 00 37 04 06 00 F6 0E 00 00 00 00 13 04 06 00 64 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 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 A7 00 00 00 F4 03 04 00 E8 82 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DB 20 02 00 35 04 06 00 BF 30 1B 29 0C CE 11 0E 50 5B 1B 8B D8 D7 [19:02:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 E1 37 47 00 A4 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 38 37 34 36 36 39 10 04 04 00 DB 20 02 00 F4 03 04 00 98 2E 22 67 B6 04 01 00 00 FE AB CE FE 9A 74 1D EE [19:02:59]CommunicateWithHost err = 0 [19:02:59]CheckOFDResponse [19:02:59]1017 (14) - 77093643461234 [19:02:59]1041 (16) - 0000000000874669 [19:02:59]1040 (4) - 139483 [19:02:59]1012 (4) - 30.10.2024 13:03 [19:02:59]1206 (1) - 0 [19:02:59]OFD Sender: Remove packet 139483 [19:02:59]ProducePacketName [19:02:59]name=ofd_packets/00139483 [19:02:59]NVStorageDeleteData [19:03:00]Write to MH i2c: 01 00 00 B4 57 0B [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: 01 [19:03:00]MH_I2C_Read... [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 B4 57 00 00 00 00 00 ED 0C 0B [19:03:00]RasterBufferAndPrint [19:03:00]line [19:03:00]line [19:03:00]line [19:03:00]line [19:03:00]line [19:03:00]written 0, free lines is 3315 [19:03:00]MH_Cut [19:03:00]Write to MH i2c: D1 01 00 BB 57 01 E4 [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: D1 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: D1 01 00 [19:03:00]MH_I2C_Read... [19:03:00]Read from MH i2c: D1 01 00 BB 57 00 E3 [19:03:00]Write to MH i2c: 01 00 00 BC 57 13 [19:03:00]Write i2c OK [19:03:00]MH_I2C_Read... [19:03:00]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:01]*** Brake cut motor [19:03:01]Read from MH i2c: 01 [19:03:01]MH_I2C_Read... [19:03:01]*** Stop cut motor [19:03:01]*** Cut end [19:03:01]Read from MH i2c: 01 07 00 [19:03:01]MH_I2C_Read... [19:03:01]Read from MH i2c: 01 07 00 BC 57 00 00 00 00 00 FF 0F 28 [19:03:01]process_action close_receipt done [19:03:01]requested_data is exist [19:03:01]produce_requested_data [19:03:01]requested_item fm.sn is exist - process it [19:03:01]wFMCommunicate request_size=4 [19:03:01]MH_SAM_APDU [19:03:01]CAPDU: 80 11 00 00 [19:03:01]Write to MH i2c: E2 08 00 BD 57 80 11 00 00 00 00 00 00 8E [19:03:01]Write i2c OK [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 [19:03:01]MH_I2C_Read... [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 BD 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E9 [19:03:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 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 BE 57 80 13 00 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 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 BE 57 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DB 20 02 00 0E 04 04 00 2C 02 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 D5 [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 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DB 20 02 00 0E 04 04 00 2C 02 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 [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 BF 57 80 13 01 00 00 00 00 00 93 [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 BF 57 00 09 00 01 86 76 21 67 00 00 00 00 90 00 23 [19:03:01]RAPDU: 09 00 01 86 76 21 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":"0000000000874669","fd.num":139483,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [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":"0000000000874669","fd.num":139483,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [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 8.Close socket [19:03:01]Sock 8.Thread stoped [19:03:05]OFD Sender: No OFD packet to send [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:15]OFD Sender: No OFD packet to send [19:05:20]OFD Sender: No OFD packet to send [19:05:25]OFD Sender: No OFD packet to send [19:05:30]OFD Sender: No OFD packet to send [19:05:35]OFD Sender: No OFD packet to send [19:05:40]OFD Sender: No OFD packet to send [19:05:45]OFD Sender: No OFD packet to send [19:05:50]OFD Sender: No OFD packet to send [19:05:55]OFD Sender: No OFD packet to send [19:06:00]OFD Sender: No OFD packet to send [19:06:05]OFD Sender: No OFD packet to send [19:06:10]OFD Sender: No OFD packet to send [19:06:15]OFD Sender: No OFD packet to send [19:06:20]OFD Sender: No OFD packet to send [19:06:25]OFD Sender: No OFD packet to send [19:06:30]OFD Sender: No OFD packet to send [19:06:35]OFD Sender: No OFD packet to send [19:06:40]OFD Sender: No OFD packet to send [19:06:45]OFD Sender: No OFD packet to send [19:06:50]OFD Sender: No OFD packet to send [19:06:55]OFD Sender: No OFD packet to send [19:07:00]OFD Sender: No OFD packet to send [19:07:05]OFD Sender: No OFD packet to send [19:07:10]OFD Sender: No OFD packet to send [19:07:15]OFD Sender: No OFD packet to send [19:07:20]OFD Sender: No OFD packet to send [19:07:25]OFD Sender: No OFD packet to send [19:07:30]OFD Sender: No OFD packet to send [19:07:35]OFD Sender: No OFD packet to send [19:07:40]OFD Sender: No OFD packet to send [19:07:45]OFD Sender: No OFD packet to send [19:07:50]OFD Sender: No OFD packet to send [19:07:55]OFD Sender: No OFD packet to send [19:08:00]OFD Sender: No OFD packet to send [19:08:05]OFD Sender: No OFD packet to send [19:08:10]OFD Sender: No OFD packet to send [19:08:15]OFD Sender: No OFD packet to send [19:08:20]OFD Sender: No OFD packet to send [19:08:25]OFD Sender: No OFD packet to send [19:08:30]OFD Sender: No OFD packet to send [19:08:35]OFD Sender: No OFD packet to send [19:08:40]OFD Sender: No OFD packet to send [19:08:45]OFD Sender: No OFD packet to send [19:08:50]OFD Sender: No OFD packet to send [19:08:55]OFD Sender: No OFD packet to send [19:09:00]OFD Sender: No OFD packet to send [19:09:05]OFD Sender: No OFD packet to send [19:09:10]OFD Sender: No OFD packet to send [19:09:15]OFD Sender: No OFD packet to send [19:09:20]OFD Sender: No OFD packet to send [19:09:25]OFD Sender: No OFD packet to send [19:09:30]OFD Sender: No OFD packet to send [19:09:35]OFD Sender: No OFD packet to send [19:09:40]OFD Sender: No OFD packet to send [19:09:45]OFD Sender: No OFD packet to send [19:09:50]OFD Sender: No OFD packet to send [19:09:55]OFD Sender: No OFD packet to send [19:09:57]accept exits with 9 [19:09:57]New connection [19:09:57]New thread 3067141476 created [19:09:57]Thread 3067284836 joined [19:09:57]Waiting for new connection... [19:09:57] Sock 9.Parse request [19:09:57]Sock 9.Check first char [19:09:57]Sock 9.First char is OK [19:09:57]request: POST /json_proto HTTP/1.0 [19:09:57]Method: POST [19:09:57]URL: /json_proto [19:09:57]Method is POST - this is cgi request [19:09:57]url: /json_proto [19:09:57]query_string will be loaded in cgi processing [19:09:57]execute_cgi json_proto POST (null) [19:09:57]execute_cgi path=json_proto method=POST [19:09:57]POST find Content-Length [19:09:57]Host: 172.17.50.196:8080 [19:09:57]Content-Length: 863 [19:09:57]Content-Type: application/json [19:09:57] [19:09:57]POST finish read [19:09:57]Found Content-Length = 863 [19:09:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335365", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 10.000, "sum" : 1440.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747417", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Unique Caster", "price" : 147.00, "quantity" : 3.000, "sum" : 441.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1881.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:57]execute_script... [19:09: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 : (3)335365", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 10.000, "sum" : 1440.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48747417", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Unique Caster", "price" : 147.00, "quantity" : 3.000, "sum" : 441.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1881.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:09:57]POST & json_proto [19:09:57]process_json_proto [19:09:57]json parsed OK: [19:09:57]protocol is kg_v1.0 [19:09:57]action value=close_receipt [19:09:57]process_action close_receipt [19:09:57]cmd_close_receipt [19:09:57]MH_GetDate [19:09:57]Write to MH i2c: F0 00 00 C0 57 06 [19:09:57]Write i2c OK [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: F0 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: F0 09 00 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: F0 09 00 C0 57 00 8C 84 22 67 72 0D 1C 67 AA [19:09:57]GetLastDocTimeStamp 1730314984 [19:09:57]current date 1730315404 [19:09:57]FM_GetShiftState [19:09:57]SAM_PROTO_GetShiftState [19:09:57]wFMCommunicate request_size=4 [19:09:57]MH_SAM_APDU [19:09:57]CAPDU: 80 13 01 00 [19:09:57]Write to MH i2c: E2 08 00 C1 57 80 13 01 00 00 00 00 00 95 [19:09:57]Write i2c OK [19:09:57]MH_I2C_Read... [19:09:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:09:57]Read from MH i2c: E2 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: E2 0E 00 [19:09:57]MH_I2C_Read... [19:09:57]Read from MH i2c: E2 0E 00 C1 57 00 09 00 01 86 76 21 67 00 00 00 00 90 00 25 [19:09:57]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:09:57]wFMCommunicate OK [19:09:57]SAM_PROTO_GetShiftState done [19:09:57]FM_GetShiftState done [19:09:57]opened in 1730246278 [19:09:57]opened+sec_in_day 1730332678 [19:09:57]quantity*price = 144000 [19:09:57]sum+1 = 144001 [19:09:57]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48747417 Сигареты Winston Unique Caster 3.000 * 147.00 = 441.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 1881.00 НСП 1% : 16.64 НДС 12% : 199.75 Наличными: 1881.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 168 30.10.2024 19:10 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139484 ФПД: 203516285695051 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191004&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139484&fm=203516285695051&tin=02508201610067®Number=0000000000091631&sum=188100 0 [19:09:59]StoreToDocumentArchive [19:09:59]shift 556 fd 139484 [19:09:59]save to /storage/0556/doc_00139484 [19:09:59]save last doc name /storage/0556/doc_00139484 to /storage/kkm_last_doc_name [19:09:59]save OK [19:09:59]Clear old archive folders... [19:09:59]ProcessDocumentItem done err = 0, tmpTLVsize=378 [19:09:59]tlvbuf is B6DF9300 [19:09:59]SAM_PROTO_ClearQueue [19:09:59]wFMCommunicate request_size=4 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 09 00 00 [19:09:59]Write to MH i2c: E2 08 00 CE 57 80 09 00 00 00 00 00 00 97 [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 03 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 03 00 CE 57 00 90 00 99 [19:09:59]RAPDU: 90 00 [19:09:59]wFMCommunicate OK [19:09:59]SAM_PROTO_ClearQueue done [19:09:59]KKMCreateOFDPacket [19:09:59]OFDProtocolAddRootSTLVToBuf [19:09:59]FM_MakeSignedData [19:09:59]FM_MakeSignedData [19:09:59]SAM_PROTO_SignData [19:09:59]wFMCommunicate request_size=4 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 0D 01 02 [19:09:59]Write to MH i2c: E2 08 00 CF 57 80 0D 01 02 00 00 00 00 9F [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 03 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 03 00 CF 57 00 90 00 9A [19:09:59]RAPDU: 90 00 [19:09:59]wFMCommunicate OK [19:09:59]wFMCommunicate request_size=255 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 32 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 37 34 31 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 55 6E 69 71 75 65 20 43 61 73 74 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 44 AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 [19:09:59]Write to MH i2c: E2 02 01 D0 57 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 32 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 37 34 31 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 55 6E 69 71 75 65 20 43 61 73 74 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 44 AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 00 00 D0 [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 03 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 03 00 D0 57 00 90 00 9B [19:09:59]RAPDU: 90 00 [19:09:59]wFMCommunicate OK [19:09:59]wFMCommunicate request_size=137 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 4E 00 00 00 00 07 04 06 00 C4 DE 02 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 8C 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 20 02 00 35 04 06 00 B9 18 D3 EA 34 4B [19:09:59]Write to MH i2c: E2 8C 00 D1 57 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 4E 00 00 00 00 07 04 06 00 C4 DE 02 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 8C 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 20 02 00 35 04 06 00 B9 18 D3 EA 34 4B 00 00 4D [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 03 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 03 00 D1 57 00 90 00 9C [19:09:59]RAPDU: 90 00 [19:09:59]wFMCommunicate OK [19:09:59]wFMCommunicate request_size=4 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 0D 03 02 [19:09:59]Write to MH i2c: E2 08 00 D2 57 80 0D 03 02 00 00 00 00 A4 [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 0B 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 0B 00 D2 57 00 2C 73 62 4C 93 41 60 59 90 00 7F [19:09:59]RAPDU: 2C 73 62 4C 93 41 60 59 90 00 [19:09:59]wFMCommunicate OK [19:09:59]SAM_PROTO_SignData done [19:09:59]FM_MakeSignedData done [19:09:59]CreateOFDProtocolMessage [19:09:59]wFMCommunicate request_size=4 [19:09:59]MH_SAM_APDU [19:09:59]CAPDU: 80 11 00 00 [19:09:59]Write to MH i2c: E2 08 00 D3 57 80 11 00 00 00 00 00 00 A4 [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:09:59]Read from MH i2c: E2 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 17 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: E2 17 00 D3 57 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FF [19:09:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:09:59]wFMCommunicate OK [19:09:59]CreateOFDProtocolMessage done [19:09:59]OFDSenderStorePacket 139484 [19:09:59]StoreOFDPacket docnum=139484 [19:09:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8E 01 00 00 61 DD 86 01 05 D5 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 32 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 37 34 31 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 55 6E 69 71 75 65 20 43 61 73 74 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 44 AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 4E 00 00 00 00 07 04 06 00 C4 DE 02 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 8C 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 20 02 00 35 04 06 00 B9 18 D3 EA 34 4B 2C 73 62 4C 93 41 60 59 [19:09:59]CheckFolder [19:09:59]dirname=/storage/ofd_packets [19:09:59]CheckFolder done [19:09:59]ProducePacketName [19:09:59]name=ofd_packets/00139484 [19:09:59]NVStorageSaveData ofd_packets/00139484 [19:09:59]File name is /storage/ofd_packets/00139484 [19:09:59]Write 428 bytes [19:09:59]NVStorageSaveData done [19:09:59]OFDSenderStorePacket done [19:09:59]KKMCreateOFDPacket done [19:09:59]NVStorageSaveData kkm_last_timestamp [19:09:59]File name is /storage/kkm_last_timestamp [19:09:59]Write 4 bytes [19:09:59]NVStorageSaveData done [19:09:59]ExternCall_PrintAddStr [19:09:59]wPrintStart [19:09:59]Write to MH i2c: 01 00 00 D4 57 2B [19:09:59]Write i2c OK [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: 01 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: 01 07 00 [19:09:59]MH_I2C_Read... [19:09:59]Read from MH i2c: 01 07 00 D4 57 00 00 00 00 00 FF 0F 40 [19:09:59]RasterBufferAndPrint [19:09:59]line Счет N : (3)335365 [19:09:59]line ИНН: 02508201610067 [19:09:59]line Контрольно-Кассовый Чек [19:09:59]line ПРОДАЖА [19:09:59]line Товар: 48743570 [19:09:59]line Сигареты Winston XStyle Blue [19:09:59]line 10.000 * 144.00 [19:09:59]line = 1440.00 [19:09:59]line НДС 12% НСП 1% [19:10:00]line > о реализуемом товаре [19:10:00]line Товар: 48747417 [19:10:00]line Сигареты Winston Unique Caster [19:10:00]line 3.000 * 147.00 [19:10:00]line = 441.00 [19:10:00]line НДС 12% НСП 1% [19:10:00]line > о реализуемом товаре [19:10:00]line ИТОГО: 1881.00 [19:10:00]line НСП 1% : 16.64 [19:10:00]line НДС 12% : 199.75 [19:10:00]line Наличными: 1881.00 [19:10:00]line Безнал.: 0.00 [19:10:00]line Место: АЗС № 101 "Партнер Нефть" [19:10:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:10:00]line СНО: Общий режим [19:10:00]line Чек 168 30.10.2024 19:10 [19:10:00]line Смена: 556 ФФД: 1.0 [19:10:00]line ЗНМ: 0300000081 [19:10:00]line РНМ: 0000000000091631 [19:10:00]line Версия ККМ: 001 [19:10:00]line ФМ: 0000000000874669 [19:10:00]line ФД: 139484 [19:10:00]line ФПД: 203516285695051 [19:10:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191004&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139484&fm=203516285695051&tin=02508201610067®Number=0000000000091631&sum=188100 [19:10:00]line 0 [19:10:00]OFD Sender: Processing packet 139484 [packets to send 34, broken 33] [19:10:00]ProducePacketName [19:10:00]name=ofd_packets/00139484 [19:10:00]OFD Sender: To server: pG, [19:10:00]CommunicateWithHost lk.salyk.kg:30040 [19:10:00]ConnectInit lk.salyk.kg [19:10:00]written 0, free lines is 4095 [19:10:00]Connected sock=11 [19:10:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8E 01 00 00 61 DD 86 01 05 D5 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 10 27 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 80 32 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 37 34 31 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 55 6E 69 71 75 65 20 43 61 73 74 65 72 FF 03 08 00 03 B8 0B 00 00 00 00 00 37 04 06 00 6C 39 00 00 00 00 13 04 06 00 44 AC 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C4 DE 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 80 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 07 4E 00 00 00 00 07 04 06 00 C4 DE 02 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 8C 84 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 20 02 00 35 04 06 00 B9 18 D3 EA 34 4B 2C 73 62 4C 93 41 60 59 [19:10:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 86 EB 47 00 9E 02 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DC 20 02 00 F4 03 04 00 3C 30 22 67 B6 04 01 00 00 DB 88 38 52 6C 7D 9A D6 [19:10:00]CommunicateWithHost err = 0 [19:10:00]CheckOFDResponse [19:10:00]1017 (14) - 77093643461234 [19:10:00]1041 (16) - 0000000000874669 [19:10:00]1040 (4) - 139484 [19:10:00]1012 (4) - 30.10.2024 13:10 [19:10:00]1206 (1) - 0 [19:10:00]OFD Sender: Remove packet 139484 [19:10:00]ProducePacketName [19:10:00]name=ofd_packets/00139484 [19:10:00]NVStorageDeleteData [19:10:00]Write to MH i2c: 01 00 00 03 58 5B [19:10:00]Write i2c OK [19:10:00]MH_I2C_Read... [19:10:00]Read from MH i2c: 01 [19:10:00]MH_I2C_Read... [19:10:00]Read from MH i2c: 01 07 00 [19:10:00]MH_I2C_Read... [19:10:00]Read from MH i2c: 01 07 00 03 58 00 00 00 00 00 A8 0C 16 [19:10:00]RasterBufferAndPrint [19:10:00]line [19:10:00]line [19:10:00]line [19:10:00]line [19:10:00]line [19:10:00]written 0, free lines is 3246 [19:10:00]MH_Cut [19:10:00]Write to MH i2c: D1 01 00 0A 58 01 34 [19:10:00]Write i2c OK [19:10:00]MH_I2C_Read... [19:10:00]Read from MH i2c: D1 [19:10:00]MH_I2C_Read... [19:10:00]Read from MH i2c: D1 01 00 [19:10:00]MH_I2C_Read... [19:10:00]Read from MH i2c: D1 01 00 0A 58 00 33 [19:10:00]Write to MH i2c: 01 00 00 0B 58 63 [19:10:00]Write i2c OK [19:10:00]MH_I2C_Read... [19:10:00]OFD Sender: No OFD packet to send [19:10:01]*** Cut start [19:10:01]*** Partial cut [19:10:01]*** CUTSNS_PIN = 1 [19:10:01]*** CUTSNS_PIN = 0 [19:10:01]*** Brake cut motor [19:10:01]Read from MH i2c: 01 [19:10:01]MH_I2C_Read... [19:10:01]*** Stop cut motor [19:10:01]*** Cut end [19:10:01]Read from MH i2c: 01 07 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: 01 07 00 0B 58 00 00 00 00 00 FF 0F 78 [19:10:01]process_action close_receipt done [19:10:01]requested_data is exist [19:10:01]produce_requested_data [19:10:01]requested_item fm.sn is exist - process it [19:10:01]wFMCommunicate request_size=4 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 11 00 00 [19:10:01]Write to MH i2c: E2 08 00 0C 58 80 11 00 00 00 00 00 00 DE [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:10:01]Read from MH i2c: E2 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 17 00 [19:10:01]MH_I2C_Read... [19:10:01]Read from MH i2c: E2 17 00 0C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 39 [19:10:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:10:01]wFMCommunicate OK [19:10:01]requested_item fd.num is exist - process it [19:10:01]SAM_PROTO_GetFieldsCounters [19:10:01]wFMCommunicate request_size=4 [19:10:01]MH_SAM_APDU [19:10:01]CAPDU: 80 13 00 00 [19:10:01]Write to MH i2c: E2 08 00 0D 58 80 13 00 00 00 00 00 00 E1 [19:10:01]Write i2c OK [19:10:01]MH_I2C_Read... [19:10:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:10:02]Read from MH i2c: E2 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: E2 62 00 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: E2 62 00 0D 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DC 20 02 00 0E 04 04 00 2C 02 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 29 [19:10:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DC 20 02 00 0E 04 04 00 2C 02 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 [19:10:02]wFMCommunicate OK [19:10:02]SAM_PROTO_GetFieldsCounters done [19:10:02]requested_item shift.num is exist - process it [19:10:02]requested_item shift.opened is exist - process it [19:10:02]req_shift_opened [19:10:02]FM_GetShiftState [19:10:02]SAM_PROTO_GetShiftState [19:10:02]wFMCommunicate request_size=4 [19:10:02]MH_SAM_APDU [19:10:02]CAPDU: 80 13 01 00 [19:10:02]Write to MH i2c: E2 08 00 0E 58 80 13 01 00 00 00 00 00 E3 [19:10:02]Write i2c OK [19:10:02]MH_I2C_Read... [19:10:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:10:02]Read from MH i2c: E2 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: E2 0E 00 [19:10:02]MH_I2C_Read... [19:10:02]Read from MH i2c: E2 0E 00 0E 58 00 09 00 01 86 76 21 67 00 00 00 00 90 00 73 [19:10:02]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:10:02]wFMCommunicate OK [19:10:02]SAM_PROTO_GetShiftState done [19:10:02]FM_GetShiftState done [19:10:02]req_shift_opened done [19:10:02]requested_item shift.open_date is exist - process it [19:10:02]req_shift_open_date [19:10:02]req_shift_open_date done [19:10:02]produce_requested_data done [19:10:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139484,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [19:10:02]process_action_free close_receipt [19:10:02]json_value_free [19:10:02]json_value_free done [19:10:02]process_json_proto returns [19:10:02]Send response to host [19:10:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139484,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [19:10:02]free response buf [19:10:02]execute_script done [19:10:02]execute_script returns [19:10:02]free content buf [19:10:02]Sock 9.Close socket [19:10:02]Sock 9.Thread stoped [19:10:05]OFD Sender: No OFD packet to send [19:10:10]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [19:12:40]OFD Sender: No OFD packet to send [19:12:45]OFD Sender: No OFD packet to send [19:12:50]OFD Sender: No OFD packet to send [19:12:55]OFD Sender: No OFD packet to send [19:13:00]OFD Sender: No OFD packet to send [19:13:05]OFD Sender: No OFD packet to send [19:13:10]OFD Sender: No OFD packet to send [19:13:15]OFD Sender: No OFD packet to send [19:13:20]OFD Sender: No OFD packet to send [19:13:25]OFD Sender: No OFD packet to send [19:13:31]OFD Sender: No OFD packet to send [19:13:36]OFD Sender: No OFD packet to send [19:13:41]OFD Sender: No OFD packet to send [19:13:46]OFD Sender: No OFD packet to send [19:13:51]OFD Sender: No OFD packet to send [19:13:56]OFD Sender: No OFD packet to send [19:14:01]OFD Sender: No OFD packet to send [19:14:06]OFD Sender: No OFD packet to send [19:14:11]OFD Sender: No OFD packet to send [19:14:16]OFD Sender: No OFD packet to send [19:14:21]OFD Sender: No OFD packet to send [19:14:26]OFD Sender: No OFD packet to send [19:14:31]OFD Sender: No OFD packet to send [19:14:36]OFD Sender: No OFD packet to send [19:14:41]OFD Sender: No OFD packet to send [19:14:46]OFD Sender: No OFD packet to send [19:14:51]OFD Sender: No OFD packet to send [19:14:56]OFD Sender: No OFD packet to send [19:15:01]OFD Sender: No OFD packet to send [19:15:06]OFD Sender: No OFD packet to send [19:15:11]OFD Sender: No OFD packet to send [19:15:16]OFD Sender: No OFD packet to send [19:15:21]OFD Sender: No OFD packet to send [19:15:26]OFD Sender: No OFD packet to send [19:15:31]OFD Sender: No OFD packet to send [19:15:36]OFD Sender: No OFD packet to send [19:15:41]OFD Sender: No OFD packet to send [19:15:46]OFD Sender: No OFD packet to send [19:15:51]OFD Sender: No OFD packet to send [19:15:56]OFD Sender: No OFD packet to send [19:16:01]OFD Sender: No OFD packet to send [19:16:06]OFD Sender: No OFD packet to send [19:16:11]OFD Sender: No OFD packet to send [19:16:12]accept exits with 8 [19:16:12]New connection [19:16:12]New thread 3067284836 created [19:16:12]Thread 3067141476 joined [19:16:12]Waiting for new connection... [19:16:12] Sock 8.Parse request [19:16:12]Sock 8.Check first char [19:16:12]Sock 8.First char is OK [19:16:12]request: POST /json_proto HTTP/1.0 [19:16:12]Method: POST [19:16:12]URL: /json_proto [19:16:12]Method is POST - this is cgi request [19:16:12]url: /json_proto [19:16:12]query_string will be loaded in cgi processing [19:16:12]execute_cgi json_proto POST (null) [19:16:12]execute_cgi path=json_proto method=POST [19:16:12]POST find Content-Length [19:16:12]Host: 172.17.50.196:8080 [19:16:12]Content-Length: 1039 [19:16:12]Content-Type: application/json [19:16:12] [19:16:12]POST finish read [19:16:12]Found Content-Length = 1039 [19:16:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335367", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 188.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:12]execute_script... [19:16: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 : (3)335367", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 188.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:16:12]POST & json_proto [19:16:12]process_json_proto [19:16:12]json parsed OK: [19:16:12]protocol is kg_v1.0 [19:16:12]action value=close_receipt [19:16:12]process_action close_receipt [19:16:12]cmd_close_receipt [19:16:12]MH_GetDate [19:16:12]Write to MH i2c: F0 00 00 0F 58 56 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: F0 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: F0 09 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: F0 09 00 0F 58 00 03 86 22 67 72 0D 1C 67 73 [19:16:12]GetLastDocTimeStamp 1730315404 [19:16:12]current date 1730315779 [19:16:12]FM_GetShiftState [19:16:12]SAM_PROTO_GetShiftState [19:16:12]wFMCommunicate request_size=4 [19:16:12]MH_SAM_APDU [19:16:12]CAPDU: 80 13 01 00 [19:16:12]Write to MH i2c: E2 08 00 10 58 80 13 01 00 00 00 00 00 E5 [19:16:12]Write i2c OK [19:16:12]MH_I2C_Read... [19:16:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:12]Read from MH i2c: E2 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 0E 00 [19:16:12]MH_I2C_Read... [19:16:12]Read from MH i2c: E2 0E 00 10 58 00 09 00 01 86 76 21 67 00 00 00 00 90 00 75 [19:16:12]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:16:12]wFMCommunicate OK [19:16:12]SAM_PROTO_GetShiftState done [19:16:12]FM_GetShiftState done [19:16:12]opened in 1730246278 [19:16:12]opened+sec_in_day 1730332678 [19:16:12]quantity*price = 10400 [19:16:12]sum+1 = 10401 [19:16:12]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001571030 Вода ASU пит н.газ клубн,киви ПЭТ 1л 1.000 * 84.00 = 84.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 188.00 НСП 1% : 1.66 НДС 12% : 19.96 Наличными: 188.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 169 30.10.2024 19:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139485 ФПД: 256347126452124 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191619&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139485&fm=256347126452124&tin=02508201610067®Number=0000000000091631&sum=18800 0 [19:16:14]StoreToDocumentArchive [19:16:14]shift 556 fd 139485 [19:16:14]save to /storage/0556/doc_00139485 [19:16:14]save last doc name /storage/0556/doc_00139485 to /storage/kkm_last_doc_name [19:16:14]save OK [19:16:14]Clear old archive folders... [19:16:14]ProcessDocumentItem done err = 0, tmpTLVsize=435 [19:16:14]tlvbuf is 01262BD0 [19:16:14]SAM_PROTO_ClearQueue [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 09 00 00 [19:16:14]Write to MH i2c: E2 08 00 1D 58 80 09 00 00 00 00 00 00 E7 [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 03 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 03 00 1D 58 00 90 00 E9 [19:16:14]RAPDU: 90 00 [19:16:14]wFMCommunicate OK [19:16:14]SAM_PROTO_ClearQueue done [19:16:14]KKMCreateOFDPacket [19:16:14]OFDProtocolAddRootSTLVToBuf [19:16:14]FM_MakeSignedData [19:16:14]FM_MakeSignedData [19:16:14]SAM_PROTO_SignData [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 0D 01 02 [19:16:14]Write to MH i2c: E2 08 00 1E 58 80 0D 01 02 00 00 00 00 EF [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 03 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 03 00 1E 58 00 90 00 EA [19:16:14]RAPDU: 90 00 [19:16:14]wFMCommunicate OK [19:16:14]wFMCommunicate request_size=255 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 0D 02 02 FA 03 00 B3 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 [19:16:14]Write to MH i2c: E2 02 01 1F 58 80 0D 02 02 FA 00 03 00 B3 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 00 00 7A [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 03 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 03 00 1F 58 00 90 00 EB [19:16:14]RAPDU: 90 00 [19:16:14]wFMCommunicate OK [19:16:14]wFMCommunicate request_size=194 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 0D 02 02 BD 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 07 00 00 00 00 07 04 06 00 70 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 03 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 20 02 00 35 04 06 00 E9 25 77 69 4F 9C [19:16:14]Write to MH i2c: E2 C5 00 20 58 80 0D 02 02 BD 00 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 07 00 00 00 00 07 04 06 00 70 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 03 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 20 02 00 35 04 06 00 E9 25 77 69 4F 9C 00 00 0B [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 03 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 03 00 20 58 00 90 00 EC [19:16:14]RAPDU: 90 00 [19:16:14]wFMCommunicate OK [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 0D 03 02 [19:16:14]Write to MH i2c: E2 08 00 21 58 80 0D 03 02 00 00 00 00 F4 [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 0B 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 0B 00 21 58 00 74 7C 49 16 09 7E 24 7B 90 00 6A [19:16:14]RAPDU: 74 7C 49 16 09 7E 24 7B 90 00 [19:16:14]wFMCommunicate OK [19:16:14]SAM_PROTO_SignData done [19:16:14]FM_MakeSignedData done [19:16:14]CreateOFDProtocolMessage [19:16:14]wFMCommunicate request_size=4 [19:16:14]MH_SAM_APDU [19:16:14]CAPDU: 80 11 00 00 [19:16:14]Write to MH i2c: E2 08 00 22 58 80 11 00 00 00 00 00 00 F4 [19:16:14]Write i2c OK [19:16:14]MH_I2C_Read... [19:16:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:14]Read from MH i2c: E2 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 17 00 [19:16:14]MH_I2C_Read... [19:16:14]Read from MH i2c: E2 17 00 22 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4F [19:16:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:16:14]wFMCommunicate OK [19:16:14]CreateOFDProtocolMessage done [19:16:14]OFDSenderStorePacket 139485 [19:16:14]StoreOFDPacket docnum=139485 [19:16:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C7 01 00 00 94 07 BF 01 0D D9 5A 03 01 00 03 00 B3 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 07 00 00 00 00 07 04 06 00 70 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 03 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 20 02 00 35 04 06 00 E9 25 77 69 4F 9C 74 7C 49 16 09 7E 24 7B [19:16:14]CheckFolder [19:16:14]dirname=/storage/ofd_packets [19:16:14]CheckFolder done [19:16:14]ProducePacketName [19:16:14]name=ofd_packets/00139485 [19:16:14]NVStorageSaveData ofd_packets/00139485 [19:16:14]File name is /storage/ofd_packets/00139485 [19:16:14]Write 485 bytes [19:16:14]NVStorageSaveData done [19:16:14]OFDSenderStorePacket done [19:16:14]KKMCreateOFDPacket done [19:16:14]NVStorageSaveData kkm_last_timestamp [19:16:14]File name is /storage/kkm_last_timestamp [19:16:14]Write 4 bytes [19:16:14]NVStorageSaveData done [19:16:14]ExternCall_PrintAddStr [19:16:14]wPrintStart [19:16:14]Write to MH i2c: 01 00 00 23 58 7B [19:16:15]Write i2c OK [19:16:15]MH_I2C_Read... [19:16:15]OFD Sender: Processing packet 139485 [packets to send 34, broken 33] [19:16:15]Read from MH i2c: ProducePacketName [19:16:15]01 name=ofd_packets/00139485 [19:16:15] [19:16:15]MH_I2C_Read... [19:16:15]OFD Sender: To server: pG, [19:16:15]Read from MH i2c: CommunicateWithHost lk.salyk.kg:30040 [19:16:15]01 ConnectInit lk.salyk.kg [19:16:15]07 00 [19:16:15]MH_I2C_Read... [19:16:15]Read from MH i2c: 01 07 00 23 58 00 00 00 00 00 FF 0F 90 [19:16:15]RasterBufferAndPrint [19:16:15]line Счет N : (3)335367 [19:16:15]line ИНН: 02508201610067 [19:16:15]line Контрольно-Кассовый Чек [19:16:15]line ПРОДАЖА [19:16:15]line Товар: 4870202521216 [19:16:15]line Напиток MAXI чай 1,2 зел.лимон (новый) [19:16:15]line 1.000 * 104.00 [19:16:15]line = 104.00 [19:16:15]line НДС 12% НСП 1% [19:16:15]line > о реализуемом товаре [19:16:15]line Товар: 4870001571030 [19:16:15]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [19:16:15]line 1.000 * 84.00 [19:16:15]line = 84.00 [19:16:15]line НДС 12% НСП 1% [19:16:15]line > о реализуемом товаре [19:16:15]line ИТОГО: 188.00 [19:16:15]line НСП 1% : 1.66 [19:16:15]line НДС 12% : 19.96 [19:16:15]line Наличными: 188.00 [19:16:15]line Безнал.: 0.00 [19:16:15]line Место: АЗС № 101 "Партнер Нефть" [19:16:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:16:15]line СНО: Общий режим [19:16:15]line Чек 169 30.10.2024 19:16 [19:16:15]line Смена: 556 ФФД: 1.0 [19:16:15]line ЗНМ: 0300000081 [19:16:15]line РНМ: 0000000000091631 [19:16:15]line Версия ККМ: 001 [19:16:15]line ФМ: 0000000000874669 [19:16:15]line ФД: 139485 [19:16:15]line ФПД: 256347126452124 [19:16:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191619&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139485&fm=256347126452124&tin=02508201610067®Number=0000000000091631&sum=18800 [19:16:15]line 0 [19:16:15]written 0, free lines is 4095 [19:16:15]Connected sock=11 [19:16:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C7 01 00 00 94 07 BF 01 0D D9 5A 03 01 00 03 00 B3 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A6 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CC 07 00 00 00 00 07 04 06 00 70 49 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 A9 00 00 00 F4 03 04 00 03 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 20 02 00 35 04 06 00 E9 25 77 69 4F 9C 74 7C 49 16 09 7E 24 7B [19:16:15]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9E B4 47 00 49 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DD 20 02 00 F4 03 04 00 B3 31 22 67 B6 04 01 00 00 54 BB 50 E1 DB 86 8E 5D [19:16:15]CommunicateWithHost err = 0 [19:16:15]CheckOFDResponse [19:16:15]1017 (14) - 77093643461234 [19:16:15]1041 (16) - 0000000000874669 [19:16:15]1040 (4) - 139485 [19:16:15]1012 (4) - 30.10.2024 13:16 [19:16:15]1206 (1) - 0 [19:16:15]OFD Sender: Remove packet 139485 [19:16:15]ProducePacketName [19:16:15]name=ofd_packets/00139485 [19:16:15]NVStorageDeleteData [19:16:15]Write to MH i2c: 01 00 00 53 58 AB [19:16:15]Write i2c OK [19:16:15]MH_I2C_Read... [19:16:15]Read from MH i2c: 01 [19:16:15]MH_I2C_Read... [19:16:15]Read from MH i2c: 01 07 00 [19:16:15]MH_I2C_Read... [19:16:15]Read from MH i2c: 01 07 00 53 58 00 00 00 00 00 B6 0C 74 [19:16:15]RasterBufferAndPrint [19:16:15]line [19:16:15]line [19:16:15]line [19:16:15]line [19:16:15]line [19:16:15]written 0, free lines is 3264 [19:16:15]MH_Cut [19:16:15]Write to MH i2c: D1 01 00 5A 58 01 84 [19:16:15]Write i2c OK [19:16:15]MH_I2C_Read... [19:16:15]Read from MH i2c: D1 [19:16:15]MH_I2C_Read... [19:16:15]Read from MH i2c: D1 01 00 [19:16:15]MH_I2C_Read... [19:16:15]Read from MH i2c: D1 01 00 5A 58 00 83 [19:16:15]Write to MH i2c: 01 00 00 5B 58 B3 [19:16:15]Write i2c OK [19:16:15]MH_I2C_Read... [19:16:15]OFD Sender: No OFD packet to send [19:16:16]*** Cut start [19:16:16]*** Partial cut [19:16:16]*** CUTSNS_PIN = 1 [19:16:16]*** CUTSNS_PIN = 0 [19:16:16]*** Brake cut motor [19:16:16]Read from MH i2c: 01 [19:16:16]MH_I2C_Read... [19:16:16]*** Stop cut motor [19:16:16]*** Cut end [19:16:16]Read from MH i2c: 01 07 00 [19:16:16]MH_I2C_Read... [19:16:16]Read from MH i2c: 01 07 00 5B 58 00 00 00 00 00 FF 0F C8 [19:16:16]process_action close_receipt done [19:16:16]requested_data is exist [19:16:16]produce_requested_data [19:16:16]requested_item fm.sn is exist - process it [19:16:16]wFMCommunicate request_size=4 [19:16:16]MH_SAM_APDU [19:16:16]CAPDU: 80 11 00 00 [19:16:16]Write to MH i2c: E2 08 00 5C 58 80 11 00 00 00 00 00 00 2E [19:16:16]Write i2c OK [19:16:16]MH_I2C_Read... [19:16:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:16:16]Read from MH i2c: E2 [19:16:16]MH_I2C_Read... [19:16:16]Read from MH i2c: E2 17 00 [19:16:16]MH_I2C_Read... [19:16:16]Read from MH i2c: E2 17 00 5C 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 89 [19:16:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:16:16]wFMCommunicate OK [19:16:16]requested_item fd.num is exist - process it [19:16:16]SAM_PROTO_GetFieldsCounters [19:16:16]wFMCommunicate request_size=4 [19:16:16]MH_SAM_APDU [19:16:16]CAPDU: 80 13 00 00 [19:16:16]Write to MH i2c: E2 08 00 5D 58 80 13 00 00 00 00 00 00 31 [19:16:16]Write i2c OK [19:16:16]MH_I2C_Read... [19:16:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:16:17]Read from MH i2c: E2 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 62 00 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 62 00 5D 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DD 20 02 00 0E 04 04 00 2C 02 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 7D [19:16:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DD 20 02 00 0E 04 04 00 2C 02 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 [19:16:17]wFMCommunicate OK [19:16:17]SAM_PROTO_GetFieldsCounters done [19:16:17]requested_item shift.num is exist - process it [19:16:17]requested_item shift.opened is exist - process it [19:16:17]req_shift_opened [19:16:17]FM_GetShiftState [19:16:17]SAM_PROTO_GetShiftState [19:16:17]wFMCommunicate request_size=4 [19:16:17]MH_SAM_APDU [19:16:17]CAPDU: 80 13 01 00 [19:16:17]Write to MH i2c: E2 08 00 5E 58 80 13 01 00 00 00 00 00 33 [19:16:17]Write i2c OK [19:16:17]MH_I2C_Read... [19:16:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:16:17]Read from MH i2c: E2 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 0E 00 [19:16:17]MH_I2C_Read... [19:16:17]Read from MH i2c: E2 0E 00 5E 58 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C3 [19:16:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:16:17]wFMCommunicate OK [19:16:17]SAM_PROTO_GetShiftState done [19:16:17]FM_GetShiftState done [19:16:17]req_shift_opened done [19:16:17]requested_item shift.open_date is exist - process it [19:16:17]req_shift_open_date [19:16:17]req_shift_open_date done [19:16:17]produce_requested_data done [19:16:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139485,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [19:16:17]process_action_free close_receipt [19:16:17]json_value_free [19:16:17]json_value_free done [19:16:17]process_json_proto returns [19:16:17]Send response to host [19:16:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139485,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [19:16:17]free response buf [19:16:17]execute_script done [19:16:17]execute_script returns [19:16:17]free content buf [19:16:17]Sock 8.Close socket [19:16:17]Sock 8.Thread stoped [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:45]OFD Sender: No OFD packet to send [19:17:50]OFD Sender: No OFD packet to send [19:17:55]OFD Sender: No OFD packet to send [19:18:00]OFD Sender: No OFD packet to send [19:18:05]OFD Sender: No OFD packet to send [19:18:10]OFD Sender: No OFD packet to send [19:18:15]OFD Sender: No OFD packet to send [19:18:20]OFD Sender: No OFD packet to send [19:18:25]accept exits with 9 [19:18:25]New connection [19:18:25]New thread 3067141476 created [19:18:25]Thread 3067284836 joined [19:18:25]Waiting for new connection... [19:18:25] Sock 9.Parse request [19:18:25]Sock 9.Check first char [19:18:25]Sock 9.First char is OK [19:18:25]request: POST /json_proto HTTP/1.0 [19:18:25]Method: POST [19:18:25]URL: /json_proto [19:18:25]Method is POST - this is cgi request [19:18:25]url: /json_proto [19:18:25]query_string will be loaded in cgi processing [19:18:25]execute_cgi json_proto POST (null) [19:18:25]execute_cgi path=json_proto method=POST [19:18:25]POST find Content-Length [19:18:25]Host: 172.17.50.196:8080 [19:18:25]Content-Length: 683 [19:18:25]Content-Type: application/json [19:18:25] [19:18:25]POST finish read [19:18:25]Found Content-Length = 683 [19:18:25]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 27.090, "sum" : 1812.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1812.00, "total" : 1812.00, "payments": [ { "type": 0, "sum" : 1812.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:25]execute_script... [19:18: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)1094737", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 27.090, "sum" : 1812.32, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1812.00, "total" : 1812.00, "payments": [ { "type": 0, "sum" : 1812.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:18:25]POST & json_proto [19:18:25]process_json_proto [19:18:25]json parsed OK: [19:18:25]protocol is kg_v1.0 [19:18:25]action value=close_receipt [19:18:25]process_action close_receipt [19:18:25]cmd_close_receipt [19:18:25]MH_GetDate [19:18:25]Write to MH i2c: F0 00 00 5F 58 A6 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: F0 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: F0 09 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: F0 09 00 5F 58 00 87 86 22 67 72 0D 1C 67 47 [19:18:25]GetLastDocTimeStamp 1730315779 [19:18:25]current date 1730315911 [19:18:25]FM_GetShiftState [19:18:25]SAM_PROTO_GetShiftState [19:18:25]wFMCommunicate request_size=4 [19:18:25]MH_SAM_APDU [19:18:25]CAPDU: 80 13 01 00 [19:18:25]Write to MH i2c: E2 08 00 60 58 80 13 01 00 00 00 00 00 35 [19:18:25]Write i2c OK [19:18:25]MH_I2C_Read... [19:18:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:25]Read from MH i2c: E2 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 0E 00 [19:18:25]MH_I2C_Read... [19:18:25]Read from MH i2c: E2 0E 00 60 58 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C5 [19:18:25]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:18:25]wFMCommunicate OK [19:18:25]SAM_PROTO_GetShiftState done [19:18:25]FM_GetShiftState done [19:18:25]opened in 1730246278 [19:18:25]opened+sec_in_day 1730332678 [19:18:25]quantity*price = 181232 [19:18:25]sum+1 = 181233 [19:18:25]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.32 ИТОГО: 1812.00 Внесено: 1812.00 СДАЧА: 0.00 НСП 1% : 16.04 НДС 12% : 192.46 Наличными: 1812.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 170 30.10.2024 19:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139486 ФПД: 260788850413544 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191832&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139486&fm=260788850413544&tin=02508201610067®Number=0000000000091631&sum=181200 [19:18:26]StoreToDocumentArchive [19:18:26]shift 556 fd 139486 [19:18:26]save to /storage/0556/doc_00139486 [19:18:26]save last doc name /storage/0556/doc_00139486 to /storage/kkm_last_doc_name [19:18:26]save OK [19:18:26]Clear old archive folders... [19:18:26]ProcessDocumentItem done err = 0, tmpTLVsize=251 [19:18:26]tlvbuf is 0112F5A0 [19:18:26]SAM_PROTO_ClearQueue [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 09 00 00 [19:18:26]Write to MH i2c: E2 08 00 6D 58 80 09 00 00 00 00 00 00 37 [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 6D 58 00 90 00 39 [19:18:26]RAPDU: 90 00 [19:18:26]wFMCommunicate OK [19:18:26]SAM_PROTO_ClearQueue done [19:18:26]KKMCreateOFDPacket [19:18:26]OFDProtocolAddRootSTLVToBuf [19:18:26]FM_MakeSignedData [19:18:26]FM_MakeSignedData [19:18:26]SAM_PROTO_SignData [19:18:26]wFMCommunicate request_size=4 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 0D 01 02 [19:18:26]Write to MH i2c: E2 08 00 6E 58 80 0D 01 02 00 00 00 00 3F [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 6E 58 00 90 00 3A [19:18:26]RAPDU: 90 00 [19:18:26]wFMCommunicate OK [19:18:26]wFMCommunicate request_size=255 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 C3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 C3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 4B 00 00 00 00 07 04 06 00 D0 C3 02 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 88 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DE 20 02 00 35 04 06 00 ED [19:18:26]Write to MH i2c: E2 02 01 6F 58 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 C3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 C3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 4B 00 00 00 00 07 04 06 00 D0 C3 02 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 88 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DE 20 02 00 35 04 06 00 ED 00 00 BE [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:26]Read from MH i2c: E2 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 [19:18:26]MH_I2C_Read... [19:18:26]Read from MH i2c: E2 03 00 6F 58 00 90 00 3B [19:18:26]RAPDU: 90 00 [19:18:26]wFMCommunicate OK [19:18:26]wFMCommunicate request_size=10 [19:18:26]MH_SAM_APDU [19:18:26]CAPDU: 80 0D 02 02 05 2F A2 CA 4F E8 [19:18:26]Write to MH i2c: E2 0D 00 70 58 80 0D 02 02 05 00 2F A2 CA 4F E8 00 00 1E [19:18:26]Write i2c OK [19:18:26]MH_I2C_Read... [19:18:27]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:18:27]Read from MH i2c: E2 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: E2 03 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: E2 03 00 70 58 00 90 00 3C [19:18:27]RAPDU: 90 00 [19:18:27]wFMCommunicate OK [19:18:27]wFMCommunicate request_size=4 [19:18:27]MH_SAM_APDU [19:18:27]CAPDU: 80 0D 03 02 [19:18:27]Write to MH i2c: E2 08 00 71 58 80 0D 03 02 00 00 00 00 44 [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:18:27]Read from MH i2c: E2 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: E2 0B 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: E2 0B 00 71 58 00 C1 71 26 AC 38 C5 32 F4 90 00 6C [19:18:27]RAPDU: C1 71 26 AC 38 C5 32 F4 90 00 [19:18:27]wFMCommunicate OK [19:18:27]SAM_PROTO_SignData done [19:18:27]FM_MakeSignedData done [19:18:27]CreateOFDProtocolMessage [19:18:27]wFMCommunicate request_size=4 [19:18:27]MH_SAM_APDU [19:18:27]CAPDU: 80 11 00 00 [19:18:27]Write to MH i2c: E2 08 00 72 58 80 11 00 00 00 00 00 00 44 [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:27]Read from MH i2c: E2 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: E2 17 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: E2 17 00 72 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9F [19:18:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:18:27]wFMCommunicate OK [19:18:27]CreateOFDProtocolMessage done [19:18:27]OFDSenderStorePacket 139486 [19:18:27]StoreOFDPacket docnum=139486 [19:18:27]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 16 90 07 01 B7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 C3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 C3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 4B 00 00 00 00 07 04 06 00 D0 C3 02 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 88 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DE 20 02 00 35 04 06 00 ED 2F A2 CA 4F E8 C1 71 26 AC 38 C5 32 F4 [19:18:27]CheckFolder [19:18:27]dirname=/storage/ofd_packets [19:18:27]CheckFolder done [19:18:27]ProducePacketName [19:18:27]name=ofd_packets/00139486 [19:18:27]NVStorageSaveData ofd_packets/00139486 [19:18:27]File name is /storage/ofd_packets/00139486 [19:18:27]Write 301 bytes [19:18:27]NVStorageSaveData done [19:18:27]OFDSenderStorePacket done [19:18:27]KKMCreateOFDPacket done [19:18:27]NVStorageSaveData kkm_last_timestamp [19:18:27]File name is /storage/kkm_last_timestamp [19:18:27]Write 4 bytes [19:18:27]NVStorageSaveData done [19:18:27]ExternCall_PrintAddStr [19:18:27]wPrintStart [19:18:27]Write to MH i2c: 01 00 00 73 58 CB [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 07 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 07 00 73 58 00 00 00 00 00 FF 0F E0 [19:18:27]RasterBufferAndPrint [19:18:27]line Счет N : (1)1094737 [19:18:27]line ИНН: 02508201610067 [19:18:27]line Контрольно-Кассовый Чек [19:18:27]line ПРОДАЖА [19:18:27]line ТРК (МРК, ГНК) : 63 [19:18:27]line Товар: 2710124130 [19:18:27]line Аи-92-К-2 [19:18:27]line 27.090 * 66.90 [19:18:27]line = 1812.32 [19:18:27]line НДС 12% НСП 1% [19:18:27]line > о реализуемом товаре [19:18:27]line ОКРУГЛЕНИЕ: -0.32 [19:18:27]line ИТОГО: 1812.00 [19:18:27]line Внесено: 1812.00 [19:18:27]line СДАЧА: 0.00 [19:18:27]line НСП 1% : 16.04 [19:18:27]line НДС 12% : 192.46 [19:18:27]line Наличными: 1812.00 [19:18:27]line Безнал.: 0.00 [19:18:27]line Место: АЗС № 101 "Партнер Нефть" [19:18:27]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:18:27]line СНО: Общий режим [19:18:27]line Чек 170 30.10.2024 19:18 [19:18:27]line Смена: 556 ФФД: 1.0 [19:18:27]line ЗНМ: 0300000081 [19:18:27]line РНМ: 0000000000091631 [19:18:27]line Версия ККМ: 001 [19:18:27]line ФМ: 0000000000874669 [19:18:27]line ФД: 139486 [19:18:27]line ФПД: 260788850413544 [19:18:27]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T191832&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139486&fm=260788850413544&tin=02508201610067®Number=0000000000091631&sum=181200 [19:18:27]OFD Sender: Processing packet 139486 [packets to send 34, broken 33] [19:18:27]ProducePacketName [19:18:27]name=ofd_packets/00139486 [19:18:27]OFD Sender: To server: pG, [19:18:27]CommunicateWithHost lk.salyk.kg:30040 [19:18:27]ConnectInit lk.salyk.kg [19:18:27]written 0, free lines is 4095 [19:18:27]Connected sock=10 [19:18:27]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 16 90 07 01 B7 65 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 D2 69 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 F0 C3 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 C3 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 44 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 4B 00 00 00 00 07 04 06 00 D0 C3 02 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 88 86 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DE 20 02 00 35 04 06 00 ED 2F A2 CA 4F E8 C1 71 26 AC 38 C5 32 F4 [19:18:27]Write to MH i2c: 01 00 00 9E 58 F6 [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 07 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: 01 07 00 9E 58 00 00 00 00 00 F6 0C FF [19:18:27]RasterBufferAndPrint [19:18:27]line [19:18:27]line [19:18:27]line [19:18:27]line [19:18:27]line [19:18:27]written 0, free lines is 3324 [19:18:27]MH_Cut [19:18:27]Write to MH i2c: D1 01 00 A5 58 01 CF [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: D1 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: D1 01 00 [19:18:27]MH_I2C_Read... [19:18:27]Read from MH i2c: D1 01 00 A5 58 00 CE [19:18:27]Write to MH i2c: 01 00 00 A6 58 FE [19:18:27]Write i2c OK [19:18:27]MH_I2C_Read... [19:18:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F5 A7 47 00 FB 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 38 37 34 36 36 39 10 04 04 00 DE 20 02 00 F4 03 04 00 37 32 22 67 B6 04 01 00 00 57 8F 84 64 4E BB 0B 9D [19:18:27]CommunicateWithHost err = 0 [19:18:27]CheckOFDResponse [19:18:27]1017 (14) - 77093643461234 [19:18:27]1041 (16) - 0000000000874669 [19:18:27]1040 (4) - 139486 [19:18:27]1012 (4) - 30.10.2024 13:18 [19:18:27]1206 (1) - 0 [19:18:27]OFD Sender: Remove packet 139486 [19:18:27]ProducePacketName [19:18:27]name=ofd_packets/00139486 [19:18:27]NVStorageDeleteData [19:18:28]OFD Sender: No OFD packet to send [19:18:28]*** Cut start [19:18:28]*** Partial cut [19:18:28]*** CUTSNS_PIN = 1 [19:18:28]*** CUTSNS_PIN = 0 [19:18:28]*** Brake cut motor [19:18:29]Read from MH i2c: 01 [19:18:29]MH_I2C_Read... [19:18:29]*** Stop cut motor [19:18:29]*** Cut end [19:18:29]Read from MH i2c: 01 07 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: 01 07 00 A6 58 00 00 00 00 00 FF 0F 13 [19:18:29]process_action close_receipt done [19:18:29]requested_data is exist [19:18:29]produce_requested_data [19:18:29]requested_item fm.sn is exist - process it [19:18:29]wFMCommunicate request_size=4 [19:18:29]MH_SAM_APDU [19:18:29]CAPDU: 80 11 00 00 [19:18:29]Write to MH i2c: E2 08 00 A7 58 80 11 00 00 00 00 00 00 79 [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:18:29]Read from MH i2c: E2 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 17 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 17 00 A7 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D4 [19:18:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:18:29]wFMCommunicate OK [19:18:29]requested_item fd.num is exist - process it [19:18:29]SAM_PROTO_GetFieldsCounters [19:18:29]wFMCommunicate request_size=4 [19:18:29]MH_SAM_APDU [19:18:29]CAPDU: 80 13 00 00 [19:18:29]Write to MH i2c: E2 08 00 A8 58 80 13 00 00 00 00 00 00 7C [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:18:29]Read from MH i2c: E2 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 62 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 62 00 A8 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DE 20 02 00 0E 04 04 00 2C 02 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 CC [19:18:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DE 20 02 00 0E 04 04 00 2C 02 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 [19:18:29]wFMCommunicate OK [19:18:29]SAM_PROTO_GetFieldsCounters done [19:18:29]requested_item shift.num is exist - process it [19:18:29]requested_item shift.opened is exist - process it [19:18:29]req_shift_opened [19:18:29]FM_GetShiftState [19:18:29]SAM_PROTO_GetShiftState [19:18:29]wFMCommunicate request_size=4 [19:18:29]MH_SAM_APDU [19:18:29]CAPDU: 80 13 01 00 [19:18:29]Write to MH i2c: E2 08 00 A9 58 80 13 01 00 00 00 00 00 7E [19:18:29]Write i2c OK [19:18:29]MH_I2C_Read... [19:18:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:18:29]Read from MH i2c: E2 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 0E 00 [19:18:29]MH_I2C_Read... [19:18:29]Read from MH i2c: E2 0E 00 A9 58 00 09 00 01 86 76 21 67 00 00 00 00 90 00 0E [19:18:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:18:29]wFMCommunicate OK [19:18:29]SAM_PROTO_GetShiftState done [19:18:29]FM_GetShiftState done [19:18:29]req_shift_opened done [19:18:29]requested_item shift.open_date is exist - process it [19:18:29]req_shift_open_date [19:18:29]req_shift_open_date done [19:18:29]produce_requested_data done [19:18:29]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139486,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [19:18:29]process_action_free close_receipt [19:18:29]json_value_free [19:18:29]json_value_free done [19:18:29]process_json_proto returns [19:18:29]Send response to host [19:18:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139486,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [19:18:29]free response buf [19:18:29]execute_script done [19:18:29]execute_script returns [19:18:29]free content buf [19:18:29]Sock 9.Close socket [19:18:29]Sock 9.Thread stoped [19:18:33]OFD Sender: No OFD packet to send [19:18:38]OFD Sender: No OFD packet to send [19:18:43]OFD Sender: No OFD packet to send [19:18:48]OFD Sender: No OFD packet to send [19:18:53]OFD Sender: No OFD packet to send [19:18:58]OFD Sender: No OFD packet to send [19:19:03]OFD Sender: No OFD packet to send [19:19:08]OFD Sender: No OFD packet to send [19:19:13]OFD Sender: No OFD packet to send [19:19:18]OFD Sender: No OFD packet to send [19:19:23]OFD Sender: No OFD packet to send [19:19:28]OFD Sender: No OFD packet to send [19:19:33]OFD Sender: No OFD packet to send [19:19:38]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:43]OFD Sender: No OFD packet to send [19:20:46]accept exits with 8 [19:20:46]New connection [19:20:46]New thread 3067284836 created [19:20:46]Thread 3067141476 joined [19:20:46]Waiting for new connection... [19:20:46] Sock 8.Parse request [19:20:46]Sock 8.Check first char [19:20:46]Sock 8.First char is OK [19:20:46]request: POST /json_proto HTTP/1.0 [19:20:46]Method: POST [19:20:46]URL: /json_proto [19:20:46]Method is POST - this is cgi request [19:20:46]url: /json_proto [19:20:46]query_string will be loaded in cgi processing [19:20:46]execute_cgi json_proto POST (null) [19:20:46]execute_cgi path=json_proto method=POST [19:20:46]POST find Content-Length [19:20:46]Host: 172.17.50.196:8080 [19:20:46]Content-Length: 621 [19:20:46]Content-Type: application/json [19:20:46] [19:20:46]POST finish read [19:20:46]Found Content-Length = 621 [19:20:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335368", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:46]execute_script... [19:20: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 : (3)335368", "tax_sys" : 0, "items" : [ { "code": "48747059", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Legend Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:20:46]POST & json_proto [19:20:46]process_json_proto [19:20:46]json parsed OK: [19:20:46]protocol is kg_v1.0 [19:20:46]action value=close_receipt [19:20:46]process_action close_receipt [19:20:46]cmd_close_receipt [19:20:46]MH_GetDate [19:20:46]Write to MH i2c: F0 00 00 AA 58 F1 [19:20:46]Write i2c OK [19:20:46]MH_I2C_Read... [19:20:46]Read from MH i2c: F0 [19:20:46]MH_I2C_Read... [19:20:46]Read from MH i2c: F0 09 00 [19:20:46]MH_I2C_Read... [19:20:46]Read from MH i2c: F0 09 00 AA 58 00 15 87 22 67 72 0D 1C 67 21 [19:20:46]GetLastDocTimeStamp 1730315912 [19:20:46]current date 1730316053 [19:20:46]FM_GetShiftState [19:20:46]SAM_PROTO_GetShiftState [19:20:46]wFMCommunicate request_size=4 [19:20:46]MH_SAM_APDU [19:20:46]CAPDU: 80 13 01 00 [19:20:46]Write to MH i2c: E2 08 00 AB 58 80 13 01 00 00 00 00 00 80 [19:20:46]Write i2c OK [19:20:46]MH_I2C_Read... [19:20:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:46]Read from MH i2c: E2 [19:20:46]MH_I2C_Read... [19:20:46]Read from MH i2c: E2 0E 00 [19:20:46]MH_I2C_Read... [19:20:46]Read from MH i2c: E2 0E 00 AB 58 00 09 00 01 86 76 21 67 00 00 00 00 90 00 10 [19:20:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:20:46]wFMCommunicate OK [19:20:46]SAM_PROTO_GetShiftState done [19:20:46]FM_GetShiftState done [19:20:46]opened in 1730246278 [19:20:46]opened+sec_in_day 1730332678 [19:20:46]quantity*price = 14400 [19:20:46]sum+1 = 14401 [19:20:46]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 171 30.10.2024 19:20 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139487 ФПД: 91925675569010 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192053&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139487&fm=91925675569010&tin=02508201610067®Number=0000000000091631&sum=14400 0 [19:20:47]StoreToDocumentArchive [19:20:47]shift 556 fd 139487 [19:20:47]save to /storage/0556/doc_00139487 [19:20:47]save last doc name /storage/0556/doc_00139487 to /storage/kkm_last_doc_name [19:20:47]save OK [19:20:47]Clear old archive folders... [19:20:47]ProcessDocumentItem done err = 0, tmpTLVsize=273 [19:20:47]tlvbuf is 011583B0 [19:20:47]SAM_PROTO_ClearQueue [19:20:47]wFMCommunicate request_size=4 [19:20:47]MH_SAM_APDU [19:20:47]CAPDU: 80 09 00 00 [19:20:47]Write to MH i2c: E2 08 00 B8 58 80 09 00 00 00 00 00 00 82 [19:20:47]Write i2c OK [19:20:47]MH_I2C_Read... [19:20:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:20:47]Read from MH i2c: E2 [19:20:47]MH_I2C_Read... [19:20:47]Read from MH i2c: E2 03 00 [19:20:47]MH_I2C_Read... [19:20:47]Read from MH i2c: E2 03 00 B8 58 00 90 00 84 [19:20:47]RAPDU: 90 00 [19:20:47]wFMCommunicate OK [19:20:47]SAM_PROTO_ClearQueue done [19:20:47]KKMCreateOFDPacket [19:20:47]OFDProtocolAddRootSTLVToBuf [19:20:47]FM_MakeSignedData [19:20:47]FM_MakeSignedData [19:20:47]SAM_PROTO_SignData [19:20:47]wFMCommunicate request_size=4 [19:20:47]MH_SAM_APDU [19:20:47]CAPDU: 80 0D 01 02 [19:20:47]Write to MH i2c: E2 08 00 B9 58 80 0D 01 02 00 00 00 00 8A [19:20:47]Write i2c OK [19:20:47]MH_I2C_Read... [19:20:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:20:47]Read from MH i2c: E2 [19:20:47]MH_I2C_Read... [19:20:47]Read from MH i2c: E2 03 00 [19:20:47]MH_I2C_Read... [19:20:47]Read from MH i2c: E2 03 00 B9 58 00 90 00 85 [19:20:47]RAPDU: 90 00 [19:20:47]wFMCommunicate OK [19:20:47]wFMCommunicate request_size=255 [19:20:47]MH_SAM_APDU [19:20:47]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 15 87 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [19:20:47]Write to MH i2c: E2 02 01 BA 58 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 15 87 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 D9 [19:20:47]Write i2c OK [19:20:47]MH_I2C_Read... [19:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:48]Read from MH i2c: E2 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: E2 03 00 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: E2 03 00 BA 58 00 90 00 86 [19:20:48]RAPDU: 90 00 [19:20:48]wFMCommunicate OK [19:20:48]wFMCommunicate request_size=32 [19:20:48]MH_SAM_APDU [19:20:48]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 20 02 00 35 04 06 00 53 9B 1D 3C EF 72 [19:20:48]Write to MH i2c: E2 23 00 BB 58 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 20 02 00 35 04 06 00 53 9B 1D 3C EF 72 00 00 9B [19:20:48]Write i2c OK [19:20:48]MH_I2C_Read... [19:20:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:20:48]Read from MH i2c: E2 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: E2 03 00 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: E2 03 00 BB 58 00 90 00 87 [19:20:48]RAPDU: 90 00 [19:20:48]wFMCommunicate OK [19:20:48]wFMCommunicate request_size=4 [19:20:48]MH_SAM_APDU [19:20:48]CAPDU: 80 0D 03 02 [19:20:48]Write to MH i2c: E2 08 00 BC 58 80 0D 03 02 00 00 00 00 8F [19:20:48]Write i2c OK [19:20:48]MH_I2C_Read... [19:20:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:20:48]Read from MH i2c: E2 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: E2 0B 00 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: E2 0B 00 BC 58 00 4D CF 30 B5 33 E9 44 F9 90 00 EA [19:20:48]RAPDU: 4D CF 30 B5 33 E9 44 F9 90 00 [19:20:48]wFMCommunicate OK [19:20:48]SAM_PROTO_SignData done [19:20:48]FM_MakeSignedData done [19:20:48]CreateOFDProtocolMessage [19:20:48]wFMCommunicate request_size=4 [19:20:48]MH_SAM_APDU [19:20:48]CAPDU: 80 11 00 00 [19:20:48]Write to MH i2c: E2 08 00 BD 58 80 11 00 00 00 00 00 00 8F [19:20:48]Write i2c OK [19:20:48]MH_I2C_Read... [19:20:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:48]Read from MH i2c: E2 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: E2 17 00 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: E2 17 00 BD 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EA [19:20:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:20:48]wFMCommunicate OK [19:20:48]CreateOFDProtocolMessage done [19:20:48]OFDSenderStorePacket 139487 [19:20:48]StoreOFDPacket docnum=139487 [19:20:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 EA 76 1D 01 ED 71 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 15 87 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 20 02 00 35 04 06 00 53 9B 1D 3C EF 72 4D CF 30 B5 33 E9 44 F9 [19:20:48]CheckFolder [19:20:48]dirname=/storage/ofd_packets [19:20:48]CheckFolder done [19:20:48]ProducePacketName [19:20:48]name=ofd_packets/00139487 [19:20:48]NVStorageSaveData ofd_packets/00139487 [19:20:48]File name is /storage/ofd_packets/00139487 [19:20:48]Write 323 bytes [19:20:48]NVStorageSaveData done [19:20:48]OFDSenderStorePacket done [19:20:48]KKMCreateOFDPacket done [19:20:48]NVStorageSaveData kkm_last_timestamp [19:20:48]File name is /storage/kkm_last_timestamp [19:20:48]Write 4 bytes [19:20:48]NVStorageSaveData done [19:20:48]ExternCall_PrintAddStr [19:20:48]wPrintStart [19:20:48]Write to MH i2c: 01 00 00 BE 58 16 [19:20:48]Write i2c OK [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: 01 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: 01 07 00 [19:20:48]MH_I2C_Read... [19:20:48]Read from MH i2c: 01 07 00 BE 58 00 00 00 00 00 FF 0F 2B [19:20:48]RasterBufferAndPrint [19:20:48]line Счет N : (3)335368 [19:20:48]line ИНН: 02508201610067 [19:20:48]line Контрольно-Кассовый Чек [19:20:48]line ПРОДАЖА [19:20:48]line Товар: 48747059 [19:20:48]line Сигареты Winston Legend Blue [19:20:48]line 1.000 * 144.00 [19:20:48]line = 144.00 [19:20:48]line НДС 12% НСП 1% [19:20:48]line > о реализуемом товаре [19:20:48]line ИТОГО: 144.00 [19:20:48]line НСП 1% : 1.27 [19:20:48]line НДС 12% : 15.29 [19:20:48]line Наличными: 144.00 [19:20:48]line Безнал.: 0.00 [19:20:48]line Место: АЗС № 101 "Партнер Нефть" [19:20:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:20:48]line СНО: Общий режим [19:20:48]line Чек 171 30.10.2024 19:20 [19:20:48]line Смена: 556 ФФД: 1.0 [19:20:48]line ЗНМ: 0300000081 [19:20:48]line РНМ: 0000000000091631 [19:20:48]line Версия ККМ: 001 [19:20:48]line ФМ: 0000000000874669 [19:20:48]line ФД: 139487 [19:20:48]line ФПД: 91925675569010 [19:20:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192053&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139487&fm=91925675569010&tin=02508201610067®Number=0000000000091631&sum=14400 [19:20:48]line 0 [19:20:48]OFD Sender: Processing packet 139487 [packets to send 34, broken 33] [19:20:48]ProducePacketName [19:20:48]name=ofd_packets/00139487 [19:20:48]OFD Sender: To server: pG, [19:20:48]CommunicateWithHost lk.salyk.kg:30040 [19:20:48]ConnectInit lk.salyk.kg [19:20:48]written 0, free lines is 4095 [19:20:48]Connected sock=10 [19:20:48]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 EA 76 1D 01 ED 71 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 37 30 35 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 4C 65 67 65 6E 64 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 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 15 87 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 DF 20 02 00 35 04 06 00 53 9B 1D 3C EF 72 4D CF 30 B5 33 E9 44 F9 [19:20:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F9 64 47 00 4B 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 38 37 34 36 36 39 10 04 04 00 DF 20 02 00 F4 03 04 00 C5 32 22 67 B6 04 01 00 00 AA 59 9E 95 3B 1E 3F 50 [19:20:49]CommunicateWithHost err = 0 [19:20:49]CheckOFDResponse [19:20:49]1017 (14) - 77093643461234 [19:20:49]1041 (16) - 0000000000874669 [19:20:49]1040 (4) - 139487 [19:20:49]1012 (4) - 30.10.2024 13:21 [19:20:49]1206 (1) - 0 [19:20:49]OFD Sender: Remove packet 139487 [19:20:49]ProducePacketName [19:20:49]name=ofd_packets/00139487 [19:20:49]NVStorageDeleteData [19:20:49]Write to MH i2c: 01 00 00 E7 58 3F [19:20:49]Write i2c OK [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: 01 [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: 01 07 00 [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: 01 07 00 E7 58 00 00 00 00 00 EC 0C 3E [19:20:49]RasterBufferAndPrint [19:20:49]line [19:20:49]line [19:20:49]line [19:20:49]line [19:20:49]line [19:20:49]written 0, free lines is 3314 [19:20:49]MH_Cut [19:20:49]Write to MH i2c: D1 01 00 EE 58 01 18 [19:20:49]Write i2c OK [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: D1 [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: D1 01 00 [19:20:49]MH_I2C_Read... [19:20:49]Read from MH i2c: D1 01 00 EE 58 00 17 [19:20:49]Write to MH i2c: 01 00 00 EF 58 47 [19:20:49]Write i2c OK [19:20:49]MH_I2C_Read... [19:20:49]OFD Sender: No OFD packet to send [19:20:49]*** Cut start [19:20:49]*** Partial cut [19:20:49]*** CUTSNS_PIN = 1 [19:20:49]*** CUTSNS_PIN = 0 [19:20:50]*** Brake cut motor [19:20:50]Read from MH i2c: 01 [19:20:50]MH_I2C_Read... [19:20:50]*** Stop cut motor [19:20:50]*** Cut end [19:20:50]Read from MH i2c: 01 07 00 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: 01 07 00 EF 58 00 00 00 00 00 FF 0F 5C [19:20:50]process_action close_receipt done [19:20:50]requested_data is exist [19:20:50]produce_requested_data [19:20:50]requested_item fm.sn is exist - process it [19:20:50]wFMCommunicate request_size=4 [19:20:50]MH_SAM_APDU [19:20:50]CAPDU: 80 11 00 00 [19:20:50]Write to MH i2c: E2 08 00 F0 58 80 11 00 00 00 00 00 00 C2 [19:20:50]Write i2c OK [19:20:50]MH_I2C_Read... [19:20:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:20:50]Read from MH i2c: E2 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 17 00 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 17 00 F0 58 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1D [19:20:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:20:50]wFMCommunicate OK [19:20:50]requested_item fd.num is exist - process it [19:20:50]SAM_PROTO_GetFieldsCounters [19:20:50]wFMCommunicate request_size=4 [19:20:50]MH_SAM_APDU [19:20:50]CAPDU: 80 13 00 00 [19:20:50]Write to MH i2c: E2 08 00 F1 58 80 13 00 00 00 00 00 00 C5 [19:20:50]Write i2c OK [19:20:50]MH_I2C_Read... [19:20:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:20:50]Read from MH i2c: E2 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 62 00 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 62 00 F1 58 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DF 20 02 00 0E 04 04 00 2C 02 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 19 [19:20:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 DF 20 02 00 0E 04 04 00 2C 02 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 [19:20:50]wFMCommunicate OK [19:20:50]SAM_PROTO_GetFieldsCounters done [19:20:50]requested_item shift.num is exist - process it [19:20:50]requested_item shift.opened is exist - process it [19:20:50]req_shift_opened [19:20:50]FM_GetShiftState [19:20:50]SAM_PROTO_GetShiftState [19:20:50]wFMCommunicate request_size=4 [19:20:50]MH_SAM_APDU [19:20:50]CAPDU: 80 13 01 00 [19:20:50]Write to MH i2c: E2 08 00 F2 58 80 13 01 00 00 00 00 00 C7 [19:20:50]Write i2c OK [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 [19:20:50]MH_I2C_Read... [19:20:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:20:50]Read from MH i2c: E2 0E 00 [19:20:50]MH_I2C_Read... [19:20:50]Read from MH i2c: E2 0E 00 F2 58 00 09 00 01 86 76 21 67 00 00 00 00 90 00 57 [19:20:50]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:20:50]wFMCommunicate OK [19:20:50]SAM_PROTO_GetShiftState done [19:20:50]FM_GetShiftState done [19:20:50]req_shift_opened done [19:20:50]requested_item shift.open_date is exist - process it [19:20:50]req_shift_open_date [19:20:50]req_shift_open_date done [19:20:50]produce_requested_data done [19:20:50]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139487,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [19:20:50]process_action_free close_receipt [19:20:50]json_value_free [19:20:50]json_value_free done [19:20:50]process_json_proto returns [19:20:50]Send response to host [19:20:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139487,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [19:20:50]free response buf [19:20:50]execute_script done [19:20:50]execute_script returns [19:20:50]free content buf [19:20:50]Sock 8.Close socket [19:20:50]Sock 8.Thread stoped [19:20:54]OFD Sender: No OFD packet to send [19:20:59]OFD Sender: No OFD packet to send [19:21:04]OFD Sender: No OFD packet to send [19:21:09]OFD Sender: No OFD packet to send [19:21:14]OFD Sender: No OFD packet to send [19:21:19]OFD Sender: No OFD packet to send [19:21:24]OFD Sender: No OFD packet to send [19:21:29]OFD Sender: No OFD packet to send [19:21:34]OFD Sender: No OFD packet to send [19:21:39]OFD Sender: No OFD packet to send [19:21:44]OFD Sender: No OFD packet to send [19:21:49]OFD Sender: No OFD packet to send [19:21:54]OFD Sender: No OFD packet to send [19:21:59]OFD Sender: No OFD packet to send [19:22:04]OFD Sender: No OFD packet to send [19:22:09]OFD Sender: No OFD packet to send [19:22:14]OFD Sender: No OFD packet to send [19:22:19]OFD Sender: No OFD packet to send [19:22:24]OFD Sender: No OFD packet to send [19:22:29]OFD Sender: No OFD packet to send [19:22:34]OFD Sender: No OFD packet to send [19:22:39]OFD Sender: No OFD packet to send [19:22:44]OFD Sender: No OFD packet to send [19:22:49]OFD Sender: No OFD packet to send [19:22:54]OFD Sender: No OFD packet to send [19:22:59]OFD Sender: No OFD packet to send [19:23:04]OFD Sender: No OFD packet to send [19:23:09]OFD Sender: No OFD packet to send [19:23:14]OFD Sender: No OFD packet to send [19:23:19]OFD Sender: No OFD packet to send [19:23:24]OFD Sender: No OFD packet to send [19:23:29]OFD Sender: No OFD packet to send [19:23:34]OFD Sender: No OFD packet to send [19:23:39]OFD Sender: No OFD packet to send [19:23:44]OFD Sender: No OFD packet to send [19:23:49]OFD Sender: No OFD packet to send [19:23:54]OFD Sender: No OFD packet to send [19:23:59]OFD Sender: No OFD packet to send [19:24:04]OFD Sender: No OFD packet to send [19:24:09]OFD Sender: No OFD packet to send [19:24:14]OFD Sender: No OFD packet to send [19:24:19]OFD Sender: No OFD packet to send [19:24:24]OFD Sender: No OFD packet to send [19:24:29]OFD Sender: No OFD packet to send [19:24:34]OFD Sender: No OFD packet to send [19:24:39]OFD Sender: No OFD packet to send [19:24:44]OFD Sender: No OFD packet to send [19:24:49]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:09]OFD Sender: No OFD packet to send [19:26:14]OFD Sender: No OFD packet to send [19:26:19]OFD Sender: No OFD packet to send [19:26:24]OFD Sender: No OFD packet to send [19:26:29]OFD Sender: No OFD packet to send [19:26:34]OFD Sender: No OFD packet to send [19:26:39]OFD Sender: No OFD packet to send [19:26:44]OFD Sender: No OFD packet to send [19:26:49]OFD Sender: No OFD packet to send [19:26:54]OFD Sender: No OFD packet to send [19:26:59]OFD Sender: No OFD packet to send [19:27:04]OFD Sender: No OFD packet to send [19:27:09]OFD Sender: No OFD packet to send [19:27:12]accept exits with 9 [19:27:12]New connection [19:27:12]New thread 3067141476 created [19:27:12]Thread 3067284836 joined [19:27:12]Waiting for new connection... [19:27:12] Sock 9.Parse request [19:27:12]Sock 9.Check first char [19:27:12]Sock 9.First char is OK [19:27:12]request: POST /json_proto HTTP/1.0 [19:27:12]Method: POST [19:27:12]URL: /json_proto [19:27:12]Method is POST - this is cgi request [19:27:12]url: /json_proto [19:27:12]query_string will be loaded in cgi processing [19:27:12]execute_cgi json_proto POST (null) [19:27:12]execute_cgi path=json_proto method=POST [19:27:12]POST find Content-Length [19:27:12]Host: 172.17.50.196:8080 [19:27:12]Content-Length: 619 [19:27:12]Content-Type: application/json [19:27:12] [19:27:12]POST finish read [19:27:12]Found Content-Length = 619 [19:27:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335369", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:12]execute_script... [19:27: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 : (3)335369", "tax_sys" : 0, "items" : [ { "code": "47802995", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XS Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:27:12]POST & json_proto [19:27:12]process_json_proto [19:27:12]json parsed OK: [19:27:12]protocol is kg_v1.0 [19:27:12]action value=close_receipt [19:27:12]process_action close_receipt [19:27:12]cmd_close_receipt [19:27:12]MH_GetDate [19:27:12]Write to MH i2c: F0 00 00 F3 58 3A [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: F0 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: F0 09 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: F0 09 00 F3 58 00 97 88 22 67 72 0D 1C 67 ED [19:27:12]GetLastDocTimeStamp 1730316053 [19:27:12]current date 1730316439 [19:27:12]FM_GetShiftState [19:27:12]SAM_PROTO_GetShiftState [19:27:12]wFMCommunicate request_size=4 [19:27:12]MH_SAM_APDU [19:27:12]CAPDU: 80 13 01 00 [19:27:12]Write to MH i2c: E2 08 00 F4 58 80 13 01 00 00 00 00 00 C9 [19:27:12]Write i2c OK [19:27:12]MH_I2C_Read... [19:27:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:12]Read from MH i2c: E2 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: E2 0E 00 [19:27:12]MH_I2C_Read... [19:27:12]Read from MH i2c: E2 0E 00 F4 58 00 09 00 01 86 76 21 67 00 00 00 00 90 00 59 [19:27:12]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:27:12]wFMCommunicate OK [19:27:12]SAM_PROTO_GetShiftState done [19:27:12]FM_GetShiftState done [19:27:12]opened in 1730246278 [19:27:12]opened+sec_in_day 1730332678 [19:27:12]quantity*price = 14400 [19:27:12]sum+1 = 14401 [19:27:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 172 30.10.2024 19:27 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139488 ФПД: 42541111123677 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192719&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139488&fm=42541111123677&tin=02508201610067®Number=0000000000091631&sum=14400 0 [19:27:13]StoreToDocumentArchive [19:27:13]shift 556 fd 139488 [19:27:13]save to /storage/0556/doc_00139488 [19:27:13]save last doc name /storage/0556/doc_00139488 to /storage/kkm_last_doc_name [19:27:13]save OK [19:27:13]Clear old archive folders... [19:27:13]ProcessDocumentItem done err = 0, tmpTLVsize=271 [19:27:13]tlvbuf is 0124F110 [19:27:13]SAM_PROTO_ClearQueue [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 09 00 00 [19:27:13]Write to MH i2c: E2 08 00 01 59 80 09 00 00 00 00 00 00 CC [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 01 59 00 90 00 CE [19:27:13]RAPDU: 90 00 [19:27:13]wFMCommunicate OK [19:27:13]SAM_PROTO_ClearQueue done [19:27:13]KKMCreateOFDPacket [19:27:13]OFDProtocolAddRootSTLVToBuf [19:27:13]FM_MakeSignedData [19:27:13]FM_MakeSignedData [19:27:13]SAM_PROTO_SignData [19:27:13]wFMCommunicate request_size=4 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 0D 01 02 [19:27:13]Write to MH i2c: E2 08 00 02 59 80 0D 01 02 00 00 00 00 D4 [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:27:13]Read from MH i2c: E2 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 [19:27:13]MH_I2C_Read... [19:27:13]Read from MH i2c: E2 03 00 02 59 00 90 00 CF [19:27:13]RAPDU: 90 00 [19:27:13]wFMCommunicate OK [19:27:13]wFMCommunicate request_size=255 [19:27:13]MH_SAM_APDU [19:27:13]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 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 97 88 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [19:27:13]Write to MH i2c: E2 02 01 03 59 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 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 97 88 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 4A [19:27:13]Write i2c OK [19:27:13]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 03 59 00 90 00 D0 [19:27:14]RAPDU: 90 00 [19:27:14]wFMCommunicate OK [19:27:14]wFMCommunicate request_size=30 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 E0 20 02 00 35 04 06 00 26 B0 DF D1 1E DD [19:27:14]Write to MH i2c: E2 21 00 04 59 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 E0 20 02 00 35 04 06 00 26 B0 DF D1 1E DD 00 00 5B [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 03 00 04 59 00 90 00 D1 [19:27:14]RAPDU: 90 00 [19:27:14]wFMCommunicate OK [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 0D 03 02 [19:27:14]Write to MH i2c: E2 08 00 05 59 80 0D 03 02 00 00 00 00 D9 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0B 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 0B 00 05 59 00 E6 48 0C 5E 19 35 D4 88 90 00 1C [19:27:14]RAPDU: E6 48 0C 5E 19 35 D4 88 90 00 [19:27:14]wFMCommunicate OK [19:27:14]SAM_PROTO_SignData done [19:27:14]FM_MakeSignedData done [19:27:14]CreateOFDProtocolMessage [19:27:14]wFMCommunicate request_size=4 [19:27:14]MH_SAM_APDU [19:27:14]CAPDU: 80 11 00 00 [19:27:14]Write to MH i2c: E2 08 00 06 59 80 11 00 00 00 00 00 00 D9 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:14]Read from MH i2c: E2 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 17 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: E2 17 00 06 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 34 [19:27:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:27:14]wFMCommunicate OK [19:27:14]CreateOFDProtocolMessage done [19:27:14]OFDSenderStorePacket 139488 [19:27:14]StoreOFDPacket docnum=139488 [19:27:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 09 7D 1B 01 5D 43 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 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 97 88 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E0 20 02 00 35 04 06 00 26 B0 DF D1 1E DD E6 48 0C 5E 19 35 D4 88 [19:27:14]CheckFolder [19:27:14]dirname=/storage/ofd_packets [19:27:14]CheckFolder done [19:27:14]ProducePacketName [19:27:14]name=ofd_packets/00139488 [19:27:14]NVStorageSaveData ofd_packets/00139488 [19:27:14]File name is /storage/ofd_packets/00139488 [19:27:14]Write 321 bytes [19:27:14]NVStorageSaveData done [19:27:14]OFDSenderStorePacket done [19:27:14]KKMCreateOFDPacket done [19:27:14]NVStorageSaveData kkm_last_timestamp [19:27:14]File name is /storage/kkm_last_timestamp [19:27:14]Write 4 bytes [19:27:14]NVStorageSaveData done [19:27:14]ExternCall_PrintAddStr [19:27:14]wPrintStart [19:27:14]Write to MH i2c: 01 00 00 07 59 60 [19:27:14]Write i2c OK [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: 01 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: 01 07 00 [19:27:14]MH_I2C_Read... [19:27:14]Read from MH i2c: 01 07 00 07 59 00 00 00 00 00 FF 0F 75 [19:27:14]RasterBufferAndPrint [19:27:14]line Счет N : (3)335369 [19:27:14]line ИНН: 02508201610067 [19:27:14]line Контрольно-Кассовый Чек [19:27:14]line ПРОДАЖА [19:27:14]line Товар: 47802995 [19:27:14]line Сигареты Winston XS Silver [19:27:14]line 1.000 * 144.00 [19:27:14]line = 144.00 [19:27:14]line НДС 12% НСП 1% [19:27:14]line > о реализуемом товаре [19:27:14]line ИТОГО: 144.00 [19:27:14]line НСП 1% : 1.27 [19:27:14]line НДС 12% : 15.29 [19:27:14]line Наличными: 144.00 [19:27:14]line Безнал.: 0.00 [19:27:14]line Место: АЗС № 101 "Партнер Нефть" [19:27:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:27:14]line СНО: Общий режим [19:27:14]line Чек 172 30.10.2024 19:27 [19:27:14]line Смена: 556 ФФД: 1.0 [19:27:14]line ЗНМ: 0300000081 [19:27:14]line РНМ: 0000000000091631 [19:27:14]line Версия ККМ: 001 [19:27:14]line ФМ: 0000000000874669 [19:27:14]line ФД: 139488 [19:27:14]line ФПД: 42541111123677 [19:27:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T192719&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139488&fm=42541111123677&tin=02508201610067®Number=0000000000091631&sum=14400 [19:27:14]OFD Sender: Processing packet 139488 [packets to send 34, broken 33] [19:27:14]ProducePacketName [19:27:14]name=ofd_packets/00139488 [19:27:14]OFD Sender: To server: pG, [19:27:14]CommunicateWithHost lk.salyk.kg:30040 [19:27:14]ConnectInit lk.salyk.kg [19:27:14]line 0 [19:27:14]written 0, free lines is 4095 [19:27:14]Connected sock=10 [19:27:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 09 7D 1B 01 5D 43 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 08 00 34 37 38 30 32 39 39 35 06 04 22 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 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 97 88 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E0 20 02 00 35 04 06 00 26 B0 DF D1 1E DD E6 48 0C 5E 19 35 D4 88 [19:27:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 15 9C 47 00 E5 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 38 37 34 36 36 39 10 04 04 00 E0 20 02 00 F4 03 04 00 47 34 22 67 B6 04 01 00 00 E1 F0 5A D7 8B E2 79 CD [19:27:14]CommunicateWithHost err = 0 [19:27:14]CheckOFDResponse [19:27:14]1017 (14) - 77093643461234 [19:27:14]1041 (16) - 0000000000874669 [19:27:14]1040 (4) - 139488 [19:27:14]1012 (4) - 30.10.2024 13:27 [19:27:15]1206 (1) - 0 [19:27:15]OFD Sender: Remove packet 139488 [19:27:15]ProducePacketName [19:27:15]name=ofd_packets/00139488 [19:27:15]NVStorageDeleteData [19:27:15]Write to MH i2c: 01 00 00 2F 59 88 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: 01 07 00 2F 59 00 00 00 00 00 0F 0D AB [19:27:15]RasterBufferAndPrint [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]line [19:27:15]written 0, free lines is 3353 [19:27:15]MH_Cut [19:27:15]Write to MH i2c: D1 01 00 36 59 01 61 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 01 00 [19:27:15]MH_I2C_Read... [19:27:15]Read from MH i2c: D1 01 00 36 59 00 60 [19:27:15]Write to MH i2c: 01 00 00 37 59 90 [19:27:15]Write i2c OK [19:27:15]MH_I2C_Read... [19:27:15]OFD Sender: No OFD packet to send [19:27:15]*** Cut start [19:27:15]*** Partial cut [19:27:15]*** CUTSNS_PIN = 1 [19:27:15]*** CUTSNS_PIN = 0 [19:27:16]*** Brake cut motor [19:27:16]Read from MH i2c: 01 [19:27:16]MH_I2C_Read... [19:27:16]*** Stop cut motor [19:27:16]*** Cut end [19:27:16]Read from MH i2c: 01 07 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: 01 07 00 37 59 00 00 00 00 00 FF 0F A5 [19:27:16]process_action close_receipt done [19:27:16]requested_data is exist [19:27:16]produce_requested_data [19:27:16]requested_item fm.sn is exist - process it [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 11 00 00 [19:27:16]Write to MH i2c: E2 08 00 38 59 80 11 00 00 00 00 00 00 0B [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 17 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 17 00 38 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 66 [19:27:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:27:16]wFMCommunicate OK [19:27:16]requested_item fd.num is exist - process it [19:27:16]SAM_PROTO_GetFieldsCounters [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 13 00 00 [19:27:16]Write to MH i2c: E2 08 00 39 59 80 13 00 00 00 00 00 00 0E [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 62 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 62 00 39 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E0 20 02 00 0E 04 04 00 2C 02 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 66 [19:27:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E0 20 02 00 0E 04 04 00 2C 02 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 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_GetFieldsCounters done [19:27:16]requested_item shift.num is exist - process it [19:27:16]requested_item shift.opened is exist - process it [19:27:16]req_shift_opened [19:27:16]FM_GetShiftState [19:27:16]SAM_PROTO_GetShiftState [19:27:16]wFMCommunicate request_size=4 [19:27:16]MH_SAM_APDU [19:27:16]CAPDU: 80 13 01 00 [19:27:16]Write to MH i2c: E2 08 00 3A 59 80 13 01 00 00 00 00 00 10 [19:27:16]Write i2c OK [19:27:16]MH_I2C_Read... [19:27:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:27:16]Read from MH i2c: E2 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0E 00 [19:27:16]MH_I2C_Read... [19:27:16]Read from MH i2c: E2 0E 00 3A 59 00 09 00 01 86 76 21 67 00 00 00 00 90 00 A0 [19:27:16]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:27:16]wFMCommunicate OK [19:27:16]SAM_PROTO_GetShiftState done [19:27:16]FM_GetShiftState done [19:27:16]req_shift_opened done [19:27:16]requested_item shift.open_date is exist - process it [19:27:16]req_shift_open_date [19:27:16]req_shift_open_date done [19:27:16]produce_requested_data done [19:27:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139488,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [19:27:16]process_action_free close_receipt [19:27:16]json_value_free [19:27:16]json_value_free done [19:27:16]process_json_proto returns [19:27:16]Send response to host [19:27:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139488,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [19:27:16]free response buf [19:27:16]execute_script done [19:27:16]execute_script returns [19:27:16]free content buf [19:27:16]Sock 9.Close socket [19:27:16]Sock 9.Thread stoped [19:27:20]OFD Sender: No OFD packet to send [19:27:25]OFD Sender: No OFD packet to send [19:27:30]OFD Sender: No OFD packet to send [19:27:35]OFD Sender: No OFD packet to send [19:27:40]OFD Sender: No OFD packet to send [19:27:45]OFD Sender: No OFD packet to send [19:27:50]OFD Sender: No OFD packet to send [19:27:55]OFD Sender: No OFD packet to send [19:28:00]OFD Sender: No OFD packet to send [19:28:05]OFD Sender: No OFD packet to send [19:28:10]OFD Sender: No OFD packet to send [19:28:15]OFD Sender: No OFD packet to send [19:28:20]OFD Sender: No OFD packet to send [19:28:25]OFD Sender: No OFD packet to send [19:28:30]OFD Sender: No OFD packet to send [19:28:35]OFD Sender: No OFD packet to send [19:28:40]OFD Sender: No OFD packet to send [19:28:45]OFD Sender: No OFD packet to send [19:28:50]OFD Sender: No OFD packet to send [19:28:55]OFD Sender: No OFD packet to send [19:29:00]OFD Sender: No OFD packet to send [19:29:05]OFD Sender: No OFD packet to send [19:29:10]OFD Sender: No OFD packet to send [19:29:15]OFD Sender: No OFD packet to send [19:29:20]OFD Sender: No OFD packet to send [19:29:25]OFD Sender: No OFD packet to send [19:29:30]OFD Sender: No OFD packet to send [19:29:35]OFD Sender: No OFD packet to send [19:29:40]OFD Sender: No OFD packet to send [19:29:45]OFD Sender: No OFD packet to send [19:29:50]OFD Sender: No OFD packet to send [19:29:55]OFD Sender: No OFD packet to send [19:30:00]OFD Sender: No OFD packet to send [19:30:05]OFD Sender: No OFD packet to send [19:30:10]OFD Sender: No OFD packet to send [19:30:15]OFD Sender: No OFD packet to send [19:30:20]OFD Sender: No OFD packet to send [19:30:25]OFD Sender: No OFD packet to send [19:30:30]OFD Sender: No OFD packet to send [19:30:35]OFD Sender: No OFD packet to send [19:30:40]OFD Sender: No OFD packet to send [19:30:45]OFD Sender: No OFD packet to send [19:30:50]OFD Sender: No OFD packet to send [19:30:55]OFD Sender: No OFD packet to send [19:31:00]OFD Sender: No OFD packet to send [19:31:05]OFD Sender: No OFD packet to send [19:31:10]OFD Sender: No OFD packet to send [19:31:15]OFD Sender: No OFD packet to send [19:31:20]OFD Sender: No OFD packet to send [19:31:25]OFD Sender: No OFD packet to send [19:31:30]OFD Sender: No OFD packet to send [19:31:35]OFD Sender: No OFD packet to send [19:31:40]OFD Sender: No OFD packet to send [19:31:45]OFD Sender: No OFD packet to send [19:31:50]OFD Sender: No OFD packet to send [19:31:55]OFD Sender: No OFD packet to send [19:32:00]OFD Sender: No OFD packet to send [19:32:05]OFD Sender: No OFD packet to send [19:32:10]OFD Sender: No OFD packet to send [19:32:15]OFD Sender: No OFD packet to send [19:32:20]OFD Sender: No OFD packet to send [19:32:25]OFD Sender: No OFD packet to send [19:32:30]OFD Sender: No OFD packet to send [19:32:35]OFD Sender: No OFD packet to send [19:32:40]OFD Sender: No OFD packet to send [19:32:45]OFD Sender: No OFD packet to send [19:32:50]OFD Sender: No OFD packet to send [19:32:55]OFD Sender: No OFD packet to send [19:33:00]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:45]OFD Sender: No OFD packet to send [19:33:50]OFD Sender: No OFD packet to send [19:34:00]OFD Sender: No OFD packet to send [19:34:05]OFD Sender: No OFD packet to send [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:30]OFD Sender: No OFD packet to send [19:35:35]OFD Sender: No OFD packet to send [19:35:40]OFD Sender: No OFD packet to send [19:35:45]OFD Sender: No OFD packet to send [19:35:50]OFD Sender: No OFD packet to send [19:35:55]OFD Sender: No OFD packet to send [19:36:00]OFD Sender: No OFD packet to send [19:36:05]OFD Sender: No OFD packet to send [19:36:10]OFD Sender: No OFD packet to send [19:36:11]ConnectInit Can't connect to host [19:36:15]OFD Sender: No OFD packet to send [19:37:31]OFD Sender: No OFD packet to send [19:37:36]OFD Sender: No OFD packet to send [19:37:41]OFD Sender: No OFD packet to send [19:37:46]OFD Sender: No OFD packet to send [19:37:51]OFD Sender: No OFD packet to send [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:16]OFD Sender: No OFD packet to send [19:38:21]OFD Sender: No OFD packet to send [19:38:26]OFD Sender: No OFD packet to send [19:38:31]OFD Sender: No OFD packet to send [19:38:36]OFD Sender: No OFD packet to send [19:38:41]OFD Sender: No OFD packet to send [19:38:46]OFD Sender: No OFD packet to send [19:38:51]OFD Sender: No OFD packet to send [19:38:56]OFD Sender: No OFD packet to send [19:39:01]OFD Sender: No OFD packet to send [19:39:06]OFD Sender: No OFD packet to send [19:39:11]OFD Sender: No OFD packet to send [19:39:16]OFD Sender: No OFD packet to send [19:39:21]OFD Sender: No OFD packet to send [19:39:26]OFD Sender: No OFD packet to send [19:39:31]OFD Sender: No OFD packet to send [19:39:36]OFD Sender: No OFD packet to send [19:39:41]OFD Sender: No OFD packet to send [19:39:41]ConnectInit Can't connect to host [19:39:46]OFD Sender: No OFD packet to send [19:39:51]OFD Sender: No OFD packet to send [19:39:56]OFD Sender: No OFD packet to send [19:40:01]OFD Sender: No OFD packet to send [19:40:06]OFD Sender: No OFD packet to send [19:40:11]OFD Sender: No OFD packet to send [19:40:16]OFD Sender: No OFD packet to send [19:40:21]OFD Sender: No OFD packet to send [19:40:26]OFD Sender: No OFD packet to send [19:40:31]OFD Sender: No OFD packet to send [19:40:36]OFD Sender: No OFD packet to send [19:40:41]OFD Sender: No OFD packet to send [19:40:46]OFD Sender: No OFD packet to send [19:40:51]OFD Sender: No OFD packet to send [19:40:56]OFD Sender: No OFD packet to send [19:41:01]OFD Sender: No OFD packet to send [19:41:06]OFD Sender: No OFD packet to send [19:41:11]OFD Sender: No OFD packet to send [19:41:16]OFD Sender: No OFD packet to send [19:41:21]OFD Sender: No OFD packet to send [19:41:26]OFD Sender: No OFD packet to send [19:41:31]OFD Sender: No OFD packet to send [19:41:36]OFD Sender: No OFD packet to send [19:41:41]OFD Sender: No OFD packet to send [19:41:46]OFD Sender: No OFD packet to send [19:41:51]OFD Sender: No OFD packet to send [19:41:56]OFD Sender: No OFD packet to send [19:42:01]OFD Sender: No OFD packet to send [19:42:06]OFD Sender: No OFD packet to send [19:42:11]OFD Sender: No OFD packet to send [19:42:16]OFD Sender: No OFD packet to send [19:42:21]OFD Sender: No OFD packet to send [19:42:26]OFD Sender: No OFD packet to send [19:42:31]OFD Sender: No OFD packet to send [19:42:36]OFD Sender: No OFD packet to send [19:42:41]OFD Sender: No OFD packet to send [19:42:46]OFD Sender: No OFD packet to send [19:42:51]OFD Sender: No OFD packet to send [19:42:56]OFD Sender: No OFD packet to send [19:43:01]OFD Sender: No OFD packet to send [19:43:06]OFD Sender: No OFD packet to send [19:43:11]OFD Sender: No OFD packet to send [19:43:16]OFD Sender: No OFD packet to send [19:43:21]OFD Sender: No OFD packet to send [19:43:26]OFD Sender: No OFD packet to send [19:43:31]OFD Sender: No OFD packet to send [19:43:36]OFD Sender: No OFD packet to send [19:43:41]OFD Sender: No OFD packet to send [19:43:46]OFD Sender: No OFD packet to send [19:43:51]OFD Sender: No OFD packet to send [19:43:56]OFD Sender: No OFD packet to send [19:44:01]OFD Sender: No OFD packet to send [19:44:06]OFD Sender: No OFD packet to send [19:44:11]OFD Sender: No OFD packet to send [19:44:16]OFD Sender: No OFD packet to send [19:44:21]OFD Sender: No OFD packet to send [19:44:26]OFD Sender: No OFD packet to send [19:44:31]OFD Sender: No OFD packet to send [19:44:36]OFD Sender: No OFD packet to send [19:44:41]OFD Sender: No OFD packet to send [19:44:46]OFD Sender: No OFD packet to send [19:44:51]OFD Sender: No OFD packet to send [19:44:56]OFD Sender: No OFD packet to send [19:45:01]OFD Sender: No OFD packet to send [19:45:06]OFD Sender: No OFD packet to send [19:45:11]OFD Sender: No OFD packet to send [19:45:16]OFD Sender: No OFD packet to send [19:45:21]OFD Sender: No OFD packet to send [19:45:26]OFD Sender: No OFD packet to send [19:45:31]OFD Sender: No OFD packet to send [19:45:36]OFD Sender: No OFD packet to send [19:45:41]OFD Sender: No OFD packet to send [19:45:46]OFD Sender: No OFD packet to send [19:45:51]OFD Sender: No OFD packet to send [19:45:56]OFD Sender: No OFD packet to send [19:46:01]OFD Sender: No OFD packet to send [19:46:06]OFD Sender: No OFD packet to send [19:46:11]OFD Sender: No OFD packet to send [19:46:16]OFD Sender: No OFD packet to send [19:46:21]OFD Sender: No OFD packet to send [19:46:26]OFD Sender: No OFD packet to send [19:46:31]OFD Sender: No OFD packet to send [19:46:36]OFD Sender: No OFD packet to send [19:46:41]OFD Sender: No OFD packet to send [19:46:46]OFD Sender: No OFD packet to send [19:46:51]OFD Sender: No OFD packet to send [19:46:56]OFD Sender: No OFD packet to send [19:47:01]OFD Sender: No OFD packet to send [19:47:06]OFD Sender: No OFD packet to send [19:47:11]OFD Sender: No OFD packet to send [19:47:16]OFD Sender: No OFD packet to send [19:47:21]OFD Sender: No OFD packet to send [19:47:26]OFD Sender: No OFD packet to send [19:47:31]OFD Sender: No OFD packet to send [19:47:36]OFD Sender: No OFD packet to send [19:47:41]OFD Sender: No OFD packet to send [19:47:46]OFD Sender: No OFD packet to send [19:47:51]OFD Sender: No OFD packet to send [19:47:56]OFD Sender: No OFD packet to send [19:48:01]OFD Sender: No OFD packet to send [19:48:06]OFD Sender: No OFD packet to send [19:48:11]OFD Sender: No OFD packet to send [19:48:16]OFD Sender: No OFD packet to send [19:48:21]OFD Sender: No OFD packet to send [19:48:26]OFD Sender: No OFD packet to send [19:48:31]OFD Sender: No OFD packet to send [19:48:36]OFD Sender: No OFD packet to send [19:48:41]OFD Sender: No OFD packet to send [19:48:46]OFD Sender: No OFD packet to send [19:48:51]OFD Sender: No OFD packet to send [19:48:56]OFD Sender: No OFD packet to send [19:49:01]OFD Sender: No OFD packet to send [19:49:06]OFD Sender: No OFD packet to send [19:49:11]OFD Sender: No OFD packet to send [19:49:16]OFD Sender: No OFD packet to send [19:49:21]OFD Sender: No OFD packet to send [19:49:26]OFD Sender: No OFD packet to send [19:49:31]OFD Sender: No OFD packet to send [19:49:36]OFD Sender: No OFD packet to send [19:49:41]OFD Sender: No OFD packet to send [19:49:46]OFD Sender: No OFD packet to send [19:49:51]OFD Sender: No OFD packet to send [19:49:56]OFD Sender: No OFD packet to send [19:50:01]OFD Sender: No OFD packet to send [19:50:06]OFD Sender: No OFD packet to send [19:50:11]OFD Sender: No OFD packet to send [19:50:16]OFD Sender: No OFD packet to send [19:50:21]OFD Sender: No OFD packet to send [19:50:26]OFD Sender: No OFD packet to send [19:50:31]OFD Sender: No OFD packet to send [19:50:36]OFD Sender: No OFD packet to send [19:50:41]OFD Sender: No OFD packet to send [19:50:46]OFD Sender: No OFD packet to send [19:50:51]OFD Sender: No OFD packet to send [19:50:56]OFD Sender: No OFD packet to send [19:51:01]OFD Sender: No OFD packet to send [19:51:06]OFD Sender: No OFD packet to send [19:51:11]OFD Sender: No OFD packet to send [19:51:16]OFD Sender: No OFD packet to send [19:51:21]OFD Sender: No OFD packet to send [19:51:26]OFD Sender: No OFD packet to send [19:51:31]OFD Sender: No OFD packet to send [19:51:36]OFD Sender: No OFD packet to send [19:51:41]OFD Sender: No OFD packet to send [19:51:46]OFD Sender: No OFD packet to send [19:51:51]OFD Sender: No OFD packet to send [19:51:56]OFD Sender: No OFD packet to send [19:52:01]OFD Sender: No OFD packet to send [19:52:06]OFD Sender: No OFD packet to send [19:52:11]OFD Sender: No OFD packet to send [19:52:16]OFD Sender: No OFD packet to send [19:52:21]OFD Sender: No OFD packet to send [19:52:26]OFD Sender: No OFD packet to send [19:52:27]accept exits with 8 [19:52:27]New connection [19:52:27]New thread 3067284836 created [19:52:27]Thread 3067141476 joined [19:52:27]Waiting for new connection... [19:52:27] Sock 8.Parse request [19:52:27]Sock 8.Check first char [19:52:27]Sock 8.First char is OK [19:52:27]request: POST /json_proto HTTP/1.0 [19:52:27]Method: POST [19:52:27]URL: /json_proto [19:52:27]Method is POST - this is cgi request [19:52:27]url: /json_proto [19:52:27]query_string will be loaded in cgi processing [19:52:27]execute_cgi json_proto POST (null) [19:52:27]execute_cgi path=json_proto method=POST [19:52:27]POST find Content-Length [19:52:27]Host: 172.17.50.196:8080 [19:52:27]Content-Length: 870 [19:52:27]Content-Type: application/json [19:52:27] [19:52:27]POST finish read [19:52:27]Found Content-Length = 870 [19:52:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335370", "tax_sys" : 0, "items" : [ { "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:27]execute_script... [19:52: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 : (3)335370", "tax_sys" : 0, "items" : [ { "code": "46003553", "name": "Nestle NUTS \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A 30\u044550\u0433", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036240010", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 190.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [19:52:27]POST & json_proto [19:52:27]process_json_proto [19:52:27]json parsed OK: [19:52:27]protocol is kg_v1.0 [19:52:27]action value=close_receipt [19:52:27]process_action close_receipt [19:52:27]cmd_close_receipt [19:52:27]MH_GetDate [19:52:27]Write to MH i2c: F0 00 00 3B 59 83 [19:52:27]Write i2c OK [19:52:27]MH_I2C_Read... [19:52:27]Read from MH i2c: F0 [19:52:27]MH_I2C_Read... [19:52:27]Read from MH i2c: F0 09 00 [19:52:27]MH_I2C_Read... [19:52:27]Read from MH i2c: F0 09 00 3B 59 00 82 8E 22 67 72 0D 1C 67 27 [19:52:27]GetLastDocTimeStamp 1730316439 [19:52:27]current date 1730317954 [19:52:27]FM_GetShiftState [19:52:27]SAM_PROTO_GetShiftState [19:52:27]wFMCommunicate request_size=4 [19:52:27]MH_SAM_APDU [19:52:27]CAPDU: 80 13 01 00 [19:52:27]Write to MH i2c: E2 08 00 3C 59 80 13 01 00 00 00 00 00 12 [19:52:27]Write i2c OK [19:52:27]MH_I2C_Read... [19:52:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:27]Read from MH i2c: E2 [19:52:27]MH_I2C_Read... [19:52:27]Read from MH i2c: E2 0E 00 [19:52:27]MH_I2C_Read... [19:52:27]Read from MH i2c: E2 0E 00 3C 59 00 09 00 01 86 76 21 67 00 00 00 00 90 00 A2 [19:52:27]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:52:27]wFMCommunicate OK [19:52:27]SAM_PROTO_GetShiftState done [19:52:27]FM_GetShiftState done [19:52:27]opened in 1730246278 [19:52:27]opened+sec_in_day 1730332678 [19:52:27]quantity*price = 7500 [19:52:27]sum+1 = 7501 [19:52:27]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036240010 Кофе Латте (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 190.00 НСП 1% : 1.68 НДС 12% : 20.17 Наличными: 190.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 173 30.10.2024 19:52 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139489 ФПД: 159254117326097 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T195234&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139489&fm=159254117326097&tin=02508201610067®Number=0000000000091631&sum=19000 0 [19:52:28]StoreToDocumentArchive [19:52:28]shift 556 fd 139489 [19:52:28]save to /storage/0556/doc_00139489 [19:52:28]save last doc name /storage/0556/doc_00139489 to /storage/kkm_last_doc_name [19:52:28]save OK [19:52:28]Clear old archive folders... [19:52:28]ProcessDocumentItem done err = 0, tmpTLVsize=378 [19:52:28]tlvbuf is 011ADD10 [19:52:28]SAM_PROTO_ClearQueue [19:52:28]wFMCommunicate request_size=4 [19:52:28]MH_SAM_APDU [19:52:28]CAPDU: 80 09 00 00 [19:52:28]Write to MH i2c: E2 08 00 49 59 80 09 00 00 00 00 00 00 14 [19:52:28]Write i2c OK [19:52:28]MH_I2C_Read... [19:52:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 49 59 00 90 00 16 [19:52:29]RAPDU: 90 00 [19:52:29]wFMCommunicate OK [19:52:29]SAM_PROTO_ClearQueue done [19:52:29]KKMCreateOFDPacket [19:52:29]OFDProtocolAddRootSTLVToBuf [19:52:29]FM_MakeSignedData [19:52:29]FM_MakeSignedData [19:52:29]SAM_PROTO_SignData [19:52:29]wFMCommunicate request_size=4 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 0D 01 02 [19:52:29]Write to MH i2c: E2 08 00 4A 59 80 0D 01 02 00 00 00 00 1C [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 4A 59 00 90 00 17 [19:52:29]RAPDU: 90 00 [19:52:29]wFMCommunicate OK [19:52:29]wFMCommunicate request_size=255 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 0D 02 02 FA 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 [19:52:29]Write to MH i2c: E2 02 01 4B 59 80 0D 02 02 FA 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 00 00 6A [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 4B 59 00 90 00 18 [19:52:29]RAPDU: 90 00 [19:52:29]wFMCommunicate OK [19:52:29]wFMCommunicate request_size=137 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 0D 02 02 84 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 82 8E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 20 02 00 35 04 06 00 90 D7 3D 17 9D 11 [19:52:29]Write to MH i2c: E2 8C 00 4C 59 80 0D 02 02 84 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 82 8E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 20 02 00 35 04 06 00 90 D7 3D 17 9D 11 00 00 A1 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 03 00 4C 59 00 90 00 19 [19:52:29]RAPDU: 90 00 [19:52:29]wFMCommunicate OK [19:52:29]wFMCommunicate request_size=4 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 0D 03 02 [19:52:29]Write to MH i2c: E2 08 00 4D 59 80 0D 03 02 00 00 00 00 21 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 0B 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 0B 00 4D 59 00 AB 34 F8 99 C1 E5 FB C8 90 00 FB [19:52:29]RAPDU: AB 34 F8 99 C1 E5 FB C8 90 00 [19:52:29]wFMCommunicate OK [19:52:29]SAM_PROTO_SignData done [19:52:29]FM_MakeSignedData done [19:52:29]CreateOFDProtocolMessage [19:52:29]wFMCommunicate request_size=4 [19:52:29]MH_SAM_APDU [19:52:29]CAPDU: 80 11 00 00 [19:52:29]Write to MH i2c: E2 08 00 4E 59 80 11 00 00 00 00 00 00 21 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:29]Read from MH i2c: E2 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 17 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: E2 17 00 4E 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7C [19:52:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:52:29]wFMCommunicate OK [19:52:29]CreateOFDProtocolMessage done [19:52:29]OFDSenderStorePacket 139489 [19:52:29]StoreOFDPacket docnum=139489 [19:52:29]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8E 01 00 00 9F EC 86 01 66 1C 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 82 8E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 20 02 00 35 04 06 00 90 D7 3D 17 9D 11 AB 34 F8 99 C1 E5 FB C8 [19:52:29]CheckFolder [19:52:29]dirname=/storage/ofd_packets [19:52:29]CheckFolder done [19:52:29]ProducePacketName [19:52:29]name=ofd_packets/00139489 [19:52:29]NVStorageSaveData ofd_packets/00139489 [19:52:29]File name is /storage/ofd_packets/00139489 [19:52:29]Write 428 bytes [19:52:29]NVStorageSaveData done [19:52:29]OFDSenderStorePacket done [19:52:29]KKMCreateOFDPacket done [19:52:29]NVStorageSaveData kkm_last_timestamp [19:52:29]File name is /storage/kkm_last_timestamp [19:52:29]Write 4 bytes [19:52:29]NVStorageSaveData done [19:52:29]ExternCall_PrintAddStr [19:52:29]wPrintStart [19:52:29]Write to MH i2c: 01 00 00 4F 59 A8 [19:52:29]Write i2c OK [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: 01 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: 01 07 00 [19:52:29]MH_I2C_Read... [19:52:29]Read from MH i2c: 01 07 00 4F 59 00 00 00 00 00 FF 0F BD [19:52:29]RasterBufferAndPrint [19:52:29]line Счет N : (3)335370 [19:52:29]line ИНН: 02508201610067 [19:52:29]line Контрольно-Кассовый Чек [19:52:29]line ПРОДАЖА [19:52:29]line Товар: 46003553 [19:52:29]line Nestle NUTS батончик 30х50г [19:52:29]line 1.000 * 75.00 [19:52:29]line = 75.00 [19:52:29]line НДС 12% НСП 1% [19:52:29]line > о реализуемом товаре [19:52:29]line Товар: 2000036240010 [19:52:29]line Кофе Латте (GABB TRADE) [19:52:29]line 1.000 * 115.00 [19:52:29]line = 115.00 [19:52:29]line НДС 12% НСП 1% [19:52:29]line > о реализуемом товаре [19:52:29]line ИТОГО: 190.00 [19:52:29]line НСП 1% : 1.68 [19:52:29]line НДС 12% : 20.17 [19:52:29]line Наличными: 190.00 [19:52:29]line Безнал.: 0.00 [19:52:29]line Место: АЗС № 101 "Партнер Нефть" [19:52:29]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [19:52:29]line СНО: Общий режим [19:52:29]line Чек 173 30.10.2024 19:52 [19:52:29]line Смена: 556 ФФД: 1.0 [19:52:29]line ЗНМ: 0300000081 [19:52:29]line РНМ: 0000000000091631 [19:52:29]line Версия ККМ: 001 [19:52:29]line ФМ: 0000000000874669 [19:52:29]line ФД: 139489 [19:52:29]line ФПД: 159254117326097 [19:52:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T195234&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139489&fm=159254117326097&tin=02508201610067®Number=0000000000091631&sum=19000 [19:52:29]line 0 [19:52:29]OFD Sender: Processing packet 139489 [packets to send 34, broken 33] [19:52:29]ProducePacketName [19:52:29]name=ofd_packets/00139489 [19:52:29]OFD Sender: To server: pG, [19:52:29]CommunicateWithHost lk.salyk.kg:30040 [19:52:29]ConnectInit lk.salyk.kg [19:52:29]written 0, free lines is 4095 [19:52:30]Write to MH i2c: 01 00 00 7D 59 D6 [19:52:30]Write i2c OK [19:52:30]MH_I2C_Read... [19:52:30]Read from MH i2c: 01 [19:52:30]MH_I2C_Read... [19:52:30]Read from MH i2c: 01 07 00 [19:52:30]MH_I2C_Read... [19:52:30]Read from MH i2c: 01 07 00 7D 59 00 00 00 00 00 C5 0C AE [19:52:30]RasterBufferAndPrint [19:52:30]line [19:52:30]line [19:52:30]line [19:52:30]line [19:52:30]line [19:52:30]written 0, free lines is 3274 [19:52:30]MH_Cut [19:52:30]Write to MH i2c: D1 01 00 84 59 01 AF [19:52:30]Write i2c OK [19:52:30]MH_I2C_Read... [19:52:30]Read from MH i2c: D1 [19:52:30]MH_I2C_Read... [19:52:30]Read from MH i2c: D1 01 00 [19:52:30]MH_I2C_Read... [19:52:30]Read from MH i2c: D1 01 00 84 59 00 AE [19:52:30]Write to MH i2c: 01 00 00 85 59 DE [19:52:30]Write i2c OK [19:52:30]MH_I2C_Read... [19:52:31]*** Cut start [19:52:31]*** Partial cut [19:52:31]*** CUTSNS_PIN = 1 [19:52:31]*** CUTSNS_PIN = 0 [19:52:31]*** Brake cut motor [19:52:31]Read from MH i2c: 01 [19:52:31]MH_I2C_Read... [19:52:31]*** Stop cut motor [19:52:31]*** Cut end [19:52:31]Read from MH i2c: 01 07 00 [19:52:31]MH_I2C_Read... [19:52:31]Read from MH i2c: 01 07 00 85 59 00 00 00 00 00 FF 0F F3 [19:52:31]process_action close_receipt done [19:52:31]requested_data is exist [19:52:31]produce_requested_data [19:52:31]requested_item fm.sn is exist - process it [19:52:31]wFMCommunicate request_size=4 [19:52:31]MH_SAM_APDU [19:52:31]CAPDU: 80 11 00 00 [19:52:31]Write to MH i2c: E2 08 00 86 59 80 11 00 00 00 00 00 00 59 [19:52:31]Write i2c OK [19:52:31]MH_I2C_Read... [19:52:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [19:52:31]Read from MH i2c: E2 [19:52:31]MH_I2C_Read... [19:52:31]Read from MH i2c: E2 17 00 [19:52:31]MH_I2C_Read... [19:52:31]Read from MH i2c: E2 17 00 86 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B4 [19:52:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [19:52:31]wFMCommunicate OK [19:52:31]requested_item fd.num is exist - process it [19:52:31]SAM_PROTO_GetFieldsCounters [19:52:31]wFMCommunicate request_size=4 [19:52:31]MH_SAM_APDU [19:52:31]CAPDU: 80 13 00 00 [19:52:31]Write to MH i2c: E2 08 00 87 59 80 13 00 00 00 00 00 00 5C [19:52:31]Write i2c OK [19:52:31]MH_I2C_Read... [19:52:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [19:52:31]Read from MH i2c: E2 [19:52:31]MH_I2C_Read... [19:52:31]Read from MH i2c: E2 62 00 [19:52:31]MH_I2C_Read... [19:52:31]Read from MH i2c: E2 62 00 87 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E1 20 02 00 0E 04 04 00 2C 02 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 B8 [19:52:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E1 20 02 00 0E 04 04 00 2C 02 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 [19:52:31]wFMCommunicate OK [19:52:31]SAM_PROTO_GetFieldsCounters done [19:52:31]requested_item shift.num is exist - process it [19:52:31]requested_item shift.opened is exist - process it [19:52:31]req_shift_opened [19:52:31]FM_GetShiftState [19:52:31]SAM_PROTO_GetShiftState [19:52:31]wFMCommunicate request_size=4 [19:52:31]MH_SAM_APDU [19:52:31]CAPDU: 80 13 01 00 [19:52:31]Write to MH i2c: E2 08 00 88 59 80 13 01 00 00 00 00 00 5E [19:52:31]Write i2c OK [19:52:31]MH_I2C_Read... [19:52:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [19:52:31]Read from MH i2c: E2 [19:52:31]MH_I2C_Read... [19:52:31]Read from MH i2c: E2 0E 00 [19:52:31]MH_I2C_Read... [19:52:31]Read from MH i2c: E2 0E 00 88 59 00 09 00 01 86 76 21 67 00 00 00 00 90 00 EE [19:52:32]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [19:52:32]wFMCommunicate OK [19:52:32]SAM_PROTO_GetShiftState done [19:52:32]FM_GetShiftState done [19:52:32]req_shift_opened done [19:52:32]requested_item shift.open_date is exist - process it [19:52:32]req_shift_open_date [19:52:32]req_shift_open_date done [19:52:32]produce_requested_data done [19:52:32]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139489,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [19:52:32]process_action_free close_receipt [19:52:32]json_value_free [19:52:32]json_value_free done [19:52:32]process_json_proto returns [19:52:32]Send response to host [19:52:32]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139489,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [19:52:32]free response buf [19:52:32]execute_script done [19:52:32]execute_script returns [19:52:32]free content buf [19:52:32]Sock 8.Close socket [19:52:32]Sock 8.Thread stoped [19:54:42]ConnectInit Can't connect to host [19:54:42]CommunicateWithHost connect error [19:54:42]CommunicateWithHost err = -1 [19:54:42]OFD Sender: Server communicate error [19:54:47]OFD Sender: Processing packet 139489 [packets to send 34, broken 33] [19:54:47]ProducePacketName [19:54:47]name=ofd_packets/00139489 [19:54:47]OFD Sender: To server: pG, [19:54:47]CommunicateWithHost lk.salyk.kg:30040 [19:54:47]ConnectInit lk.salyk.kg [19:54:47]Connected sock=8 [19:54:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8E 01 00 00 9F EC 86 01 66 1C 5A 03 01 00 03 00 7A 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 36 30 30 33 35 35 33 06 04 25 00 4E 65 73 74 6C 65 20 4E 55 54 53 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 33 30 D1 85 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 64 00 8A 04 0D 00 32 30 30 30 30 33 36 32 34 30 30 31 30 06 04 20 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 38 4A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E1 07 00 00 00 00 07 04 06 00 38 4A 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AD 00 00 00 F4 03 04 00 82 8E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 20 02 00 35 04 06 00 90 D7 3D 17 9D 11 AB 34 F8 99 C1 E5 FB C8 [19:54:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8B AB 47 00 FC 93 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E1 20 02 00 F4 03 04 00 BC 3A 22 67 B6 04 01 00 00 DF 44 26 90 CB 03 3A 50 [19:54:48]CommunicateWithHost err = 0 [19:54:48]CheckOFDResponse [19:54:48]1017 (14) - 77093643461234 [19:54:48]1041 (16) - 0000000000874669 [19:54:48]1040 (4) - 139489 [19:54:48]1012 (4) - 30.10.2024 13:55 [19:54:48]1206 (1) - 0 [19:54:48]OFD Sender: Remove packet 139489 [19:54:48]ProducePacketName [19:54:48]name=ofd_packets/00139489 [19:54:48]NVStorageDeleteData [19:54:48]OFD Sender: No OFD packet to send [19:54:53]OFD Sender: No OFD packet to send [19:54:58]OFD Sender: No OFD packet to send [19:55:03]OFD Sender: No OFD packet to send [19:55:08]OFD Sender: No OFD packet to send [19:55:13]OFD Sender: No OFD packet to send [19:55:18]OFD Sender: No OFD packet to send [19:55:23]OFD Sender: No OFD packet to send [19:55:28]OFD Sender: No OFD packet to send [19:55:33]OFD Sender: No OFD packet to send [19:55:38]OFD Sender: No OFD packet to send [19:55:43]OFD Sender: No OFD packet to send [19:55:48]OFD Sender: No OFD packet to send [19:55:53]OFD Sender: No OFD packet to send [19:55:58]OFD Sender: No OFD packet to send [19:56:03]OFD Sender: No OFD packet to send [19:56:08]OFD Sender: No OFD packet to send [19:56:13]OFD Sender: No OFD packet to send [19:56:18]OFD Sender: No OFD packet to send [19:56:23]OFD Sender: No OFD packet to send [19:56:28]OFD Sender: No OFD packet to send [19:56:33]OFD Sender: No OFD packet to send [19:56:38]OFD Sender: No OFD packet to send [19:56:43]OFD Sender: No OFD packet to send [19:56:48]OFD Sender: No OFD packet to send [19:56:53]OFD Sender: No OFD packet to send [19:56:58]OFD Sender: No OFD packet to send [19:57:03]OFD Sender: No OFD packet to send [19:57:08]OFD Sender: No OFD packet to send [19:57:13]OFD Sender: No OFD packet to send [19:57:18]OFD Sender: No OFD packet to send [19:57:23]OFD Sender: No OFD packet to send [19:57:28]OFD Sender: No OFD packet to send [19:57:33]OFD Sender: No OFD packet to send [19:57:38]OFD Sender: No OFD packet to send [19:57:43]OFD Sender: No OFD packet to send [19:57:48]OFD Sender: No OFD packet to send [19:57:53]OFD Sender: No OFD packet to send [19:57:58]OFD Sender: No OFD packet to send [19:58:03]OFD Sender: No OFD packet to send [19:58:08]OFD Sender: No OFD packet to send [19:58:13]OFD Sender: No OFD packet to send [19:58:18]OFD Sender: No OFD packet to send [19:58:23]OFD Sender: No OFD packet to send [19:58:28]OFD Sender: No OFD packet to send [19:58:33]OFD Sender: No OFD packet to send [19:58:38]OFD Sender: No OFD packet to send [19:58:43]OFD Sender: No OFD packet to send [19:58:48]OFD Sender: No OFD packet to send [19:58:53]OFD Sender: No OFD packet to send [19:58:58]OFD Sender: No OFD packet to send [19:59:03]OFD Sender: No OFD packet to send [19:59:08]OFD Sender: No OFD packet to send [19:59:13]OFD Sender: No OFD packet to send [19:59:18]OFD Sender: No OFD packet to send [19:59:23]OFD Sender: No OFD packet to send [19:59:28]OFD Sender: No OFD packet to send [19:59:33]OFD Sender: No OFD packet to send [19:59:38]OFD Sender: No OFD packet to send [19:59:43]OFD Sender: No OFD packet to send [19:59:48]OFD Sender: No OFD packet to send [19:59:53]OFD Sender: No OFD packet to send [19:59:58]OFD Sender: No OFD packet to send [20:00:03]OFD Sender: No OFD packet to send [20:00:08]OFD Sender: No OFD packet to send [20:00:13]OFD Sender: No OFD packet to send [20:00:18]OFD Sender: No OFD packet to send [20:00:23]OFD Sender: No OFD packet to send [20:00:28]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]OFD Sender: No OFD packet to send [20:02:49]OFD Sender: No OFD packet to send [20:02:54]OFD Sender: No OFD packet to send [20:02:59]OFD Sender: No OFD packet to send [20:03:04]OFD Sender: No OFD packet to send [20:03:09]OFD Sender: No OFD packet to send [20:03:14]OFD Sender: No OFD packet to send [20:03:19]OFD Sender: No OFD packet to send [20:03:24]OFD Sender: No OFD packet to send [20:03:29]OFD Sender: No OFD packet to send [20:03:34]OFD Sender: No OFD packet to send [20:03:39]OFD Sender: No OFD packet to send [20:03:44]OFD Sender: No OFD packet to send [20:03:49]OFD Sender: No OFD packet to send [20:03:54]OFD Sender: No OFD packet to send [20:03:59]OFD Sender: No OFD packet to send [20:04:04]OFD Sender: No OFD packet to send [20:04:09]OFD Sender: No OFD packet to send [20:04:14]OFD Sender: No OFD packet to send [20:04:19]OFD Sender: No OFD packet to send [20:04:24]OFD Sender: No OFD packet to send [20:04:29]OFD Sender: No OFD packet to send [20:04:34]OFD Sender: No OFD packet to send [20:04:39]OFD Sender: No OFD packet to send [20:04:44]OFD Sender: No OFD packet to send [20:04:49]OFD Sender: No OFD packet to send [20:04:54]OFD Sender: No OFD packet to send [20:04:59]OFD Sender: No OFD packet to send [20:05:04]OFD Sender: No OFD packet to send [20:05:09]OFD Sender: No OFD packet to send [20:05:14]OFD Sender: No OFD packet to send [20:05:19]OFD Sender: No OFD packet to send [20:05:24]OFD Sender: No OFD packet to send [20:05:29]OFD Sender: No OFD packet to send [20:05:34]OFD Sender: No OFD packet to send [20:05:39]OFD Sender: No OFD packet to send [20:05:44]OFD Sender: No OFD packet to send [20:05:49]OFD Sender: No OFD packet to send [20:05:54]OFD Sender: No OFD packet to send [20:05:59]OFD Sender: No OFD packet to send [20:06:04]OFD Sender: No OFD packet to send [20:06:09]OFD Sender: No OFD packet to send [20:06:14]OFD Sender: No OFD packet to send [20:06:19]OFD Sender: No OFD packet to send [20:06:19]accept exits with 9 [20:06:19]New connection [20:06:19]New thread 3067141476 created [20:06:19]Thread 3067284836 joined [20:06:19]Waiting for new connection... [20:06:19] Sock 9.Parse request [20:06:19]Sock 9.Check first char [20:06:19]Sock 9.First char is OK [20:06:19]request: POST /json_proto HTTP/1.0 [20:06:19]Method: POST [20:06:19]URL: /json_proto [20:06:19]Method is POST - this is cgi request [20:06:19]url: /json_proto [20:06:19]query_string will be loaded in cgi processing [20:06:19]execute_cgi json_proto POST (null) [20:06:19]execute_cgi path=json_proto method=POST [20:06:19]POST find Content-Length [20:06:19]Host: 172.17.50.196:8080 [20:06:19]Content-Length: 922 [20:06:19]Content-Type: application/json [20:06:19] [20:06:19]POST finish read [20:06:19]Found Content-Length = 922 [20:06:19]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335372", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:19]execute_script... [20:06:19]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335372", "tax_sys" : 0, "items" : [ { "code": "5449000189332", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043F\u0435\u0440\u0441\u0438\u043A 1\u043B", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:06:19]POST & json_proto [20:06:19]process_json_proto [20:06:19]json parsed OK: [20:06:19]protocol is kg_v1.0 [20:06:19]action value=close_receipt [20:06:19]process_action close_receipt [20:06:19]cmd_close_receipt [20:06:19]MH_GetDate [20:06:19]Write to MH i2c: F0 00 00 89 59 D1 [20:06:19]Write i2c OK [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: F0 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: F0 09 00 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: F0 09 00 89 59 00 C2 91 22 67 72 0D 1C 67 B8 [20:06:19]GetLastDocTimeStamp 1730317954 [20:06:19]current date 1730318786 [20:06:19]FM_GetShiftState [20:06:19]SAM_PROTO_GetShiftState [20:06:19]wFMCommunicate request_size=4 [20:06:19]MH_SAM_APDU [20:06:19]CAPDU: 80 13 01 00 [20:06:19]Write to MH i2c: E2 08 00 8A 59 80 13 01 00 00 00 00 00 60 [20:06:19]Write i2c OK [20:06:19]MH_I2C_Read... [20:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:19]Read from MH i2c: E2 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 0E 00 [20:06:19]MH_I2C_Read... [20:06:19]Read from MH i2c: E2 0E 00 8A 59 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F0 [20:06:19]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:06:19]wFMCommunicate OK [20:06:19]SAM_PROTO_GetShiftState done [20:06:19]FM_GetShiftState done [20:06:19]opened in 1730246278 [20:06:19]opened+sec_in_day 1730332678 [20:06:19]quantity*price = 12000 [20:06:19]sum+1 = 12001 [20:06:19]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 174 30.10.2024 20:06 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139490 ФПД: 142098963370268 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T200626&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139490&fm=142098963370268&tin=02508201610067®Number=0000000000091631&sum=17000 0 [20:06:20]StoreToDocumentArchive [20:06:20]shift 556 fd 139490 [20:06:20]save to /storage/0556/doc_00139490 [20:06:20]save last doc name /storage/0556/doc_00139490 to /storage/kkm_last_doc_name [20:06:20]save OK [20:06:20]Clear old archive folders... [20:06:20]ProcessDocumentItem done err = 0, tmpTLVsize=386 [20:06:20]tlvbuf is 0131EB10 [20:06:20]SAM_PROTO_ClearQueue [20:06:20]wFMCommunicate request_size=4 [20:06:20]MH_SAM_APDU [20:06:20]CAPDU: 80 09 00 00 [20:06:20]Write to MH i2c: E2 08 00 97 59 80 09 00 00 00 00 00 00 62 [20:06:20]Write i2c OK [20:06:20]MH_I2C_Read... [20:06:20]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:06:20]Read from MH i2c: E2 [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: E2 03 00 [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: E2 03 00 97 59 00 90 00 64 [20:06:20]RAPDU: 90 00 [20:06:20]wFMCommunicate OK [20:06:20]SAM_PROTO_ClearQueue done [20:06:20]KKMCreateOFDPacket [20:06:20]OFDProtocolAddRootSTLVToBuf [20:06:20]FM_MakeSignedData [20:06:20]FM_MakeSignedData [20:06:20]SAM_PROTO_SignData [20:06:20]wFMCommunicate request_size=4 [20:06:20]MH_SAM_APDU [20:06:20]CAPDU: 80 0D 01 02 [20:06:20]Write to MH i2c: E2 08 00 98 59 80 0D 01 02 00 00 00 00 6A [20:06:20]Write i2c OK [20:06:20]MH_I2C_Read... [20:06:20]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:06:20]Read from MH i2c: E2 [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: E2 03 00 [20:06:20]MH_I2C_Read... [20:06:20]Read from MH i2c: E2 03 00 98 59 00 90 00 65 [20:06:20]RAPDU: 90 00 [20:06:20]wFMCommunicate OK [20:06:20]wFMCommunicate request_size=255 [20:06:20]MH_SAM_APDU [20:06:20]CAPDU: 80 0D 02 02 FA 03 00 82 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 [20:06:20]Write to MH i2c: E2 02 01 99 59 80 0D 02 02 FA 00 03 00 82 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 00 00 90 [20:06:20]Write i2c OK [20:06:20]MH_I2C_Read... [20:06:21]Read from MH i2c: E2 [20:06:21]MH_I2C_Read... [20:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:21]Read from MH i2c: E2 03 00 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: E2 03 00 99 59 00 90 00 66 [20:06:21]RAPDU: 90 00 [20:06:21]wFMCommunicate OK [20:06:21]wFMCommunicate request_size=145 [20:06:21]MH_SAM_APDU [20:06:21]CAPDU: 80 0D 02 02 8C 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 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 C2 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 20 02 00 35 04 06 00 81 3C FE 3C 11 1C [20:06:21]Write to MH i2c: E2 94 00 9A 59 80 0D 02 02 8C 00 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 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 C2 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 20 02 00 35 04 06 00 81 3C FE 3C 11 1C 00 00 EF [20:06:21]Write i2c OK [20:06:21]MH_I2C_Read... [20:06:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:06:21]Read from MH i2c: E2 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: E2 03 00 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: E2 03 00 9A 59 00 90 00 67 [20:06:21]RAPDU: 90 00 [20:06:21]wFMCommunicate OK [20:06:21]wFMCommunicate request_size=4 [20:06:21]MH_SAM_APDU [20:06:21]CAPDU: 80 0D 03 02 [20:06:21]Write to MH i2c: E2 08 00 9B 59 80 0D 03 02 00 00 00 00 6F [20:06:21]Write i2c OK [20:06:21]MH_I2C_Read... [20:06:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:06:21]Read from MH i2c: E2 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: E2 0B 00 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: E2 0B 00 9B 59 00 A9 15 ED 35 A5 F1 22 3A 90 00 42 [20:06:21]RAPDU: A9 15 ED 35 A5 F1 22 3A 90 00 [20:06:21]wFMCommunicate OK [20:06:21]SAM_PROTO_SignData done [20:06:21]FM_MakeSignedData done [20:06:21]CreateOFDProtocolMessage [20:06:21]wFMCommunicate request_size=4 [20:06:21]MH_SAM_APDU [20:06:21]CAPDU: 80 11 00 00 [20:06:21]Write to MH i2c: E2 08 00 9C 59 80 11 00 00 00 00 00 00 6F [20:06:21]Write i2c OK [20:06:21]MH_I2C_Read... [20:06:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:21]Read from MH i2c: E2 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: E2 17 00 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: E2 17 00 9C 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CA [20:06:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:06:21]wFMCommunicate OK [20:06:21]CreateOFDProtocolMessage done [20:06:21]OFDSenderStorePacket 139490 [20:06:21]StoreOFDPacket docnum=139490 [20:06:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 96 01 00 00 B1 FE 8E 01 E3 70 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 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 C2 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 20 02 00 35 04 06 00 81 3C FE 3C 11 1C A9 15 ED 35 A5 F1 22 3A [20:06:21]CheckFolder [20:06:21]dirname=/storage/ofd_packets [20:06:21]CheckFolder done [20:06:21]ProducePacketName [20:06:21]name=ofd_packets/00139490 [20:06:21]NVStorageSaveData ofd_packets/00139490 [20:06:21]File name is /storage/ofd_packets/00139490 [20:06:21]Write 436 bytes [20:06:21]NVStorageSaveData done [20:06:21]OFDSenderStorePacket done [20:06:21]KKMCreateOFDPacket done [20:06:21]NVStorageSaveData kkm_last_timestamp [20:06:21]File name is /storage/kkm_last_timestamp [20:06:21]Write 4 bytes [20:06:21]NVStorageSaveData done [20:06:21]ExternCall_PrintAddStr [20:06:21]wPrintStart [20:06:21]Write to MH i2c: 01 00 00 9D 59 F6 [20:06:21]Write i2c OK [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: 01 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: 01 07 00 [20:06:21]MH_I2C_Read... [20:06:21]Read from MH i2c: 01 07 00 9D 59 00 00 00 00 00 FF 0F 0B [20:06:21]RasterBufferAndPrint [20:06:21]line Счет N : (3)335372 [20:06:21]line ИНН: 02508201610067 [20:06:21]line Контрольно-Кассовый Чек [20:06:21]line ПРОДАЖА [20:06:21]line Товар: 5449000189332 [20:06:21]line Холодный чай Fuse персик 1л [20:06:21]line 1.000 * 120.00 [20:06:21]line = 120.00 [20:06:21]line НДС 12% НСП 1% [20:06:21]line > о реализуемом товаре [20:06:21]line Товар: 4700000160358 [20:06:21]line Вода Легенда 1л [20:06:21]line 1.000 * 50.00 [20:06:21]line = 50.00 [20:06:21]line НДС 12% НСП 1% [20:06:21]line > о реализуемом товаре [20:06:21]line ИТОГО: 170.00 [20:06:21]line НСП 1% : 1.50 [20:06:21]line НДС 12% : 18.05 [20:06:21]line Наличными: 170.00 [20:06:21]line Безнал.: 0.00 [20:06:21]line Место: АЗС № 101 "Партнер Нефть" [20:06:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:06:21]line СНО: Общий режим [20:06:21]line Чек 174 30.10.2024 20:06 [20:06:21]line Смена: 556 ФФД: 1.0 [20:06:21]line ЗНМ: 0300000081 [20:06:21]line РНМ: 0000000000091631 [20:06:21]line Версия ККМ: 001 [20:06:21]line ФМ: 0000000000874669 [20:06:21]line ФД: 139490 [20:06:21]line ФПД: 142098963370268 [20:06:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T200626&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139490&fm=142098963370268&tin=02508201610067®Number=0000000000091631&sum=17000 [20:06:21]OFD Sender: Processing packet 139490 [packets to send 34, broken 33] [20:06:21]ProducePacketName [20:06:21]name=ofd_packets/00139490 [20:06:21]OFD Sender: To server: pG, [20:06:21]CommunicateWithHost lk.salyk.kg:30040 [20:06:21]ConnectInit lk.salyk.kg [20:06:21]line 0 [20:06:21]written 0, free lines is 4095 [20:06:21]Connected sock=10 [20:06:21]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 96 01 00 00 B1 FE 8E 01 E3 70 5A 03 01 00 03 00 82 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 33 32 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 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 C2 91 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E2 20 02 00 35 04 06 00 81 3C FE 3C 11 1C A9 15 ED 35 A5 F1 22 3A [20:06:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F4 FA 47 00 64 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 38 37 34 36 36 39 10 04 04 00 E2 20 02 00 F4 03 04 00 72 3D 22 67 B6 04 01 00 00 39 F6 6F 27 4D 45 44 D4 [20:06:22]CommunicateWithHost err = 0 [20:06:22]CheckOFDResponse [20:06:22]1017 (14) - 77093643461234 [20:06:22]1041 (16) - 0000000000874669 [20:06:22]1040 (4) - 139490 [20:06:22]1012 (4) - 30.10.2024 14:06 [20:06:22]1206 (1) - 0 [20:06:22]OFD Sender: Remove packet 139490 [20:06:22]ProducePacketName [20:06:22]name=ofd_packets/00139490 [20:06:22]NVStorageDeleteData [20:06:22]Write to MH i2c: 01 00 00 CB 59 24 [20:06:22]Write i2c OK [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: 01 [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: 01 07 00 [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: 01 07 00 CB 59 00 00 00 00 00 CA 0C 01 [20:06:22]RasterBufferAndPrint [20:06:22]line [20:06:22]line [20:06:22]line [20:06:22]line [20:06:22]line [20:06:22]written 0, free lines is 3280 [20:06:22]MH_Cut [20:06:22]Write to MH i2c: D1 01 00 D2 59 01 FD [20:06:22]Write i2c OK [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: D1 [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: D1 01 00 [20:06:22]MH_I2C_Read... [20:06:22]Read from MH i2c: D1 01 00 D2 59 00 FC [20:06:22]Write to MH i2c: 01 00 00 D3 59 2C [20:06:22]Write i2c OK [20:06:22]MH_I2C_Read... [20:06:22]OFD Sender: No OFD packet to send [20:06:23]*** Cut start [20:06:23]*** Partial cut [20:06:23]*** CUTSNS_PIN = 1 [20:06:23]*** CUTSNS_PIN = 0 [20:06:23]*** Brake cut motor [20:06:23]Read from MH i2c: 01 [20:06:23]MH_I2C_Read... [20:06:23]*** Stop cut motor [20:06:23]*** Cut end [20:06:23]Read from MH i2c: 01 07 00 [20:06:23]MH_I2C_Read... [20:06:23]Read from MH i2c: 01 07 00 D3 59 00 00 00 00 00 FF 0F 41 [20:06:23]process_action close_receipt done [20:06:23]requested_data is exist [20:06:23]produce_requested_data [20:06:23]requested_item fm.sn is exist - process it [20:06:23]wFMCommunicate request_size=4 [20:06:23]MH_SAM_APDU [20:06:23]CAPDU: 80 11 00 00 [20:06:23]Write to MH i2c: E2 08 00 D4 59 80 11 00 00 00 00 00 00 A7 [20:06:23]Write i2c OK [20:06:23]MH_I2C_Read... [20:06:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:06:23]Read from MH i2c: E2 [20:06:23]MH_I2C_Read... [20:06:23]Read from MH i2c: E2 17 00 [20:06:23]MH_I2C_Read... [20:06:23]Read from MH i2c: E2 17 00 D4 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [20:06:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:06:23]wFMCommunicate OK [20:06:23]requested_item fd.num is exist - process it [20:06:23]SAM_PROTO_GetFieldsCounters [20:06:23]wFMCommunicate request_size=4 [20:06:23]MH_SAM_APDU [20:06:23]CAPDU: 80 13 00 00 [20:06:23]Write to MH i2c: E2 08 00 D5 59 80 13 00 00 00 00 00 00 AA [20:06:23]Write i2c OK [20:06:23]MH_I2C_Read... [20:06:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:06:23]Read from MH i2c: E2 [20:06:23]MH_I2C_Read... [20:06:23]Read from MH i2c: E2 62 00 [20:06:23]MH_I2C_Read... [20:06:23]Read from MH i2c: E2 62 00 D5 59 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E2 20 02 00 0E 04 04 00 2C 02 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 0A [20:06:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E2 20 02 00 0E 04 04 00 2C 02 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 [20:06:23]wFMCommunicate OK [20:06:23]SAM_PROTO_GetFieldsCounters done [20:06:23]requested_item shift.num is exist - process it [20:06:23]requested_item shift.opened is exist - process it [20:06:23]req_shift_opened [20:06:23]FM_GetShiftState [20:06:23]SAM_PROTO_GetShiftState [20:06:23]wFMCommunicate request_size=4 [20:06:23]MH_SAM_APDU [20:06:23]CAPDU: 80 13 01 00 [20:06:23]Write to MH i2c: E2 08 00 D6 59 80 13 01 00 00 00 00 00 AC [20:06:23]Write i2c OK [20:06:23]MH_I2C_Read... [20:06:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:06:23]Read from MH i2c: E2 [20:06:23]MH_I2C_Read... [20:06:23]Read from MH i2c: E2 0E 00 [20:06:23]MH_I2C_Read... [20:06:23]Read from MH i2c: E2 0E 00 D6 59 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3C [20:06:23]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:06:23]wFMCommunicate OK [20:06:23]SAM_PROTO_GetShiftState done [20:06:23]FM_GetShiftState done [20:06:23]req_shift_opened done [20:06:23]requested_item shift.open_date is exist - process it [20:06:23]req_shift_open_date [20:06:23]req_shift_open_date done [20:06:23]produce_requested_data done [20:06:23]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139490,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:06:23]process_action_free close_receipt [20:06:23]json_value_free [20:06:23]json_value_free done [20:06:23]process_json_proto returns [20:06:23]Send response to host [20:06:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139490,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:06:23]free response buf [20:06:23]execute_script done [20:06:23]execute_script returns [20:06:23]free content buf [20:06:23]Sock 9.Close socket [20:06:23]Sock 9.Thread stoped [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:06]accept exits with 8 [20:08:06]New connection [20:08:06]New thread 3067284836 created [20:08:06]Thread 3067141476 joined [20:08:06]Waiting for new connection... [20:08:06] Sock 8.Parse request [20:08:06]Sock 8.Check first char [20:08:06]Sock 8.First char is OK [20:08:06]request: POST /json_proto HTTP/1.0 [20:08:06]Method: POST [20:08:06]URL: /json_proto [20:08:06]Method is POST - this is cgi request [20:08:06]url: /json_proto [20:08:06]query_string will be loaded in cgi processing [20:08:06]execute_cgi json_proto POST (null) [20:08:06]execute_cgi path=json_proto method=POST [20:08:06]POST find Content-Length [20:08:06]Host: 172.17.50.196:8080 [20:08:06]Content-Length: 1099 [20:08:06]Content-Type: application/json [20:08:06] [20:08:06]POST finish read [20:08:06]Found Content-Length = 1099 [20:08:06]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335373", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.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" : 243.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:06]execute_script... [20:08: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 : (3)335373", "tax_sys" : 0, "items" : [ { "code": "5449000027450", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FuzeTea \u0447\u0430\u0439 \u043C\u0430\u043D\u0433\u043E,\u0440\u043E\u043C 0,5\u043B", "price" : 75.00, "quantity" : 2.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004879", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u043A\u043E\u043A\u043E\u0441.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.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" : 243.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:08:06]POST & json_proto [20:08:06]process_json_proto [20:08:06]json parsed OK: [20:08:06]protocol is kg_v1.0 [20:08:06]action value=close_receipt [20:08:06]process_action close_receipt [20:08:06]cmd_close_receipt [20:08:06]MH_GetDate [20:08:06]Write to MH i2c: F0 00 00 D7 59 1F [20:08:06]Write i2c OK [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: F0 [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: F0 09 00 [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: F0 09 00 D7 59 00 2D 92 22 67 72 0D 1C 67 72 [20:08:06]GetLastDocTimeStamp 1730318786 [20:08:06]current date 1730318893 [20:08:06]FM_GetShiftState [20:08:06]SAM_PROTO_GetShiftState [20:08:06]wFMCommunicate request_size=4 [20:08:06]MH_SAM_APDU [20:08:06]CAPDU: 80 13 01 00 [20:08:06]Write to MH i2c: E2 08 00 D8 59 80 13 01 00 00 00 00 00 AE [20:08:06]Write i2c OK [20:08:06]MH_I2C_Read... [20:08:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:06]Read from MH i2c: E2 [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: E2 0E 00 [20:08:06]MH_I2C_Read... [20:08:06]Read from MH i2c: E2 0E 00 D8 59 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3E [20:08:06]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:08:06]wFMCommunicate OK [20:08:06]SAM_PROTO_GetShiftState done [20:08:06]FM_GetShiftState done [20:08:06]opened in 1730246278 [20:08:06]opened+sec_in_day 1730332678 [20:08:06]quantity*price = 15000 [20:08:06]sum+1 = 15001 [20:08:06]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004879 Печ.сах.FORSITE Сэнд.кокос.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 243.00 НСП 1% : 2.15 НДС 12% : 25.81 Наличными: 0.00 Безнал.: 243.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 175 30.10.2024 20:08 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139491 ФПД: 77402380161253 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T200813&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139491&fm=77402380161253&tin=02508201610067®Number=0000000000091631&sum=24300 0 [20:08:07]StoreToDocumentArchive [20:08:07]shift 556 fd 139491 [20:08:07]save to /storage/0556/doc_00139491 [20:08:07]save last doc name /storage/0556/doc_00139491 to /storage/kkm_last_doc_name [20:08:07]save OK [20:08:07]Clear old archive folders... [20:08:07]ProcessDocumentItem done err = 0, tmpTLVsize=413 [20:08:07]tlvbuf is 01115A70 [20:08:07]SAM_PROTO_ClearQueue [20:08:07]wFMCommunicate request_size=4 [20:08:07]MH_SAM_APDU [20:08:07]CAPDU: 80 09 00 00 [20:08:07]Write to MH i2c: E2 08 00 E5 59 80 09 00 00 00 00 00 00 B0 [20:08:07]Write i2c OK [20:08:07]MH_I2C_Read... [20:08:07]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:08:07]Read from MH i2c: E2 [20:08:07]MH_I2C_Read... [20:08:07]Read from MH i2c: E2 03 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 03 00 E5 59 00 90 00 B2 [20:08:08]RAPDU: 90 00 [20:08:08]wFMCommunicate OK [20:08:08]SAM_PROTO_ClearQueue done [20:08:08]KKMCreateOFDPacket [20:08:08]OFDProtocolAddRootSTLVToBuf [20:08:08]FM_MakeSignedData [20:08:08]FM_MakeSignedData [20:08:08]SAM_PROTO_SignData [20:08:08]wFMCommunicate request_size=4 [20:08:08]MH_SAM_APDU [20:08:08]CAPDU: 80 0D 01 02 [20:08:08]Write to MH i2c: E2 08 00 E6 59 80 0D 01 02 00 00 00 00 B8 [20:08:08]Write i2c OK [20:08:08]MH_I2C_Read... [20:08:08]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:08:08]Read from MH i2c: E2 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 03 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 03 00 E6 59 00 90 00 B3 [20:08:08]RAPDU: 90 00 [20:08:08]wFMCommunicate OK [20:08:08]wFMCommunicate request_size=255 [20:08:08]MH_SAM_APDU [20:08:08]CAPDU: 80 0D 02 02 FA 03 00 9D 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 [20:08:08]Write to MH i2c: E2 02 01 E7 59 80 0D 02 02 FA 00 03 00 9D 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 00 F7 [20:08:08]Write i2c OK [20:08:08]MH_I2C_Read... [20:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:08]Read from MH i2c: E2 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 03 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 03 00 E7 59 00 90 00 B4 [20:08:08]RAPDU: 90 00 [20:08:08]wFMCommunicate OK [20:08:08]wFMCommunicate request_size=172 [20:08:08]MH_SAM_APDU [20:08:08]CAPDU: 80 0D 02 02 A7 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2D 92 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 20 02 00 35 04 06 00 46 65 A5 5F D0 E5 [20:08:08]Write to MH i2c: E2 AF 00 E8 59 80 0D 02 02 A7 00 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2D 92 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 20 02 00 35 04 06 00 46 65 A5 5F D0 E5 00 00 67 [20:08:08]Write i2c OK [20:08:08]MH_I2C_Read... [20:08:08]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:08:08]Read from MH i2c: E2 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 03 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 03 00 E8 59 00 90 00 B5 [20:08:08]RAPDU: 90 00 [20:08:08]wFMCommunicate OK [20:08:08]wFMCommunicate request_size=4 [20:08:08]MH_SAM_APDU [20:08:08]CAPDU: 80 0D 03 02 [20:08:08]Write to MH i2c: E2 08 00 E9 59 80 0D 03 02 00 00 00 00 BD [20:08:08]Write i2c OK [20:08:08]MH_I2C_Read... [20:08:08]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:08:08]Read from MH i2c: E2 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 0B 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 0B 00 E9 59 00 68 B4 C1 0D 12 36 FC FA 90 00 E6 [20:08:08]RAPDU: 68 B4 C1 0D 12 36 FC FA 90 00 [20:08:08]wFMCommunicate OK [20:08:08]SAM_PROTO_SignData done [20:08:08]FM_MakeSignedData done [20:08:08]CreateOFDProtocolMessage [20:08:08]wFMCommunicate request_size=4 [20:08:08]MH_SAM_APDU [20:08:08]CAPDU: 80 11 00 00 [20:08:08]Write to MH i2c: E2 08 00 EA 59 80 11 00 00 00 00 00 00 BD [20:08:08]Write i2c OK [20:08:08]MH_I2C_Read... [20:08:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:08]Read from MH i2c: E2 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 17 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: E2 17 00 EA 59 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [20:08:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:08:08]wFMCommunicate OK [20:08:08]CreateOFDProtocolMessage done [20:08:08]OFDSenderStorePacket 139491 [20:08:08]StoreOFDPacket docnum=139491 [20:08:08]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B1 01 00 00 D2 61 A9 01 A4 76 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2D 92 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 20 02 00 35 04 06 00 46 65 A5 5F D0 E5 68 B4 C1 0D 12 36 FC FA [20:08:08]CheckFolder [20:08:08]dirname=/storage/ofd_packets [20:08:08]CheckFolder done [20:08:08]ProducePacketName [20:08:08]name=ofd_packets/00139491 [20:08:08]NVStorageSaveData ofd_packets/00139491 [20:08:08]File name is /storage/ofd_packets/00139491 [20:08:08]Write 463 bytes [20:08:08]NVStorageSaveData done [20:08:08]OFDSenderStorePacket done [20:08:08]KKMCreateOFDPacket done [20:08:08]NVStorageSaveData kkm_last_timestamp [20:08:08]File name is /storage/kkm_last_timestamp [20:08:08]Write 4 bytes [20:08:08]NVStorageSaveData done [20:08:08]ExternCall_PrintAddStr [20:08:08]wPrintStart [20:08:08]Write to MH i2c: 01 00 00 EB 59 44 [20:08:08]OFD Sender: Processing packet 139491 [packets to send 34, broken 33] [20:08:08]ProducePacketName [20:08:08]name=ofd_packets/00139491 [20:08:08]Write i2c OK [20:08:08]MH_I2C_Read... [20:08:08]OFD Sender: To server: pG, [20:08:08]CommunicateWithHost lk.salyk.kg:30040 [20:08:08]ConnectInit lk.salyk.kg [20:08:08]Read from MH i2c: 01 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: 01 07 00 [20:08:08]MH_I2C_Read... [20:08:08]Read from MH i2c: 01 07 00 EB 59 00 00 00 00 00 FF 0F 59 [20:08:08]RasterBufferAndPrint [20:08:08]line Счет N : (3)335373 [20:08:08]line ИНН: 02508201610067 [20:08:08]line Контрольно-Кассовый Чек [20:08:08]line ПРОДАЖА [20:08:08]line Товар: 5449000027450 [20:08:08]line Напиток FuzeTea чай манго,ром 0,5л [20:08:08]line 2.000 * 75.00 [20:08:08]line = 150.00 [20:08:08]line НДС 12% НСП 1% [20:08:08]line > о реализуемом товаре [20:08:08]line Товар: 4603290004879 [20:08:08]line Печ.сах.FORSITE Сэнд.кокос.вк [20:08:08]line 1.000 * 93.00 [20:08:08]line = 93.00 [20:08:08]line НДС 12% НСП 1% [20:08:08]line > о реализуемом товаре [20:08:08]line ИТОГО: 243.00 [20:08:08]line НСП 1% : 2.15 [20:08:08]line НДС 12% : 25.81 [20:08:08]line Наличными: 0.00 [20:08:08]line Безнал.: 243.00 [20:08:08]line Место: АЗС № 101 "Партнер Нефть" [20:08:08]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:08:08]line СНО: Общий режим [20:08:08]line Чек 175 30.10.2024 20:08 [20:08:08]line Смена: 556 ФФД: 1.0 [20:08:08]line ЗНМ: 0300000081 [20:08:08]line РНМ: 0000000000091631 [20:08:08]line Версия ККМ: 001 [20:08:08]line Платежная система: Mbank [20:08:08]line ФМ: 0000000000874669 [20:08:08]line ФД: 139491 [20:08:08]line ФПД: 77402380161253 [20:08:08]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T200813&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139491&fm=77402380161253&tin=02508201610067®Number=0000000000091631&sum=24300 [20:08:08]line 0 [20:08:08]written 0, free lines is 4095 [20:08:09]Connected sock=10 [20:08:09]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B1 01 00 00 D2 61 A9 01 A4 76 5A 03 01 00 03 00 9D 01 1E 04 01 00 01 23 04 79 00 8A 04 0D 00 35 34 34 39 30 30 30 30 32 37 34 35 30 06 04 35 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 75 7A 65 54 65 61 20 D1 87 D0 B0 D0 B9 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2C D1 80 D0 BE D0 BC 20 30 2C 35 D0 BB FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 98 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 72 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 37 39 06 04 2E 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D0 BA D0 BE D0 BA D0 BE D1 81 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 5E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 15 0A 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 5E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 AF 00 00 00 F4 03 04 00 2D 92 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E3 20 02 00 35 04 06 00 46 65 A5 5F D0 E5 68 B4 C1 0D 12 36 FC FA [20:08:09]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5E 1D 47 00 5D 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 38 37 34 36 36 39 10 04 04 00 E3 20 02 00 F4 03 04 00 DD 3D 22 67 B6 04 01 00 00 28 5D 69 F1 C6 0B 36 98 [20:08:09]CommunicateWithHost err = 0 [20:08:09]CheckOFDResponse [20:08:09]1017 (14) - 77093643461234 [20:08:09]1041 (16) - 0000000000874669 [20:08:09]1040 (4) - 139491 [20:08:09]1012 (4) - 30.10.2024 14:08 [20:08:09]1206 (1) - 0 [20:08:09]OFD Sender: Remove packet 139491 [20:08:09]ProducePacketName [20:08:09]name=ofd_packets/00139491 [20:08:09]NVStorageDeleteData [20:08:09]Write to MH i2c: 01 00 00 1B 5A 75 [20:08:09]Write i2c OK [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: 01 [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: 01 07 00 [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: 01 07 00 1B 5A 00 00 00 00 00 A6 0C 2E [20:08:09]RasterBufferAndPrint [20:08:09]line [20:08:09]line [20:08:09]line [20:08:09]line [20:08:09]line [20:08:09]written 0, free lines is 3246 [20:08:09]MH_Cut [20:08:09]Write to MH i2c: D1 01 00 22 5A 01 4E [20:08:09]Write i2c OK [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: D1 [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: D1 01 00 [20:08:09]MH_I2C_Read... [20:08:09]Read from MH i2c: D1 01 00 22 5A 00 4D [20:08:09]Write to MH i2c: 01 00 00 23 5A 7D [20:08:09]Write i2c OK [20:08:09]MH_I2C_Read... [20:08:09]OFD Sender: No OFD packet to send [20:08:10]*** Cut start [20:08:10]*** Partial cut [20:08:10]*** CUTSNS_PIN = 1 [20:08:10]*** CUTSNS_PIN = 0 [20:08:10]*** Brake cut motor [20:08:10]Read from MH i2c: 01 [20:08:10]MH_I2C_Read... [20:08:10]*** Stop cut motor [20:08:10]*** Cut end [20:08:10]Read from MH i2c: 01 07 00 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: 01 07 00 23 5A 00 00 00 00 00 FF 0F 92 [20:08:10]process_action close_receipt done [20:08:10]requested_data is exist [20:08:10]produce_requested_data [20:08:10]requested_item fm.sn is exist - process it [20:08:10]wFMCommunicate request_size=4 [20:08:10]MH_SAM_APDU [20:08:10]CAPDU: 80 11 00 00 [20:08:10]Write to MH i2c: E2 08 00 24 5A 80 11 00 00 00 00 00 00 F8 [20:08:10]Write i2c OK [20:08:10]MH_I2C_Read... [20:08:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:08:10]Read from MH i2c: E2 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: E2 17 00 [20:08:10]MH_I2C_Read... [20:08:10]Read from MH i2c: E2 17 00 24 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 53 [20:08:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:08:10]wFMCommunicate OK [20:08:10]requested_item fd.num is exist - process it [20:08:10]SAM_PROTO_GetFieldsCounters [20:08:10]wFMCommunicate request_size=4 [20:08:10]MH_SAM_APDU [20:08:10]CAPDU: 80 13 00 00 [20:08:10]Write to MH i2c: E2 08 00 25 5A 80 13 00 00 00 00 00 00 FB [20:08:10]Write i2c OK [20:08:10]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 62 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 62 00 25 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E3 20 02 00 0E 04 04 00 2C 02 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 5F [20:08:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E3 20 02 00 0E 04 04 00 2C 02 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 [20:08:11]wFMCommunicate OK [20:08:11]SAM_PROTO_GetFieldsCounters done [20:08:11]requested_item shift.num is exist - process it [20:08:11]requested_item shift.opened is exist - process it [20:08:11]req_shift_opened [20:08:11]FM_GetShiftState [20:08:11]SAM_PROTO_GetShiftState [20:08:11]wFMCommunicate request_size=4 [20:08:11]MH_SAM_APDU [20:08:11]CAPDU: 80 13 01 00 [20:08:11]Write to MH i2c: E2 08 00 26 5A 80 13 01 00 00 00 00 00 FD [20:08:11]Write i2c OK [20:08:11]MH_I2C_Read... [20:08:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:08:11]Read from MH i2c: E2 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 0E 00 [20:08:11]MH_I2C_Read... [20:08:11]Read from MH i2c: E2 0E 00 26 5A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8D [20:08:11]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:08:11]wFMCommunicate OK [20:08:11]SAM_PROTO_GetShiftState done [20:08:11]FM_GetShiftState done [20:08:11]req_shift_opened done [20:08:11]requested_item shift.open_date is exist - process it [20:08:11]req_shift_open_date [20:08:11]req_shift_open_date done [20:08:11]produce_requested_data done [20:08:11]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139491,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:08:11]process_action_free close_receipt [20:08:11]json_value_free [20:08:11]json_value_free done [20:08:11]process_json_proto returns [20:08:11]Send response to host [20:08:11]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139491,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:08:11]free response buf [20:08:11]execute_script done [20:08:11]execute_script returns [20:08:11]free content buf [20:08:11]Sock 8.Close socket [20:08:11]Sock 8.Thread stoped [20:08:14]OFD Sender: No OFD packet to send [20:08:19]OFD Sender: No OFD packet to send [20:08:24]OFD Sender: No OFD packet to send [20:08:29]OFD Sender: No OFD packet to send [20:08:34]OFD Sender: No OFD packet to send [20:08:39]OFD Sender: No OFD packet to send [20:08:44]OFD Sender: No OFD packet to send [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]OFD Sender: No OFD packet to send [20:09:09]OFD Sender: No OFD packet to send [20:09:14]OFD Sender: No OFD packet to send [20:09:19]OFD Sender: No OFD packet to send [20:09:24]OFD Sender: No OFD packet to send [20:09:29]OFD Sender: No OFD packet to send [20:09:34]OFD Sender: No OFD packet to send [20:09:39]OFD Sender: No OFD packet to send [20:09:44]OFD Sender: No OFD packet to send [20:09:49]OFD Sender: No OFD packet to send [20:09:54]OFD Sender: No OFD packet to send [20:09:59]OFD Sender: No OFD packet to send [20:10:04]OFD Sender: No OFD packet to send [20:10:09]OFD Sender: No OFD packet to send [20:10:14]OFD Sender: No OFD packet to send [20:10:19]OFD Sender: No OFD packet to send [20:10:24]OFD Sender: No OFD packet to send [20:10:29]OFD Sender: No OFD packet to send [20:10:34]OFD Sender: No OFD packet to send [20:10:39]OFD Sender: No OFD packet to send [20:10:44]OFD Sender: No OFD packet to send [20:10:49]OFD Sender: No OFD packet to send [20:10:54]OFD Sender: No OFD packet to send [20:10:59]OFD Sender: No OFD packet to send [20:11:04]OFD Sender: No OFD packet to send [20:11:05]accept exits with 9 [20:11:05]New connection [20:11:05]New thread 3067141476 created [20:11:05]Thread 3067284836 joined [20:11:05]Waiting for new connection... [20:11:05] Sock 9.Parse request [20:11:05]Sock 9.Check first char [20:11:05]Sock 9.First char is OK [20:11:05]request: POST /json_proto HTTP/1.0 [20:11:05]Method: POST [20:11:05]URL: /json_proto [20:11:05]Method is POST - this is cgi request [20:11:05]url: /json_proto [20:11:05]query_string will be loaded in cgi processing [20:11:05]execute_cgi json_proto POST (null) [20:11:05]execute_cgi path=json_proto method=POST [20:11:05]POST find Content-Length [20:11:05]Host: 172.17.50.196:8080 [20:11:05]Content-Length: 767 [20:11:05]Content-Type: application/json [20:11:05] [20:11:05]POST finish read [20:11:05]Found Content-Length = 767 [20:11:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:05]execute_script... [20:11:05]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094761", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 63", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 500.41 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:05]POST & json_proto [20:11:05]process_json_proto [20:11:05]json parsed OK: [20:11:05]protocol is kg_v1.0 [20:11:05]action value=close_receipt [20:11:05]process_action close_receipt [20:11:05]cmd_close_receipt [20:11:05]MH_GetDate [20:11:05]Write to MH i2c: F0 00 00 27 5A 70 [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: F0 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: F0 09 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: F0 09 00 27 5A 00 E0 92 22 67 72 0D 1C 67 76 [20:11:05]GetLastDocTimeStamp 1730318893 [20:11:05]current date 1730319072 [20:11:05]FM_GetShiftState [20:11:05]SAM_PROTO_GetShiftState [20:11:05]wFMCommunicate request_size=4 [20:11:05]MH_SAM_APDU [20:11:05]CAPDU: 80 13 01 00 [20:11:05]Write to MH i2c: E2 08 00 28 5A 80 13 01 00 00 00 00 00 FF [20:11:05]Write i2c OK [20:11:05]MH_I2C_Read... [20:11:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:05]Read from MH i2c: E2 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: E2 0E 00 [20:11:05]MH_I2C_Read... [20:11:05]Read from MH i2c: E2 0E 00 28 5A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 8F [20:11:05]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:11:05]wFMCommunicate OK [20:11:05]SAM_PROTO_GetShiftState done [20:11:05]FM_GetShiftState done [20:11:05]opened in 1730246278 [20:11:05]opened+sec_in_day 1730332678 [20:11:05]quantity*price = 50041 [20:11:05]sum+1 = 50042 [20:11:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 500.41 НСП 1% : 4.43 НДС 12% : 53.14 Наличными: 0.00 Безнал.: 500.41 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 176 30.10.2024 20:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139492 ФПД: 169943973251304 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T201112&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139492&fm=169943973251304&tin=02508201610067®Number=0000000000091631&sum=50041 [20:11:06]StoreToDocumentArchive [20:11:06]shift 556 fd 139492 [20:11:06]save to /storage/0556/doc_00139492 [20:11:06]save last doc name /storage/0556/doc_00139492 to /storage/kkm_last_doc_name [20:11:06]save OK [20:11:06]Clear old archive folders... [20:11:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:11:06]tlvbuf is 011676B0 [20:11:06]SAM_PROTO_ClearQueue [20:11:06]wFMCommunicate request_size=4 [20:11:06]MH_SAM_APDU [20:11:06]CAPDU: 80 09 00 00 [20:11:06]Write to MH i2c: E2 08 00 35 5A 80 09 00 00 00 00 00 00 01 [20:11:06]Write i2c OK [20:11:06]MH_I2C_Read... [20:11:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:06]Read from MH i2c: E2 [20:11:06]MH_I2C_Read... [20:11:06]Read from MH i2c: E2 03 00 [20:11:06]MH_I2C_Read... [20:11:06]Read from MH i2c: E2 03 00 35 5A 00 90 00 03 [20:11:06]RAPDU: 90 00 [20:11:06]wFMCommunicate OK [20:11:06]SAM_PROTO_ClearQueue done [20:11:06]KKMCreateOFDPacket [20:11:06]OFDProtocolAddRootSTLVToBuf [20:11:06]FM_MakeSignedData [20:11:06]FM_MakeSignedData [20:11:06]SAM_PROTO_SignData [20:11:06]wFMCommunicate request_size=4 [20:11:06]MH_SAM_APDU [20:11:06]CAPDU: 80 0D 01 02 [20:11:06]Write to MH i2c: E2 08 00 36 5A 80 0D 01 02 00 00 00 00 09 [20:11:06]Write i2c OK [20:11:06]MH_I2C_Read... [20:11:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:06]Read from MH i2c: E2 [20:11:06]MH_I2C_Read... [20:11:06]Read from MH i2c: E2 03 00 [20:11:06]MH_I2C_Read... [20:11:06]Read from MH i2c: E2 03 00 36 5A 00 90 00 04 [20:11:06]RAPDU: 90 00 [20:11:06]wFMCommunicate OK [20:11:06]wFMCommunicate request_size=255 [20:11:06]MH_SAM_APDU [20:11:06]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 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 B0 00 00 00 F4 03 04 00 E0 92 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 20 02 00 35 04 06 00 9A [20:11:06]Write to MH i2c: E2 02 01 37 5A 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 E0 92 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 20 02 00 35 04 06 00 9A 00 00 63 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 37 5A 00 90 00 05 [20:11:07]RAPDU: 90 00 [20:11:07]wFMCommunicate OK [20:11:07]wFMCommunicate request_size=10 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 0D 02 02 05 90 2A 28 48 E8 [20:11:07]Write to MH i2c: E2 0D 00 38 5A 80 0D 02 02 05 00 90 2A 28 48 E8 00 00 28 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 03 00 38 5A 00 90 00 06 [20:11:07]RAPDU: 90 00 [20:11:07]wFMCommunicate OK [20:11:07]wFMCommunicate request_size=4 [20:11:07]MH_SAM_APDU [20:11:07]CAPDU: 80 0D 03 02 [20:11:07]Write to MH i2c: E2 08 00 39 5A 80 0D 03 02 00 00 00 00 0E [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:07]Read from MH i2c: E2 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 0B 00 [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: E2 0B 00 39 5A 00 B0 92 0B A9 E1 09 AD 35 90 00 D1 [20:11:07]RAPDU: B0 92 0B A9 E1 09 AD 35 90 00 [20:11:07]wFMCommunicate OK [20:11:07]SAM_PROTO_SignData done [20:11:07]FM_MakeSignedData done [20:11:07]CreateOFDProtocolMessage [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 3A 5A 80 11 00 00 00 00 00 00 0E [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 3A 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 69 [20:11:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:11:07]wFMCommunicate OK [20:11:07]CreateOFDProtocolMessage done [20:11:07]OFDSenderStorePacket 139492 [20:11:07]StoreOFDPacket docnum=139492 [20:11:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 CF 1C 07 01 28 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 E0 92 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 20 02 00 35 04 06 00 9A 90 2A 28 48 E8 B0 92 0B A9 E1 09 AD 35 [20:11:07]CheckFolder [20:11:07]dirname=/storage/ofd_packets [20:11:07]CheckFolder done [20:11:07]ProducePacketName [20:11:07]name=ofd_packets/00139492 [20:11:07]NVStorageSaveData ofd_packets/00139492 [20:11:07]File name is /storage/ofd_packets/00139492 [20:11:07]Write 301 bytes [20:11:07]NVStorageSaveData done [20:11:07]OFDSenderStorePacket done [20:11:07]KKMCreateOFDPacket done [20:11:07]NVStorageSaveData kkm_last_timestamp [20:11:07]File name is /storage/kkm_last_timestamp [20:11:07]Write 4 bytes [20:11:07]NVStorageSaveData done [20:11:07]ExternCall_PrintAddStr [20:11:07]wPrintStart [20:11:07]Write to MH i2c: 01 00 00 3B 5A 95 [20:11:07]Write i2c OK [20:11:07]MH_I2C_Read... [20:11:07]Read from MH i2c: 01 [20:11:07]MH_I2C_Read... [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 3B 5A 00 00 00 00 00 FF 0F AA [20:11:07]RasterBufferAndPrint [20:11:07]line Счет N : (1)1094761 [20:11:07]line ИНН: 02508201610067 [20:11:07]line Контрольно-Кассовый Чек [20:11:07]line ПРОДАЖА [20:11:07]line ТРК (МРК, ГНК) : 63 [20:11:07]line Товар: 2710124130 [20:11:07]line Аи-92-К-2 [20:11:07]line 7.480 * 66.90 [20:11:07]line = 500.41 [20:11:07]line НДС 12% НСП 1% [20:11:07]line > о реализуемом товаре [20:11:07]line ИТОГО: 500.41 [20:11:07]line НСП 1% : 4.43 [20:11:07]line НДС 12% : 53.14 [20:11:07]line Наличными: 0.00 [20:11:07]line Безнал.: 500.41 [20:11:07]line Место: АЗС № 101 "Партнер Нефть" [20:11:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:11:07]line СНО: Общий режим [20:11:07]line Чек 176 30.10.2024 20:11 [20:11:07]line Смена: 556 ФФД: 1.0 [20:11:07]line ЗНМ: 0300000081 [20:11:07]line РНМ: 0000000000091631 [20:11:07]line Версия ККМ: 001 [20:11:07]line Платежная система: Mbank [20:11:07]line ФМ: 0000000000874669 [20:11:07]line ФД: 139492 [20:11:07]line ФПД: 169943973251304 [20:11:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T201112&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139492&fm=169943973251304&tin=02508201610067®Number=0000000000091631&sum=50041 [20:11:07]OFD Sender: Processing packet 139492 [packets to send 34, broken 33] [20:11:07]ProducePacketName [20:11:07]name=ofd_packets/00139492 [20:11:07]OFD Sender: To server: pG, [20:11:07]CommunicateWithHost lk.salyk.kg:30040 [20:11:07]ConnectInit lk.salyk.kg [20:11:07]written 0, free lines is 4095 [20:11:07]Connected sock=10 [20:11:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 CF 1C 07 01 28 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 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 79 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 79 C3 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B0 00 00 00 F4 03 04 00 E0 92 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E4 20 02 00 35 04 06 00 9A 90 2A 28 48 E8 B0 92 0B A9 E1 09 AD 35 [20:11:08]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 4E 1C 47 00 DA 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 38 37 34 36 36 39 10 04 04 00 E4 20 02 00 F4 03 04 00 90 3E 22 67 B6 04 01 00 00 0F C6 84 1A BC 3F 4A B9 [20:11:08]CommunicateWithHost err = 0 [20:11:08]CheckOFDResponse [20:11:08]1017 (14) - 77093643461234 [20:11:08]1041 (16) - 0000000000874669 [20:11:08]1040 (4) - 139492 [20:11:08]1012 (4) - 30.10.2024 14:11 [20:11:08]1206 (1) - 0 [20:11:08]OFD Sender: Remove packet 139492 [20:11:08]ProducePacketName [20:11:08]name=ofd_packets/00139492 [20:11:08]NVStorageDeleteData [20:11:08]Write to MH i2c: 01 00 00 64 5A BE [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 07 00 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: 01 07 00 64 5A 00 00 00 00 00 05 0D D7 [20:11:08]RasterBufferAndPrint [20:11:08]line [20:11:08]line [20:11:08]line [20:11:08]line [20:11:08]line [20:11:08]written 0, free lines is 3343 [20:11:08]MH_Cut [20:11:08]Write to MH i2c: D1 01 00 6B 5A 01 97 [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: D1 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: D1 01 00 [20:11:08]MH_I2C_Read... [20:11:08]Read from MH i2c: D1 01 00 6B 5A 00 96 [20:11:08]Write to MH i2c: 01 00 00 6C 5A C6 [20:11:08]Write i2c OK [20:11:08]MH_I2C_Read... [20:11:08]OFD Sender: No OFD packet to send [20:11:08]*** Cut start [20:11:08]*** Partial cut [20:11:08]*** CUTSNS_PIN = 1 [20:11:08]*** CUTSNS_PIN = 0 [20:11:09]*** Brake cut motor [20:11:09]Read from MH i2c: 01 [20:11:09]MH_I2C_Read... [20:11:09]*** Stop cut motor [20:11:09]*** Cut end [20:11:09]Read from MH i2c: 01 07 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: 01 07 00 6C 5A 00 00 00 00 00 FF 0F DB [20:11:09]process_action close_receipt done [20:11:09]requested_data is exist [20:11:09]produce_requested_data [20:11:09]requested_item fm.sn is exist - process it [20:11:09]wFMCommunicate request_size=4 [20:11:09]MH_SAM_APDU [20:11:09]CAPDU: 80 11 00 00 [20:11:09]Write to MH i2c: E2 08 00 6D 5A 80 11 00 00 00 00 00 00 41 [20:11:09]Write i2c OK [20:11:09]MH_I2C_Read... [20:11:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:09]Read from MH i2c: E2 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 17 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 17 00 6D 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9C [20:11:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:11:09]wFMCommunicate OK [20:11:09]requested_item fd.num is exist - process it [20:11:09]SAM_PROTO_GetFieldsCounters [20:11:09]wFMCommunicate request_size=4 [20:11:09]MH_SAM_APDU [20:11:09]CAPDU: 80 13 00 00 [20:11:09]Write to MH i2c: E2 08 00 6E 5A 80 13 00 00 00 00 00 00 44 [20:11:09]Write i2c OK [20:11:09]MH_I2C_Read... [20:11:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:09]Read from MH i2c: E2 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 62 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 62 00 6E 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E4 20 02 00 0E 04 04 00 2C 02 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 AC [20:11:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E4 20 02 00 0E 04 04 00 2C 02 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 [20:11:09]wFMCommunicate OK [20:11:09]SAM_PROTO_GetFieldsCounters done [20:11:09]requested_item shift.num is exist - process it [20:11:09]requested_item shift.opened is exist - process it [20:11:09]req_shift_opened [20:11:09]FM_GetShiftState [20:11:09]SAM_PROTO_GetShiftState [20:11:09]wFMCommunicate request_size=4 [20:11:09]MH_SAM_APDU [20:11:09]CAPDU: 80 13 01 00 [20:11:09]Write to MH i2c: E2 08 00 6F 5A 80 13 01 00 00 00 00 00 46 [20:11:09]Write i2c OK [20:11:09]MH_I2C_Read... [20:11:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:09]Read from MH i2c: E2 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 0E 00 [20:11:09]MH_I2C_Read... [20:11:09]Read from MH i2c: E2 0E 00 6F 5A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D6 [20:11:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:11:09]wFMCommunicate OK [20:11:09]SAM_PROTO_GetShiftState done [20:11:09]FM_GetShiftState done [20:11:09]req_shift_opened done [20:11:09]requested_item shift.open_date is exist - process it [20:11:09]req_shift_open_date [20:11:09]req_shift_open_date done [20:11:09]produce_requested_data done [20:11:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139492,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:11:09]process_action_free close_receipt [20:11:09]json_value_free [20:11:09]json_value_free done [20:11:09]process_json_proto returns [20:11:09]Send response to host [20:11:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139492,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:11:09]free response buf [20:11:09]execute_script done [20:11:09]execute_script returns [20:11:09]free content buf [20:11:09]Sock 9.Close socket [20:11:09]Sock 9.Thread stoped [20:11:13]OFD Sender: No OFD packet to send [20:11:18]OFD Sender: No OFD packet to send [20:11:23]OFD Sender: No OFD packet to send [20:11:28]OFD Sender: No OFD packet to send [20:11:33]OFD Sender: No OFD packet to send [20:11:38]OFD Sender: No OFD packet to send [20:11:43]OFD Sender: No OFD packet to send [20:11:47]accept exits with 8 [20:11:47]New connection [20:11:47]New thread 3067284836 created [20:11:47]Thread 3067141476 joined [20:11:47]Waiting for new connection... [20:11:47] Sock 8.Parse request [20:11:47]Sock 8.Check first char [20:11:47]Sock 8.First char is OK [20:11:47]request: POST /json_proto HTTP/1.0 [20:11:47]Method: POST [20:11:47]URL: /json_proto [20:11:47]Method is POST - this is cgi request [20:11:47]url: /json_proto [20:11:47]query_string will be loaded in cgi processing [20:11:47]execute_cgi json_proto POST (null) [20:11:47]execute_cgi path=json_proto method=POST [20:11:47]POST find Content-Length [20:11:47]Host: 172.17.50.196:8080 [20:11:47]Content-Length: 1600 [20:11:47]Content-Type: application/json [20:11:47] [20:11:47]POST finish read [20:11:47]Found Content-Length = 1600 [20:11:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335374", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601513008024", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 599.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:47]execute_script... [20:11: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 : (3)335374", "tax_sys" : 0, "items" : [ { "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4601513008024", "name": "\u0412\u0430\u0444 \u041A\u043E\u0440\u043E\u0432\u043A\u0430 \u0441 \u0448\u043E\u043A \u043D\u0430\u0447\u0438\u043D\u043A\u043E\u0439 150\u0433", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 599.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:11:47]POST & json_proto [20:11:47]process_json_proto [20:11:47]json parsed OK: [20:11:47]protocol is kg_v1.0 [20:11:47]action value=close_receipt [20:11:47]process_action close_receipt [20:11:47]cmd_close_receipt [20:11:47]MH_GetDate [20:11:47]Write to MH i2c: F0 00 00 70 5A B9 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: F0 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: F0 09 00 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: F0 09 00 70 5A 00 09 93 22 67 72 0D 1C 67 E9 [20:11:47]GetLastDocTimeStamp 1730319072 [20:11:47]current date 1730319113 [20:11:47]FM_GetShiftState [20:11:47]SAM_PROTO_GetShiftState [20:11:47]wFMCommunicate request_size=4 [20:11:47]MH_SAM_APDU [20:11:47]CAPDU: 80 13 01 00 [20:11:47]Write to MH i2c: E2 08 00 71 5A 80 13 01 00 00 00 00 00 48 [20:11:47]Write i2c OK [20:11:47]MH_I2C_Read... [20:11:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:47]Read from MH i2c: E2 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: E2 0E 00 [20:11:47]MH_I2C_Read... [20:11:47]Read from MH i2c: E2 0E 00 71 5A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D8 [20:11:47]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:11:47]wFMCommunicate OK [20:11:47]SAM_PROTO_GetShiftState done [20:11:47]FM_GetShiftState done [20:11:47]opened in 1730246278 [20:11:47]opened+sec_in_day 1730332678 [20:11:47]quantity*price = 7500 [20:11:47]sum+1 = 7501 [20:11:47]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700001060169 Коньяк Бишкек 0,2л 1.000 * 330.00 = 330.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000310043 Вода Жалалабат 27 1л 1.000 * 79.00 = 79.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4601513008024 Ваф Коровка с шок начинкой 150г 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 599.00 НСП 1% : 5.30 НДС 12% : 63.60 Наличными: 0.00 Безнал.: 599.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 177 30.10.2024 20:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139493 ФПД: 57712784017290 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T201154&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139493&fm=57712784017290&tin=02508201610067®Number=0000000000091631&sum=59900 0 [20:11:48]StoreToDocumentArchive [20:11:48]shift 556 fd 139493 [20:11:48]save to /storage/0556/doc_00139493 [20:11:48]save last doc name /storage/0556/doc_00139493 to /storage/kkm_last_doc_name [20:11:48]save OK [20:11:48]Clear old archive folders... [20:11:48]ProcessDocumentItem done err = 0, tmpTLVsize=603 [20:11:48]tlvbuf is 011937E0 [20:11:48]SAM_PROTO_ClearQueue [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 09 00 00 [20:11:48]Write to MH i2c: E2 08 00 7E 5A 80 09 00 00 00 00 00 00 4A [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 7E 5A 00 90 00 4C [20:11:48]RAPDU: 90 00 [20:11:48]wFMCommunicate OK [20:11:48]SAM_PROTO_ClearQueue done [20:11:48]KKMCreateOFDPacket [20:11:48]OFDProtocolAddRootSTLVToBuf [20:11:48]FM_MakeSignedData [20:11:48]FM_MakeSignedData [20:11:48]SAM_PROTO_SignData [20:11:48]wFMCommunicate request_size=4 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 0D 01 02 [20:11:48]Write to MH i2c: E2 08 00 7F 5A 80 0D 01 02 00 00 00 00 52 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]OFD Sender: No OFD packet to send [20:11:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 7F 5A 00 90 00 4D [20:11:48]RAPDU: 90 00 [20:11:48]wFMCommunicate OK [20:11:48]wFMCommunicate request_size=255 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 0D 02 02 FA 03 00 5B 02 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB [20:11:48]Write to MH i2c: E2 02 01 80 5A 80 0D 02 02 FA 00 03 00 5B 02 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB 00 00 C9 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:48]Read from MH i2c: E2 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 [20:11:48]MH_I2C_Read... [20:11:48]Read from MH i2c: E2 03 00 80 5A 00 90 00 4E [20:11:48]RAPDU: 90 00 [20:11:48]wFMCommunicate OK [20:11:48]wFMCommunicate request_size=255 [20:11:48]MH_SAM_APDU [20:11:48]CAPDU: 80 0D 02 02 FA D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 35 31 33 30 30 38 30 32 34 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 18 00 00 00 00 07 04 06 00 00 00 [20:11:48]Write to MH i2c: E2 02 01 81 5A 80 0D 02 02 FA 00 D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 35 31 33 30 30 38 30 32 34 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 18 00 00 00 00 07 04 06 00 00 00 00 00 07 [20:11:48]Write i2c OK [20:11:48]MH_I2C_Read... [20:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:49]Read from MH i2c: E2 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 03 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 03 00 81 5A 00 90 00 4F [20:11:49]RAPDU: 90 00 [20:11:49]wFMCommunicate OK [20:11:49]wFMCommunicate request_size=112 [20:11:49]MH_SAM_APDU [20:11:49]CAPDU: 80 0D 02 02 6B 00 00 00 00 39 04 06 00 FC E9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 0A 93 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 20 02 00 35 04 06 00 34 7D 4D FD 87 8A [20:11:49]Write to MH i2c: E2 73 00 82 5A 80 0D 02 02 6B 00 00 00 00 00 39 04 06 00 FC E9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 0A 93 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 20 02 00 35 04 06 00 34 7D 4D FD 87 8A 00 00 55 [20:11:49]Write i2c OK [20:11:49]MH_I2C_Read... [20:11:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:11:49]Read from MH i2c: E2 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 03 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 03 00 82 5A 00 90 00 50 [20:11:49]RAPDU: 90 00 [20:11:49]wFMCommunicate OK [20:11:49]wFMCommunicate request_size=4 [20:11:49]MH_SAM_APDU [20:11:49]CAPDU: 80 0D 03 02 [20:11:49]Write to MH i2c: E2 08 00 83 5A 80 0D 03 02 00 00 00 00 58 [20:11:49]Write i2c OK [20:11:49]MH_I2C_Read... [20:11:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:11:49]Read from MH i2c: E2 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 0B 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 0B 00 83 5A 00 53 D6 3E FD 62 42 A2 45 90 00 48 [20:11:49]RAPDU: 53 D6 3E FD 62 42 A2 45 90 00 [20:11:49]wFMCommunicate OK [20:11:49]SAM_PROTO_SignData done [20:11:49]FM_MakeSignedData done [20:11:49]CreateOFDProtocolMessage [20:11:49]wFMCommunicate request_size=4 [20:11:49]MH_SAM_APDU [20:11:49]CAPDU: 80 11 00 00 [20:11:49]Write to MH i2c: E2 08 00 84 5A 80 11 00 00 00 00 00 00 58 [20:11:49]Write i2c OK [20:11:49]MH_I2C_Read... [20:11:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:49]Read from MH i2c: E2 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 17 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: E2 17 00 84 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B3 [20:11:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:11:49]wFMCommunicate OK [20:11:49]CreateOFDProtocolMessage done [20:11:49]OFDSenderStorePacket 139493 [20:11:49]StoreOFDPacket docnum=139493 [20:11:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 6F 02 00 00 A8 D4 67 02 F9 99 5A 03 01 00 03 00 5B 02 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 35 31 33 30 30 38 30 32 34 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC E9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 0A 93 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 20 02 00 35 04 06 00 34 7D 4D FD 87 8A 53 D6 3E FD 62 42 A2 45 [20:11:49]CheckFolder [20:11:49]dirname=/storage/ofd_packets [20:11:49]CheckFolder done [20:11:49]ProducePacketName [20:11:49]name=ofd_packets/00139493 [20:11:49]NVStorageSaveData ofd_packets/00139493 [20:11:49]File name is /storage/ofd_packets/00139493 [20:11:49]Write 653 bytes [20:11:49]NVStorageSaveData done [20:11:49]OFDSenderStorePacket done [20:11:49]KKMCreateOFDPacket done [20:11:49]NVStorageSaveData kkm_last_timestamp [20:11:49]File name is /storage/kkm_last_timestamp [20:11:49]Write 4 bytes [20:11:49]NVStorageSaveData done [20:11:49]ExternCall_PrintAddStr [20:11:49]wPrintStart [20:11:49]Write to MH i2c: 01 00 00 85 5A DF [20:11:49]Write i2c OK [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: 01 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: 01 07 00 [20:11:49]MH_I2C_Read... [20:11:49]Read from MH i2c: 01 07 00 85 5A 00 00 00 00 00 FF 0F F4 [20:11:49]RasterBufferAndPrint [20:11:49]line Счет N : (3)335374 [20:11:49]line ИНН: 02508201610067 [20:11:49]line Контрольно-Кассовый Чек [20:11:49]line ПРОДАЖА [20:11:49]line Товар: 40822938 [20:11:49]line Напиток Фанта 0,5л [20:11:49]line 1.000 * 75.00 [20:11:49]line = 75.00 [20:11:49]line НДС 12% НСП 1% [20:11:49]line > о реализуемом товаре [20:11:49]line Товар: 4700001060169 [20:11:49]line Коньяк Бишкек 0,2л [20:11:49]line 1.000 * 330.00 [20:11:49]line = 330.00 [20:11:49]line НДС 12% НСП 1% [20:11:49]line > о реализуемом товаре [20:11:49]line Товар: 4700000310043 [20:11:49]line Вода Жалалабат 27 1л [20:11:49]line 1.000 * 79.00 [20:11:49]line = 79.00 [20:11:49]line НДС 12% НСП 1% [20:11:49]line > о реализуемом товаре [20:11:49]line Товар: 4601513008024 [20:11:49]line Ваф Коровка с шок начинкой 150г [20:11:49]line 1.000 * 115.00 [20:11:49]line = 115.00 [20:11:49]line НДС 12% НСП 1% [20:11:49]line > о реализуемом товаре [20:11:49]line ИТОГО: 599.00 [20:11:49]line НСП 1% : 5.30 [20:11:49]line НДС 12% : 63.60 [20:11:49]line Наличными: 0.00 [20:11:49]line Безнал.: 599.00 [20:11:49]line Место: АЗС № 101 "Партнер Нефть" [20:11:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:11:49]line СНО: Общий режим [20:11:49]line Чек 177 30.10.2024 20:11 [20:11:49]line Смена: 556 ФФД: 1.0 [20:11:49]line ЗНМ: 0300000081 [20:11:49]line РНМ: 0000000000091631 [20:11:49]line Версия ККМ: 001 [20:11:49]line Платежная система: Mbank [20:11:49]line ФМ: 0000000000874669 [20:11:49]line ФД: 139493 [20:11:49]line ФПД: 57712784017290 [20:11:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T201154&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139493&fm=57712784017290&tin=02508201610067®Number=0000000000091631&sum=59900 [20:11:49]line 0 [20:11:49]OFD Sender: Processing packet 139493 [packets to send 34, broken 33] [20:11:49]ProducePacketName [20:11:49]name=ofd_packets/00139493 [20:11:49]OFD Sender: To server: pG, [20:11:49]CommunicateWithHost lk.salyk.kg:30040 [20:11:49]ConnectInit lk.salyk.kg [20:11:49]written 0, free lines is 4095 [20:11:49]Connected sock=10 [20:11:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 6F 02 00 00 A8 D4 67 02 F9 99 5A 03 01 00 03 00 5B 02 1E 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 30 31 35 31 33 30 30 38 30 32 34 06 04 36 00 D0 92 D0 B0 D1 84 20 D0 9A D0 BE D1 80 D0 BE D0 B2 D0 BA D0 B0 20 D1 81 20 D1 88 D0 BE D0 BA 20 D0 BD D0 B0 D1 87 D0 B8 D0 BD D0 BA D0 BE D0 B9 20 31 35 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 FC E9 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 12 02 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D8 18 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 FC E9 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B1 00 00 00 F4 03 04 00 0A 93 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E5 20 02 00 35 04 06 00 34 7D 4D FD 87 8A 53 D6 3E FD 62 42 A2 45 [20:11:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 73 56 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 38 37 34 36 36 39 10 04 04 00 E5 20 02 00 F4 03 04 00 BA 3E 22 67 B6 04 01 00 00 91 C2 55 45 2E 4A C9 60 [20:11:50]CommunicateWithHost err = 0 [20:11:50]CheckOFDResponse [20:11:50]1017 (14) - 77093643461234 [20:11:50]1041 (16) - 0000000000874669 [20:11:50]1040 (4) - 139493 [20:11:50]1012 (4) - 30.10.2024 14:12 [20:11:50]1206 (1) - 0 [20:11:50]OFD Sender: Remove packet 139493 [20:11:50]ProducePacketName [20:11:50]name=ofd_packets/00139493 [20:11:50]NVStorageDeleteData [20:11:50]Write to MH i2c: 01 00 00 C1 5A 1B [20:11:50]Write i2c OK [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 07 00 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: 01 07 00 C1 5A 00 00 00 00 00 1C 0C 4A [20:11:50]RasterBufferAndPrint [20:11:50]line [20:11:50]line [20:11:50]line [20:11:50]line [20:11:50]line [20:11:50]written 0, free lines is 3113 [20:11:50]MH_Cut [20:11:50]Write to MH i2c: D1 01 00 C8 5A 01 F4 [20:11:50]Write i2c OK [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: D1 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: D1 01 00 [20:11:50]MH_I2C_Read... [20:11:50]Read from MH i2c: D1 01 00 C8 5A 00 F3 [20:11:50]Write to MH i2c: 01 00 00 C9 5A 23 [20:11:50]Write i2c OK [20:11:50]MH_I2C_Read... [20:11:50]OFD Sender: No OFD packet to send [20:11:51]*** Cut start [20:11:51]*** Partial cut [20:11:51]*** CUTSNS_PIN = 1 [20:11:51]*** CUTSNS_PIN = 0 [20:11:51]*** Brake cut motor [20:11:51]Read from MH i2c: 01 [20:11:51]MH_I2C_Read... [20:11:51]*** Stop cut motor [20:11:51]*** Cut end [20:11:51]Read from MH i2c: 01 07 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: 01 07 00 C9 5A 00 00 00 00 00 FF 0F 38 [20:11:51]process_action close_receipt done [20:11:51]requested_data is exist [20:11:51]produce_requested_data [20:11:51]requested_item fm.sn is exist - process it [20:11:51]wFMCommunicate request_size=4 [20:11:51]MH_SAM_APDU [20:11:51]CAPDU: 80 11 00 00 [20:11:51]Write to MH i2c: E2 08 00 CA 5A 80 11 00 00 00 00 00 00 9E [20:11:51]Write i2c OK [20:11:51]MH_I2C_Read... [20:11:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:11:51]Read from MH i2c: E2 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 17 00 [20:11:51]MH_I2C_Read... [20:11:51]Read from MH i2c: E2 17 00 CA 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F9 [20:11:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:11:51]wFMCommunicate OK [20:11:51]requested_item fd.num is exist - process it [20:11:51]SAM_PROTO_GetFieldsCounters [20:11:51]wFMCommunicate request_size=4 [20:11:51]MH_SAM_APDU [20:11:51]CAPDU: 80 13 00 00 [20:11:51]Write to MH i2c: E2 08 00 CB 5A 80 13 00 00 00 00 00 00 A1 [20:11:51]Write i2c OK [20:11:51]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 62 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 62 00 CB 5A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E5 20 02 00 0E 04 04 00 2C 02 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 0D [20:11:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E5 20 02 00 0E 04 04 00 2C 02 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 [20:11:52]wFMCommunicate OK [20:11:52]SAM_PROTO_GetFieldsCounters done [20:11:52]requested_item shift.num is exist - process it [20:11:52]requested_item shift.opened is exist - process it [20:11:52]req_shift_opened [20:11:52]FM_GetShiftState [20:11:52]SAM_PROTO_GetShiftState [20:11:52]wFMCommunicate request_size=4 [20:11:52]MH_SAM_APDU [20:11:52]CAPDU: 80 13 01 00 [20:11:52]Write to MH i2c: E2 08 00 CC 5A 80 13 01 00 00 00 00 00 A3 [20:11:52]Write i2c OK [20:11:52]MH_I2C_Read... [20:11:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:11:52]Read from MH i2c: E2 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 0E 00 [20:11:52]MH_I2C_Read... [20:11:52]Read from MH i2c: E2 0E 00 CC 5A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 33 [20:11:52]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:11:52]wFMCommunicate OK [20:11:52]SAM_PROTO_GetShiftState done [20:11:52]FM_GetShiftState done [20:11:52]req_shift_opened done [20:11:52]requested_item shift.open_date is exist - process it [20:11:52]req_shift_open_date [20:11:52]req_shift_open_date done [20:11:52]produce_requested_data done [20:11:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139493,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:11:52]process_action_free close_receipt [20:11:52]json_value_free [20:11:52]json_value_free done [20:11:52]process_json_proto returns [20:11:52]Send response to host [20:11:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139493,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:11:52]free response buf [20:11:52]execute_script done [20:11:52]execute_script returns [20:11:52]free content buf [20:11:52]Sock 8.Close socket [20:11:52]Sock 8.Thread stoped [20:11:55]OFD Sender: No OFD packet to send [20:12:00]OFD Sender: No OFD packet to send [20:12:05]OFD Sender: No OFD packet to send [20:12:10]OFD Sender: No OFD packet to send [20:12:15]OFD Sender: No OFD packet to send [20:12:20]OFD Sender: No OFD packet to send [20:12:25]OFD Sender: No OFD packet to send [20:12:30]OFD Sender: No OFD packet to send [20:12:35]OFD Sender: No OFD packet to send [20:12:40]OFD Sender: No OFD packet to send [20:12:45]OFD Sender: No OFD packet to send [20:12:50]OFD Sender: No OFD packet to send [20:12:55]OFD Sender: No OFD packet to send [20:13:00]OFD Sender: No OFD packet to send [20:13:05]OFD Sender: No OFD packet to send [20:13:10]OFD Sender: No OFD packet to send [20:13:15]OFD Sender: No OFD packet to send [20:13:20]OFD Sender: No OFD packet to send [20:13:25]OFD Sender: No OFD packet to send [20:13:30]OFD Sender: No OFD packet to send [20:13:35]OFD Sender: No OFD packet to send [20:13:40]OFD Sender: No OFD packet to send [20:13:45]OFD Sender: No OFD packet to send [20:13:50]OFD Sender: No OFD packet to send [20:13:55]OFD Sender: No OFD packet to send [20:14:00]OFD Sender: No OFD packet to send [20:14:05]OFD Sender: No OFD packet to send [20:14:10]OFD Sender: No OFD packet to send [20:14:15]OFD Sender: No OFD packet to send [20:14:20]OFD Sender: No OFD packet to send [20:14:25]OFD Sender: No OFD packet to send [20:14:30]OFD Sender: No OFD packet to send [20:14:35]OFD Sender: No OFD packet to send [20:14:40]OFD Sender: No OFD packet to send [20:14:45]OFD Sender: No OFD packet to send [20:14:50]OFD Sender: No OFD packet to send [20:14:55]OFD Sender: No OFD packet to send [20:15:00]OFD Sender: No OFD packet to send [20:15:05]OFD Sender: No OFD packet to send [20:15:10]OFD Sender: No OFD packet to send [20:15:15]OFD Sender: No OFD packet to send [20:15:20]OFD Sender: No OFD packet to send [20:15:25]OFD Sender: No OFD packet to send [20:15:30]OFD Sender: No OFD packet to send [20:15:35]OFD Sender: No OFD packet to send [20:15:40]OFD Sender: No OFD packet to send [20:15:45]OFD Sender: No OFD packet to send [20:15:50]OFD Sender: No OFD packet to send [20:15:55]OFD Sender: No OFD packet to send [20:16:00]OFD Sender: No OFD packet to send [20:16:05]OFD Sender: No OFD packet to send [20:16:10]OFD Sender: No OFD packet to send [20:16:15]OFD Sender: No OFD packet to send [20:16:20]OFD Sender: No OFD packet to send [20:16:25]OFD Sender: No OFD packet to send [20:16:30]OFD Sender: No OFD packet to send [20:16:35]OFD Sender: No OFD packet to send [20:16:40]OFD Sender: No OFD packet to send [20:16:45]OFD Sender: No OFD packet to send [20:16:50]OFD Sender: No OFD packet to send [20:16:55]OFD Sender: No OFD packet to send [20:17:00]OFD Sender: No OFD packet to send [20:17:05]OFD Sender: No OFD packet to send [20:17:10]OFD Sender: No OFD packet to send [20:17:15]OFD Sender: No OFD packet to send [20:17:20]OFD Sender: No OFD packet to send [20:17:25]OFD Sender: No OFD packet to send [20:17:30]OFD Sender: No OFD packet to send [20:17:35]OFD Sender: No OFD packet to send [20:17:40]OFD Sender: No OFD packet to send [20:17:45]OFD Sender: No OFD packet to send [20:17:50]OFD Sender: No OFD packet to send [20:17:55]OFD Sender: No OFD packet to send [20:18:00]OFD Sender: No OFD packet to send [20:18:05]OFD Sender: No OFD packet to send [20:18:10]OFD Sender: No OFD packet to send [20:18:15]OFD Sender: No OFD packet to send [20:18:20]OFD Sender: No OFD packet to send [20:18:25]OFD Sender: No OFD packet to send [20:18:30]OFD Sender: No OFD packet to send [20:18:35]OFD Sender: No OFD packet to send [20:18:40]OFD Sender: No OFD packet to send [20:18:45]OFD Sender: No OFD packet to send [20:18:50]OFD Sender: No OFD packet to send [20:18:55]OFD Sender: No OFD packet to send [20:19:00]OFD Sender: No OFD packet to send [20:19:05]OFD Sender: No OFD packet to send [20:19:10]OFD Sender: No OFD packet to send [20:19:15]OFD Sender: No OFD packet to send [20:19:20]OFD Sender: No OFD packet to send [20:19:25]OFD Sender: No OFD packet to send [20:19:30]OFD Sender: No OFD packet to send [20:19:34]accept exits with 9 [20:19:34]New connection [20:19:34]New thread 3067141476 created [20:19:34] Sock 9.Parse request [20:19:34]Thread 3067284836 joined [20:19:34]Sock 9.Check first char [20:19:34]Waiting for new connection... [20:19:34]Sock 9.First char is OK [20:19:34]request: POST /json_proto HTTP/1.0 [20:19:34]Method: POST [20:19:34]URL: /json_proto [20:19:34]Method is POST - this is cgi request [20:19:34]url: /json_proto [20:19:34]query_string will be loaded in cgi processing [20:19:34]execute_cgi json_proto POST (null) [20:19:34]execute_cgi path=json_proto method=POST [20:19:34]POST find Content-Length [20:19:34]Host: 172.17.50.196:8080 [20:19:34]Content-Length: 622 [20:19:34]Content-Type: application/json [20:19:34] [20:19:34]POST finish read [20:19:34]Found Content-Length = 622 [20:19:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335375", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:34]execute_script... [20:19: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 : (3)335375", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:19:34]POST & json_proto [20:19:34]process_json_proto [20:19:34]json parsed OK: [20:19:34]protocol is kg_v1.0 [20:19:34]action value=close_receipt [20:19:34]process_action close_receipt [20:19:34]cmd_close_receipt [20:19:34]MH_GetDate [20:19:34]Write to MH i2c: F0 00 00 CD 5A 16 [20:19:34]Write i2c OK [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: F0 [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: F0 09 00 [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: F0 09 00 CD 5A 00 DD 94 22 67 72 0D 1C 67 1B [20:19:34]GetLastDocTimeStamp 1730319114 [20:19:34]current date 1730319581 [20:19:34]FM_GetShiftState [20:19:34]SAM_PROTO_GetShiftState [20:19:34]wFMCommunicate request_size=4 [20:19:34]MH_SAM_APDU [20:19:34]CAPDU: 80 13 01 00 [20:19:34]Write to MH i2c: E2 08 00 CE 5A 80 13 01 00 00 00 00 00 A5 [20:19:34]Write i2c OK [20:19:34]MH_I2C_Read... [20:19:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:34]Read from MH i2c: E2 [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: E2 0E 00 [20:19:34]MH_I2C_Read... [20:19:34]Read from MH i2c: E2 0E 00 CE 5A 00 09 00 01 86 76 21 67 00 00 00 00 90 00 35 [20:19:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:19:34]wFMCommunicate OK [20:19:34]SAM_PROTO_GetShiftState done [20:19:34]FM_GetShiftState done [20:19:34]opened in 1730246278 [20:19:34]opened+sec_in_day 1730332678 [20:19:34]quantity*price = 16000 [20:19:34]sum+1 = 16001 [20:19:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 178 30.10.2024 20:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139494 ФПД: 149088065430836 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T201941&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139494&fm=149088065430836&tin=02508201610067®Number=0000000000091631&sum=16000 0 [20:19:35]StoreToDocumentArchive [20:19:35]shift 556 fd 139494 [20:19:35]save to /storage/0556/doc_00139494 [20:19:35]save last doc name /storage/0556/doc_00139494 to /storage/kkm_last_doc_name [20:19:35]save OK [20:19:35]Clear old archive folders... [20:19:35]ProcessDocumentItem done err = 0, tmpTLVsize=274 [20:19:35]tlvbuf is 0124F230 [20:19:35]SAM_PROTO_ClearQueue [20:19:35]wFMCommunicate request_size=4 [20:19:35]MH_SAM_APDU [20:19:35]CAPDU: 80 09 00 00 [20:19:35]Write to MH i2c: E2 08 00 DB 5A 80 09 00 00 00 00 00 00 A7 [20:19:35]Write i2c OK [20:19:35]MH_I2C_Read... [20:19:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:19:35]Read from MH i2c: E2 [20:19:35]MH_I2C_Read... [20:19:35]Read from MH i2c: E2 03 00 [20:19:35]MH_I2C_Read... [20:19:35]Read from MH i2c: E2 03 00 DB 5A 00 90 00 A9 [20:19:35]RAPDU: 90 00 [20:19:35]wFMCommunicate OK [20:19:35]SAM_PROTO_ClearQueue done [20:19:35]KKMCreateOFDPacket [20:19:35]OFDProtocolAddRootSTLVToBuf [20:19:35]FM_MakeSignedData [20:19:35]FM_MakeSignedData [20:19:35]SAM_PROTO_SignData [20:19:35]wFMCommunicate request_size=4 [20:19:35]MH_SAM_APDU [20:19:35]CAPDU: 80 0D 01 02 [20:19:35]Write to MH i2c: E2 08 00 DC 5A 80 0D 01 02 00 00 00 00 AF [20:19:35]Write i2c OK [20:19:35]MH_I2C_Read... [20:19:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:19:35]Read from MH i2c: E2 [20:19:35]MH_I2C_Read... [20:19:35]Read from MH i2c: E2 03 00 [20:19:35]MH_I2C_Read... [20:19:35]Read from MH i2c: E2 03 00 DC 5A 00 90 00 AA [20:19:35]RAPDU: 90 00 [20:19:35]wFMCommunicate OK [20:19:35]wFMCommunicate request_size=255 [20:19:35]MH_SAM_APDU [20:19:35]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 DD 94 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [20:19:35]Write to MH i2c: E2 02 01 DD 5A 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 DD 94 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 00 00 D5 [20:19:35]Write i2c OK [20:19:35]MH_I2C_Read... [20:19:35]Read from MH i2c: E2 [20:19:35]MH_I2C_Read... [20:19:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:35]Read from MH i2c: E2 03 00 [20:19:35]MH_I2C_Read... [20:19:35]Read from MH i2c: E2 03 00 DD 5A 00 90 00 AB [20:19:35]RAPDU: 90 00 [20:19:35]wFMCommunicate OK [20:19:35]wFMCommunicate request_size=33 [20:19:35]MH_SAM_APDU [20:19:35]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 20 02 00 35 04 06 00 87 98 45 2E 25 34 [20:19:35]Write to MH i2c: E2 24 00 DE 5A 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 20 02 00 35 04 06 00 87 98 45 2E 25 34 00 00 3C [20:19:35]Write i2c OK [20:19:35]MH_I2C_Read... [20:19:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:19:36]Read from MH i2c: E2 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 03 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 03 00 DE 5A 00 90 00 AC [20:19:36]RAPDU: 90 00 [20:19:36]wFMCommunicate OK [20:19:36]wFMCommunicate request_size=4 [20:19:36]MH_SAM_APDU [20:19:36]CAPDU: 80 0D 03 02 [20:19:36]Write to MH i2c: E2 08 00 DF 5A 80 0D 03 02 00 00 00 00 B4 [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]OFD Sender: No OFD packet to send [20:19:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:19:36]Read from MH i2c: E2 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 0B 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 0B 00 DF 5A 00 CF 95 41 0F 26 04 FA 86 90 00 13 [20:19:36]RAPDU: CF 95 41 0F 26 04 FA 86 90 00 [20:19:36]wFMCommunicate OK [20:19:36]SAM_PROTO_SignData done [20:19:36]FM_MakeSignedData done [20:19:36]CreateOFDProtocolMessage [20:19:36]wFMCommunicate request_size=4 [20:19:36]MH_SAM_APDU [20:19:36]CAPDU: 80 11 00 00 [20:19:36]Write to MH i2c: E2 08 00 E0 5A 80 11 00 00 00 00 00 00 B4 [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:36]Read from MH i2c: E2 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 17 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: E2 17 00 E0 5A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0F [20:19:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:19:36]wFMCommunicate OK [20:19:36]CreateOFDProtocolMessage done [20:19:36]OFDSenderStorePacket 139494 [20:19:36]StoreOFDPacket docnum=139494 [20:19:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 F2 B9 1E 01 E1 18 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 DD 94 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 20 02 00 35 04 06 00 87 98 45 2E 25 34 CF 95 41 0F 26 04 FA 86 [20:19:36]CheckFolder [20:19:36]dirname=/storage/ofd_packets [20:19:36]CheckFolder done [20:19:36]ProducePacketName [20:19:36]name=ofd_packets/00139494 [20:19:36]NVStorageSaveData ofd_packets/00139494 [20:19:36]File name is /storage/ofd_packets/00139494 [20:19:36]Write 324 bytes [20:19:36]NVStorageSaveData done [20:19:36]OFDSenderStorePacket done [20:19:36]KKMCreateOFDPacket done [20:19:36]NVStorageSaveData kkm_last_timestamp [20:19:36]File name is /storage/kkm_last_timestamp [20:19:36]Write 4 bytes [20:19:36]NVStorageSaveData done [20:19:36]ExternCall_PrintAddStr [20:19:36]wPrintStart [20:19:36]Write to MH i2c: 01 00 00 E1 5A 3B [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 E1 5A 00 00 00 00 00 FF 0F 50 [20:19:36]RasterBufferAndPrint [20:19:36]line Счет N : (3)335375 [20:19:36]line ИНН: 02508201610067 [20:19:36]line Контрольно-Кассовый Чек [20:19:36]line ПРОДАЖА [20:19:36]line Товар: 48741958 [20:19:36]line Сигареты Parliament Aqua Blue [20:19:36]line 1.000 * 160.00 [20:19:36]line = 160.00 [20:19:36]line НДС 12% НСП 1% [20:19:36]line > о реализуемом товаре [20:19:36]line ИТОГО: 160.00 [20:19:36]line НСП 1% : 1.42 [20:19:36]line НДС 12% : 16.99 [20:19:36]line Наличными: 160.00 [20:19:36]line Безнал.: 0.00 [20:19:36]line Место: АЗС № 101 "Партнер Нефть" [20:19:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:19:36]line СНО: Общий режим [20:19:36]line Чек 178 30.10.2024 20:19 [20:19:36]line Смена: 556 ФФД: 1.0 [20:19:36]line ЗНМ: 0300000081 [20:19:36]line РНМ: 0000000000091631 [20:19:36]line Версия ККМ: 001 [20:19:36]line ФМ: 0000000000874669 [20:19:36]line ФД: 139494 [20:19:36]line ФПД: 149088065430836 [20:19:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T201941&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139494&fm=149088065430836&tin=02508201610067®Number=0000000000091631&sum=16000 [20:19:36]line 0 [20:19:36]OFD Sender: Processing packet 139494 [packets to send 34, broken 33] [20:19:36]ProducePacketName [20:19:36]name=ofd_packets/00139494 [20:19:36]OFD Sender: To server: pG, [20:19:36]CommunicateWithHost lk.salyk.kg:30040 [20:19:36]ConnectInit lk.salyk.kg [20:19:36]written 0, free lines is 4095 [20:19:36]Connected sock=10 [20:19:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 F2 B9 1E 01 E1 18 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 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 DD 94 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E6 20 02 00 35 04 06 00 87 98 45 2E 25 34 CF 95 41 0F 26 04 FA 86 [20:19:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 16 0A 47 00 EB 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 38 37 34 36 36 39 10 04 04 00 E6 20 02 00 F4 03 04 00 8C 40 22 67 B6 04 01 00 00 D5 79 DE 0A 49 5B EE 83 [20:19:36]CommunicateWithHost err = 0 [20:19:36]CheckOFDResponse [20:19:36]1017 (14) - 77093643461234 [20:19:36]1041 (16) - 0000000000874669 [20:19:36]1040 (4) - 139494 [20:19:36]1012 (4) - 30.10.2024 14:19 [20:19:36]1206 (1) - 0 [20:19:36]OFD Sender: Remove packet 139494 [20:19:36]ProducePacketName [20:19:36]name=ofd_packets/00139494 [20:19:36]NVStorageDeleteData [20:19:36]Write to MH i2c: 01 00 00 0A 5B 65 [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: 01 07 00 0A 5B 00 00 00 00 00 E6 0C 5E [20:19:36]RasterBufferAndPrint [20:19:36]line [20:19:36]line [20:19:36]line [20:19:36]line [20:19:36]line [20:19:36]written 0, free lines is 3308 [20:19:36]MH_Cut [20:19:36]Write to MH i2c: D1 01 00 11 5B 01 3E [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: D1 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: D1 01 00 [20:19:36]MH_I2C_Read... [20:19:36]Read from MH i2c: D1 01 00 11 5B 00 3D [20:19:36]Write to MH i2c: 01 00 00 12 5B 6D [20:19:36]Write i2c OK [20:19:36]MH_I2C_Read... [20:19:37]OFD Sender: No OFD packet to send [20:19:37]*** Cut start [20:19:37]*** Partial cut [20:19:37]*** CUTSNS_PIN = 1 [20:19:37]*** CUTSNS_PIN = 0 [20:19:37]*** Brake cut motor [20:19:38]Read from MH i2c: 01 [20:19:38]MH_I2C_Read... [20:19:38]*** Stop cut motor [20:19:38]*** Cut end [20:19:38]Read from MH i2c: 01 07 00 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: 01 07 00 12 5B 00 00 00 00 00 FF 0F 82 [20:19:38]process_action close_receipt done [20:19:38]requested_data is exist [20:19:38]produce_requested_data [20:19:38]requested_item fm.sn is exist - process it [20:19:38]wFMCommunicate request_size=4 [20:19:38]MH_SAM_APDU [20:19:38]CAPDU: 80 11 00 00 [20:19:38]Write to MH i2c: E2 08 00 13 5B 80 11 00 00 00 00 00 00 E8 [20:19:38]Write i2c OK [20:19:38]MH_I2C_Read... [20:19:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:19:38]Read from MH i2c: E2 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: E2 17 00 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: E2 17 00 13 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 43 [20:19:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:19:38]wFMCommunicate OK [20:19:38]requested_item fd.num is exist - process it [20:19:38]SAM_PROTO_GetFieldsCounters [20:19:38]wFMCommunicate request_size=4 [20:19:38]MH_SAM_APDU [20:19:38]CAPDU: 80 13 00 00 [20:19:38]Write to MH i2c: E2 08 00 14 5B 80 13 00 00 00 00 00 00 EB [20:19:38]Write i2c OK [20:19:38]MH_I2C_Read... [20:19:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:19:38]Read from MH i2c: E2 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: E2 62 00 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: E2 62 00 14 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E6 20 02 00 0E 04 04 00 2C 02 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 5B [20:19:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E6 20 02 00 0E 04 04 00 2C 02 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 [20:19:38]wFMCommunicate OK [20:19:38]SAM_PROTO_GetFieldsCounters done [20:19:38]requested_item shift.num is exist - process it [20:19:38]requested_item shift.opened is exist - process it [20:19:38]req_shift_opened [20:19:38]FM_GetShiftState [20:19:38]SAM_PROTO_GetShiftState [20:19:38]wFMCommunicate request_size=4 [20:19:38]MH_SAM_APDU [20:19:38]CAPDU: 80 13 01 00 [20:19:38]Write to MH i2c: E2 08 00 15 5B 80 13 01 00 00 00 00 00 ED [20:19:38]Write i2c OK [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: E2 [20:19:38]MH_I2C_Read... [20:19:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:19:38]Read from MH i2c: E2 0E 00 [20:19:38]MH_I2C_Read... [20:19:38]Read from MH i2c: E2 0E 00 15 5B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 7D [20:19:38]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:19:38]wFMCommunicate OK [20:19:38]SAM_PROTO_GetShiftState done [20:19:38]FM_GetShiftState done [20:19:38]req_shift_opened done [20:19:38]requested_item shift.open_date is exist - process it [20:19:38]req_shift_open_date [20:19:38]req_shift_open_date done [20:19:38]produce_requested_data done [20:19:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139494,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:19:38]process_action_free close_receipt [20:19:38]json_value_free [20:19:38]json_value_free done [20:19:38]process_json_proto returns [20:19:38]Send response to host [20:19:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139494,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:19:38]free response buf [20:19:38]execute_script done [20:19:38]execute_script returns [20:19:38]free content buf [20:19:38]Sock 9.Close socket [20:19:38]Sock 9.Thread stoped [20:19:42]OFD Sender: No OFD packet to send [20:19:47]OFD Sender: No OFD packet to send [20:19:52]OFD Sender: No OFD packet to send [20:19:57]OFD Sender: No OFD packet to send [20:20:02]OFD Sender: No OFD packet to send [20:20:07]OFD Sender: No OFD packet to send [20:20:12]OFD Sender: No OFD packet to send [20:20:17]OFD Sender: No OFD packet to send [20:20:22]OFD Sender: No OFD packet to send [20:20:27]OFD Sender: No OFD packet to send [20:20:32]OFD Sender: No OFD packet to send [20:20:37]OFD Sender: No OFD packet to send [20:20:42]OFD Sender: No OFD packet to send [20:20:47]OFD Sender: No OFD packet to send [20:20:52]OFD Sender: No OFD packet to send [20:20:57]OFD Sender: No OFD packet to send [20:21:02]OFD Sender: No OFD packet to send [20:21:07]OFD Sender: No OFD packet to send [20:21:12]OFD Sender: No OFD packet to send [20:21:17]OFD Sender: No OFD packet to send [20:21:22]OFD Sender: No OFD packet to send [20:21:27]OFD Sender: No OFD packet to send [20:21:32]OFD Sender: No OFD packet to send [20:21:37]OFD Sender: No OFD packet to send [20:21:42]OFD Sender: No OFD packet to send [20:21:47]OFD Sender: No OFD packet to send [20:21:52]OFD Sender: No OFD packet to send [20:21:57]OFD Sender: No OFD packet to send [20:22:02]OFD Sender: No OFD packet to send [20:22:07]OFD Sender: No OFD packet to send [20:22:08]accept exits with 8 [20:22:08]New connection [20:22:08]New thread 3067284836 created [20:22:08]Thread 3067141476 joined [20:22:08]Waiting for new connection... [20:22:08] Sock 8.Parse request [20:22:08]Sock 8.Check first char [20:22:08]Sock 8.First char is OK [20:22:08]request: POST /json_proto HTTP/1.0 [20:22:08]Method: POST [20:22:08]URL: /json_proto [20:22:08]Method is POST - this is cgi request [20:22:08]url: /json_proto [20:22:08]query_string will be loaded in cgi processing [20:22:08]execute_cgi json_proto POST (null) [20:22:08]execute_cgi path=json_proto method=POST [20:22:08]POST find Content-Length [20:22:08]Host: 172.17.50.196:8080 [20:22:08]Content-Length: 775 [20:22:08]Content-Type: application/json [20:22:08] [20:22:08]POST finish read [20:22:08]Found Content-Length = 775 [20:22:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:08]execute_script... [20:22: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)1094767", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 31", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 13.130, "sum" : 1000.51, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "pre_footer_text": "\u041F\u043B\u0430\u0442\u0435\u0436\u043D\u0430\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u0430: Mbank", "payments": [ { "type": 1, "sum" : 1000.51 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:08]POST & json_proto [20:22:08]process_json_proto [20:22:08]json parsed OK: [20:22:08]protocol is kg_v1.0 [20:22:08]action value=close_receipt [20:22:08]process_action close_receipt [20:22:08]cmd_close_receipt [20:22:08]MH_GetDate [20:22:08]Write to MH i2c: F0 00 00 16 5B 60 [20:22:08]Write i2c OK [20:22:08]MH_I2C_Read... [20:22:08]Read from MH i2c: F0 [20:22:08]MH_I2C_Read... [20:22:08]Read from MH i2c: F0 09 00 [20:22:08]MH_I2C_Read... [20:22:08]Read from MH i2c: F0 09 00 16 5B 00 77 95 22 67 72 0D 1C 67 00 [20:22:08]GetLastDocTimeStamp 1730319581 [20:22:08]current date 1730319735 [20:22:08]FM_GetShiftState [20:22:08]SAM_PROTO_GetShiftState [20:22:08]wFMCommunicate request_size=4 [20:22:08]MH_SAM_APDU [20:22:08]CAPDU: 80 13 01 00 [20:22:08]Write to MH i2c: E2 08 00 17 5B 80 13 01 00 00 00 00 00 EF [20:22:08]Write i2c OK [20:22:08]MH_I2C_Read... [20:22:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:08]Read from MH i2c: E2 [20:22:08]MH_I2C_Read... [20:22:08]Read from MH i2c: E2 0E 00 [20:22:08]MH_I2C_Read... [20:22:08]Read from MH i2c: E2 0E 00 17 5B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 7F [20:22:08]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:22:08]wFMCommunicate OK [20:22:08]SAM_PROTO_GetShiftState done [20:22:08]FM_GetShiftState done [20:22:08]opened in 1730246278 [20:22:08]opened+sec_in_day 1730332678 [20:22:08]quantity*price = 100050 [20:22:08]sum+1 = 100052 [20:22:08]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1000.51 НСП 1% : 8.85 НДС 12% : 106.25 Наличными: 0.00 Безнал.: 1000.51 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 179 30.10.2024 20:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139495 ФПД: 194679961572082 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202215&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139495&fm=194679961572082&tin=02508201610067®Number=0000000000091631&sum=100051 [20:22:09]StoreToDocumentArchive [20:22:09]shift 556 fd 139495 [20:22:09]save to /storage/0556/doc_00139495 [20:22:09]save last doc name /storage/0556/doc_00139495 to /storage/kkm_last_doc_name [20:22:09]save OK [20:22:09]Clear old archive folders... [20:22:09]ProcessDocumentItem done err = 0, tmpTLVsize=252 [20:22:09]tlvbuf is 011FB8E0 [20:22:09]SAM_PROTO_ClearQueue [20:22:09]wFMCommunicate request_size=4 [20:22:09]MH_SAM_APDU [20:22:09]CAPDU: 80 09 00 00 [20:22:09]Write to MH i2c: E2 08 00 24 5B 80 09 00 00 00 00 00 00 F1 [20:22:09]Write i2c OK [20:22:09]MH_I2C_Read... [20:22:09]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:09]Read from MH i2c: E2 [20:22:09]MH_I2C_Read... [20:22:09]Read from MH i2c: E2 03 00 [20:22:09]MH_I2C_Read... [20:22:09]Read from MH i2c: E2 03 00 24 5B 00 90 00 F3 [20:22:09]RAPDU: 90 00 [20:22:09]wFMCommunicate OK [20:22:09]SAM_PROTO_ClearQueue done [20:22:09]KKMCreateOFDPacket [20:22:09]OFDProtocolAddRootSTLVToBuf [20:22:09]FM_MakeSignedData [20:22:09]FM_MakeSignedData [20:22:09]SAM_PROTO_SignData [20:22:09]wFMCommunicate request_size=4 [20:22:09]MH_SAM_APDU [20:22:09]CAPDU: 80 0D 01 02 [20:22:09]Write to MH i2c: E2 08 00 25 5B 80 0D 01 02 00 00 00 00 F9 [20:22:09]Write i2c OK [20:22:09]MH_I2C_Read... [20:22:09]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:09]Read from MH i2c: E2 [20:22:09]MH_I2C_Read... [20:22:09]Read from MH i2c: E2 03 00 [20:22:09]MH_I2C_Read... [20:22:09]Read from MH i2c: E2 03 00 25 5B 00 90 00 F4 [20:22:09]RAPDU: 90 00 [20:22:09]wFMCommunicate OK [20:22:09]wFMCommunicate request_size=255 [20:22:09]MH_SAM_APDU [20:22:09]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B3 00 00 00 F4 03 04 00 77 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 20 02 00 35 04 06 00 [20:22:09]Write to MH i2c: E2 02 01 26 5B 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B3 00 00 00 F4 03 04 00 77 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 20 02 00 35 04 06 00 00 00 4B [20:22:09]Write i2c OK [20:22:09]MH_I2C_Read... [20:22:09]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:10]Read from MH i2c: E2 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 03 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 03 00 26 5B 00 90 00 F5 [20:22:10]RAPDU: 90 00 [20:22:10]wFMCommunicate OK [20:22:10]wFMCommunicate request_size=11 [20:22:10]MH_SAM_APDU [20:22:10]CAPDU: 80 0D 02 02 06 B1 0F 75 F4 52 F2 [20:22:10]Write to MH i2c: E2 0E 00 27 5B 80 0D 02 02 06 00 B1 0F 75 F4 52 F2 00 00 75 [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:10]Read from MH i2c: E2 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 03 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 03 00 27 5B 00 90 00 F6 [20:22:10]RAPDU: 90 00 [20:22:10]wFMCommunicate OK [20:22:10]wFMCommunicate request_size=4 [20:22:10]MH_SAM_APDU [20:22:10]CAPDU: 80 0D 03 02 [20:22:10]Write to MH i2c: E2 08 00 28 5B 80 0D 03 02 00 00 00 00 FE [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:10]Read from MH i2c: E2 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 0B 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 0B 00 28 5B 00 70 51 5A 93 30 A8 B5 1A 90 00 54 [20:22:10]RAPDU: 70 51 5A 93 30 A8 B5 1A 90 00 [20:22:10]wFMCommunicate OK [20:22:10]SAM_PROTO_SignData done [20:22:10]FM_MakeSignedData done [20:22:10]CreateOFDProtocolMessage [20:22:10]wFMCommunicate request_size=4 [20:22:10]MH_SAM_APDU [20:22:10]CAPDU: 80 11 00 00 [20:22:10]Write to MH i2c: E2 08 00 29 5B 80 11 00 00 00 00 00 00 FE [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:10]Read from MH i2c: E2 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 17 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: E2 17 00 29 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 59 [20:22:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:22:10]wFMCommunicate OK [20:22:10]CreateOFDProtocolMessage done [20:22:10]OFDSenderStorePacket 139495 [20:22:10]StoreOFDPacket docnum=139495 [20:22:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 5A 7B 08 01 1A D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B3 00 00 00 F4 03 04 00 77 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 20 02 00 35 04 06 00 B1 0F 75 F4 52 F2 70 51 5A 93 30 A8 B5 1A [20:22:10]CheckFolder [20:22:10]dirname=/storage/ofd_packets [20:22:10]CheckFolder done [20:22:10]ProducePacketName [20:22:10]name=ofd_packets/00139495 [20:22:10]NVStorageSaveData ofd_packets/00139495 [20:22:10]File name is /storage/ofd_packets/00139495 [20:22:10]Write 302 bytes [20:22:10]NVStorageSaveData done [20:22:10]OFDSenderStorePacket done [20:22:10]KKMCreateOFDPacket done [20:22:10]NVStorageSaveData kkm_last_timestamp [20:22:10]File name is /storage/kkm_last_timestamp [20:22:10]Write 4 bytes [20:22:10]NVStorageSaveData done [20:22:10]ExternCall_PrintAddStr [20:22:10]wPrintStart [20:22:10]Write to MH i2c: 01 00 00 2A 5B 85 [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 07 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 07 00 2A 5B 00 00 00 00 00 FF 0F 9A [20:22:10]RasterBufferAndPrint [20:22:10]line Счет N : (1)1094767 [20:22:10]line ИНН: 02508201610067 [20:22:10]line Контрольно-Кассовый Чек [20:22:10]line ПРОДАЖА [20:22:10]line ТРК (МРК, ГНК) : 31 [20:22:10]line Товар: 2710194210 [20:22:10]line ДТ(л)-К-2 [20:22:10]line 13.130 * 76.20 [20:22:10]line = 1000.51 [20:22:10]line НДС 12% НСП 1% [20:22:10]line > о реализуемом товаре [20:22:10]line ИТОГО: 1000.51 [20:22:10]line НСП 1% : 8.85 [20:22:10]line НДС 12% : 106.25 [20:22:10]line Наличными: 0.00 [20:22:10]line Безнал.: 1000.51 [20:22:10]line Место: АЗС № 101 "Партнер Нефть" [20:22:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:22:10]line СНО: Общий режим [20:22:10]line Чек 179 30.10.2024 20:22 [20:22:10]line Смена: 556 ФФД: 1.0 [20:22:10]line ЗНМ: 0300000081 [20:22:10]line РНМ: 0000000000091631 [20:22:10]line Версия ККМ: 001 [20:22:10]line Платежная система: Mbank [20:22:10]line ФМ: 0000000000874669 [20:22:10]line ФД: 139495 [20:22:10]line ФПД: 194679961572082 [20:22:10]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202215&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139495&fm=194679961572082&tin=02508201610067®Number=0000000000091631&sum=100051 [20:22:10]written 0, free lines is 4095 [20:22:10]OFD Sender: Processing packet 139495 [packets to send 34, broken 33] [20:22:10]ProducePacketName [20:22:10]name=ofd_packets/00139495 [20:22:10]OFD Sender: To server: pG, [20:22:10]CommunicateWithHost lk.salyk.kg:30040 [20:22:10]ConnectInit lk.salyk.kg [20:22:10]Connected sock=10 [20:22:10]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 5A 7B 08 01 1A D8 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 4A 33 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 D3 86 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 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 B3 00 00 00 F4 03 04 00 77 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 20 02 00 35 04 06 00 B1 0F 75 F4 52 F2 70 51 5A 93 30 A8 B5 1A [20:22:10]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 89 74 47 00 63 C6 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E7 20 02 00 F4 03 04 00 26 41 22 67 B6 04 01 00 00 A8 52 7C BE DF EE D1 A4 [20:22:10]CommunicateWithHost err = 0 [20:22:10]CheckOFDResponse [20:22:10]1017 (14) - 77093643461234 [20:22:10]1041 (16) - 0000000000874669 [20:22:10]1040 (4) - 139495 [20:22:10]1012 (4) - 30.10.2024 14:22 [20:22:10]1206 (1) - 0 [20:22:10]OFD Sender: Remove packet 139495 [20:22:10]ProducePacketName [20:22:10]name=ofd_packets/00139495 [20:22:10]NVStorageDeleteData [20:22:10]Write to MH i2c: 01 00 00 53 5B AE [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 07 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: 01 07 00 53 5B 00 00 00 00 00 10 0D D2 [20:22:10]RasterBufferAndPrint [20:22:10]line [20:22:10]line [20:22:10]line [20:22:10]line [20:22:10]line [20:22:10]written 0, free lines is 3350 [20:22:10]MH_Cut [20:22:10]Write to MH i2c: D1 01 00 5A 5B 01 87 [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: D1 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: D1 01 00 [20:22:10]MH_I2C_Read... [20:22:10]Read from MH i2c: D1 01 00 5A 5B 00 86 [20:22:10]Write to MH i2c: 01 00 00 5B 5B B6 [20:22:10]Write i2c OK [20:22:10]MH_I2C_Read... [20:22:11]OFD Sender: No OFD packet to send [20:22:11]*** Cut start [20:22:11]*** Partial cut [20:22:11]*** CUTSNS_PIN = 1 [20:22:11]*** CUTSNS_PIN = 0 [20:22:11]*** Brake cut motor [20:22:12]Read from MH i2c: 01 [20:22:12]MH_I2C_Read... [20:22:12]*** Stop cut motor [20:22:12]*** Cut end [20:22:12]Read from MH i2c: 01 07 00 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: 01 07 00 5B 5B 00 00 00 00 00 FF 0F CB [20:22:12]process_action close_receipt done [20:22:12]requested_data is exist [20:22:12]produce_requested_data [20:22:12]requested_item fm.sn is exist - process it [20:22:12]wFMCommunicate request_size=4 [20:22:12]MH_SAM_APDU [20:22:12]CAPDU: 80 11 00 00 [20:22:12]Write to MH i2c: E2 08 00 5C 5B 80 11 00 00 00 00 00 00 31 [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:12]Read from MH i2c: E2 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 17 00 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 17 00 5C 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 8C [20:22:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:22:12]wFMCommunicate OK [20:22:12]requested_item fd.num is exist - process it [20:22:12]SAM_PROTO_GetFieldsCounters [20:22:12]wFMCommunicate request_size=4 [20:22:12]MH_SAM_APDU [20:22:12]CAPDU: 80 13 00 00 [20:22:12]Write to MH i2c: E2 08 00 5D 5B 80 13 00 00 00 00 00 00 34 [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:12]Read from MH i2c: E2 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 62 00 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 62 00 5D 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E7 20 02 00 0E 04 04 00 2C 02 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 A8 [20:22:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E7 20 02 00 0E 04 04 00 2C 02 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 [20:22:12]wFMCommunicate OK [20:22:12]SAM_PROTO_GetFieldsCounters done [20:22:12]requested_item shift.num is exist - process it [20:22:12]requested_item shift.opened is exist - process it [20:22:12]req_shift_opened [20:22:12]FM_GetShiftState [20:22:12]SAM_PROTO_GetShiftState [20:22:12]wFMCommunicate request_size=4 [20:22:12]MH_SAM_APDU [20:22:12]CAPDU: 80 13 01 00 [20:22:12]Write to MH i2c: E2 08 00 5E 5B 80 13 01 00 00 00 00 00 36 [20:22:12]Write i2c OK [20:22:12]MH_I2C_Read... [20:22:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:12]Read from MH i2c: E2 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 0E 00 [20:22:12]MH_I2C_Read... [20:22:12]Read from MH i2c: E2 0E 00 5E 5B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C6 [20:22:12]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:22:12]wFMCommunicate OK [20:22:12]SAM_PROTO_GetShiftState done [20:22:12]FM_GetShiftState done [20:22:12]req_shift_opened done [20:22:12]requested_item shift.open_date is exist - process it [20:22:12]req_shift_open_date [20:22:12]req_shift_open_date done [20:22:12]produce_requested_data done [20:22:12]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139495,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:22:12]process_action_free close_receipt [20:22:12]json_value_free [20:22:12]json_value_free done [20:22:12]process_json_proto returns [20:22:12]Send response to host [20:22:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139495,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:22:12]free response buf [20:22:12]execute_script done [20:22:12]execute_script returns [20:22:12]free content buf [20:22:12]Sock 8.Close socket [20:22:12]Sock 8.Thread stoped [20:22:15]accept exits with 9 [20:22:15]New connection [20:22:15]New thread 3067141476 created [20:22:15]Thread 3067284836 joined [20:22:15]Waiting for new connection... [20:22:15] Sock 9.Parse request [20:22:15]Sock 9.Check first char [20:22:15]Sock 9.First char is OK [20:22:15]request: POST /json_proto HTTP/1.0 [20:22:15]Method: POST [20:22:15]URL: /json_proto [20:22:15]Method is POST - this is cgi request [20:22:15]url: /json_proto [20:22:15]query_string will be loaded in cgi processing [20:22:15]execute_cgi json_proto POST (null) [20:22:15]execute_cgi path=json_proto method=POST [20:22:15]POST find Content-Length [20:22:16]Host: 172.17.50.196:8080 [20:22:16]Content-Length: 678 [20:22:16]Content-Type: application/json [20:22:16] [20:22:16]POST finish read [20:22:16]Found Content-Length = 678 [20:22:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:16]execute_script... [20:22: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)1094768", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 7.480, "sum" : 500.41, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 500.00, "total" : 500.00, "payments": [ { "type": 0, "sum" : 500.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:22:16]POST & json_proto [20:22:16]process_json_proto [20:22:16]json parsed OK: [20:22:16]protocol is kg_v1.0 [20:22:16]action value=close_receipt [20:22:16]process_action close_receipt [20:22:16]cmd_close_receipt [20:22:16]MH_GetDate [20:22:16]Write to MH i2c: F0 00 00 5F 5B A9 [20:22:16]Write i2c OK [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: F0 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: F0 09 00 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: F0 09 00 5F 5B 00 7E 95 22 67 72 0D 1C 67 50 [20:22:16]GetLastDocTimeStamp 1730319735 [20:22:16]current date 1730319742 [20:22:16]FM_GetShiftState [20:22:16]SAM_PROTO_GetShiftState [20:22:16]wFMCommunicate request_size=4 [20:22:16]MH_SAM_APDU [20:22:16]CAPDU: 80 13 01 00 [20:22:16]Write to MH i2c: E2 08 00 60 5B 80 13 01 00 00 00 00 00 38 [20:22:16]Write i2c OK [20:22:16]MH_I2C_Read... [20:22:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:16]Read from MH i2c: E2 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: E2 0E 00 [20:22:16]MH_I2C_Read... [20:22:16]Read from MH i2c: E2 0E 00 60 5B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 C8 [20:22:16]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:22:16]wFMCommunicate OK [20:22:16]SAM_PROTO_GetShiftState done [20:22:16]FM_GetShiftState done [20:22:16]opened in 1730246278 [20:22:16]opened+sec_in_day 1730332678 [20:22:16]quantity*price = 50041 [20:22:16]sum+1 = 50042 [20:22: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 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 180 30.10.2024 20:22 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139496 ФПД: 35581118144532 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202222&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139496&fm=35581118144532&tin=02508201610067®Number=0000000000091631&sum=50000 [20:22:17]StoreToDocumentArchive [20:22:17]shift 556 fd 139496 [20:22:17]save to /storage/0556/doc_00139496 [20:22:17]save last doc name /storage/0556/doc_00139496 to /storage/kkm_last_doc_name [20:22:17]save OK [20:22:17]Clear old archive folders... [20:22:17]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:22:17]tlvbuf is 011EA010 [20:22:17]SAM_PROTO_ClearQueue [20:22:17]wFMCommunicate request_size=4 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 09 00 00 [20:22:17]Write to MH i2c: E2 08 00 6D 5B 80 09 00 00 00 00 00 00 3A [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:22:17]Read from MH i2c: E2 03 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 03 00 6D 5B 00 90 00 3C [20:22:17]RAPDU: 90 00 [20:22:17]wFMCommunicate OK [20:22:17]SAM_PROTO_ClearQueue done [20:22:17]KKMCreateOFDPacket [20:22:17]OFDProtocolAddRootSTLVToBuf [20:22:17]FM_MakeSignedData [20:22:17]FM_MakeSignedData [20:22:17]SAM_PROTO_SignData [20:22:17]wFMCommunicate request_size=4 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 0D 01 02 [20:22:17]Write to MH i2c: E2 08 00 6E 5B 80 0D 01 02 00 00 00 00 42 [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 03 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 03 00 6E 5B 00 90 00 3D [20:22:17]RAPDU: 90 00 [20:22:17]wFMCommunicate OK [20:22:17]wFMCommunicate request_size=255 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 7E 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 20 02 00 35 04 06 00 20 [20:22:17]Write to MH i2c: E2 02 01 6F 5B 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B4 00 00 00 F4 03 04 00 7E 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 20 02 00 35 04 06 00 20 00 00 79 [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 03 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 03 00 6F 5B 00 90 00 3E [20:22:17]RAPDU: 90 00 [20:22:17]wFMCommunicate OK [20:22:17]wFMCommunicate request_size=10 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 0D 02 02 05 5C 5F E8 60 14 [20:22:17]Write to MH i2c: E2 0D 00 70 5B 80 0D 02 02 05 00 5C 5F E8 60 14 00 00 66 [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 03 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 03 00 70 5B 00 90 00 3F [20:22:17]RAPDU: 90 00 [20:22:17]wFMCommunicate OK [20:22:17]wFMCommunicate request_size=4 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 0D 03 02 [20:22:17]Write to MH i2c: E2 08 00 71 5B 80 0D 03 02 00 00 00 00 47 [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 0B 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 0B 00 71 5B 00 47 24 27 2D 19 8B CA 4D 90 00 C2 [20:22:17]RAPDU: 47 24 27 2D 19 8B CA 4D 90 00 [20:22:17]wFMCommunicate OK [20:22:17]SAM_PROTO_SignData done [20:22:17]FM_MakeSignedData done [20:22:17]CreateOFDProtocolMessage [20:22:17]wFMCommunicate request_size=4 [20:22:17]MH_SAM_APDU [20:22:17]CAPDU: 80 11 00 00 [20:22:17]Write to MH i2c: E2 08 00 72 5B 80 11 00 00 00 00 00 00 47 [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:17]Read from MH i2c: E2 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 17 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: E2 17 00 72 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A2 [20:22:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:22:17]wFMCommunicate OK [20:22:17]CreateOFDProtocolMessage done [20:22:17]OFDSenderStorePacket 139496 [20:22:17]StoreOFDPacket docnum=139496 [20:22:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 A0 4C 07 01 BE 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 7E 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 20 02 00 35 04 06 00 20 5C 5F E8 60 14 47 24 27 2D 19 8B CA 4D [20:22:17]CheckFolder [20:22:17]dirname=/storage/ofd_packets [20:22:17]CheckFolder done [20:22:17]ProducePacketName [20:22:17]name=ofd_packets/00139496 [20:22:17]NVStorageSaveData ofd_packets/00139496 [20:22:17]File name is /storage/ofd_packets/00139496 [20:22:17]Write 301 bytes [20:22:17]NVStorageSaveData done [20:22:17]OFDSenderStorePacket done [20:22:17]KKMCreateOFDPacket done [20:22:17]NVStorageSaveData kkm_last_timestamp [20:22:17]File name is /storage/kkm_last_timestamp [20:22:17]Write 4 bytes [20:22:17]NVStorageSaveData done [20:22:17]ExternCall_PrintAddStr [20:22:17]wPrintStart [20:22:17]Write to MH i2c: 01 00 00 73 5B CE [20:22:17]Write i2c OK [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: 01 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: 01 07 00 [20:22:17]MH_I2C_Read... [20:22:17]Read from MH i2c: 01 07 00 73 5B 00 00 00 00 00 FF 0F E3 [20:22:17]RasterBufferAndPrint [20:22:17]line Счет N : (1)1094768 [20:22:17]line ИНН: 02508201610067 [20:22:17]line Контрольно-Кассовый Чек [20:22:17]line ПРОДАЖА [20:22:17]line ТРК (МРК, ГНК) : 43 [20:22:17]line Товар: 2710124130 [20:22:17]line Аи-92-К-2 [20:22:17]line 7.480 * 66.90 [20:22:17]line = 500.41 [20:22:17]line НДС 12% НСП 1% [20:22:17]line > о реализуемом товаре [20:22:17]line ОКРУГЛЕНИЕ: -0.41 [20:22:17]line ИТОГО: 500.00 [20:22:17]line Внесено: 500.00 [20:22:17]line СДАЧА: 0.00 [20:22:17]line НСП 1% : 4.43 [20:22:17]line НДС 12% : 53.14 [20:22:17]line Наличными: 500.00 [20:22:17]line Безнал.: 0.00 [20:22:17]line Место: АЗС № 101 "Партнер Нефть" [20:22:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:22:17]line СНО: Общий режим [20:22:17]line Чек 180 30.10.2024 20:22 [20:22:17]line Смена: 556 ФФД: 1.0 [20:22:17]line ЗНМ: 0300000081 [20:22:17]line РНМ: 0000000000091631 [20:22:17]line Версия ККМ: 001 [20:22:17]line ФМ: 0000000000874669 [20:22:17]line ФД: 139496 [20:22:17]line ФПД: 35581118144532 [20:22:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T202222&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139496&fm=35581118144532&tin=02508201610067®Number=0000000000091631&sum=50000 [20:22:17]written 0, free lines is 4095 [20:22:17]OFD Sender: Processing packet 139496 [packets to send 34, broken 33] [20:22:17]ProducePacketName [20:22:17]name=ofd_packets/00139496 [20:22:17]OFD Sender: To server: pG, [20:22:17]CommunicateWithHost lk.salyk.kg:30040 [20:22:17]ConnectInit lk.salyk.kg [20:22:18]Connected sock=10 [20:22:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 A0 4C 07 01 BE 14 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 38 1D 00 00 00 00 00 37 04 06 00 22 1A 00 00 00 00 13 04 06 00 79 C3 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 C3 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BB 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C2 14 00 00 00 00 07 04 06 00 50 C3 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 00 00 00 F4 03 04 00 7E 95 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 20 02 00 35 04 06 00 20 5C 5F E8 60 14 47 24 27 2D 19 8B CA 4D [20:22:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5C 85 47 00 AF 26 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E8 20 02 00 F4 03 04 00 2E 41 22 67 B6 04 01 00 00 1B F2 88 C8 E8 BC 0A 9A [20:22:18]CommunicateWithHost err = 0 [20:22:18]CheckOFDResponse [20:22:18]1017 (14) - 77093643461234 [20:22:18]1041 (16) - 0000000000874669 [20:22:18]1040 (4) - 139496 [20:22:18]1012 (4) - 30.10.2024 14:22 [20:22:18]1206 (1) - 0 [20:22:18]OFD Sender: Remove packet 139496 [20:22:18]ProducePacketName [20:22:18]name=ofd_packets/00139496 [20:22:18]NVStorageDeleteData [20:22:18]Write to MH i2c: 01 00 00 9E 5B F9 [20:22:18]Write i2c OK [20:22:18]MH_I2C_Read... [20:22:18]Read from MH i2c: 01 [20:22:18]MH_I2C_Read... [20:22:18]Read from MH i2c: 01 07 00 [20:22:18]MH_I2C_Read... [20:22:18]Read from MH i2c: 01 07 00 9E 5B 00 00 00 00 00 11 0D 1E [20:22:18]RasterBufferAndPrint [20:22:18]line [20:22:18]line [20:22:18]line [20:22:18]line [20:22:18]line [20:22:18]written 0, free lines is 3357 [20:22:18]MH_Cut [20:22:18]Write to MH i2c: D1 01 00 A5 5B 01 D2 [20:22:18]Write i2c OK [20:22:18]MH_I2C_Read... [20:22:18]Read from MH i2c: D1 [20:22:18]MH_I2C_Read... [20:22:18]Read from MH i2c: D1 01 00 [20:22:18]MH_I2C_Read... [20:22:18]Read from MH i2c: D1 01 00 A5 5B 00 D1 [20:22:18]Write to MH i2c: 01 00 00 A6 5B 01 [20:22:18]Write i2c OK [20:22:18]MH_I2C_Read... [20:22:18]OFD Sender: No OFD packet to send [20:22:18]*** Cut start [20:22:18]*** Partial cut [20:22:18]*** CUTSNS_PIN = 1 [20:22:19]*** CUTSNS_PIN = 0 [20:22:19]*** Brake cut motor [20:22:19]Read from MH i2c: 01 [20:22:19]MH_I2C_Read... [20:22:19]*** Stop cut motor [20:22:19]*** Cut end [20:22:19]Read from MH i2c: 01 07 00 [20:22:19]MH_I2C_Read... [20:22:19]Read from MH i2c: 01 07 00 A6 5B 00 00 00 00 00 FF 0F 16 [20:22:19]process_action close_receipt done [20:22:19]requested_data is exist [20:22:19]produce_requested_data [20:22:19]requested_item fm.sn is exist - process it [20:22:19]wFMCommunicate request_size=4 [20:22:19]MH_SAM_APDU [20:22:19]CAPDU: 80 11 00 00 [20:22:19]Write to MH i2c: E2 08 00 A7 5B 80 11 00 00 00 00 00 00 7C [20:22:19]Write i2c OK [20:22:19]MH_I2C_Read... [20:22:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:22:19]Read from MH i2c: E2 [20:22:19]MH_I2C_Read... [20:22:19]Read from MH i2c: E2 17 00 [20:22:19]MH_I2C_Read... [20:22:19]Read from MH i2c: E2 17 00 A7 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D7 [20:22:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:22:19]wFMCommunicate OK [20:22:19]requested_item fd.num is exist - process it [20:22:19]SAM_PROTO_GetFieldsCounters [20:22:19]wFMCommunicate request_size=4 [20:22:19]MH_SAM_APDU [20:22:19]CAPDU: 80 13 00 00 [20:22:19]Write to MH i2c: E2 08 00 A8 5B 80 13 00 00 00 00 00 00 7F [20:22:19]Write i2c OK [20:22:19]MH_I2C_Read... [20:22:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:22:19]Read from MH i2c: E2 [20:22:19]MH_I2C_Read... [20:22:19]Read from MH i2c: E2 62 00 [20:22:19]MH_I2C_Read... [20:22:19]Read from MH i2c: E2 62 00 A8 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E8 20 02 00 0E 04 04 00 2C 02 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 F7 [20:22:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E8 20 02 00 0E 04 04 00 2C 02 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 [20:22:19]wFMCommunicate OK [20:22:19]SAM_PROTO_GetFieldsCounters done [20:22:19]requested_item shift.num is exist - process it [20:22:19]requested_item shift.opened is exist - process it [20:22:19]req_shift_opened [20:22:19]FM_GetShiftState [20:22:19]SAM_PROTO_GetShiftState [20:22:19]wFMCommunicate request_size=4 [20:22:19]MH_SAM_APDU [20:22:19]CAPDU: 80 13 01 00 [20:22:19]Write to MH i2c: E2 08 00 A9 5B 80 13 01 00 00 00 00 00 81 [20:22:19]Write i2c OK [20:22:19]MH_I2C_Read... [20:22:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:22:19]Read from MH i2c: E2 [20:22:19]MH_I2C_Read... [20:22:19]Read from MH i2c: E2 0E 00 [20:22:19]MH_I2C_Read... [20:22:19]Read from MH i2c: E2 0E 00 A9 5B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 11 [20:22:19]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:22:19]wFMCommunicate OK [20:22:19]SAM_PROTO_GetShiftState done [20:22:19]FM_GetShiftState done [20:22:19]req_shift_opened done [20:22:19]requested_item shift.open_date is exist - process it [20:22:19]req_shift_open_date [20:22:19]req_shift_open_date done [20:22:19]produce_requested_data done [20:22:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139496,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:22:19]process_action_free close_receipt [20:22:19]json_value_free [20:22:19]json_value_free done [20:22:19]process_json_proto returns [20:22:19]Send response to host [20:22:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139496,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:22:19]free response buf [20:22:19]execute_script done [20:22:19]execute_script returns [20:22:19]free content buf [20:22:19]Sock 9.Close socket [20:22:19]Sock 9.Thread stoped [20:22:23]OFD Sender: No OFD packet to send [20:22:28]OFD Sender: No OFD packet to send [20:22:33]OFD Sender: No OFD packet to send [20:22:38]OFD Sender: No OFD packet to send [20:22:43]OFD Sender: No OFD packet to send [20:22:48]OFD Sender: No OFD packet to send [20:22:53]OFD Sender: No OFD packet to send [20:22:58]OFD Sender: No OFD packet to send [20:23:03]OFD Sender: No OFD packet to send [20:23:08]OFD Sender: No OFD packet to send [20:23:13]OFD Sender: No OFD packet to send [20:23:18]OFD Sender: No OFD packet to send [20:23:23]OFD Sender: No OFD packet to send [20:23:28]OFD Sender: No OFD packet to send [20:23:33]OFD Sender: No OFD packet to send [20:23:38]OFD Sender: No OFD packet to send [20:23:43]OFD Sender: No OFD packet to send [20:23:48]OFD Sender: No OFD packet to send [20:23:53]OFD Sender: No OFD packet to send [20:23:58]OFD Sender: No OFD packet to send [20:24:03]OFD Sender: No OFD packet to send [20:24:08]OFD Sender: No OFD packet to send [20:24:13]OFD Sender: No OFD packet to send [20:24:18]OFD Sender: No OFD packet to send [20:24:23]OFD Sender: No OFD packet to send [20:24:28]OFD Sender: No OFD packet to send [20:24:33]OFD Sender: No OFD packet to send [20:24:38]OFD Sender: No OFD packet to send [20:24:43]OFD Sender: No OFD packet to send [20:24:48]OFD Sender: No OFD packet to send [20:24:53]OFD Sender: No OFD packet to send [20:24:58]OFD Sender: No OFD packet to send [20:25:03]OFD Sender: No OFD packet to send [20:25:08]OFD Sender: No OFD packet to send [20:25:13]OFD Sender: No OFD packet to send [20:25:18]OFD Sender: No OFD packet to send [20:25:23]OFD Sender: No OFD packet to send [20:25:28]OFD Sender: No OFD packet to send [20:25:33]OFD Sender: No OFD packet to send [20:25:38]OFD Sender: No OFD packet to send [20:25:43]OFD Sender: No OFD packet to send [20:25:48]OFD Sender: No OFD packet to send [20:25:53]OFD Sender: No OFD packet to send [20:25:58]OFD Sender: No OFD packet to send [20:26:03]OFD Sender: No OFD packet to send [20:26:08]OFD Sender: No OFD packet to send [20:26:13]OFD Sender: No OFD packet to send [20:26:18]OFD Sender: No OFD packet to send [20:26:23]OFD Sender: No OFD packet to send [20:26:28]OFD Sender: No OFD packet to send [20:26:33]OFD Sender: No OFD packet to send [20:26:38]OFD Sender: No OFD packet to send [20:26:43]OFD Sender: No OFD packet to send [20:26:48]OFD Sender: No OFD packet to send [20:26:53]OFD Sender: No OFD packet to send [20:26:58]OFD Sender: No OFD packet to send [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:24]OFD Sender: No OFD packet to send [20:27:29]OFD Sender: No OFD packet to send [20:27:34]OFD Sender: No OFD packet to send [20:27:39]OFD Sender: No OFD packet to send [20:27:44]OFD Sender: No OFD packet to send [20:27:49]OFD Sender: No OFD packet to send [20:27:54]OFD Sender: No OFD packet to send [20:27:59]OFD Sender: No OFD packet to send [20:28:04]OFD Sender: No OFD packet to send [20:28:09]OFD Sender: No OFD packet to send [20:28:14]OFD Sender: No OFD packet to send [20:28:19]OFD Sender: No OFD packet to send [20:28:24]OFD Sender: No OFD packet to send [20:28:29]OFD Sender: No OFD packet to send [20:28:34]OFD Sender: No OFD packet to send [20:28:39]OFD Sender: No OFD packet to send [20:28:44]OFD Sender: No OFD packet to send [20:28:49]OFD Sender: No OFD packet to send [20:28:54]OFD Sender: No OFD packet to send [20:28:59]OFD Sender: No OFD packet to send [20:29:04]OFD Sender: No OFD packet to send [20:29:09]OFD Sender: No OFD packet to send [20:29:14]OFD Sender: No OFD packet to send [20:29:19]OFD Sender: No OFD packet to send [20:29:24]OFD Sender: No OFD packet to send [20:29:29]OFD Sender: No OFD packet to send [20:29:34]OFD Sender: No OFD packet to send [20:29:39]OFD Sender: No OFD packet to send [20:29:44]OFD Sender: No OFD packet to send [20:29:49]OFD Sender: No OFD packet to send [20:29:54]OFD Sender: No OFD packet to send [20:29:59]OFD Sender: No OFD packet to send [20:30:04]OFD Sender: No OFD packet to send [20:30:09]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:59]OFD Sender: No OFD packet to send [20:32:04]OFD Sender: No OFD packet to send [20:32:09]OFD Sender: No OFD packet to send [20:32:14]OFD Sender: No OFD packet to send [20:32:19]OFD Sender: No OFD packet to send [20:32:24]OFD Sender: No OFD packet to send [20:32:29]OFD Sender: No OFD packet to send [20:32:34]OFD Sender: No OFD packet to send [20:32:39]OFD Sender: No OFD packet to send [20:32:44]OFD Sender: No OFD packet to send [20:32:49]OFD Sender: No OFD packet to send [20:32:54]OFD Sender: No OFD packet to send [20:32:59]OFD Sender: No OFD packet to send [20:33:04]OFD Sender: No OFD packet to send [20:33:09]OFD Sender: No OFD packet to send [20:33:14]OFD Sender: No OFD packet to send [20:33:19]OFD Sender: No OFD packet to send [20:33:24]OFD Sender: No OFD packet to send [20:33:29]OFD Sender: No OFD packet to send [20:33:34]OFD Sender: No OFD packet to send [20:33:39]OFD Sender: No OFD packet to send [20:33:44]OFD Sender: No OFD packet to send [20:33:49]OFD Sender: No OFD packet to send [20:33:54]OFD Sender: No OFD packet to send [20:33:59]OFD Sender: No OFD packet to send [20:34:04]OFD Sender: No OFD packet to send [20:34:09]OFD Sender: No OFD packet to send [20:34:14]OFD Sender: No OFD packet to send [20:34:19]OFD Sender: No OFD packet to send [20:34:24]OFD Sender: No OFD packet to send [20:34:29]OFD Sender: No OFD packet to send [20:34:34]OFD Sender: No OFD packet to send [20:34:39]OFD Sender: No OFD packet to send [20:34:44]OFD Sender: No OFD packet to send [20:34:49]OFD Sender: No OFD packet to send [20:34:54]OFD Sender: No OFD packet to send [20:34:59]OFD Sender: No OFD packet to send [20:35:04]OFD Sender: No OFD packet to send [20:35:09]OFD Sender: No OFD packet to send [20:35:14]OFD Sender: No OFD packet to send [20:35:19]OFD Sender: No OFD packet to send [20:35:24]OFD Sender: No OFD packet to send [20:35:29]OFD Sender: No OFD packet to send [20:35:34]OFD Sender: No OFD packet to send [20:35:39]OFD Sender: No OFD packet to send [20:35:44]OFD Sender: No OFD packet to send [20:35:49]OFD Sender: No OFD packet to send [20:35:54]OFD Sender: No OFD packet to send [20:35:59]OFD Sender: No OFD packet to send [20:36:04]OFD Sender: No OFD packet to send [20:36:09]OFD Sender: No OFD packet to send [20:36:14]OFD Sender: No OFD packet to send [20:36:19]OFD Sender: No OFD packet to send [20:36:24]OFD Sender: No OFD packet to send [20:36:29]OFD Sender: No OFD packet to send [20:36:31]accept exits with 8 [20:36:31]New connection [20:36:31]New thread 3067284836 created [20:36:31]Thread 3067141476 joined [20:36:31]Waiting for new connection... [20:36:31] Sock 8.Parse request [20:36:31]Sock 8.Check first char [20:36:31]Sock 8.First char is OK [20:36:31]request: POST /json_proto HTTP/1.0 [20:36:31]Method: POST [20:36:31]URL: /json_proto [20:36:31]Method is POST - this is cgi request [20:36:31]url: /json_proto [20:36:31]query_string will be loaded in cgi processing [20:36:31]execute_cgi json_proto POST (null) [20:36:31]execute_cgi path=json_proto method=POST [20:36:31]POST find Content-Length [20:36:31]Host: 172.17.50.196:8080 [20:36:31]Content-Length: 627 [20:36:31]Content-Type: application/json [20:36:31] [20:36:31]POST finish read [20:36:31]Found Content-Length = 627 [20:36:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335376", "tax_sys" : 0, "items" : [ { "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:31]execute_script... [20:36:31]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335376", "tax_sys" : 0, "items" : [ { "code": "4870001150099", "name": "\u0421\u043E\u043A Da-Da 1\u043B \u043F\u0435\u0440\u0441\u0438\u043A", "price" : 150.00, "quantity" : 1.000, "sum" : 150.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:36:31]POST & json_proto [20:36:31]process_json_proto [20:36:31]json parsed OK: [20:36:31]protocol is kg_v1.0 [20:36:31]action value=close_receipt [20:36:31]process_action close_receipt [20:36:31]cmd_close_receipt [20:36:31]MH_GetDate [20:36:31]Write to MH i2c: F0 00 00 AA 5B F4 [20:36:31]Write i2c OK [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: F0 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: F0 09 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: F0 09 00 AA 5B 00 D6 98 22 67 72 0D 1C 67 F6 [20:36:31]GetLastDocTimeStamp 1730319742 [20:36:31]current date 1730320598 [20:36:31]FM_GetShiftState [20:36:31]SAM_PROTO_GetShiftState [20:36:31]wFMCommunicate request_size=4 [20:36:31]MH_SAM_APDU [20:36:31]CAPDU: 80 13 01 00 [20:36:31]Write to MH i2c: E2 08 00 AB 5B 80 13 01 00 00 00 00 00 83 [20:36:31]Write i2c OK [20:36:31]MH_I2C_Read... [20:36:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:31]Read from MH i2c: E2 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 0E 00 [20:36:31]MH_I2C_Read... [20:36:31]Read from MH i2c: E2 0E 00 AB 5B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 13 [20:36:31]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:36:31]wFMCommunicate OK [20:36:31]SAM_PROTO_GetShiftState done [20:36:31]FM_GetShiftState done [20:36:31]opened in 1730246278 [20:36:31]opened+sec_in_day 1730332678 [20:36:31]quantity*price = 15000 [20:36:31]sum+1 = 15001 [20:36:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.93 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 181 30.10.2024 20:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139497 ФПД: 101530321091310 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T203638&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139497&fm=101530321091310&tin=02508201610067®Number=0000000000091631&sum=15000 0 [20:36:32]StoreToDocumentArchive [20:36:32]shift 556 fd 139497 [20:36:32]save to /storage/0556/doc_00139497 [20:36:32]save last doc name /storage/0556/doc_00139497 to /storage/kkm_last_doc_name [20:36:32]save OK [20:36:32]Clear old archive folders... [20:36:32]ProcessDocumentItem done err = 0, tmpTLVsize=271 [20:36:32]tlvbuf is 01286C00 [20:36:32]SAM_PROTO_ClearQueue [20:36:32]wFMCommunicate request_size=4 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 09 00 00 [20:36:32]Write to MH i2c: E2 08 00 B8 5B 80 09 00 00 00 00 00 00 85 [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 B8 5B 00 90 00 87 [20:36:32]RAPDU: 90 00 [20:36:32]wFMCommunicate OK [20:36:32]SAM_PROTO_ClearQueue done [20:36:32]KKMCreateOFDPacket [20:36:32]OFDProtocolAddRootSTLVToBuf [20:36:32]FM_MakeSignedData [20:36:32]FM_MakeSignedData [20:36:32]SAM_PROTO_SignData [20:36:32]wFMCommunicate request_size=4 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 0D 01 02 [20:36:32]Write to MH i2c: E2 08 00 B9 5B 80 0D 01 02 00 00 00 00 8D [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 B9 5B 00 90 00 88 [20:36:32]RAPDU: 90 00 [20:36:32]wFMCommunicate OK [20:36:32]wFMCommunicate request_size=255 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 0D 02 02 FA 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 B5 00 00 00 F4 03 04 00 D6 98 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 [20:36:32]Write to MH i2c: E2 02 01 BA 5B 80 0D 02 02 FA 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 B5 00 00 00 F4 03 04 00 D6 98 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 00 00 EC [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:32]Read from MH i2c: E2 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 [20:36:32]MH_I2C_Read... [20:36:32]Read from MH i2c: E2 03 00 BA 5B 00 90 00 89 [20:36:32]RAPDU: 90 00 [20:36:32]wFMCommunicate OK [20:36:32]wFMCommunicate request_size=30 [20:36:32]MH_SAM_APDU [20:36:32]CAPDU: 80 0D 02 02 19 30 38 37 34 36 36 39 10 04 04 00 E9 20 02 00 35 04 06 00 5C 57 5E B8 FA EE [20:36:32]Write to MH i2c: E2 21 00 BB 5B 80 0D 02 02 19 00 30 38 37 34 36 36 39 10 04 04 00 E9 20 02 00 35 04 06 00 5C 57 5E B8 FA EE 00 00 4D [20:36:32]Write i2c OK [20:36:32]MH_I2C_Read... [20:36:33]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:36:33]Read from MH i2c: E2 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 03 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 03 00 BB 5B 00 90 00 8A [20:36:33]RAPDU: 90 00 [20:36:33]wFMCommunicate OK [20:36:33]wFMCommunicate request_size=4 [20:36:33]MH_SAM_APDU [20:36:33]CAPDU: 80 0D 03 02 [20:36:33]Write to MH i2c: E2 08 00 BC 5B 80 0D 03 02 00 00 00 00 92 [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:36:33]Read from MH i2c: E2 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 0B 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 0B 00 BC 5B 00 0E 4E CE 2D F7 BF 63 EF 90 00 F2 [20:36:33]RAPDU: 0E 4E CE 2D F7 BF 63 EF 90 00 [20:36:33]wFMCommunicate OK [20:36:33]SAM_PROTO_SignData done [20:36:33]FM_MakeSignedData done [20:36:33]CreateOFDProtocolMessage [20:36:33]wFMCommunicate request_size=4 [20:36:33]MH_SAM_APDU [20:36:33]CAPDU: 80 11 00 00 [20:36:33]Write to MH i2c: E2 08 00 BD 5B 80 11 00 00 00 00 00 00 92 [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:33]Read from MH i2c: E2 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 17 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: E2 17 00 BD 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 ED [20:36:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:36:33]wFMCommunicate OK [20:36:33]CreateOFDProtocolMessage done [20:36:33]OFDSenderStorePacket 139497 [20:36:33]StoreOFDPacket docnum=139497 [20:36:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 5F 84 1B 01 8C 1E 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 B5 00 00 00 F4 03 04 00 D6 98 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E9 20 02 00 35 04 06 00 5C 57 5E B8 FA EE 0E 4E CE 2D F7 BF 63 EF [20:36:33]CheckFolder [20:36:33]dirname=/storage/ofd_packets [20:36:33]CheckFolder done [20:36:33]ProducePacketName [20:36:33]name=ofd_packets/00139497 [20:36:33]NVStorageSaveData ofd_packets/00139497 [20:36:33]File name is /storage/ofd_packets/00139497 [20:36:33]Write 321 bytes [20:36:33]NVStorageSaveData done [20:36:33]OFDSenderStorePacket done [20:36:33]KKMCreateOFDPacket done [20:36:33]NVStorageSaveData kkm_last_timestamp [20:36:33]File name is /storage/kkm_last_timestamp [20:36:33]Write 4 bytes [20:36:33]NVStorageSaveData done [20:36:33]ExternCall_PrintAddStr [20:36:33]wPrintStart [20:36:33]Write to MH i2c: 01 00 00 BE 5B 19 [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 07 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 07 00 BE 5B 00 00 00 00 00 FF 0F 2E [20:36:33]RasterBufferAndPrint [20:36:33]line Счет N : (3)335376 [20:36:33]line ИНН: 02508201610067 [20:36:33]line Контрольно-Кассовый Чек [20:36:33]line ПРОДАЖА [20:36:33]line Товар: 4870001150099 [20:36:33]line Сок Da-Da 1л персик [20:36:33]line 1.000 * 150.00 [20:36:33]line = 150.00 [20:36:33]line НДС 12% НСП 1% [20:36:33]line > о реализуемом товаре [20:36:33]line ИТОГО: 150.00 [20:36:33]line НСП 1% : 1.33 [20:36:33]line НДС 12% : 15.93 [20:36:33]line Наличными: 150.00 [20:36:33]line Безнал.: 0.00 [20:36:33]line Место: АЗС № 101 "Партнер Нефть" [20:36:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:36:33]line СНО: Общий режим [20:36:33]line Чек 181 30.10.2024 20:36 [20:36:33]line Смена: 556 ФФД: 1.0 [20:36:33]line ЗНМ: 0300000081 [20:36:33]line РНМ: 0000000000091631 [20:36:33]line Версия ККМ: 001 [20:36:33]line ФМ: 0000000000874669 [20:36:33]line ФД: 139497 [20:36:33]line ФПД: 101530321091310 [20:36:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T203638&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139497&fm=101530321091310&tin=02508201610067®Number=0000000000091631&sum=15000 [20:36:33]OFD Sender: Processing packet 139497 [packets to send 34, broken 33] [20:36:33]ProducePacketName [20:36:33]name=ofd_packets/00139497 [20:36:33]OFD Sender: To server: pG, [20:36:33]CommunicateWithHost lk.salyk.kg:30040 [20:36:33]ConnectInit lk.salyk.kg [20:36:33]line 0 [20:36:33]written 0, free lines is 4095 [20:36:33]Connected sock=9 [20:36:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 01 00 00 5F 84 1B 01 8C 1E 5A 03 01 00 03 00 0F 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 34 38 37 30 30 30 31 31 35 30 30 39 39 06 04 1D 00 D0 A1 D0 BE D0 BA 20 44 61 2D 44 61 20 31 D0 BB 20 D0 BF D0 B5 D1 80 D1 81 D0 B8 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 3A 00 00 00 00 13 04 06 00 98 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 39 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 B5 00 00 00 F4 03 04 00 D6 98 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E9 20 02 00 35 04 06 00 5C 57 5E B8 FA EE 0E 4E CE 2D F7 BF 63 EF [20:36:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5A DC 47 00 12 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 E9 20 02 00 F4 03 04 00 85 44 22 67 B6 04 01 00 00 13 E1 37 81 EB 67 0D 42 [20:36:33]CommunicateWithHost err = 0 [20:36:33]CheckOFDResponse [20:36:33]1017 (14) - 77093643461234 [20:36:33]1041 (16) - 0000000000874669 [20:36:33]1040 (4) - 139497 [20:36:33]1012 (4) - 30.10.2024 14:36 [20:36:33]1206 (1) - 0 [20:36:33]OFD Sender: Remove packet 139497 [20:36:33]ProducePacketName [20:36:33]name=ofd_packets/00139497 [20:36:33]NVStorageDeleteData [20:36:33]Write to MH i2c: 01 00 00 E6 5B 41 [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 07 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: 01 07 00 E6 5B 00 00 00 00 00 13 0D 68 [20:36:33]RasterBufferAndPrint [20:36:33]line [20:36:33]line [20:36:33]line [20:36:33]line [20:36:33]line [20:36:33]written 0, free lines is 3357 [20:36:33]MH_Cut [20:36:33]Write to MH i2c: D1 01 00 ED 5B 01 1A [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: D1 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: D1 01 00 [20:36:33]MH_I2C_Read... [20:36:33]Read from MH i2c: D1 01 00 ED 5B 00 19 [20:36:33]Write to MH i2c: 01 00 00 EE 5B 49 [20:36:33]Write i2c OK [20:36:33]MH_I2C_Read... [20:36:34]OFD Sender: No OFD packet to send [20:36:34]*** Cut start [20:36:34]*** Partial cut [20:36:34]*** CUTSNS_PIN = 1 [20:36:34]*** CUTSNS_PIN = 0 [20:36:34]*** Brake cut motor [20:36:35]Read from MH i2c: 01 [20:36:35]MH_I2C_Read... [20:36:35]*** Stop cut motor [20:36:35]*** Cut end [20:36:35]Read from MH i2c: 01 07 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: 01 07 00 EE 5B 00 00 00 00 00 FF 0F 5E [20:36:35]process_action close_receipt done [20:36:35]requested_data is exist [20:36:35]produce_requested_data [20:36:35]requested_item fm.sn is exist - process it [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 11 00 00 [20:36:35]Write to MH i2c: E2 08 00 EF 5B 80 11 00 00 00 00 00 00 C4 [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 17 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 17 00 EF 5B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [20:36:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:36:35]wFMCommunicate OK [20:36:35]requested_item fd.num is exist - process it [20:36:35]SAM_PROTO_GetFieldsCounters [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 13 00 00 [20:36:35]Write to MH i2c: E2 08 00 F0 5B 80 13 00 00 00 00 00 00 C7 [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 62 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 62 00 F0 5B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E9 20 02 00 0E 04 04 00 2C 02 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 43 [20:36:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 E9 20 02 00 0E 04 04 00 2C 02 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 [20:36:35]wFMCommunicate OK [20:36:35]SAM_PROTO_GetFieldsCounters done [20:36:35]requested_item shift.num is exist - process it [20:36:35]requested_item shift.opened is exist - process it [20:36:35]req_shift_opened [20:36:35]FM_GetShiftState [20:36:35]SAM_PROTO_GetShiftState [20:36:35]wFMCommunicate request_size=4 [20:36:35]MH_SAM_APDU [20:36:35]CAPDU: 80 13 01 00 [20:36:35]Write to MH i2c: E2 08 00 F1 5B 80 13 01 00 00 00 00 00 C9 [20:36:35]Write i2c OK [20:36:35]MH_I2C_Read... [20:36:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:36:35]Read from MH i2c: E2 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 0E 00 [20:36:35]MH_I2C_Read... [20:36:35]Read from MH i2c: E2 0E 00 F1 5B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 59 [20:36:35]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:36:35]wFMCommunicate OK [20:36:35]SAM_PROTO_GetShiftState done [20:36:35]FM_GetShiftState done [20:36:35]req_shift_opened done [20:36:35]requested_item shift.open_date is exist - process it [20:36:35]req_shift_open_date [20:36:35]req_shift_open_date done [20:36:35]produce_requested_data done [20:36:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139497,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:36:35]process_action_free close_receipt [20:36:35]json_value_free [20:36:35]json_value_free done [20:36:35]process_json_proto returns [20:36:35]Send response to host [20:36:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139497,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:36:35]free response buf [20:36:35]execute_script done [20:36:35]execute_script returns [20:36:35]free content buf [20:36:35]Sock 8.Close socket [20:36:35]Sock 8.Thread stoped [20:36:39]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:59]OFD Sender: No OFD packet to send [20:37:04]OFD Sender: No OFD packet to send [20:37:09]OFD Sender: No OFD packet to send [20:37:14]OFD Sender: No OFD packet to send [20:37:19]OFD Sender: No OFD packet to send [20:37:24]OFD Sender: No OFD packet to send [20:37:29]OFD Sender: No OFD packet to send [20:37:34]OFD Sender: No OFD packet to send [20:37:39]OFD Sender: No OFD packet to send [20:37:44]OFD Sender: No OFD packet to send [20:37:49]OFD Sender: No OFD packet to send [20:37:54]OFD Sender: No OFD packet to send [20:37:59]OFD Sender: No OFD packet to send [20:38:04]OFD Sender: No OFD packet to send [20:38:09]OFD Sender: No OFD packet to send [20:38:14]OFD Sender: No OFD packet to send [20:38:19]OFD Sender: No OFD packet to send [20:38:24]OFD Sender: No OFD packet to send [20:38:29]OFD Sender: No OFD packet to send [20:38:34]OFD Sender: No OFD packet to send [20:38:39]OFD Sender: No OFD packet to send [20:38:44]OFD Sender: No OFD packet to send [20:38:49]OFD Sender: No OFD packet to send [20:38:54]OFD Sender: No OFD packet to send [20:38:59]OFD Sender: No OFD packet to send [20:39:04]OFD Sender: No OFD packet to send [20:39:09]OFD Sender: No OFD packet to send [20:39:14]OFD Sender: No OFD packet to send [20:39:19]OFD Sender: No OFD packet to send [20:39:24]OFD Sender: No OFD packet to send [20:39:29]OFD Sender: No OFD packet to send [20:39:34]OFD Sender: No OFD packet to send [20:39:39]OFD Sender: No OFD packet to send [20:39:44]OFD Sender: No OFD packet to send [20:39:49]OFD Sender: No OFD packet to send [20:39:54]OFD Sender: No OFD packet to send [20:39:59]OFD Sender: No OFD packet to send [20:40:04]OFD Sender: No OFD packet to send [20:40:09]OFD Sender: No OFD packet to send [20:40:14]OFD Sender: No OFD packet to send [20:40:19]OFD Sender: No OFD packet to send [20:40:24]OFD Sender: No OFD packet to send [20:40:29]OFD Sender: No OFD packet to send [20:40:34]OFD Sender: No OFD packet to send [20:40:39]OFD Sender: No OFD packet to send [20:40:44]OFD Sender: No OFD packet to send [20:40:49]OFD Sender: No OFD packet to send [20:40:54]OFD Sender: No OFD packet to send [20:40:59]OFD Sender: No OFD packet to send [20:41:04]OFD Sender: No OFD packet to send [20:41:09]OFD Sender: No OFD packet to send [20:41:14]OFD Sender: No OFD packet to send [20:41:15]accept exits with 10 [20:41:15]New connection [20:41:15]New thread 3067141476 created [20:41:15]Thread 3067284836 joined [20:41:15]Waiting for new connection... [20:41:15] Sock 10.Parse request [20:41:15]Sock 10.Check first char [20:41:15]Sock 10.First char is OK [20:41:15]request: POST /json_proto HTTP/1.0 [20:41:15]Method: POST [20:41:15]URL: /json_proto [20:41:15]Method is POST - this is cgi request [20:41:15]url: /json_proto [20:41:15]query_string will be loaded in cgi processing [20:41:15]execute_cgi json_proto POST (null) [20:41:15]execute_cgi path=json_proto method=POST [20:41:15]POST find Content-Length [20:41:15]Host: 172.17.50.196:8080 [20:41:15]Content-Length: 1123 [20:41:15]Content-Type: application/json [20:41:15] [20:41:15]POST finish read [20:41:15]Found Content-Length = 1123 [20:41:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335377", "tax_sys" : 0, "items" : [ { "code": "5449000189301", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.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" : 179.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:15]execute_script... [20:41: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 : (3)335377", "tax_sys" : 0, "items" : [ { "code": "5449000189301", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.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" : 179.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [20:41:15]POST & json_proto [20:41:15]process_json_proto [20:41:15]json parsed OK: [20:41:15]protocol is kg_v1.0 [20:41:15]action value=close_receipt [20:41:15]process_action close_receipt [20:41:15]cmd_close_receipt [20:41:15]MH_GetDate [20:41:15]Write to MH i2c: F0 00 00 F2 5B 3C [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: F0 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: F0 09 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: F0 09 00 F2 5B 00 F2 99 22 67 72 0D 1C 67 5B [20:41:15]GetLastDocTimeStamp 1730320598 [20:41:15]current date 1730320882 [20:41:15]FM_GetShiftState [20:41:15]SAM_PROTO_GetShiftState [20:41:15]wFMCommunicate request_size=4 [20:41:15]MH_SAM_APDU [20:41:15]CAPDU: 80 13 01 00 [20:41:15]Write to MH i2c: E2 08 00 F3 5B 80 13 01 00 00 00 00 00 CB [20:41:15]Write i2c OK [20:41:15]MH_I2C_Read... [20:41:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:15]Read from MH i2c: E2 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 0E 00 [20:41:15]MH_I2C_Read... [20:41:15]Read from MH i2c: E2 0E 00 F3 5B 00 09 00 01 86 76 21 67 00 00 00 00 90 00 5B [20:41:15]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:41:15]wFMCommunicate OK [20:41:15]SAM_PROTO_GetShiftState done [20:41:15]FM_GetShiftState done [20:41:15]opened in 1730246278 [20:41:15]opened+sec_in_day 1730332678 [20:41:15]quantity*price = 7500 [20:41:15]sum+1 = 7501 [20:41:15]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 104.00 = 104.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 179.00 НСП 1% : 1.58 НДС 12% : 19.00 Наличными: 0.00 Безнал.: 179.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 182 30.10.2024 20:41 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139498 ФПД: 126662899655636 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204122&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139498&fm=126662899655636&tin=02508201610067®Number=0000000000091631&sum=17900 0 [20:41:16]StoreToDocumentArchive [20:41:16]shift 556 fd 139498 [20:41:16]save to /storage/0556/doc_00139498 [20:41:16]save last doc name /storage/0556/doc_00139498 to /storage/kkm_last_doc_name [20:41:16]save OK [20:41:16]Clear old archive folders... [20:41:16]ProcessDocumentItem done err = 0, tmpTLVsize=420 [20:41:16]tlvbuf is 011E7DF0 [20:41:16]SAM_PROTO_ClearQueue [20:41:16]wFMCommunicate request_size=4 [20:41:16]MH_SAM_APDU [20:41:16]CAPDU: 80 09 00 00 [20:41:16]Write to MH i2c: E2 08 00 00 5C 80 09 00 00 00 00 00 00 CE [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:41:16]Read from MH i2c: E2 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: E2 03 00 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: E2 03 00 00 5C 00 90 00 D0 [20:41:16]RAPDU: 90 00 [20:41:16]wFMCommunicate OK [20:41:16]SAM_PROTO_ClearQueue done [20:41:16]KKMCreateOFDPacket [20:41:16]OFDProtocolAddRootSTLVToBuf [20:41:16]FM_MakeSignedData [20:41:16]FM_MakeSignedData [20:41:16]SAM_PROTO_SignData [20:41:16]wFMCommunicate request_size=4 [20:41:16]MH_SAM_APDU [20:41:16]CAPDU: 80 0D 01 02 [20:41:16]Write to MH i2c: E2 08 00 01 5C 80 0D 01 02 00 00 00 00 D6 [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:41:16]Read from MH i2c: E2 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: E2 03 00 [20:41:16]MH_I2C_Read... [20:41:16]Read from MH i2c: E2 03 00 01 5C 00 90 00 D1 [20:41:16]RAPDU: 90 00 [20:41:16]wFMCommunicate OK [20:41:16]wFMCommunicate request_size=255 [20:41:16]MH_SAM_APDU [20:41:16]CAPDU: 80 0D 02 02 FA 03 00 A4 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 [20:41:16]Write to MH i2c: E2 02 01 02 5C 80 0D 02 02 FA 00 03 00 A4 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 00 00 4C [20:41:16]Write i2c OK [20:41:16]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 03 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 03 00 02 5C 00 90 00 D2 [20:41:17]RAPDU: 90 00 [20:41:17]wFMCommunicate OK [20:41:17]wFMCommunicate request_size=179 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 0D 02 02 AE 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F2 99 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 20 02 00 35 04 06 00 73 33 01 23 E3 D4 [20:41:17]Write to MH i2c: E2 B6 00 03 5C 80 0D 02 02 AE 00 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F2 99 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 20 02 00 35 04 06 00 73 33 01 23 E3 D4 00 00 39 [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 03 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 03 00 03 5C 00 90 00 D3 [20:41:17]RAPDU: 90 00 [20:41:17]wFMCommunicate OK [20:41:17]wFMCommunicate request_size=4 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 0D 03 02 [20:41:17]Write to MH i2c: E2 08 00 04 5C 80 0D 03 02 00 00 00 00 DB [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 0B 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 0B 00 04 5C 00 1F E3 74 9C B9 31 CD E7 90 00 8C [20:41:17]RAPDU: 1F E3 74 9C B9 31 CD E7 90 00 [20:41:17]wFMCommunicate OK [20:41:17]SAM_PROTO_SignData done [20:41:17]FM_MakeSignedData done [20:41:17]CreateOFDProtocolMessage [20:41:17]wFMCommunicate request_size=4 [20:41:17]MH_SAM_APDU [20:41:17]CAPDU: 80 11 00 00 [20:41:17]Write to MH i2c: E2 08 00 05 5C 80 11 00 00 00 00 00 00 DB [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:17]Read from MH i2c: E2 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 17 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: E2 17 00 05 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [20:41:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:41:17]wFMCommunicate OK [20:41:17]CreateOFDProtocolMessage done [20:41:17]OFDSenderStorePacket 139498 [20:41:17]StoreOFDPacket docnum=139498 [20:41:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B8 01 00 00 82 B5 B0 01 C4 3A 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F2 99 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 20 02 00 35 04 06 00 73 33 01 23 E3 D4 1F E3 74 9C B9 31 CD E7 [20:41:17]CheckFolder [20:41:17]dirname=/storage/ofd_packets [20:41:17]CheckFolder done [20:41:17]ProducePacketName [20:41:17]name=ofd_packets/00139498 [20:41:17]NVStorageSaveData ofd_packets/00139498 [20:41:17]File name is /storage/ofd_packets/00139498 [20:41:17]Write 470 bytes [20:41:17]NVStorageSaveData done [20:41:17]OFDSenderStorePacket done [20:41:17]KKMCreateOFDPacket done [20:41:17]NVStorageSaveData kkm_last_timestamp [20:41:17]File name is /storage/kkm_last_timestamp [20:41:17]Write 4 bytes [20:41:17]NVStorageSaveData done [20:41:17]ExternCall_PrintAddStr [20:41:17]wPrintStart [20:41:17]Write to MH i2c: 01 00 00 06 5C 62 [20:41:17]OFD Sender: Processing packet 139498 [packets to send 34, broken 33] [20:41:17]ProducePacketName [20:41:17]name=ofd_packets/00139498 [20:41:17]OFD Sender: To server: pG, [20:41:17]CommunicateWithHost lk.salyk.kg:30040 [20:41:17]ConnectInit lk.salyk.kg [20:41:17]Write i2c OK [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: 01 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: 01 07 00 [20:41:17]MH_I2C_Read... [20:41:17]Read from MH i2c: 01 07 00 06 5C 00 00 00 00 00 FF 0F 77 [20:41:17]RasterBufferAndPrint [20:41:17]line Счет N : (3)335377 [20:41:17]line ИНН: 02508201610067 [20:41:17]line Контрольно-Кассовый Чек [20:41:17]line ПРОДАЖА [20:41:17]line Товар: 5449000189301 [20:41:17]line Холодный чай Fuse лимон 0,5л [20:41:17]line 1.000 * 75.00 [20:41:17]line = 75.00 [20:41:17]line НДС 12% НСП 1% [20:41:17]line > о реализуемом товаре [20:41:17]line Товар: 4870202521216 [20:41:17]line Напиток MAXI чай 1,2 зел.лимон (новый) [20:41:17]line 1.000 * 104.00 [20:41:17]line = 104.00 [20:41:17]line НДС 12% НСП 1% [20:41:17]line > о реализуемом товаре [20:41:17]line ИТОГО: 179.00 [20:41:17]line НСП 1% : 1.58 [20:41:17]line НДС 12% : 19.00 [20:41:17]line Наличными: 0.00 [20:41:17]line Безнал.: 179.00 [20:41:17]line Место: АЗС № 101 "Партнер Нефть" [20:41:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:41:17]line СНО: Общий режим [20:41:17]line Чек 182 30.10.2024 20:41 [20:41:17]line Смена: 556 ФФД: 1.0 [20:41:17]line ЗНМ: 0300000081 [20:41:17]line РНМ: 0000000000091631 [20:41:17]line Версия ККМ: 001 [20:41:17]line Платежная система: Mbank [20:41:17]line ФМ: 0000000000874669 [20:41:17]line ФД: 139498 [20:41:17]line ФПД: 126662899655636 [20:41:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204122&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139498&fm=126662899655636&tin=02508201610067®Number=0000000000091631&sum=17900 [20:41:17]line 0 [20:41:17]written 0, free lines is 4095 [20:41:17]Connected sock=9 [20:41:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 B8 01 00 00 82 B5 B0 01 C4 3A 5A 03 01 00 03 00 A4 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 EC 45 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6C 07 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 EC 45 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 B6 00 00 00 F4 03 04 00 F2 99 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 20 02 00 35 04 06 00 73 33 01 23 E3 D4 1F E3 74 9C B9 31 CD E7 [20:41:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 54 36 47 00 09 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EA 20 02 00 F4 03 04 00 A2 45 22 67 B6 04 01 00 00 D1 87 5B 84 9A 54 47 5B [20:41:18]CommunicateWithHost err = 0 [20:41:18]CheckOFDResponse [20:41:18]1017 (14) - 77093643461234 [20:41:18]1041 (16) - 0000000000874669 [20:41:18]1040 (4) - 139498 [20:41:18]1012 (4) - 30.10.2024 14:41 [20:41:18]1206 (1) - 0 [20:41:18]OFD Sender: Remove packet 139498 [20:41:18]ProducePacketName [20:41:18]name=ofd_packets/00139498 [20:41:18]NVStorageDeleteData [20:41:18]Write to MH i2c: 01 00 00 37 5C 93 [20:41:18]Write i2c OK [20:41:18]MH_I2C_Read... [20:41:18]Read from MH i2c: 01 [20:41:18]MH_I2C_Read... [20:41:18]Read from MH i2c: 01 07 00 [20:41:18]MH_I2C_Read... [20:41:18]Read from MH i2c: 01 07 00 37 5C 00 00 00 00 00 A6 0C 4C [20:41:18]RasterBufferAndPrint [20:41:18]line [20:41:18]line [20:41:18]line [20:41:18]line [20:41:18]line [20:41:18]written 0, free lines is 3247 [20:41:18]MH_Cut [20:41:18]Write to MH i2c: D1 01 00 3E 5C 01 6C [20:41:18]Write i2c OK [20:41:18]MH_I2C_Read... [20:41:18]Read from MH i2c: D1 [20:41:18]MH_I2C_Read... [20:41:18]Read from MH i2c: D1 01 00 [20:41:18]MH_I2C_Read... [20:41:18]Read from MH i2c: D1 01 00 3E 5C 00 6B [20:41:18]Write to MH i2c: 01 00 00 3F 5C 9B [20:41:18]Write i2c OK [20:41:18]MH_I2C_Read... [20:41:18]OFD Sender: No OFD packet to send [20:41:18]*** Cut start [20:41:18]*** Partial cut [20:41:18]*** CUTSNS_PIN = 1 [20:41:19]*** CUTSNS_PIN = 0 [20:41:19]*** Brake cut motor [20:41:19]Read from MH i2c: 01 [20:41:19]MH_I2C_Read... [20:41:19]*** Stop cut motor [20:41:19]*** Cut end [20:41:19]Read from MH i2c: 01 07 00 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: 01 07 00 3F 5C 00 00 00 00 00 FF 0F B0 [20:41:19]process_action close_receipt done [20:41:19]requested_data is exist [20:41:19]produce_requested_data [20:41:19]requested_item fm.sn is exist - process it [20:41:19]wFMCommunicate request_size=4 [20:41:19]MH_SAM_APDU [20:41:19]CAPDU: 80 11 00 00 [20:41:19]Write to MH i2c: E2 08 00 40 5C 80 11 00 00 00 00 00 00 16 [20:41:19]Write i2c OK [20:41:19]MH_I2C_Read... [20:41:19]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:41:19]Read from MH i2c: E2 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: E2 17 00 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: E2 17 00 40 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 71 [20:41:19]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:41:19]wFMCommunicate OK [20:41:19]requested_item fd.num is exist - process it [20:41:19]SAM_PROTO_GetFieldsCounters [20:41:19]wFMCommunicate request_size=4 [20:41:19]MH_SAM_APDU [20:41:19]CAPDU: 80 13 00 00 [20:41:19]Write to MH i2c: E2 08 00 41 5C 80 13 00 00 00 00 00 00 19 [20:41:19]Write i2c OK [20:41:19]MH_I2C_Read... [20:41:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:41:19]Read from MH i2c: E2 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: E2 62 00 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: E2 62 00 41 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EA 20 02 00 0E 04 04 00 2C 02 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 99 [20:41:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EA 20 02 00 0E 04 04 00 2C 02 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 [20:41:19]wFMCommunicate OK [20:41:19]SAM_PROTO_GetFieldsCounters done [20:41:19]requested_item shift.num is exist - process it [20:41:19]requested_item shift.opened is exist - process it [20:41:19]req_shift_opened [20:41:19]FM_GetShiftState [20:41:19]SAM_PROTO_GetShiftState [20:41:19]wFMCommunicate request_size=4 [20:41:19]MH_SAM_APDU [20:41:19]CAPDU: 80 13 01 00 [20:41:19]Write to MH i2c: E2 08 00 42 5C 80 13 01 00 00 00 00 00 1B [20:41:19]Write i2c OK [20:41:19]MH_I2C_Read... [20:41:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:41:19]Read from MH i2c: E2 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: E2 0E 00 [20:41:19]MH_I2C_Read... [20:41:19]Read from MH i2c: E2 0E 00 42 5C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AB [20:41:19]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:41:19]wFMCommunicate OK [20:41:19]SAM_PROTO_GetShiftState done [20:41:19]FM_GetShiftState done [20:41:19]req_shift_opened done [20:41:19]requested_item shift.open_date is exist - process it [20:41:19]req_shift_open_date [20:41:19]req_shift_open_date done [20:41:19]produce_requested_data done [20:41:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139498,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:41:19]process_action_free close_receipt [20:41:19]json_value_free [20:41:19]json_value_free done [20:41:19]process_json_proto returns [20:41:19]Send response to host [20:41:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139498,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:41:19]free response buf [20:41:19]execute_script done [20:41:19]execute_script returns [20:41:19]free content buf [20:41:19]Sock 10.Close socket [20:41:19]Sock 10.Thread stoped [20:41:23]OFD Sender: No OFD packet to send [20:41:28]OFD Sender: No OFD packet to send [20:41:33]OFD Sender: No OFD packet to send [20:41:38]OFD Sender: No OFD packet to send [20:41:43]OFD Sender: No OFD packet to send [20:41:48]OFD Sender: No OFD packet to send [20:41:53]OFD Sender: No OFD packet to send [20:41:58]OFD Sender: No OFD packet to send [20:42:03]OFD Sender: No OFD packet to send [20:42:08]OFD Sender: No OFD packet to send [20:42:13]OFD Sender: No OFD packet to send [20:42:18]OFD Sender: No OFD packet to send [20:42:23]OFD Sender: No OFD packet to send [20:42:28]OFD Sender: No OFD packet to send [20:42:33]OFD Sender: No OFD packet to send [20:42:38]OFD Sender: No OFD packet to send [20:42:43]OFD Sender: No OFD packet to send [20:42:48]OFD Sender: No OFD packet to send [20:42:53]OFD Sender: No OFD packet to send [20:42:58]OFD Sender: No OFD packet to send [20:43:02]accept exits with 8 [20:43:02]New connection [20:43:02]New thread 3067284836 created [20:43:02]Thread 3067141476 joined [20:43:02]Waiting for new connection... [20:43:02] Sock 8.Parse request [20:43:02]Sock 8.Check first char [20:43:02]Sock 8.First char is OK [20:43:02]request: POST /json_proto HTTP/1.0 [20:43:02]Method: POST [20:43:02]URL: /json_proto [20:43:02]Method is POST - this is cgi request [20:43:02]url: /json_proto [20:43:02]query_string will be loaded in cgi processing [20:43:02]execute_cgi json_proto POST (null) [20:43:02]execute_cgi path=json_proto method=POST [20:43:02]POST find Content-Length [20:43:02]Host: 172.17.50.196:8080 [20:43:02]Content-Length: 770 [20:43:02]Content-Type: application/json [20:43:02] [20:43:02]POST finish read [20:43:02]Found Content-Length = 770 [20:43:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "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" ] } } [20:43:02]execute_script... [20:43: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)1094778", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 64", "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" ] } } [20:43:02]POST & json_proto [20:43:02]process_json_proto [20:43:02]json parsed OK: [20:43:02]protocol is kg_v1.0 [20:43:02]action value=close_receipt [20:43:02]process_action close_receipt [20:43:02]cmd_close_receipt [20:43:02]MH_GetDate [20:43:02]Write to MH i2c: F0 00 00 43 5C 8E [20:43:02]Write i2c OK [20:43:02]MH_I2C_Read... [20:43:02]Read from MH i2c: F0 [20:43:02]MH_I2C_Read... [20:43:02]Read from MH i2c: F0 09 00 [20:43:02]MH_I2C_Read... [20:43:02]Read from MH i2c: F0 09 00 43 5C 00 5D 9A 22 67 72 0D 1C 67 19 [20:43:02]GetLastDocTimeStamp 1730320882 [20:43:02]current date 1730320989 [20:43:02]FM_GetShiftState [20:43:02]SAM_PROTO_GetShiftState [20:43:02]wFMCommunicate request_size=4 [20:43:02]MH_SAM_APDU [20:43:02]CAPDU: 80 13 01 00 [20:43:02]Write to MH i2c: E2 08 00 44 5C 80 13 01 00 00 00 00 00 1D [20:43:02]Write i2c OK [20:43:02]MH_I2C_Read... [20:43:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:02]Read from MH i2c: E2 [20:43:02]MH_I2C_Read... [20:43:02]Read from MH i2c: E2 0E 00 [20:43:02]MH_I2C_Read... [20:43:02]Read from MH i2c: E2 0E 00 44 5C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AD [20:43:02]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:43:02]wFMCommunicate OK [20:43:02]SAM_PROTO_GetShiftState done [20:43:02]FM_GetShiftState done [20:43:02]opened in 1730246278 [20:43:02]opened+sec_in_day 1730332678 [20:43:02]quantity*price = 150032 [20:43:02]sum+1 = 150033 [20:43:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1500.32 НСП 1% : 13.28 НДС 12% : 159.33 Наличными: 0.00 Безнал.: 1500.32 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 183 30.10.2024 20:43 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139499 ФПД: 181578729637746 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204309&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139499&fm=181578729637746&tin=02508201610067®Number=0000000000091631&sum=150032 [20:43:03]StoreToDocumentArchive [20:43:03]shift 556 fd 139499 [20:43:03]save to /storage/0556/doc_00139499 [20:43:03]save last doc name /storage/0556/doc_00139499 to /storage/kkm_last_doc_name [20:43:03]save OK [20:43:03]Clear old archive folders... [20:43:04]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:43:04]tlvbuf is 0120E370 [20:43:04]SAM_PROTO_ClearQueue [20:43:04]wFMCommunicate request_size=4 [20:43:04]MH_SAM_APDU [20:43:04]CAPDU: 80 09 00 00 [20:43:04]Write to MH i2c: E2 08 00 51 5C 80 09 00 00 00 00 00 00 1F [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:43:04]Read from MH i2c: E2 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 03 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 03 00 51 5C 00 90 00 21 [20:43:04]RAPDU: 90 00 [20:43:04]wFMCommunicate OK [20:43:04]SAM_PROTO_ClearQueue done [20:43:04]KKMCreateOFDPacket [20:43:04]OFDProtocolAddRootSTLVToBuf [20:43:04]FM_MakeSignedData [20:43:04]FM_MakeSignedData [20:43:04]SAM_PROTO_SignData [20:43:04]wFMCommunicate request_size=4 [20:43:04]MH_SAM_APDU [20:43:04]CAPDU: 80 0D 01 02 [20:43:04]Write to MH i2c: E2 08 00 52 5C 80 0D 01 02 00 00 00 00 27 [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:43:04]Read from MH i2c: E2 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 03 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 03 00 52 5C 00 90 00 22 [20:43:04]RAPDU: 90 00 [20:43:04]wFMCommunicate OK [20:43:04]wFMCommunicate request_size=255 [20:43:04]MH_SAM_APDU [20:43: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 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 B7 00 00 00 F4 03 04 00 5D 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 20 02 00 35 04 06 00 A5 [20:43:04]Write to MH i2c: E2 02 01 53 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B7 00 00 00 F4 03 04 00 5D 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 20 02 00 35 04 06 00 A5 00 00 73 [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:04]Read from MH i2c: E2 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 03 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 03 00 53 5C 00 90 00 23 [20:43:04]RAPDU: 90 00 [20:43:04]wFMCommunicate OK [20:43:04]wFMCommunicate request_size=10 [20:43:04]MH_SAM_APDU [20:43:04]CAPDU: 80 0D 02 02 05 25 17 AD C7 72 [20:43:04]Write to MH i2c: E2 0D 00 54 5C 80 0D 02 02 05 00 25 17 AD C7 72 00 00 56 [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:43:04]Read from MH i2c: E2 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 03 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 03 00 54 5C 00 90 00 24 [20:43:04]RAPDU: 90 00 [20:43:04]wFMCommunicate OK [20:43:04]wFMCommunicate request_size=4 [20:43:04]MH_SAM_APDU [20:43:04]CAPDU: 80 0D 03 02 [20:43:04]Write to MH i2c: E2 08 00 55 5C 80 0D 03 02 00 00 00 00 2C [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:43:04]Read from MH i2c: E2 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 0B 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 0B 00 55 5C 00 3F 52 28 2F 57 90 A9 20 90 00 C5 [20:43:04]RAPDU: 3F 52 28 2F 57 90 A9 20 90 00 [20:43:04]wFMCommunicate OK [20:43:04]SAM_PROTO_SignData done [20:43:04]FM_MakeSignedData done [20:43:04]CreateOFDProtocolMessage [20:43:04]wFMCommunicate request_size=4 [20:43:04]MH_SAM_APDU [20:43:04]CAPDU: 80 11 00 00 [20:43:04]Write to MH i2c: E2 08 00 56 5C 80 11 00 00 00 00 00 00 2C [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:04]Read from MH i2c: E2 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 17 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: E2 17 00 56 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [20:43:04]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:43:04]wFMCommunicate OK [20:43:04]CreateOFDProtocolMessage done [20:43:04]OFDSenderStorePacket 139499 [20:43:04]StoreOFDPacket docnum=139499 [20:43:04]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 00 83 07 01 BA 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 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 B7 00 00 00 F4 03 04 00 5D 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 20 02 00 35 04 06 00 A5 25 17 AD C7 72 3F 52 28 2F 57 90 A9 20 [20:43:04]CheckFolder [20:43:04]dirname=/storage/ofd_packets [20:43:04]CheckFolder done [20:43:04]ProducePacketName [20:43:04]name=ofd_packets/00139499 [20:43:04]NVStorageSaveData ofd_packets/00139499 [20:43:04]File name is /storage/ofd_packets/00139499 [20:43:04]Write 301 bytes [20:43:04]NVStorageSaveData done [20:43:04]OFDSenderStorePacket done [20:43:04]KKMCreateOFDPacket done [20:43:04]NVStorageSaveData kkm_last_timestamp [20:43:04]File name is /storage/kkm_last_timestamp [20:43:04]Write 4 bytes [20:43:04]NVStorageSaveData done [20:43:04]ExternCall_PrintAddStr [20:43:04]wPrintStart [20:43:04]Write to MH i2c: 01 00 00 57 5C B3 [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: 01 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: 01 07 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: 01 07 00 57 5C 00 00 00 00 00 FF 0F C8 [20:43:04]RasterBufferAndPrint [20:43:04]line Счет N : (1)1094778 [20:43:04]line ИНН: 02508201610067 [20:43:04]line Контрольно-Кассовый Чек [20:43:04]line ПРОДАЖА [20:43:04]line ТРК (МРК, ГНК) : 64 [20:43:04]line Товар: 2710124500 [20:43:04]line Аи-95-К-3 [20:43:04]line 20.220 * 74.20 [20:43:04]line = 1500.32 [20:43:04]line НДС 12% НСП 1% [20:43:04]line > о реализуемом товаре [20:43:04]line ИТОГО: 1500.32 [20:43:04]line НСП 1% : 13.28 [20:43:04]line НДС 12% : 159.33 [20:43:04]line Наличными: 0.00 [20:43:04]line Безнал.: 1500.32 [20:43:04]line Место: АЗС № 101 "Партнер Нефть" [20:43:04]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:43:04]line СНО: Общий режим [20:43:04]line Чек 183 30.10.2024 20:43 [20:43:04]line Смена: 556 ФФД: 1.0 [20:43:04]line ЗНМ: 0300000081 [20:43:04]line РНМ: 0000000000091631 [20:43:04]line Версия ККМ: 001 [20:43:04]line Платежная система: Mbank [20:43:04]line ФМ: 0000000000874669 [20:43:04]line ФД: 139499 [20:43:04]line ФПД: 181578729637746 [20:43:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T204309&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139499&fm=181578729637746&tin=02508201610067®Number=0000000000091631&sum=150032 [20:43:04]written 0, free lines is 4095 [20:43:04]OFD Sender: Processing packet 139499 [packets to send 34, broken 33] [20:43:04]ProducePacketName [20:43:04]name=ofd_packets/00139499 [20:43:04]OFD Sender: To server: pG, [20:43:04]CommunicateWithHost lk.salyk.kg:30040 [20:43:04]ConnectInit lk.salyk.kg [20:43:04]Connected sock=10 [20:43:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 00 83 07 01 BA 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 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 B7 00 00 00 F4 03 04 00 5D 9A 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 20 02 00 35 04 06 00 A5 25 17 AD C7 72 3F 52 28 2F 57 90 A9 20 [20:43:04]Write to MH i2c: 01 00 00 80 5C DC [20:43:04]Write i2c OK [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: 01 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: 01 07 00 [20:43:04]MH_I2C_Read... [20:43:04]Read from MH i2c: 01 07 00 80 5C 00 00 00 00 00 18 0D 08 [20:43:04]RasterBufferAndPrint [20:43:04]line [20:43:04]line [20:43:04]line [20:43:04]line [20:43:04]line [20:43:04]written 0, free lines is 3358 [20:43:05]MH_Cut [20:43:05]Write to MH i2c: D1 01 00 87 5C 01 B5 [20:43:05]Write i2c OK [20:43:05]MH_I2C_Read... [20:43:05]Read from MH i2c: D1 [20:43:05]MH_I2C_Read... [20:43:05]Read from MH i2c: D1 01 00 [20:43:05]MH_I2C_Read... [20:43:05]Read from MH i2c: D1 01 00 87 5C 00 B4 [20:43:05]Write to MH i2c: 01 00 00 88 5C E4 [20:43:05]Write i2c OK [20:43:05]MH_I2C_Read... [20:43:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 45 06 47 00 F1 11 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EB 20 02 00 F4 03 04 00 0D 46 22 67 B6 04 01 00 00 6D 02 B6 60 43 E8 5D 3F [20:43:05]CommunicateWithHost err = 0 [20:43:05]CheckOFDResponse [20:43:05]1017 (14) - 77093643461234 [20:43:05]1041 (16) - 0000000000874669 [20:43:05]1040 (4) - 139499 [20:43:05]1012 (4) - 30.10.2024 14:43 [20:43:05]1206 (1) - 0 [20:43:05]OFD Sender: Remove packet 139499 [20:43:05]ProducePacketName [20:43:05]name=ofd_packets/00139499 [20:43:05]NVStorageDeleteData [20:43:05]*** Cut start [20:43:05]*** Partial cut [20:43:05]*** CUTSNS_PIN = 1 [20:43:05]OFD Sender: No OFD packet to send [20:43:05]*** CUTSNS_PIN = 0 [20:43:05]*** Brake cut motor [20:43:06]Read from MH i2c: 01 [20:43:06]MH_I2C_Read... [20:43:06]*** Stop cut motor [20:43:06]*** Cut end [20:43:06]Read from MH i2c: 01 07 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: 01 07 00 88 5C 00 00 00 00 00 FF 0F F9 [20:43:06]process_action close_receipt done [20:43:06]requested_data is exist [20:43:06]produce_requested_data [20:43:06]requested_item fm.sn is exist - process it [20:43:06]wFMCommunicate request_size=4 [20:43:06]MH_SAM_APDU [20:43:06]CAPDU: 80 11 00 00 [20:43:06]Write to MH i2c: E2 08 00 89 5C 80 11 00 00 00 00 00 00 5F [20:43:06]Write i2c OK [20:43:06]MH_I2C_Read... [20:43:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:43:06]Read from MH i2c: E2 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 17 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 17 00 89 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [20:43:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:43:06]wFMCommunicate OK [20:43:06]requested_item fd.num is exist - process it [20:43:06]SAM_PROTO_GetFieldsCounters [20:43:06]wFMCommunicate request_size=4 [20:43:06]MH_SAM_APDU [20:43:06]CAPDU: 80 13 00 00 [20:43:06]Write to MH i2c: E2 08 00 8A 5C 80 13 00 00 00 00 00 00 62 [20:43:06]Write i2c OK [20:43:06]MH_I2C_Read... [20:43:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:43:06]Read from MH i2c: E2 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 62 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 62 00 8A 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EB 20 02 00 0E 04 04 00 2C 02 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 E6 [20:43:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EB 20 02 00 0E 04 04 00 2C 02 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 [20:43:06]wFMCommunicate OK [20:43:06]SAM_PROTO_GetFieldsCounters done [20:43:06]requested_item shift.num is exist - process it [20:43:06]requested_item shift.opened is exist - process it [20:43:06]req_shift_opened [20:43:06]FM_GetShiftState [20:43:06]SAM_PROTO_GetShiftState [20:43:06]wFMCommunicate request_size=4 [20:43:06]MH_SAM_APDU [20:43:06]CAPDU: 80 13 01 00 [20:43:06]Write to MH i2c: E2 08 00 8B 5C 80 13 01 00 00 00 00 00 64 [20:43:06]Write i2c OK [20:43:06]MH_I2C_Read... [20:43:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:43:06]Read from MH i2c: E2 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 0E 00 [20:43:06]MH_I2C_Read... [20:43:06]Read from MH i2c: E2 0E 00 8B 5C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F4 [20:43:06]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:43:06]wFMCommunicate OK [20:43:06]SAM_PROTO_GetShiftState done [20:43:06]FM_GetShiftState done [20:43:06]req_shift_opened done [20:43:06]requested_item shift.open_date is exist - process it [20:43:06]req_shift_open_date [20:43:06]req_shift_open_date done [20:43:06]produce_requested_data done [20:43:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139499,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:43:06]process_action_free close_receipt [20:43:06]json_value_free [20:43:06]json_value_free done [20:43:06]process_json_proto returns [20:43:06]Send response to host [20:43:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139499,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:43:06]free response buf [20:43:06]execute_script done [20:43:06]execute_script returns [20:43:06]free content buf [20:43:06]Sock 8.Close socket [20:43:06]Sock 8.Thread stoped [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:10]OFD Sender: No OFD packet to send [20:44:15]OFD Sender: No OFD packet to send [20:44:20]OFD Sender: No OFD packet to send [20:44:25]OFD Sender: No OFD packet to send [20:44:30]OFD Sender: No OFD packet to send [20:44:35]OFD Sender: No OFD packet to send [20:44:40]OFD Sender: No OFD packet to send [20:44:45]OFD Sender: No OFD packet to send [20:44:50]OFD Sender: No OFD packet to send [20:44:55]OFD Sender: No OFD packet to send [20:45:00]OFD Sender: No OFD packet to send [20:45:05]OFD Sender: No OFD packet to send [20:45:10]OFD Sender: No OFD packet to send [20:45:15]OFD Sender: No OFD packet to send [20:45:20]OFD Sender: No OFD packet to send [20:45:25]OFD Sender: No OFD packet to send [20:45:30]OFD Sender: No OFD packet to send [20:45:35]OFD Sender: No OFD packet to send [20:45:40]OFD Sender: No OFD packet to send [20:45:45]OFD Sender: No OFD packet to send [20:45:50]OFD Sender: No OFD packet to send [20:45:55]OFD Sender: No OFD packet to send [20:46:00]OFD Sender: No OFD packet to send [20:46:05]OFD Sender: No OFD packet to send [20:46:10]OFD Sender: No OFD packet to send [20:46:15]OFD Sender: No OFD packet to send [20:46:20]OFD Sender: No OFD packet to send [20:46:25]OFD Sender: No OFD packet to send [20:46:30]OFD Sender: No OFD packet to send [20:46:35]OFD Sender: No OFD packet to send [20:46:40]OFD Sender: No OFD packet to send [20:46:45]OFD Sender: No OFD packet to send [20:46:50]OFD Sender: No OFD packet to send [20:46:55]OFD Sender: No OFD packet to send [20:47:00]OFD Sender: No OFD packet to send [20:47:05]OFD Sender: No OFD packet to send [20:47:10]OFD Sender: No OFD packet to send [20:47:15]OFD Sender: No OFD packet to send [20:47:20]OFD Sender: No OFD packet to send [20:47:25]OFD Sender: No OFD packet to send [20:47:30]OFD Sender: No OFD packet to send [20:47:35]OFD Sender: No OFD packet to send [20:47:40]OFD Sender: No OFD packet to send [20:47:45]OFD Sender: No OFD packet to send [20:47:50]OFD Sender: No OFD packet to send [20:47:55]OFD Sender: No OFD packet to send [20:48:00]OFD Sender: No OFD packet to send [20:48:05]OFD Sender: No OFD packet to send [20:48:10]OFD Sender: No OFD packet to send [20:48:15]OFD Sender: No OFD packet to send [20:48:20]OFD Sender: No OFD packet to send [20:48:25]OFD Sender: No OFD packet to send [20:48:30]OFD Sender: No OFD packet to send [20:48:35]OFD Sender: No OFD packet to send [20:48:40]OFD Sender: No OFD packet to send [20:48:45]OFD Sender: No OFD packet to send [20:48:50]OFD Sender: No OFD packet to send [20:48:55]OFD Sender: No OFD packet to send [20:49:00]OFD Sender: No OFD packet to send [20:49:05]OFD Sender: No OFD packet to send [20:49:10]OFD Sender: No OFD packet to send [20:49:15]OFD Sender: No OFD packet to send [20:49:20]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:36]OFD Sender: No OFD packet to send [20:50:41]OFD Sender: No OFD packet to send [20:50:46]OFD Sender: No OFD packet to send [20:50:51]OFD Sender: No OFD packet to send [20:50:56]OFD Sender: No OFD packet to send [20:51:01]OFD Sender: No OFD packet to send [20:51:06]OFD Sender: No OFD packet to send [20:51:11]OFD Sender: No OFD packet to send [20:51:16]OFD Sender: No OFD packet to send [20:51:21]OFD Sender: No OFD packet to send [20:51:26]OFD Sender: No OFD packet to send [20:51:31]OFD Sender: No OFD packet to send [20:51:36]OFD Sender: No OFD packet to send [20:51:41]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:11]OFD Sender: No OFD packet to send [20:54:16]OFD Sender: No OFD packet to send [20:54:21]OFD Sender: No OFD packet to send [20:54:26]OFD Sender: No OFD packet to send [20:54:31]OFD Sender: No OFD packet to send [20:54:36]OFD Sender: No OFD packet to send [20:54:41]OFD Sender: No OFD packet to send [20:54:46]OFD Sender: No OFD packet to send [20:54:51]OFD Sender: No OFD packet to send [20:54:56]OFD Sender: No OFD packet to send [20:55:01]OFD Sender: No OFD packet to send [20:55:06]OFD Sender: No OFD packet to send [20:55:11]OFD Sender: No OFD packet to send [20:55:16]OFD Sender: No OFD packet to send [20:55:21]OFD Sender: No OFD packet to send [20:55:26]OFD Sender: No OFD packet to send [20:55:31]OFD Sender: No OFD packet to send [20:55:36]OFD Sender: No OFD packet to send [20:55:41]OFD Sender: No OFD packet to send [20:55:46]OFD Sender: No OFD packet to send [20:55:51]OFD Sender: No OFD packet to send [20:55:56]OFD Sender: No OFD packet to send [20:56:01]OFD Sender: No OFD packet to send [20:56:06]OFD Sender: No OFD packet to send [20:56:11]OFD Sender: No OFD packet to send [20:56:16]OFD Sender: No OFD packet to send [20:56:21]OFD Sender: No OFD packet to send [20:56:26]OFD Sender: No OFD packet to send [20:56:31]OFD Sender: No OFD packet to send [20:56:36]OFD Sender: No OFD packet to send [20:56:41]OFD Sender: No OFD packet to send [20:56:46]OFD Sender: No OFD packet to send [20:56:51]OFD Sender: No OFD packet to send [20:56:56]OFD Sender: No OFD packet to send [20:57:01]OFD Sender: No OFD packet to send [20:57:06]OFD Sender: No OFD packet to send [20:57:11]OFD Sender: No OFD packet to send [20:57:16]OFD Sender: No OFD packet to send [20:57:21]OFD Sender: No OFD packet to send [20:57:26]OFD Sender: No OFD packet to send [20:57:31]OFD Sender: No OFD packet to send [20:57:36]OFD Sender: No OFD packet to send [20:57:41]OFD Sender: No OFD packet to send [20:57:46]OFD Sender: No OFD packet to send [20:57:48]accept exits with 9 [20:57:48]New connection [20:57:48]New thread 3067141476 created [20:57:48]Thread 3067284836 joined [20:57:48]Waiting for new connection... [20:57:48] Sock 9.Parse request [20:57:48]Sock 9.Check first char [20:57:48]Sock 9.First char is OK [20:57:48]request: POST /json_proto HTTP/1.0 [20:57:48]Method: POST [20:57:48]URL: /json_proto [20:57:48]Method is POST - this is cgi request [20:57:48]url: /json_proto [20:57:48]query_string will be loaded in cgi processing [20:57:48]execute_cgi json_proto POST (null) [20:57:48]execute_cgi path=json_proto method=POST [20:57:48]POST find Content-Length [20:57:48]Host: 172.17.50.196:8080 [20:57:48]Content-Length: 215 [20:57:48]Content-Type: application/json [20:57:48] [20:57:48]POST finish read [20:57:48]Found Content-Length = 215 [20:57:48]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" ] } } [20:57:48]execute_script... [20:57:48]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" ] } } [20:57:48]POST & json_proto [20:57:48]process_json_proto [20:57:48]json parsed OK: [20:57:48]protocol is kg_v1.0 [20:57:48]action value=get_value [20:57:48]process_action get_value [20:57:48]cmd_get_value [20:57:48]process_action get_value done [20:57:48]requested_data is exist [20:57:48]produce_requested_data [20:57:48]requested_item kkm.sn is exist - process it [20:57:48]requested_item kkm.ver is exist - process it [20:57:48]requested_item fm.sn is exist - process it [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 11 00 00 [20:57:48]Write to MH i2c: E2 08 00 8C 5C 80 11 00 00 00 00 00 00 62 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 17 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 17 00 8C 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BD [20:57:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:57:48]wFMCommunicate OK [20:57:48]requested_item fd.num is exist - process it [20:57:48]SAM_PROTO_GetFieldsCounters [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 13 00 00 [20:57:48]Write to MH i2c: E2 08 00 8D 5C 80 13 00 00 00 00 00 00 65 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 62 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 62 00 8D 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EB 20 02 00 0E 04 04 00 2C 02 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 E9 [20:57:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EB 20 02 00 0E 04 04 00 2C 02 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 [20:57:48]wFMCommunicate OK [20:57:48]SAM_PROTO_GetFieldsCounters done [20:57:48]requested_item shift.num is exist - process it [20:57:48]requested_item shift.opened is exist - process it [20:57:48]req_shift_opened [20:57:48]FM_GetShiftState [20:57:48]SAM_PROTO_GetShiftState [20:57:48]wFMCommunicate request_size=4 [20:57:48]MH_SAM_APDU [20:57:48]CAPDU: 80 13 01 00 [20:57:48]Write to MH i2c: E2 08 00 8E 5C 80 13 01 00 00 00 00 00 67 [20:57:48]Write i2c OK [20:57:48]MH_I2C_Read... [20:57:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:57:48]Read from MH i2c: E2 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 0E 00 [20:57:48]MH_I2C_Read... [20:57:48]Read from MH i2c: E2 0E 00 8E 5C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F7 [20:57:48]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:57:48]wFMCommunicate OK [20:57:48]SAM_PROTO_GetShiftState done [20:57:48]FM_GetShiftState done [20:57:48]req_shift_opened done [20:57:48]requested_item shift.open_date is exist - process it [20:57:48]req_shift_open_date [20:57:48]req_shift_open_date done [20:57:48]produce_requested_data done [20:57:48]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139499,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:57:48]process_action_free get_value [20:57:48]json_value_free [20:57:48]json_value_free done [20:57:48]process_json_proto returns [20:57:48]Send response to host [20:57:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139499,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:57:48]free response buf [20:57:48]execute_script done [20:57:48]execute_script returns [20:57:48]free content buf [20:57:48]Sock 9.Close socket [20:57:48]Sock 9.Thread stoped [20:57:48]accept exits with 8 [20:57:48]New connection [20:57:48]New thread 3067284836 created [20:57:48]Thread 3067141476 joined [20:57:48]Waiting for new connection... [20:57:48] Sock 8.Parse request [20:57:48]Sock 8.Check first char [20:57:48]Sock 8.First char is OK [20:57:48]request: POST /json_proto HTTP/1.0 [20:57:48]Method: POST [20:57:48]URL: /json_proto [20:57:48]Method is POST - this is cgi request [20:57:48]url: /json_proto [20:57:48]query_string will be loaded in cgi processing [20:57:48]execute_cgi json_proto POST (null) [20:57:48]execute_cgi path=json_proto method=POST [20:57:48]POST find Content-Length [20:57:48]Host: 172.17.50.196:8080 [20:57:48]Content-Length: 331 [20:57:48]Content-Type: application/json [20:57:48] [20:57:48]POST finish read [20:57:48]Found Content-Length = 331 [20:57:48]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" ] } } [20:57:48]execute_script... [20:57:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [20:57:49]POST & json_proto [20:57:49]process_json_proto [20:57:49]json parsed OK: [20:57:49]protocol is kg_v1.0 [20:57:49]action value=get_value [20:57:49]process_action get_value [20:57:49]cmd_get_value [20:57:49]process_action get_value done [20:57:49]requested_data is exist [20:57:49]produce_requested_data [20:57:49]requested_item fm.sale.total is exist - process it [20:57:49]SAM_PROTO_GetFMData [20:57:49]wFMCommunicate request_size=4 [20:57:49]MH_SAM_APDU [20:57:49]CAPDU: 80 13 03 00 [20:57:49]Write to MH i2c: E2 08 00 8F 5C 80 13 03 00 00 00 00 00 6A [20:57:49]Write i2c OK [20:57:49]MH_I2C_Read... [20:57:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [20:57:49]Read from MH i2c: E2 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: E2 FD 00 [20:57:49]MH_I2C_Read... [20:57:49]Read from MH i2c: E2 FD 00 8F 5C 00 C7 04 85 04 C3 04 6E 04 04 00 93 1C 02 00 69 04 A3 00 6F 04 04 00 48 1A 02 00 B1 04 05 00 F3 FB 80 52 01 70 04 05 00 D4 52 2A 03 01 72 04 04 00 1F A9 56 4F 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 96 3C F3 23 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 05 AD FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 37 [20:57:49]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 93 1C 02 00 69 04 A3 00 6F 04 04 00 48 1A 02 00 B1 04 05 00 F3 FB 80 52 01 70 04 05 00 D4 52 2A 03 01 72 04 04 00 1F A9 56 4F 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 96 3C F3 23 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 05 AD FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [20:57:49]wFMCommunicate OK [20:57:49]wFMCommunicate request_size=4 [20:57:49]MH_SAM_APDU [20:57:49]CAPDU: 80 17 00 00 [20:57:49]Write to MH i2c: E2 08 00 90 5C 80 17 00 00 00 00 00 00 6C [20:57:49]Write i2c OK [20:57:49]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 FD 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 FD 00 90 5C 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 83 [20:57:50]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:57:50]wFMCommunicate OK [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 17 00 00 [20:57:50]Write to MH i2c: E2 08 00 91 5C 80 17 00 00 00 00 00 00 6D [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 FD 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 FD 00 91 5C 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 45 [20:57:50]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:57:50]wFMCommunicate OK [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 17 00 00 [20:57:50]Write to MH i2c: E2 08 00 92 5C 80 17 00 00 00 00 00 00 6E [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 FD 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 FD 00 92 5C 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E9 [20:57:50]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [20:57:50]wFMCommunicate OK [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 17 00 00 [20:57:50]Write to MH i2c: E2 08 00 93 5C 80 17 00 00 00 00 00 00 6F [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [20:57:50]Read from MH i2c: E2 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 E4 00 [20:57:50]MH_I2C_Read... [20:57:50]Read from MH i2c: E2 E4 00 93 5C 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4F [20:57:50]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [20:57:50]wFMCommunicate OK [20:57:50]SAM_PROTO_GetFMData done [20:57:50]requested_item fm.sale_refund.total is exist - process it [20:57:50]requested_item fm.buy.total is exist - process it [20:57:50]requested_item shift.sale.total is exist - process it [20:57:50]SAM_PROTO_GetShiftData [20:57:50]wFMCommunicate request_size=4 [20:57:50]MH_SAM_APDU [20:57:50]CAPDU: 80 13 02 00 [20:57:50]Write to MH i2c: E2 08 00 94 5C 80 13 02 00 00 00 00 00 6E [20:57:50]Write i2c OK [20:57:50]MH_I2C_Read... [20:57:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [20:57:51]Read from MH i2c: E2 [20:57:51]MH_I2C_Read... [20:57:51]Read from MH i2c: E2 FD 00 [20:57:51]MH_I2C_Read... [20:57:51]Read from MH i2c: E2 FD 00 94 5C 00 AF 04 AA 04 AB 04 6E 04 04 00 B7 00 00 00 69 04 9C 00 6F 04 04 00 B7 00 00 00 B1 04 03 00 83 23 80 70 04 03 00 A8 22 49 72 04 03 00 DB 00 37 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 D9 9B 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 47 22 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 E2 [20:57:51]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 B7 00 00 00 69 04 9C 00 6F 04 04 00 B7 00 00 00 B1 04 03 00 83 23 80 70 04 03 00 A8 22 49 72 04 03 00 DB 00 37 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 D9 9B 0D EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 47 22 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [20:57:51]wFMCommunicate OK [20:57:51]wFMCommunicate request_size=4 [20:57:51]MH_SAM_APDU [20:57:51]CAPDU: 80 17 00 00 [20:57:51]Write to MH i2c: E2 08 00 95 5C 80 17 00 00 00 00 00 00 71 [20:57:51]Write i2c OK [20:57:51]MH_I2C_Read... [20:57:51]OFD Sender: No OFD packet to send [20:57:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:57:51]Read from MH i2c: E2 [20:57:51]MH_I2C_Read... [20:57:51]Read from MH i2c: E2 FD 00 [20:57:51]MH_I2C_Read... [20:57:51]Read from MH i2c: E2 FD 00 95 5C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 8A [20:57:51]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [20:57:51]wFMCommunicate OK [20:57:51]wFMCommunicate request_size=4 [20:57:51]MH_SAM_APDU [20:57:51]CAPDU: 80 17 00 00 [20:57:51]Write to MH i2c: E2 08 00 96 5C 80 17 00 00 00 00 00 00 72 [20:57:51]Write i2c OK [20:57:51]MH_I2C_Read... [20:57:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:57:51]Read from MH i2c: E2 [20:57:51]MH_I2C_Read... [20:57:51]Read from MH i2c: E2 FD 00 [20:57:51]MH_I2C_Read... [20:57:51]Read from MH i2c: E2 FD 00 96 5C 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 26 [20:57:51]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [20:57:51]wFMCommunicate OK [20:57:51]wFMCommunicate request_size=4 [20:57:51]MH_SAM_APDU [20:57:51]CAPDU: 80 17 00 00 [20:57:51]Write to MH i2c: E2 08 00 97 5C 80 17 00 00 00 00 00 00 73 [20:57:51]Write i2c OK [20:57:51]MH_I2C_Read... [20:57:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [20:57:52]Read from MH i2c: E2 [20:57:52]MH_I2C_Read... [20:57:52]Read from MH i2c: E2 FD 00 [20:57:52]MH_I2C_Read... [20:57:52]Read from MH i2c: E2 FD 00 97 5C 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 F1 [20:57:52]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [20:57:52]wFMCommunicate OK [20:57:52]wFMCommunicate request_size=4 [20:57:52]MH_SAM_APDU [20:57:52]CAPDU: 80 17 00 00 [20:57:52]Write to MH i2c: E2 08 00 98 5C 80 17 00 00 00 00 00 00 74 [20:57:52]Write i2c OK [20:57:52]MH_I2C_Read... [20:57:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [20:57:52]Read from MH i2c: E2 [20:57:52]MH_I2C_Read... [20:57:52]Read from MH i2c: E2 CC 00 [20:57:52]MH_I2C_Read... [20:57:52]Read from MH i2c: E2 CC 00 98 5C 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 55 [20:57:52]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [20:57:52]wFMCommunicate OK [20:57:52]SAM_PROTO_GetShiftData done [20:57:52]requested_item shift.sale.total_cash is exist - process it [20:57:52]requested_item shift.sale_refund.total is exist - process it [20:57:52]requested_item shift.sale_refund.total_cash is exist - process it [20:57:52]requested_item shift.buy.total is exist - process it [20:57:52]requested_item shift.buy.total_cash is exist - process it [20:57:52]produce_requested_data done [20:57:52]produce_requested_data return {"fm.sale.total":56791521.15,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":83976.99,"shift.sale.total_cash":47930.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} [20:57:52]process_action_free get_value [20:57:52]json_value_free [20:57:52]json_value_free done [20:57:52]process_json_proto returns [20:57:52]Send response to host [20:57:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56791521.15,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":83976.99,"shift.sale.total_cash":47930.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}}} [20:57:52]free response buf [20:57:52]execute_script done [20:57:52]execute_script returns [20:57:52]free content buf [20:57:52]Sock 8.Close socket [20:57:52]Sock 8.Thread stoped [20:57:56]OFD Sender: No OFD packet to send [20:58:01]OFD Sender: No OFD packet to send [20:58:06]OFD Sender: No OFD packet to send [20:58:11]OFD Sender: No OFD packet to send [20:58:16]OFD Sender: No OFD packet to send [20:58:21]OFD Sender: No OFD packet to send [20:58:26]OFD Sender: No OFD packet to send [20:58:31]OFD Sender: No OFD packet to send [20:58:36]OFD Sender: No OFD packet to send [20:58:41]OFD Sender: No OFD packet to send [20:58:46]OFD Sender: No OFD packet to send [20:58:51]OFD Sender: No OFD packet to send [20:58:56]OFD Sender: No OFD packet to send [20:59:01]OFD Sender: No OFD packet to send [20:59:05]accept exits with 9 [20:59:05]New connection [20:59:05]New thread 3067141476 created [20:59:05]Thread 3067284836 joined [20:59:05]Waiting for new connection... [20:59:05] Sock 9.Parse request [20:59:05]Sock 9.Check first char [20:59:05]Sock 9.First char is OK [20:59:05]request: POST /json_proto HTTP/1.0 [20:59:05]Method: POST [20:59:05]URL: /json_proto [20:59:05]Method is POST - this is cgi request [20:59:05]url: /json_proto [20:59:05]query_string will be loaded in cgi processing [20:59:05]execute_cgi json_proto POST (null) [20:59:05]execute_cgi path=json_proto method=POST [20:59:05]POST find Content-Length [20:59:05]Host: 172.17.50.196:8080 [20:59:05]Content-Length: 770 [20:59:05]Content-Type: application/json [20:59:05] [20:59:05]POST finish read [20:59:05]Found Content-Length = 770 [20:59:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [20:59:05]execute_script... [20:59: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)1094790", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 34", "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" ] } } [20:59:05]POST & json_proto [20:59:05]process_json_proto [20:59:05]json parsed OK: [20:59:05]protocol is kg_v1.0 [20:59:05]action value=close_receipt [20:59:05]process_action close_receipt [20:59:05]cmd_close_receipt [20:59:05]MH_GetDate [20:59:05]Write to MH i2c: F0 00 00 99 5C E4 [20:59:05]Write i2c OK [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: F0 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: F0 09 00 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: F0 09 00 99 5C 00 20 9E 22 67 72 0D 1C 67 36 [20:59:05]GetLastDocTimeStamp 1730320989 [20:59:05]current date 1730321952 [20:59:05]FM_GetShiftState [20:59:05]SAM_PROTO_GetShiftState [20:59:05]wFMCommunicate request_size=4 [20:59:05]MH_SAM_APDU [20:59:05]CAPDU: 80 13 01 00 [20:59:05]Write to MH i2c: E2 08 00 9A 5C 80 13 01 00 00 00 00 00 73 [20:59:05]Write i2c OK [20:59:05]MH_I2C_Read... [20:59:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:05]Read from MH i2c: E2 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: E2 0E 00 [20:59:05]MH_I2C_Read... [20:59:05]Read from MH i2c: E2 0E 00 9A 5C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 03 [20:59:05]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:59:05]wFMCommunicate OK [20:59:05]SAM_PROTO_GetShiftState done [20:59:05]FM_GetShiftState done [20:59:05]opened in 1730246278 [20:59:05]opened+sec_in_day 1730332678 [20:59:05]quantity*price = 200043 [20:59:05]sum+1 = 200044 [20:59:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 2000.43 НСП 1% : 17.70 НДС 12% : 212.43 Наличными: 0.00 Безнал.: 2000.43 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 184 30.10.2024 20:59 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139500 ФПД: 190173165980447 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T205912&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139500&fm=190173165980447&tin=02508201610067®Number=0000000000091631&sum=200043 [20:59:06]StoreToDocumentArchive [20:59:06]shift 556 fd 139500 [20:59:06]save to /storage/0556/doc_00139500 [20:59:06]save last doc name /storage/0556/doc_00139500 to /storage/kkm_last_doc_name [20:59:06]save OK [20:59:06]Clear old archive folders... [20:59:06]ProcessDocumentItem done err = 0, tmpTLVsize=251 [20:59:06]tlvbuf is B6F2B350 [20:59:06]SAM_PROTO_ClearQueue [20:59:06]wFMCommunicate request_size=4 [20:59:06]MH_SAM_APDU [20:59:06]CAPDU: 80 09 00 00 [20:59:06]Write to MH i2c: E2 08 00 A7 5C 80 09 00 00 00 00 00 00 75 [20:59:06]Write i2c OK [20:59:06]MH_I2C_Read... [20:59:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [20:59:06]Read from MH i2c: E2 [20:59:06]MH_I2C_Read... [20:59:06]Read from MH i2c: E2 03 00 [20:59:06]MH_I2C_Read... [20:59:06]Read from MH i2c: E2 03 00 A7 5C 00 90 00 77 [20:59:06]RAPDU: 90 00 [20:59:06]wFMCommunicate OK [20:59:06]SAM_PROTO_ClearQueue done [20:59:06]KKMCreateOFDPacket [20:59:06]OFDProtocolAddRootSTLVToBuf [20:59:06]FM_MakeSignedData [20:59:06]FM_MakeSignedData [20:59:06]SAM_PROTO_SignData [20:59:06]wFMCommunicate request_size=4 [20:59:06]MH_SAM_APDU [20:59:06]CAPDU: 80 0D 01 02 [20:59:06]Write to MH i2c: E2 08 00 A8 5C 80 0D 01 02 00 00 00 00 7D [20:59:06]Write i2c OK [20:59:06]MH_I2C_Read... [20:59:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [20:59:06]Read from MH i2c: E2 [20:59:06]MH_I2C_Read... [20:59:06]Read from MH i2c: E2 03 00 [20:59:06]MH_I2C_Read... [20:59:06]Read from MH i2c: E2 03 00 A8 5C 00 90 00 78 [20:59:06]RAPDU: 90 00 [20:59:06]wFMCommunicate OK [20:59:06]wFMCommunicate request_size=255 [20:59:06]MH_SAM_APDU [20:59: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 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 B8 00 00 00 F4 03 04 00 20 9E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 20 02 00 35 04 06 00 AC [20:59:06]Write to MH i2c: E2 02 01 A9 5C 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 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 B8 00 00 00 F4 03 04 00 20 9E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 20 02 00 35 04 06 00 AC 00 00 F2 [20:59:06]Write i2c OK [20:59:06]MH_I2C_Read... [20:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:07]Read from MH i2c: E2 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: E2 03 00 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: E2 03 00 A9 5C 00 90 00 79 [20:59:07]RAPDU: 90 00 [20:59:07]wFMCommunicate OK [20:59:07]wFMCommunicate request_size=10 [20:59:07]MH_SAM_APDU [20:59:07]CAPDU: 80 0D 02 02 05 F6 24 01 0B 1F [20:59:07]Write to MH i2c: E2 0D 00 AA 5C 80 0D 02 02 05 00 F6 24 01 0B 1F 00 00 CF [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [20:59:07]Read from MH i2c: E2 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: E2 03 00 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: E2 03 00 AA 5C 00 90 00 7A [20:59:07]RAPDU: 90 00 [20:59:07]wFMCommunicate OK [20:59:07]wFMCommunicate request_size=4 [20:59:07]MH_SAM_APDU [20:59:07]CAPDU: 80 0D 03 02 [20:59:07]Write to MH i2c: E2 08 00 AB 5C 80 0D 03 02 00 00 00 00 82 [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [20:59:07]Read from MH i2c: E2 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: E2 0B 00 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: E2 0B 00 AB 5C 00 38 8E AD 31 18 BC 3A 1C 90 00 51 [20:59:07]RAPDU: 38 8E AD 31 18 BC 3A 1C 90 00 [20:59:07]wFMCommunicate OK [20:59:07]SAM_PROTO_SignData done [20:59:07]FM_MakeSignedData done [20:59:07]CreateOFDProtocolMessage [20:59:07]wFMCommunicate request_size=4 [20:59:07]MH_SAM_APDU [20:59:07]CAPDU: 80 11 00 00 [20:59:07]Write to MH i2c: E2 08 00 AC 5C 80 11 00 00 00 00 00 00 82 [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:07]Read from MH i2c: E2 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: E2 17 00 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: E2 17 00 AC 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DD [20:59:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:59:07]wFMCommunicate OK [20:59:07]CreateOFDProtocolMessage done [20:59:07]OFDSenderStorePacket 139500 [20:59:07]StoreOFDPacket docnum=139500 [20:59:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 BA F9 07 01 8C 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 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 B8 00 00 00 F4 03 04 00 20 9E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 20 02 00 35 04 06 00 AC F6 24 01 0B 1F 38 8E AD 31 18 BC 3A 1C [20:59:07]CheckFolder [20:59:07]dirname=/storage/ofd_packets [20:59:07]CheckFolder done [20:59:07]ProducePacketName [20:59:07]name=ofd_packets/00139500 [20:59:07]NVStorageSaveData ofd_packets/00139500 [20:59:07]File name is /storage/ofd_packets/00139500 [20:59:07]Write 301 bytes [20:59:07]NVStorageSaveData done [20:59:07]OFDSenderStorePacket done [20:59:07]KKMCreateOFDPacket done [20:59:07]NVStorageSaveData kkm_last_timestamp [20:59:07]File name is /storage/kkm_last_timestamp [20:59:07]Write 4 bytes [20:59:07]NVStorageSaveData done [20:59:07]ExternCall_PrintAddStr [20:59:07]wPrintStart [20:59:07]Write to MH i2c: 01 00 00 AD 5C 09 [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: 01 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: 01 07 00 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: 01 07 00 AD 5C 00 00 00 00 00 FF 0F 1E [20:59:07]RasterBufferAndPrint [20:59:07]line Счет N : (1)1094790 [20:59:07]line ИНН: 02508201610067 [20:59:07]line Контрольно-Кассовый Чек [20:59:07]line ПРОДАЖА [20:59:07]line ТРК (МРК, ГНК) : 34 [20:59:07]line Товар: 2710124500 [20:59:07]line Аи-95-К-3 [20:59:07]line 26.960 * 74.20 [20:59:07]line = 2000.43 [20:59:07]line НДС 12% НСП 1% [20:59:07]line > о реализуемом товаре [20:59:07]line ИТОГО: 2000.43 [20:59:07]line НСП 1% : 17.70 [20:59:07]line НДС 12% : 212.43 [20:59:07]line Наличными: 0.00 [20:59:07]line Безнал.: 2000.43 [20:59:07]line Место: АЗС № 101 "Партнер Нефть" [20:59:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [20:59:07]line СНО: Общий режим [20:59:07]line Чек 184 30.10.2024 20:59 [20:59:07]line Смена: 556 ФФД: 1.0 [20:59:07]line ЗНМ: 0300000081 [20:59:07]line РНМ: 0000000000091631 [20:59:07]line Версия ККМ: 001 [20:59:07]line Платежная система: Mbank [20:59:07]line ФМ: 0000000000874669 [20:59:07]line ФД: 139500 [20:59:07]line ФПД: 190173165980447 [20:59:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T205912&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139500&fm=190173165980447&tin=02508201610067®Number=0000000000091631&sum=200043 [20:59:07]written 0, free lines is 4095 [20:59:07]OFD Sender: Processing packet 139500 [packets to send 34, broken 33] [20:59:07]ProducePacketName [20:59:07]name=ofd_packets/00139500 [20:59:07]OFD Sender: To server: pG, [20:59:07]CommunicateWithHost lk.salyk.kg:30040 [20:59:07]ConnectInit lk.salyk.kg [20:59:07]Write to MH i2c: 01 00 00 D6 5C 32 [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: 01 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: 01 07 00 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: 01 07 00 D6 5C 00 00 00 00 00 13 0D 59 [20:59:07]RasterBufferAndPrint [20:59:07]line [20:59:07]line [20:59:07]line [20:59:07]line [20:59:07]line [20:59:07]written 0, free lines is 3353 [20:59:07]Connected sock=10 [20:59:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 BA F9 07 01 8C 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 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 B8 00 00 00 F4 03 04 00 20 9E 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 20 02 00 35 04 06 00 AC F6 24 01 0B 1F 38 8E AD 31 18 BC 3A 1C [20:59:07]MH_Cut [20:59:07]Write to MH i2c: D1 01 00 DD 5C 01 0B [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: D1 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: D1 01 00 [20:59:07]MH_I2C_Read... [20:59:07]Read from MH i2c: D1 01 00 DD 5C 00 0A [20:59:07]Write to MH i2c: 01 00 00 DE 5C 3A [20:59:07]Write i2c OK [20:59:07]MH_I2C_Read... [20:59:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 52 C5 47 00 69 0C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EC 20 02 00 F4 03 04 00 D0 49 22 67 B6 04 01 00 00 17 8C EF AA 81 C8 98 68 [20:59:07]CommunicateWithHost err = 0 [20:59:07]CheckOFDResponse [20:59:07]1017 (14) - 77093643461234 [20:59:07]1041 (16) - 0000000000874669 [20:59:08]1040 (4) - 139500 [20:59:08]1012 (4) - 30.10.2024 14:59 [20:59:08]1206 (1) - 0 [20:59:08]OFD Sender: Remove packet 139500 [20:59:08]ProducePacketName [20:59:08]name=ofd_packets/00139500 [20:59:08]NVStorageDeleteData [20:59:08]*** Cut start [20:59:08]*** Partial cut [20:59:08]*** CUTSNS_PIN = 1 [20:59:08]OFD Sender: No OFD packet to send [20:59:08]*** CUTSNS_PIN = 0 [20:59:08]*** Brake cut motor [20:59:09]Read from MH i2c: 01 [20:59:09]MH_I2C_Read... [20:59:09]*** Stop cut motor [20:59:09]*** Cut end [20:59:09]Read from MH i2c: 01 07 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: 01 07 00 DE 5C 00 00 00 00 00 FF 0F 4F [20:59:09]process_action close_receipt done [20:59:09]requested_data is exist [20:59:09]produce_requested_data [20:59:09]requested_item fm.sn is exist - process it [20:59:09]wFMCommunicate request_size=4 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 11 00 00 [20:59:09]Write to MH i2c: E2 08 00 DF 5C 80 11 00 00 00 00 00 00 B5 [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 17 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 17 00 DF 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 10 [20:59:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [20:59:09]wFMCommunicate OK [20:59:09]requested_item fd.num is exist - process it [20:59:09]SAM_PROTO_GetFieldsCounters [20:59:09]wFMCommunicate request_size=4 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 13 00 00 [20:59:09]Write to MH i2c: E2 08 00 E0 5C 80 13 00 00 00 00 00 00 B8 [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 62 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 62 00 E0 5C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EC 20 02 00 0E 04 04 00 2C 02 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 40 [20:59:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EC 20 02 00 0E 04 04 00 2C 02 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 [20:59:09]wFMCommunicate OK [20:59:09]SAM_PROTO_GetFieldsCounters done [20:59:09]requested_item shift.num is exist - process it [20:59:09]requested_item shift.opened is exist - process it [20:59:09]req_shift_opened [20:59:09]FM_GetShiftState [20:59:09]SAM_PROTO_GetShiftState [20:59:09]wFMCommunicate request_size=4 [20:59:09]MH_SAM_APDU [20:59:09]CAPDU: 80 13 01 00 [20:59:09]Write to MH i2c: E2 08 00 E1 5C 80 13 01 00 00 00 00 00 BA [20:59:09]Write i2c OK [20:59:09]MH_I2C_Read... [20:59:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [20:59:09]Read from MH i2c: E2 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 0E 00 [20:59:09]MH_I2C_Read... [20:59:09]Read from MH i2c: E2 0E 00 E1 5C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4A [20:59:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [20:59:09]wFMCommunicate OK [20:59:09]SAM_PROTO_GetShiftState done [20:59:09]FM_GetShiftState done [20:59:09]req_shift_opened done [20:59:09]requested_item shift.open_date is exist - process it [20:59:09]req_shift_open_date [20:59:09]req_shift_open_date done [20:59:09]produce_requested_data done [20:59:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139500,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [20:59:09]process_action_free close_receipt [20:59:09]json_value_free [20:59:09]json_value_free done [20:59:09]process_json_proto returns [20:59:09]Send response to host [20:59:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139500,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [20:59:09]free response buf [20:59:09]execute_script done [20:59:09]execute_script returns [20:59:09]free content buf [20:59:09]Sock 9.Close socket [20:59:09]Sock 9.Thread stoped [20:59:13]OFD Sender: No OFD packet to send [20:59:18]OFD Sender: No OFD packet to send [20:59:23]OFD Sender: No OFD packet to send [20:59:28]OFD Sender: No OFD packet to send [20:59:33]OFD Sender: No OFD packet to send [20:59:38]OFD Sender: No OFD packet to send [20:59:43]OFD Sender: No OFD packet to send [20:59:48]OFD Sender: No OFD packet to send [20:59:53]OFD Sender: No OFD packet to send [20:59:58]OFD Sender: No OFD packet to send [21:00:03]OFD Sender: No OFD packet to send [21:00:08]OFD Sender: No OFD packet to send [21:00:13]OFD Sender: No OFD packet to send [21:00:18]OFD Sender: No OFD packet to send [21:00:23]OFD Sender: No OFD packet to send [21:00:28]OFD Sender: No OFD packet to send [21:00:33]OFD Sender: No OFD packet to send [21:00:38]OFD Sender: No OFD packet to send [21:00:43]OFD Sender: No OFD packet to send [21:00:48]OFD Sender: No OFD packet to send [21:00:53]OFD Sender: No OFD packet to send [21:00:58]OFD Sender: No OFD packet to send [21:01:03]OFD Sender: No OFD packet to send [21:01:08]OFD Sender: No OFD packet to send [21:01:13]OFD Sender: No OFD packet to send [21:01:18]OFD Sender: No OFD packet to send [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:38]OFD Sender: No OFD packet to send [21:01:43]OFD Sender: No OFD packet to send [21:01:48]OFD Sender: No OFD packet to send [21:01:53]OFD Sender: No OFD packet to send [21:01:58]OFD Sender: No OFD packet to send [21:02:03]OFD Sender: No OFD packet to send [21:02:08]OFD Sender: No OFD packet to send [21:02:13]OFD Sender: No OFD packet to send [21:02:18]OFD Sender: No OFD packet to send [21:02:23]OFD Sender: No OFD packet to send [21:02:28]OFD Sender: No OFD packet to send [21:02:33]OFD Sender: No OFD packet to send [21:02:38]OFD Sender: No OFD packet to send [21:02:43]OFD Sender: No OFD packet to send [21:02:48]OFD Sender: No OFD packet to send [21:02:53]OFD Sender: No OFD packet to send [21:02:58]OFD Sender: No OFD packet to send [21:03:03]OFD Sender: No OFD packet to send [21:03:08]OFD Sender: No OFD packet to send [21:03:13]OFD Sender: No OFD packet to send [21:03:18]OFD Sender: No OFD packet to send [21:03:23]OFD Sender: No OFD packet to send [21:03:28]OFD Sender: No OFD packet to send [21:03:33]OFD Sender: No OFD packet to send [21:03:38]OFD Sender: No OFD packet to send [21:03:43]OFD Sender: No OFD packet to send [21:03:48]OFD Sender: No OFD packet to send [21:03:53]OFD Sender: No OFD packet to send [21:03:58]OFD Sender: No OFD packet to send [21:04:03]OFD Sender: No OFD packet to send [21:04:08]OFD Sender: No OFD packet to send [21:04:13]OFD Sender: No OFD packet to send [21:04:18]OFD Sender: No OFD packet to send [21:04:23]OFD Sender: No OFD packet to send [21:04:28]OFD Sender: No OFD packet to send [21:04:33]OFD Sender: No OFD packet to send [21:04:38]OFD Sender: No OFD packet to send [21:04:43]OFD Sender: No OFD packet to send [21:04:48]OFD Sender: No OFD packet to send [21:04:53]OFD Sender: No OFD packet to send [21:04:58]OFD Sender: No OFD packet to send [21:05:03]OFD Sender: No OFD packet to send [21:05:08]OFD Sender: No OFD packet to send [21:05:13]OFD Sender: No OFD packet to send [21:05:18]OFD Sender: No OFD packet to send [21:05:23]OFD Sender: No OFD packet to send [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:43]OFD Sender: No OFD packet to send [21:05:48]OFD Sender: No OFD packet to send [21:05:53]OFD Sender: No OFD packet to send [21:05:58]OFD Sender: No OFD packet to send [21:06:03]OFD Sender: No OFD packet to send [21:06:08]OFD Sender: No OFD packet to send [21:06:13]OFD Sender: No OFD packet to send [21:06:18]OFD Sender: No OFD packet to send [21:06:23]OFD Sender: No OFD packet to send [21:06:28]OFD Sender: No OFD packet to send [21:06:33]OFD Sender: No OFD packet to send [21:06:34]accept exits with 8 [21:06:34]New connection [21:06:34]New thread 3067284836 created [21:06:34]Thread 3067141476 joined [21:06:34]Waiting for new connection... [21:06:34] Sock 8.Parse request [21:06:34]Sock 8.Check first char [21:06:34]Sock 8.First char is OK [21:06:34]request: POST /json_proto HTTP/1.0 [21:06:34]Method: POST [21:06:34]URL: /json_proto [21:06:34]Method is POST - this is cgi request [21:06:34]url: /json_proto [21:06:34]query_string will be loaded in cgi processing [21:06:34]execute_cgi json_proto POST (null) [21:06:34]execute_cgi path=json_proto method=POST [21:06:34]POST find Content-Length [21:06:34]Host: 172.17.50.196:8080 [21:06:34]Content-Length: 748 [21:06:34]Content-Type: application/json [21:06:34] [21:06:34]POST finish read [21:06:34]Found Content-Length = 748 [21:06:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335378", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:34]execute_script... [21:06: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 : (3)335378", "tax_sys" : 0, "items" : [ { "code": "4870202521254", "name": "\u0427\u0430\u0439 \u0445\u043E\u043B\u043E\u0434\u043D\u044B\u0439 MAXI \u0447\u0435\u0440\u043D\u044B\u0439 \u0441\u043E \u0432\u043A\u0443\u0441\u043E\u043C \u043A\u043B\u0443\u0431\u043D", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:06:34]POST & json_proto [21:06:34]process_json_proto [21:06:34]json parsed OK: [21:06:34]protocol is kg_v1.0 [21:06:34]action value=close_receipt [21:06:34]process_action close_receipt [21:06:34]cmd_close_receipt [21:06:34]MH_GetDate [21:06:34]Write to MH i2c: F0 00 00 E2 5C 2D [21:06:34]Write i2c OK [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: F0 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: F0 09 00 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: F0 09 00 E2 5C 00 E1 9F 22 67 72 0D 1C 67 41 [21:06:34]GetLastDocTimeStamp 1730321952 [21:06:34]current date 1730322401 [21:06:34]FM_GetShiftState [21:06:34]SAM_PROTO_GetShiftState [21:06:34]wFMCommunicate request_size=4 [21:06:34]MH_SAM_APDU [21:06:34]CAPDU: 80 13 01 00 [21:06:34]Write to MH i2c: E2 08 00 E3 5C 80 13 01 00 00 00 00 00 BC [21:06:34]Write i2c OK [21:06:34]MH_I2C_Read... [21:06:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:34]Read from MH i2c: E2 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: E2 0E 00 [21:06:34]MH_I2C_Read... [21:06:34]Read from MH i2c: E2 0E 00 E3 5C 00 09 00 01 86 76 21 67 00 00 00 00 90 00 4C [21:06:34]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:06:34]wFMCommunicate OK [21:06:34]SAM_PROTO_GetShiftState done [21:06:34]FM_GetShiftState done [21:06:34]opened in 1730246278 [21:06:34]opened+sec_in_day 1730332678 [21:06:34]quantity*price = 10400 [21:06:34]sum+1 = 10401 [21:06:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 185 30.10.2024 21:06 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139501 ФПД: 34906451091824 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T210641&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139501&fm=34906451091824&tin=02508201610067®Number=0000000000091631&sum=10400 0 [21:06:35]StoreToDocumentArchive [21:06:35]shift 556 fd 139501 [21:06:35]save to /storage/0556/doc_00139501 [21:06:35]save last doc name /storage/0556/doc_00139501 to /storage/kkm_last_doc_name [21:06:35]save OK [21:06:35]Clear old archive folders... [21:06:35]ProcessDocumentItem done err = 0, tmpTLVsize=312 [21:06:35]tlvbuf is 011248F0 [21:06:35]SAM_PROTO_ClearQueue [21:06:35]wFMCommunicate request_size=4 [21:06:35]MH_SAM_APDU [21:06:35]CAPDU: 80 09 00 00 [21:06:35]Write to MH i2c: E2 08 00 F0 5C 80 09 00 00 00 00 00 00 BE [21:06:35]Write i2c OK [21:06:35]MH_I2C_Read... [21:06:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:06:35]Read from MH i2c: E2 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: E2 03 00 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: E2 03 00 F0 5C 00 90 00 C0 [21:06:35]RAPDU: 90 00 [21:06:35]wFMCommunicate OK [21:06:35]SAM_PROTO_ClearQueue done [21:06:35]KKMCreateOFDPacket [21:06:35]OFDProtocolAddRootSTLVToBuf [21:06:35]FM_MakeSignedData [21:06:35]FM_MakeSignedData [21:06:35]SAM_PROTO_SignData [21:06:35]wFMCommunicate request_size=4 [21:06:35]MH_SAM_APDU [21:06:35]CAPDU: 80 0D 01 02 [21:06:35]Write to MH i2c: E2 08 00 F1 5C 80 0D 01 02 00 00 00 00 C6 [21:06:35]Write i2c OK [21:06:35]MH_I2C_Read... [21:06:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:06:35]Read from MH i2c: E2 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: E2 03 00 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: E2 03 00 F1 5C 00 90 00 C1 [21:06:35]RAPDU: 90 00 [21:06:35]wFMCommunicate OK [21:06:35]wFMCommunicate request_size=255 [21:06:35]MH_SAM_APDU [21:06:35]CAPDU: 80 0D 02 02 FA 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 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 E1 9F 22 67 0E 04 04 00 2C [21:06:35]Write to MH i2c: E2 02 01 F2 5C 80 0D 02 02 FA 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 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 E1 9F 22 67 0E 04 04 00 2C 00 00 ED [21:06:35]Write i2c OK [21:06:35]MH_I2C_Read... [21:06:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:35]Read from MH i2c: E2 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: E2 03 00 [21:06:35]MH_I2C_Read... [21:06:35]Read from MH i2c: E2 03 00 F2 5C 00 90 00 C2 [21:06:35]RAPDU: 90 00 [21:06:35]wFMCommunicate OK [21:06:35]wFMCommunicate request_size=71 [21:06:35]MH_SAM_APDU [21:06:35]CAPDU: 80 0D 02 02 42 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 20 02 00 35 04 06 00 1F BF 4A 9E 21 70 [21:06:35]Write to MH i2c: E2 4A 00 F3 5C 80 0D 02 02 42 00 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 20 02 00 35 04 06 00 1F BF 4A 9E 21 70 00 00 4D [21:06:35]Write i2c OK [21:06:35]MH_I2C_Read... [21:06:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:06:36]Read from MH i2c: E2 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: E2 03 00 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: E2 03 00 F3 5C 00 90 00 C3 [21:06:36]RAPDU: 90 00 [21:06:36]wFMCommunicate OK [21:06:36]wFMCommunicate request_size=4 [21:06:36]MH_SAM_APDU [21:06:36]CAPDU: 80 0D 03 02 [21:06:36]Write to MH i2c: E2 08 00 F4 5C 80 0D 03 02 00 00 00 00 CB [21:06:36]Write i2c OK [21:06:36]MH_I2C_Read... [21:06:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:06:36]Read from MH i2c: E2 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: E2 0B 00 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: E2 0B 00 F4 5C 00 20 4E C3 63 82 B6 8A 40 90 00 62 [21:06:36]RAPDU: 20 4E C3 63 82 B6 8A 40 90 00 [21:06:36]wFMCommunicate OK [21:06:36]SAM_PROTO_SignData done [21:06:36]FM_MakeSignedData done [21:06:36]CreateOFDProtocolMessage [21:06:36]wFMCommunicate request_size=4 [21:06:36]MH_SAM_APDU [21:06:36]CAPDU: 80 11 00 00 [21:06:36]Write to MH i2c: E2 08 00 F5 5C 80 11 00 00 00 00 00 00 CB [21:06:36]Write i2c OK [21:06:36]MH_I2C_Read... [21:06:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:36]Read from MH i2c: E2 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: E2 17 00 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: E2 17 00 F5 5C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 26 [21:06:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:06:36]wFMCommunicate OK [21:06:36]CreateOFDProtocolMessage done [21:06:36]OFDSenderStorePacket 139501 [21:06:36]StoreOFDPacket docnum=139501 [21:06:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4C 01 00 00 62 CE 44 01 52 32 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 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 E1 9F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 20 02 00 35 04 06 00 1F BF 4A 9E 21 70 20 4E C3 63 82 B6 8A 40 [21:06:36]CheckFolder [21:06:36]dirname=/storage/ofd_packets [21:06:36]CheckFolder done [21:06:36]ProducePacketName [21:06:36]name=ofd_packets/00139501 [21:06:36]NVStorageSaveData ofd_packets/00139501 [21:06:36]File name is /storage/ofd_packets/00139501 [21:06:36]Write 362 bytes [21:06:36]NVStorageSaveData done [21:06:36]OFDSenderStorePacket done [21:06:36]KKMCreateOFDPacket done [21:06:36]NVStorageSaveData kkm_last_timestamp [21:06:36]File name is /storage/kkm_last_timestamp [21:06:36]Write 4 bytes [21:06:36]NVStorageSaveData done [21:06:36]ExternCall_PrintAddStr [21:06:36]wPrintStart [21:06:36]Write to MH i2c: 01 00 00 F6 5C 52 [21:06:36]Write i2c OK [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: 01 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: 01 07 00 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: 01 07 00 F6 5C 00 00 00 00 00 FF 0F 67 [21:06:36]RasterBufferAndPrint [21:06:36]line Счет N : (3)335378 [21:06:36]line ИНН: 02508201610067 [21:06:36]line Контрольно-Кассовый Чек [21:06:36]line ПРОДАЖА [21:06:36]line Товар: 4870202521254 [21:06:36]line Чай холодный MAXI черный со вкусом клубн [21:06:36]line 1.000 * 104.00 [21:06:36]line = 104.00 [21:06:36]line НДС 12% НСП 1% [21:06:36]line > о реализуемом товаре [21:06:36]line ИТОГО: 104.00 [21:06:36]line НСП 1% : 0.92 [21:06:36]line НДС 12% : 11.04 [21:06:36]line Наличными: 104.00 [21:06:36]line Безнал.: 0.00 [21:06:36]line Место: АЗС № 101 "Партнер Нефть" [21:06:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:06:36]line СНО: Общий режим [21:06:36]line Чек 185 30.10.2024 21:06 [21:06:36]line Смена: 556 ФФД: 1.0 [21:06:36]line ЗНМ: 0300000081 [21:06:36]line РНМ: 0000000000091631 [21:06:36]line Версия ККМ: 001 [21:06:36]line ФМ: 0000000000874669 [21:06:36]line ФД: 139501 [21:06:36]line ФПД: 34906451091824 [21:06:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T210641&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139501&fm=34906451091824&tin=02508201610067®Number=0000000000091631&sum=10400 [21:06:36]line 0 [21:06:36]OFD Sender: Processing packet 139501 [packets to send 34, broken 33] [21:06:36]ProducePacketName [21:06:36]name=ofd_packets/00139501 [21:06:36]OFD Sender: To server: pG, [21:06:36]CommunicateWithHost lk.salyk.kg:30040 [21:06:36]ConnectInit lk.salyk.kg [21:06:36]written 0, free lines is 4095 [21:06:36]Connected sock=10 [21:06:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4C 01 00 00 62 CE 44 01 52 32 5A 03 01 00 03 00 38 01 1E 04 01 00 01 23 04 8A 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 35 34 06 04 46 00 D0 A7 D0 B0 D0 B9 20 D1 85 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 4D 41 58 49 20 D1 87 D0 B5 D1 80 D0 BD D1 8B D0 B9 20 D1 81 D0 BE 20 D0 B2 D0 BA D1 83 D1 81 D0 BE D0 BC 20 D0 BA D0 BB D1 83 D0 B1 D0 BD FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 00 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 E1 9F 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 20 02 00 35 04 06 00 1F BF 4A 9E 21 70 20 4E C3 63 82 B6 8A 40 [21:06:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 87 68 47 00 0A 3C A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 ED 20 02 00 F4 03 04 00 90 4B 22 67 B6 04 01 00 00 DF 23 31 88 0C 2A 8F 13 [21:06:36]CommunicateWithHost err = 0 [21:06:36]CheckOFDResponse [21:06:36]1017 (14) - 77093643461234 [21:06:36]1041 (16) - 0000000000874669 [21:06:36]1040 (4) - 139501 [21:06:36]1012 (4) - 30.10.2024 15:06 [21:06:36]1206 (1) - 0 [21:06:36]OFD Sender: Remove packet 139501 [21:06:36]ProducePacketName [21:06:36]name=ofd_packets/00139501 [21:06:36]NVStorageDeleteData [21:06:36]Write to MH i2c: 01 00 00 1F 5D 7C [21:06:36]Write i2c OK [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: 01 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: 01 07 00 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: 01 07 00 1F 5D 00 00 00 00 00 02 0D 92 [21:06:36]RasterBufferAndPrint [21:06:36]line [21:06:36]line [21:06:36]line [21:06:36]line [21:06:36]line [21:06:36]written 0, free lines is 3336 [21:06:36]MH_Cut [21:06:36]Write to MH i2c: D1 01 00 26 5D 01 55 [21:06:36]Write i2c OK [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: D1 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: D1 01 00 [21:06:36]MH_I2C_Read... [21:06:36]Read from MH i2c: D1 01 00 26 5D 00 54 [21:06:36]Write to MH i2c: 01 00 00 27 5D 84 [21:06:36]Write i2c OK [21:06:36]MH_I2C_Read... [21:06:37]OFD Sender: No OFD packet to send [21:06:37]*** Cut start [21:06:37]*** Partial cut [21:06:37]*** CUTSNS_PIN = 1 [21:06:37]*** CUTSNS_PIN = 0 [21:06:37]*** Brake cut motor [21:06:38]Read from MH i2c: 01 [21:06:38]MH_I2C_Read... [21:06:38]*** Stop cut motor [21:06:38]*** Cut end [21:06:38]Read from MH i2c: 01 07 00 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: 01 07 00 27 5D 00 00 00 00 00 FF 0F 99 [21:06:38]process_action close_receipt done [21:06:38]requested_data is exist [21:06:38]produce_requested_data [21:06:38]requested_item fm.sn is exist - process it [21:06:38]wFMCommunicate request_size=4 [21:06:38]MH_SAM_APDU [21:06:38]CAPDU: 80 11 00 00 [21:06:38]Write to MH i2c: E2 08 00 28 5D 80 11 00 00 00 00 00 00 FF [21:06:38]Write i2c OK [21:06:38]MH_I2C_Read... [21:06:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:06:38]Read from MH i2c: E2 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: E2 17 00 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: E2 17 00 28 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5A [21:06:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:06:38]wFMCommunicate OK [21:06:38]requested_item fd.num is exist - process it [21:06:38]SAM_PROTO_GetFieldsCounters [21:06:38]wFMCommunicate request_size=4 [21:06:38]MH_SAM_APDU [21:06:38]CAPDU: 80 13 00 00 [21:06:38]Write to MH i2c: E2 08 00 29 5D 80 13 00 00 00 00 00 00 02 [21:06:38]Write i2c OK [21:06:38]MH_I2C_Read... [21:06:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:06:38]Read from MH i2c: E2 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: E2 62 00 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: E2 62 00 29 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 ED 20 02 00 0E 04 04 00 2C 02 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 8E [21:06:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 ED 20 02 00 0E 04 04 00 2C 02 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 [21:06:38]wFMCommunicate OK [21:06:38]SAM_PROTO_GetFieldsCounters done [21:06:38]requested_item shift.num is exist - process it [21:06:38]requested_item shift.opened is exist - process it [21:06:38]req_shift_opened [21:06:38]FM_GetShiftState [21:06:38]SAM_PROTO_GetShiftState [21:06:38]wFMCommunicate request_size=4 [21:06:38]MH_SAM_APDU [21:06:38]CAPDU: 80 13 01 00 [21:06:38]Write to MH i2c: E2 08 00 2A 5D 80 13 01 00 00 00 00 00 04 [21:06:38]Write i2c OK [21:06:38]MH_I2C_Read... [21:06:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:06:38]Read from MH i2c: E2 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: E2 0E 00 [21:06:38]MH_I2C_Read... [21:06:38]Read from MH i2c: E2 0E 00 2A 5D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 94 [21:06:38]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:06:38]wFMCommunicate OK [21:06:38]SAM_PROTO_GetShiftState done [21:06:38]FM_GetShiftState done [21:06:38]req_shift_opened done [21:06:38]requested_item shift.open_date is exist - process it [21:06:38]req_shift_open_date [21:06:38]req_shift_open_date done [21:06:38]produce_requested_data done [21:06:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139501,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [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":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139501,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [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 8.Close socket [21:06:38]Sock 8.Thread stoped [21:06:42]OFD Sender: No OFD packet to send [21:06:47]OFD Sender: No OFD packet to send [21:06:52]OFD Sender: No OFD packet to send [21:06:57]OFD Sender: No OFD packet to send [21:07:02]OFD Sender: No OFD packet to send [21:07:07]OFD Sender: No OFD packet to send [21:07:12]OFD Sender: No OFD packet to send [21:07:17]OFD Sender: No OFD packet to send [21:07:22]OFD Sender: No OFD packet to send [21:07:27]OFD Sender: No OFD packet to send [21:07:32]OFD Sender: No OFD packet to send [21:07:37]OFD Sender: No OFD packet to send [21:07:42]OFD Sender: No OFD packet to send [21:07:47]OFD Sender: No OFD packet to send [21:07:52]OFD Sender: No OFD packet to send [21:07:57]OFD Sender: No OFD packet to send [21:08:02]OFD Sender: No OFD packet to send [21:08:07]OFD Sender: No OFD packet to send [21:08:12]OFD Sender: No OFD packet to send [21:08:17]OFD Sender: No OFD packet to send [21:08:22]OFD Sender: No OFD packet to send [21:08:27]OFD Sender: No OFD packet to send [21:08:32]OFD Sender: No OFD packet to send [21:08:37]OFD Sender: No OFD packet to send [21:08:42]OFD Sender: No OFD packet to send [21:08:47]OFD Sender: No OFD packet to send [21:08:52]OFD Sender: No OFD packet to send [21:08:57]OFD Sender: No OFD packet to send [21:09:02]OFD Sender: No OFD packet to send [21:09:07]OFD Sender: No OFD packet to send [21:09:12]OFD Sender: No OFD packet to send [21:09:17]OFD Sender: No OFD packet to send [21:09:22]OFD Sender: No OFD packet to send [21:09:27]OFD Sender: No OFD packet to send [21:09:32]OFD Sender: No OFD packet to send [21:09:37]OFD Sender: No OFD packet to send [21:09:42]OFD Sender: No OFD packet to send [21:09:47]OFD Sender: No OFD packet to send [21:09:52]OFD Sender: No OFD packet to send [21:09:57]OFD Sender: No OFD packet to send [21:10:02]OFD Sender: No OFD packet to send [21:10:07]OFD Sender: No OFD packet to send [21:10:12]OFD Sender: No OFD packet to send [21:10:17]OFD Sender: No OFD packet to send [21:10:22]OFD Sender: No OFD packet to send [21:10:27]OFD Sender: No OFD packet to send [21:10:32]OFD Sender: No OFD packet to send [21:10:37]OFD Sender: No OFD packet to send [21:10:42]OFD Sender: No OFD packet to send [21:10:47]OFD Sender: No OFD packet to send [21:10:52]OFD Sender: No OFD packet to send [21:10:57]OFD Sender: No OFD packet to send [21:11:02]OFD Sender: No OFD packet to send [21:11:07]OFD Sender: No OFD packet to send [21:11:12]OFD Sender: No OFD packet to send [21:11:17]OFD Sender: No OFD packet to send [21:11:22]OFD Sender: No OFD packet to send [21:11:27]OFD Sender: No OFD packet to send [21:11:32]OFD Sender: No OFD packet to send [21:11:37]OFD Sender: No OFD packet to send [21:11:42]OFD Sender: No OFD packet to send [21:11:47]OFD Sender: No OFD packet to send [21:11:52]OFD Sender: No OFD packet to send [21:11:57]OFD Sender: No OFD packet to send [21:12:02]OFD Sender: No OFD packet to send [21:12:07]OFD Sender: No OFD packet to send [21:12:12]OFD Sender: No OFD packet to send [21:12:17]OFD Sender: No OFD packet to send [21:12:22]OFD Sender: No OFD packet to send [21:12:27]OFD Sender: No OFD packet to send [21:12:32]OFD Sender: No OFD packet to send [21:12:37]OFD Sender: No OFD packet to send [21:12:42]accept exits with 9 [21:12:42]New connection [21:12:42]New thread 3067141476 created [21:12:42]Thread 3067284836 joined [21:12:42]Waiting for new connection... [21:12:42] Sock 9.Parse request [21:12:42]Sock 9.Check first char [21:12:42]Sock 9.First char is OK [21:12:42]request: POST /json_proto HTTP/1.0 [21:12:42]Method: POST [21:12:42]URL: /json_proto [21:12:42]Method is POST - this is cgi request [21:12:42]url: /json_proto [21:12:42]query_string will be loaded in cgi processing [21:12:42]execute_cgi json_proto POST (null) [21:12:42]execute_cgi path=json_proto method=POST [21:12:42]POST find Content-Length [21:12:42]Host: 172.17.50.196:8080 [21:12:42]Content-Length: 645 [21:12:42]Content-Type: application/json [21:12:42] [21:12:42]POST finish read [21:12:42]Found Content-Length = 645 [21:12:42]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335379", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:42]execute_script... [21:12: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 : (3)335379", "tax_sys" : 0, "items" : [ { "code": "4700000310043", "name": "\u0412\u043E\u0434\u0430 \u0416\u0430\u043B\u0430\u043B\u0430\u0431\u0430\u0442 27 1\u043B", "price" : 79.00, "quantity" : 1.000, "sum" : 79.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 79.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:12:42]POST & json_proto [21:12:42]process_json_proto [21:12:42]json parsed OK: [21:12:42]protocol is kg_v1.0 [21:12:42]action value=close_receipt [21:12:42]process_action close_receipt [21:12:42]cmd_close_receipt [21:12:42]MH_GetDate [21:12:42]Write to MH i2c: F0 00 00 2B 5D 77 [21:12:42]Write i2c OK [21:12:42]MH_I2C_Read... [21:12:42]Read from MH i2c: F0 [21:12:42]MH_I2C_Read... [21:12:42]Read from MH i2c: F0 09 00 [21:12:42]MH_I2C_Read... [21:12:42]Read from MH i2c: F0 09 00 2B 5D 00 51 A1 22 67 72 0D 1C 67 FD [21:12:42]GetLastDocTimeStamp 1730322401 [21:12:42]current date 1730322769 [21:12:42]FM_GetShiftState [21:12:42]SAM_PROTO_GetShiftState [21:12:42]wFMCommunicate request_size=4 [21:12:42]MH_SAM_APDU [21:12:42]CAPDU: 80 13 01 00 [21:12:42]Write to MH i2c: E2 08 00 2C 5D 80 13 01 00 00 00 00 00 06 [21:12:42]Write i2c OK [21:12:42]MH_I2C_Read... [21:12:42]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:42]Read from MH i2c: E2 [21:12:42]MH_I2C_Read... [21:12:42]Read from MH i2c: E2 0E 00 [21:12:42]MH_I2C_Read... [21:12:42]Read from MH i2c: E2 0E 00 2C 5D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 96 [21:12:42]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:12:42]wFMCommunicate OK [21:12:42]SAM_PROTO_GetShiftState done [21:12:42]FM_GetShiftState done [21:12:42]opened in 1730246278 [21:12:42]opened+sec_in_day 1730332678 [21:12:42]quantity*price = 7900 [21:12:42]sum+1 = 7901 [21:12:42]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 79.00 НСП 1% : 0.70 НДС 12% : 8.39 Наличными: 79.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 186 30.10.2024 21:12 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139502 ФПД: 61994408049076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211249&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139502&fm=61994408049076&tin=02508201610067®Number=0000000000091631&sum=7900 0 [21:12:43]StoreToDocumentArchive [21:12:43]shift 556 fd 139502 [21:12:43]save to /storage/0556/doc_00139502 [21:12:43]save last doc name /storage/0556/doc_00139502 to /storage/kkm_last_doc_name [21:12:43]save OK [21:12:43]Clear old archive folders... [21:12:43]ProcessDocumentItem done err = 0, tmpTLVsize=276 [21:12:43]tlvbuf is 011A9620 [21:12:43]SAM_PROTO_ClearQueue [21:12:43]wFMCommunicate request_size=4 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 09 00 00 [21:12:43]Write to MH i2c: E2 08 00 39 5D 80 09 00 00 00 00 00 00 08 [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 03 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 03 00 39 5D 00 90 00 0A [21:12:43]RAPDU: 90 00 [21:12:43]wFMCommunicate OK [21:12:43]SAM_PROTO_ClearQueue done [21:12:43]KKMCreateOFDPacket [21:12:43]OFDProtocolAddRootSTLVToBuf [21:12:43]FM_MakeSignedData [21:12:43]FM_MakeSignedData [21:12:43]SAM_PROTO_SignData [21:12:43]wFMCommunicate request_size=4 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 0D 01 02 [21:12:43]Write to MH i2c: E2 08 00 3A 5D 80 0D 01 02 00 00 00 00 10 [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 03 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 03 00 3A 5D 00 90 00 0B [21:12:43]RAPDU: 90 00 [21:12:43]wFMCommunicate OK [21:12:43]wFMCommunicate request_size=255 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 51 A1 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [21:12:43]Write to MH i2c: E2 02 01 3B 5D 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 51 A1 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 51 [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 03 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 03 00 3B 5D 00 90 00 0C [21:12:43]RAPDU: 90 00 [21:12:43]wFMCommunicate OK [21:12:43]wFMCommunicate request_size=35 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 20 02 00 35 04 06 00 38 62 32 AB 79 B4 [21:12:43]Write to MH i2c: E2 26 00 3C 5D 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 20 02 00 35 04 06 00 38 62 32 AB 79 B4 00 00 C2 [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 03 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 03 00 3C 5D 00 90 00 0D [21:12:43]RAPDU: 90 00 [21:12:43]wFMCommunicate OK [21:12:43]wFMCommunicate request_size=4 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 0D 03 02 [21:12:43]Write to MH i2c: E2 08 00 3D 5D 80 0D 03 02 00 00 00 00 15 [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 0B 00 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 0B 00 3D 5D 00 0A 68 E4 CA A2 8D 8C B7 90 00 A8 [21:12:43]RAPDU: 0A 68 E4 CA A2 8D 8C B7 90 00 [21:12:43]wFMCommunicate OK [21:12:43]SAM_PROTO_SignData done [21:12:43]FM_MakeSignedData done [21:12:43]CreateOFDProtocolMessage [21:12:43]wFMCommunicate request_size=4 [21:12:43]MH_SAM_APDU [21:12:43]CAPDU: 80 11 00 00 [21:12:43]Write to MH i2c: E2 08 00 3E 5D 80 11 00 00 00 00 00 00 15 [21:12:43]Write i2c OK [21:12:43]MH_I2C_Read... [21:12:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:43]Read from MH i2c: E2 [21:12:43]MH_I2C_Read... [21:12:43]Read from MH i2c: E2 17 00 [21:12:43]MH_I2C_Read... [21:12:44]Read from MH i2c: E2 17 00 3E 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 70 [21:12:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:12:44]wFMCommunicate OK [21:12:44]CreateOFDProtocolMessage done [21:12:44]OFDSenderStorePacket 139502 [21:12:44]StoreOFDPacket docnum=139502 [21:12:44]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 E0 BB 20 01 A8 F5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 51 A1 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 20 02 00 35 04 06 00 38 62 32 AB 79 B4 0A 68 E4 CA A2 8D 8C B7 [21:12:44]CheckFolder [21:12:44]dirname=/storage/ofd_packets [21:12:44]CheckFolder done [21:12:44]ProducePacketName [21:12:44]name=ofd_packets/00139502 [21:12:44]NVStorageSaveData ofd_packets/00139502 [21:12:44]File name is /storage/ofd_packets/00139502 [21:12:44]Write 326 bytes [21:12:44]NVStorageSaveData done [21:12:44]OFDSenderStorePacket done [21:12:44]KKMCreateOFDPacket done [21:12:44]NVStorageSaveData kkm_last_timestamp [21:12:44]File name is /storage/kkm_last_timestamp [21:12:44]OFD Sender: Processing packet 139502 [packets to send 34, broken 33] [21:12:44]ProducePacketName [21:12:44]name=ofd_packets/00139502 [21:12:44]OFD Sender: To server: pG, [21:12:44]CommunicateWithHost lk.salyk.kg:30040 [21:12:44]ConnectInit lk.salyk.kg [21:12:44]Write 4 bytes [21:12:44]NVStorageSaveData done [21:12:44]ExternCall_PrintAddStr [21:12:44]wPrintStart [21:12:44]Write to MH i2c: 01 00 00 3F 5D 9C [21:12:44]Write i2c OK [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: 01 [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: 01 07 00 [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: 01 07 00 3F 5D 00 00 00 00 00 FF 0F B1 [21:12:44]RasterBufferAndPrint [21:12:44]line Счет N : (3)335379 [21:12:44]line ИНН: 02508201610067 [21:12:44]line Контрольно-Кассовый Чек [21:12:44]line ПРОДАЖА [21:12:44]line Товар: 4700000310043 [21:12:44]line Вода Жалалабат 27 1л [21:12:44]line 1.000 * 79.00 [21:12:44]line = 79.00 [21:12:44]line НДС 12% НСП 1% [21:12:44]line > о реализуемом товаре [21:12:44]line ИТОГО: 79.00 [21:12:44]line НСП 1% : 0.70 [21:12:44]line НДС 12% : 8.39 [21:12:44]line Наличными: 79.00 [21:12:44]line Безнал.: 0.00 [21:12:44]line Место: АЗС № 101 "Партнер Нефть" [21:12:44]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:12:44]line СНО: Общий режим [21:12:44]line Чек 186 30.10.2024 21:12 [21:12:44]line Смена: 556 ФФД: 1.0 [21:12:44]line ЗНМ: 0300000081 [21:12:44]line РНМ: 0000000000091631 [21:12:44]line Версия ККМ: 001 [21:12:44]line ФМ: 0000000000874669 [21:12:44]line ФД: 139502 [21:12:44]line ФПД: 61994408049076 [21:12:44]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T211249&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139502&fm=61994408049076&tin=02508201610067®Number=0000000000091631&sum=7900 [21:12:44]line 0 [21:12:44]Connected sock=11 [21:12:44]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 E0 BB 20 01 A8 F5 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 34 37 30 30 30 30 30 33 31 30 30 34 33 06 04 22 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 96 D0 B0 D0 BB D0 B0 D0 BB D0 B0 D0 B1 D0 B0 D1 82 20 32 37 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 DC 1E 00 00 00 00 13 04 06 00 DC 1E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 1E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 46 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 47 03 00 00 00 00 07 04 06 00 DC 1E 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 51 A1 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 20 02 00 35 04 06 00 38 62 32 AB 79 B4 0A 68 E4 CA A2 8D 8C B7 [21:12:44]written 0, free lines is 4095 [21:12:44]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 16 CF 47 00 47 1A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EE 20 02 00 F4 03 04 00 00 4D 22 67 B6 04 01 00 00 5B 03 D1 69 95 8C 0C 32 [21:12:44]CommunicateWithHost err = 0 [21:12:44]CheckOFDResponse [21:12:44]1017 (14) - 77093643461234 [21:12:44]1041 (16) - 0000000000874669 [21:12:44]1040 (4) - 139502 [21:12:44]1012 (4) - 30.10.2024 15:13 [21:12:44]1206 (1) - 0 [21:12:44]OFD Sender: Remove packet 139502 [21:12:44]ProducePacketName [21:12:44]name=ofd_packets/00139502 [21:12:44]NVStorageDeleteData [21:12:44]Write to MH i2c: 01 00 00 67 5D C4 [21:12:44]Write i2c OK [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: 01 [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: 01 07 00 [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: 01 07 00 67 5D 00 00 00 00 00 0D 0D E5 [21:12:44]RasterBufferAndPrint [21:12:44]line [21:12:44]line [21:12:44]line [21:12:44]line [21:12:44]line [21:12:44]written 0, free lines is 3350 [21:12:44]MH_Cut [21:12:44]Write to MH i2c: D1 01 00 6E 5D 01 9D [21:12:44]Write i2c OK [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: D1 [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: D1 01 00 [21:12:44]MH_I2C_Read... [21:12:44]Read from MH i2c: D1 01 00 6E 5D 00 9C [21:12:44]Write to MH i2c: 01 00 00 6F 5D CC [21:12:44]Write i2c OK [21:12:44]MH_I2C_Read... [21:12:45]OFD Sender: No OFD packet to send [21:12:45]*** Cut start [21:12:45]*** Partial cut [21:12:45]*** CUTSNS_PIN = 1 [21:12:45]*** CUTSNS_PIN = 0 [21:12:45]*** Brake cut motor [21:12:46]Read from MH i2c: 01 [21:12:46]MH_I2C_Read... [21:12:46]*** Stop cut motor [21:12:46]*** Cut end [21:12:46]Read from MH i2c: 01 07 00 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: 01 07 00 6F 5D 00 00 00 00 00 FF 0F E1 [21:12:46]process_action close_receipt done [21:12:46]requested_data is exist [21:12:46]produce_requested_data [21:12:46]requested_item fm.sn is exist - process it [21:12:46]wFMCommunicate request_size=4 [21:12:46]MH_SAM_APDU [21:12:46]CAPDU: 80 11 00 00 [21:12:46]Write to MH i2c: E2 08 00 70 5D 80 11 00 00 00 00 00 00 47 [21:12:46]Write i2c OK [21:12:46]MH_I2C_Read... [21:12:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:12:46]Read from MH i2c: E2 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: E2 17 00 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: E2 17 00 70 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A2 [21:12:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:12:46]wFMCommunicate OK [21:12:46]requested_item fd.num is exist - process it [21:12:46]SAM_PROTO_GetFieldsCounters [21:12:46]wFMCommunicate request_size=4 [21:12:46]MH_SAM_APDU [21:12:46]CAPDU: 80 13 00 00 [21:12:46]Write to MH i2c: E2 08 00 71 5D 80 13 00 00 00 00 00 00 4A [21:12:46]Write i2c OK [21:12:46]MH_I2C_Read... [21:12:46]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:12:46]Read from MH i2c: E2 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: E2 62 00 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: E2 62 00 71 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EE 20 02 00 0E 04 04 00 2C 02 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 DA [21:12:46]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EE 20 02 00 0E 04 04 00 2C 02 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 [21:12:46]wFMCommunicate OK [21:12:46]SAM_PROTO_GetFieldsCounters done [21:12:46]requested_item shift.num is exist - process it [21:12:46]requested_item shift.opened is exist - process it [21:12:46]req_shift_opened [21:12:46]FM_GetShiftState [21:12:46]SAM_PROTO_GetShiftState [21:12:46]wFMCommunicate request_size=4 [21:12:46]MH_SAM_APDU [21:12:46]CAPDU: 80 13 01 00 [21:12:46]Write to MH i2c: E2 08 00 72 5D 80 13 01 00 00 00 00 00 4C [21:12:46]Write i2c OK [21:12:46]MH_I2C_Read... [21:12:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:12:46]Read from MH i2c: E2 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: E2 0E 00 [21:12:46]MH_I2C_Read... [21:12:46]Read from MH i2c: E2 0E 00 72 5D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DC [21:12:46]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:12:46]wFMCommunicate OK [21:12:46]SAM_PROTO_GetShiftState done [21:12:46]FM_GetShiftState done [21:12:46]req_shift_opened done [21:12:46]requested_item shift.open_date is exist - process it [21:12:46]req_shift_open_date [21:12:46]req_shift_open_date done [21:12:46]produce_requested_data done [21:12:46]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139502,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [21:12:46]process_action_free close_receipt [21:12:46]json_value_free [21:12:46]json_value_free done [21:12:46]process_json_proto returns [21:12:46]Send response to host [21:12:46]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139502,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [21:12:46]free response buf [21:12:46]execute_script done [21:12:46]execute_script returns [21:12:46]free content buf [21:12:46]Sock 9.Close socket [21:12:46]Sock 9.Thread stoped [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:05]OFD Sender: No OFD packet to send [21:14:10]OFD Sender: No OFD packet to send [21:14:15]OFD Sender: No OFD packet to send [21:14:20]OFD Sender: No OFD packet to send [21:14:25]OFD Sender: No OFD packet to send [21:14:30]OFD Sender: No OFD packet to send [21:14:35]OFD Sender: No OFD packet to send [21:14:40]OFD Sender: No OFD packet to send [21:14:45]OFD Sender: No OFD packet to send [21:14:50]OFD Sender: No OFD packet to send [21:14:55]OFD Sender: No OFD packet to send [21:15:00]OFD Sender: No OFD packet to send [21:15:05]OFD Sender: No OFD packet to send [21:15:10]OFD Sender: No OFD packet to send [21:15:15]OFD Sender: No OFD packet to send [21:15:20]OFD Sender: No OFD packet to send [21:15:25]OFD Sender: No OFD packet to send [21:15:30]OFD Sender: No OFD packet to send [21:15:35]OFD Sender: No OFD packet to send [21:15:40]OFD Sender: No OFD packet to send [21:15:45]OFD Sender: No OFD packet to send [21:15:50]OFD Sender: No OFD packet to send [21:15:55]OFD Sender: No OFD packet to send [21:16:00]OFD Sender: No OFD packet to send [21:16:05]OFD Sender: No OFD packet to send [21:16:10]OFD Sender: No OFD packet to send [21:16:15]OFD Sender: No OFD packet to send [21:16:20]OFD Sender: No OFD packet to send [21:16:25]OFD Sender: No OFD packet to send [21:16:30]OFD Sender: No OFD packet to send [21:16:35]OFD Sender: No OFD packet to send [21:16:40]OFD Sender: No OFD packet to send [21:16:45]OFD Sender: No OFD packet to send [21:16:50]OFD Sender: No OFD packet to send [21:16:55]OFD Sender: No OFD packet to send [21:17:00]OFD Sender: No OFD packet to send [21:17:05]OFD Sender: No OFD packet to send [21:17:10]OFD Sender: No OFD packet to send [21:17:15]OFD Sender: No OFD packet to send [21:17:20]OFD Sender: No OFD packet to send [21:17:25]OFD Sender: No OFD packet to send [21:17:30]OFD Sender: No OFD packet to send [21:17:35]OFD Sender: No OFD packet to send [21:17:40]OFD Sender: No OFD packet to send [21:17:45]OFD Sender: No OFD packet to send [21:17:50]OFD Sender: No OFD packet to send [21:17:55]OFD Sender: No OFD packet to send [21:18:00]OFD Sender: No OFD packet to send [21:18:05]OFD Sender: No OFD packet to send [21:18:10]OFD Sender: No OFD packet to send [21:18:15]OFD Sender: No OFD packet to send [21:18:20]OFD Sender: No OFD packet to send [21:18:25]OFD Sender: No OFD packet to send [21:18:30]OFD Sender: No OFD packet to send [21:18:35]OFD Sender: No OFD packet to send [21:18:40]OFD Sender: No OFD packet to send [21:18:45]OFD Sender: No OFD packet to send [21:18:50]OFD Sender: No OFD packet to send [21:18:55]OFD Sender: No OFD packet to send [21:19:00]OFD Sender: No OFD packet to send [21:19:05]OFD Sender: No OFD packet to send [21:19:10]OFD Sender: No OFD packet to send [21:19:15]OFD Sender: No OFD packet to send [21:19:20]OFD Sender: No OFD packet to send [21:19:25]OFD Sender: No OFD packet to send [21:19:30]OFD Sender: No OFD packet to send [21:19:35]OFD Sender: No OFD packet to send [21:19:40]OFD Sender: No OFD packet to send [21:19:45]OFD Sender: No OFD packet to send [21:19:50]OFD Sender: No OFD packet to send [21:19:55]OFD Sender: No OFD packet to send [21:20:00]OFD Sender: No OFD packet to send [21:20:05]OFD Sender: No OFD packet to send [21:20:10]OFD Sender: No OFD packet to send [21:20:15]OFD Sender: No OFD packet to send [21:20:20]OFD Sender: No OFD packet to send [21:20:25]OFD Sender: No OFD packet to send [21:20:30]OFD Sender: No OFD packet to send [21:20:35]OFD Sender: No OFD packet to send [21:20:40]OFD Sender: No OFD packet to send [21:20:45]OFD Sender: No OFD packet to send [21:20:50]OFD Sender: No OFD packet to send [21:20:55]OFD Sender: No OFD packet to send [21:21:00]OFD Sender: No OFD packet to send [21:21:05]OFD Sender: No OFD packet to send [21:21:10]OFD Sender: No OFD packet to send [21:21:15]OFD Sender: No OFD packet to send [21:21:20]OFD Sender: No OFD packet to send [21:21:25]OFD Sender: No OFD packet to send [21:21:30]OFD Sender: No OFD packet to send [21:21:35]OFD Sender: No OFD packet to send [21:21:40]OFD Sender: No OFD packet to send [21:21:45]OFD Sender: No OFD packet to send [21:21:50]OFD Sender: No OFD packet to send [21:21:55]OFD Sender: No OFD packet to send [21:22:00]OFD Sender: No OFD packet to send [21:22:05]OFD Sender: No OFD packet to send [21:22:10]OFD Sender: No OFD packet to send [21:22:15]OFD Sender: No OFD packet to send [21:22:20]OFD Sender: No OFD packet to send [21:22:25]OFD Sender: No OFD packet to send [21:22:30]OFD Sender: No OFD packet to send [21:22:35]OFD Sender: No OFD packet to send [21:22:40]OFD Sender: No OFD packet to send [21:22:45]OFD Sender: No OFD packet to send [21:22:50]OFD Sender: No OFD packet to send [21:22:55]OFD Sender: No OFD packet to send [21:23:00]OFD Sender: No OFD packet to send [21:23:05]OFD Sender: No OFD packet to send [21:23:10]OFD Sender: No OFD packet to send [21:23:15]OFD Sender: No OFD packet to send [21:23:20]OFD Sender: No OFD packet to send [21:23:25]OFD Sender: No OFD packet to send [21:23:30]OFD Sender: No OFD packet to send [21:23:35]OFD Sender: No OFD packet to send [21:23:40]OFD Sender: No OFD packet to send [21:23:45]OFD Sender: No OFD packet to send [21:23:50]OFD Sender: No OFD packet to send [21:23:55]OFD Sender: No OFD packet to send [21:24:00]OFD Sender: No OFD packet to send [21:24:05]OFD Sender: No OFD packet to send [21:24:10]OFD Sender: No OFD packet to send [21:24:15]OFD Sender: No OFD packet to send [21:24:20]OFD Sender: No OFD packet to send [21:24:25]OFD Sender: No OFD packet to send [21:24:30]OFD Sender: No OFD packet to send [21:24:35]OFD Sender: No OFD packet to send [21:24:40]OFD Sender: No OFD packet to send [21:24:45]OFD Sender: No OFD packet to send [21:24:50]OFD Sender: No OFD packet to send [21:24:55]OFD Sender: No OFD packet to send [21:25:00]OFD Sender: No OFD packet to send [21:25:05]OFD Sender: No OFD packet to send [21:25:10]OFD Sender: No OFD packet to send [21:25:12]accept exits with 8 [21:25:12]New connection [21:25:12]New thread 3067284836 created [21:25:12]Thread 3067141476 joined [21:25:12]Waiting for new connection... [21:25:12] Sock 8.Parse request [21:25:12]Sock 8.Check first char [21:25:12]Sock 8.First char is OK [21:25:12]request: POST /json_proto HTTP/1.0 [21:25:12]Method: POST [21:25:12]URL: /json_proto [21:25:12]Method is POST - this is cgi request [21:25:12]url: /json_proto [21:25:12]query_string will be loaded in cgi processing [21:25:12]execute_cgi json_proto POST (null) [21:25:12]execute_cgi path=json_proto method=POST [21:25:12]POST find Content-Length [21:25:12]Host: 172.17.50.196:8080 [21:25:12]Content-Length: 690 [21:25:12]Content-Type: application/json [21:25:12] [21:25:12]POST finish read [21:25:12]Found Content-Length = 690 [21:25:12]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335380", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:12]execute_script... [21:25: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 : (3)335380", "tax_sys" : 0, "items" : [ { "code": "4630007400990", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D \u0412\u0435\u043B\u0438\u043A\u0430\u043D 100\u0433\u0440", "price" : 120.00, "quantity" : 1.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 120.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:25:12]POST & json_proto [21:25:12]process_json_proto [21:25:12]json parsed OK: [21:25:12]protocol is kg_v1.0 [21:25:12]action value=close_receipt [21:25:12]process_action close_receipt [21:25:12]cmd_close_receipt [21:25:12]MH_GetDate [21:25:12]Write to MH i2c: F0 00 00 73 5D BF [21:25:12]Write i2c OK [21:25:12]MH_I2C_Read... [21:25:12]Read from MH i2c: F0 [21:25:12]MH_I2C_Read... [21:25:12]Read from MH i2c: F0 09 00 [21:25:12]MH_I2C_Read... [21:25:12]Read from MH i2c: F0 09 00 73 5D 00 3F A4 22 67 72 0D 1C 67 36 [21:25:12]GetLastDocTimeStamp 1730322769 [21:25:12]current date 1730323519 [21:25:12]FM_GetShiftState [21:25:12]SAM_PROTO_GetShiftState [21:25:12]wFMCommunicate request_size=4 [21:25:12]MH_SAM_APDU [21:25:12]CAPDU: 80 13 01 00 [21:25:12]Write to MH i2c: E2 08 00 74 5D 80 13 01 00 00 00 00 00 4E [21:25:12]Write i2c OK [21:25:12]MH_I2C_Read... [21:25:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:25:12]Read from MH i2c: E2 [21:25:12]MH_I2C_Read... [21:25:12]Read from MH i2c: E2 0E 00 [21:25:12]MH_I2C_Read... [21:25:12]Read from MH i2c: E2 0E 00 74 5D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DE [21:25:12]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:25:12]wFMCommunicate OK [21:25:12]SAM_PROTO_GetShiftState done [21:25:12]FM_GetShiftState done [21:25:12]opened in 1730246278 [21:25:12]opened+sec_in_day 1730332678 [21:25:12]quantity*price = 12000 [21:25:12]sum+1 = 12001 [21:25:12]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 120.00 НСП 1% : 1.06 НДС 12% : 12.74 Наличными: 120.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 187 30.10.2024 21:25 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139503 ФПД: 64484824380264 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T212519&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139503&fm=64484824380264&tin=02508201610067®Number=0000000000091631&sum=12000 0 [21:25:13]StoreToDocumentArchive [21:25:13]shift 556 fd 139503 [21:25:13]save to /storage/0556/doc_00139503 [21:25:13]save last doc name /storage/0556/doc_00139503 to /storage/kkm_last_doc_name [21:25:13]save OK [21:25:13]Clear old archive folders... [21:25:13]ProcessDocumentItem done err = 0, tmpTLVsize=290 [21:25:13]tlvbuf is 011A9230 [21:25:13]SAM_PROTO_ClearQueue [21:25:13]wFMCommunicate request_size=4 [21:25:13]MH_SAM_APDU [21:25:13]CAPDU: 80 09 00 00 [21:25:13]Write to MH i2c: E2 08 00 81 5D 80 09 00 00 00 00 00 00 50 [21:25:13]Write i2c OK [21:25:13]MH_I2C_Read... [21:25:13]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:25:13]Read from MH i2c: E2 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 03 00 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 03 00 81 5D 00 90 00 52 [21:25:13]RAPDU: 90 00 [21:25:13]wFMCommunicate OK [21:25:13]SAM_PROTO_ClearQueue done [21:25:13]KKMCreateOFDPacket [21:25:13]OFDProtocolAddRootSTLVToBuf [21:25:13]FM_MakeSignedData [21:25:13]FM_MakeSignedData [21:25:13]SAM_PROTO_SignData [21:25:13]wFMCommunicate request_size=4 [21:25:13]MH_SAM_APDU [21:25:13]CAPDU: 80 0D 01 02 [21:25:13]Write to MH i2c: E2 08 00 82 5D 80 0D 01 02 00 00 00 00 58 [21:25:13]Write i2c OK [21:25:13]MH_I2C_Read... [21:25:13]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:25:13]Read from MH i2c: E2 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 03 00 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 03 00 82 5D 00 90 00 53 [21:25:13]RAPDU: 90 00 [21:25:13]wFMCommunicate OK [21:25:13]wFMCommunicate request_size=255 [21:25:13]MH_SAM_APDU [21:25:13]CAPDU: 80 0D 02 02 FA 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 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 3F A4 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 [21:25:13]Write to MH i2c: E2 02 01 83 5D 80 0D 02 02 FA 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 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 3F A4 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 E2 [21:25:13]Write i2c OK [21:25:13]MH_I2C_Read... [21:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:13]Read from MH i2c: E2 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 03 00 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 03 00 83 5D 00 90 00 54 [21:25:13]RAPDU: 90 00 [21:25:13]wFMCommunicate OK [21:25:13]wFMCommunicate request_size=49 [21:25:13]MH_SAM_APDU [21:25:13]CAPDU: 80 0D 02 02 2C 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 20 02 00 35 04 06 00 3A A6 0B 0C F3 68 [21:25:13]Write to MH i2c: E2 34 00 84 5D 80 0D 02 02 2C 00 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 20 02 00 35 04 06 00 3A A6 0B 0C F3 68 00 00 EE [21:25:13]Write i2c OK [21:25:13]MH_I2C_Read... [21:25:13]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:25:13]Read from MH i2c: E2 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 03 00 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 03 00 84 5D 00 90 00 55 [21:25:13]RAPDU: 90 00 [21:25:13]wFMCommunicate OK [21:25:13]wFMCommunicate request_size=4 [21:25:13]MH_SAM_APDU [21:25:13]CAPDU: 80 0D 03 02 [21:25:13]Write to MH i2c: E2 08 00 85 5D 80 0D 03 02 00 00 00 00 5D [21:25:13]Write i2c OK [21:25:13]MH_I2C_Read... [21:25:13]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:25:13]Read from MH i2c: E2 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 0B 00 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 0B 00 85 5D 00 26 2C BC 6D 3E D0 4A A5 90 00 D6 [21:25:13]RAPDU: 26 2C BC 6D 3E D0 4A A5 90 00 [21:25:13]wFMCommunicate OK [21:25:13]SAM_PROTO_SignData done [21:25:13]FM_MakeSignedData done [21:25:13]CreateOFDProtocolMessage [21:25:13]wFMCommunicate request_size=4 [21:25:13]MH_SAM_APDU [21:25:13]CAPDU: 80 11 00 00 [21:25:13]Write to MH i2c: E2 08 00 86 5D 80 11 00 00 00 00 00 00 5D [21:25:13]Write i2c OK [21:25:13]MH_I2C_Read... [21:25:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:13]Read from MH i2c: E2 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 17 00 [21:25:13]MH_I2C_Read... [21:25:13]Read from MH i2c: E2 17 00 86 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B8 [21:25:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:25:14]wFMCommunicate OK [21:25:14]CreateOFDProtocolMessage done [21:25:14]OFDSenderStorePacket 139503 [21:25:14]StoreOFDPacket docnum=139503 [21:25:14]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 26 0A 2E 01 EC BA 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 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 3F A4 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 20 02 00 35 04 06 00 3A A6 0B 0C F3 68 26 2C BC 6D 3E D0 4A A5 [21:25:14]CheckFolder [21:25:14]dirname=/storage/ofd_packets [21:25:14]CheckFolder done [21:25:14]ProducePacketName [21:25:14]name=ofd_packets/00139503 [21:25:14]NVStorageSaveData ofd_packets/00139503 [21:25:14]File name is /storage/ofd_packets/00139503 [21:25:14]Write 340 bytes [21:25:14]NVStorageSaveData done [21:25:14]OFDSenderStorePacket done [21:25:14]KKMCreateOFDPacket done [21:25:14]NVStorageSaveData kkm_last_timestamp [21:25:14]File name is /storage/kkm_last_timestamp [21:25:14]Write 4 bytes [21:25:14]NVStorageSaveData done [21:25:14]ExternCall_PrintAddStr [21:25:14]wPrintStart [21:25:14]Write to MH i2c: 01 00 00 87 5D E4 [21:25:14]Write i2c OK [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: 01 [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: 01 07 00 [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: 01 07 00 87 5D 00 00 00 00 00 FF 0F F9 [21:25:14]RasterBufferAndPrint [21:25:14]line Счет N : (3)335380 [21:25:14]line ИНН: 02508201610067 [21:25:14]line Контрольно-Кассовый Чек [21:25:14]line ПРОДАЖА [21:25:14]line Товар: 4630007400990 [21:25:14]line Семечки ДЖИНН Великан 100гр [21:25:14]line 1.000 * 120.00 [21:25:14]line = 120.00 [21:25:14]line НДС 12% НСП 1% [21:25:14]line > о реализуемом товаре [21:25:14]line ИТОГО: 120.00 [21:25:14]line НСП 1% : 1.06 [21:25:14]line НДС 12% : 12.74 [21:25:14]line Наличными: 120.00 [21:25:14]line Безнал.: 0.00 [21:25:14]line Место: АЗС № 101 "Партнер Нефть" [21:25:14]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:25:14]line СНО: Общий режим [21:25:14]line Чек 187 30.10.2024 21:25 [21:25:14]line Смена: 556 ФФД: 1.0 [21:25:14]line ЗНМ: 0300000081 [21:25:14]line РНМ: 0000000000091631 [21:25:14]line Версия ККМ: 001 [21:25:14]line ФМ: 0000000000874669 [21:25:14]line ФД: 139503 [21:25:14]line ФПД: 64484824380264 [21:25:14]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T212519&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139503&fm=64484824380264&tin=02508201610067®Number=0000000000091631&sum=12000 [21:25:14]OFD Sender: Processing packet 139503 [packets to send 34, broken 33] [21:25:14]ProducePacketName [21:25:14]name=ofd_packets/00139503 [21:25:14]OFD Sender: To server: pG, [21:25:14]CommunicateWithHost lk.salyk.kg:30040 [21:25:14]ConnectInit lk.salyk.kg [21:25:14]line 0 [21:25:14]written 0, free lines is 4095 [21:25:14]Connected sock=10 [21:25:14]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 36 01 00 00 26 0A 2E 01 EC BA 5A 03 01 00 03 00 22 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 39 30 06 04 30 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 D0 92 D0 B5 D0 BB D0 B8 D0 BA D0 B0 D0 BD 20 31 30 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E0 2E 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 6A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 FA 04 00 00 00 00 07 04 06 00 E0 2E 00 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 3F A4 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 EF 20 02 00 35 04 06 00 3A A6 0B 0C F3 68 26 2C BC 6D 3E D0 4A A5 [21:25:14]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0B C6 47 00 03 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 38 37 34 36 36 39 10 04 04 00 EF 20 02 00 F4 03 04 00 EE 4F 22 67 B6 04 01 00 00 74 85 6A 51 B6 AC E5 F0 [21:25:14]CommunicateWithHost err = 0 [21:25:14]CheckOFDResponse [21:25:14]1017 (14) - 77093643461234 [21:25:14]1041 (16) - 0000000000874669 [21:25:14]1040 (4) - 139503 [21:25:14]1012 (4) - 30.10.2024 15:25 [21:25:14]1206 (1) - 0 [21:25:14]OFD Sender: Remove packet 139503 [21:25:14]ProducePacketName [21:25:14]name=ofd_packets/00139503 [21:25:14]NVStorageDeleteData [21:25:14]Write to MH i2c: 01 00 00 B0 5D 0D [21:25:14]Write i2c OK [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: 01 [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: 01 07 00 [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: 01 07 00 B0 5D 00 00 00 00 00 FC 0C 1C [21:25:14]RasterBufferAndPrint [21:25:14]line [21:25:14]line [21:25:14]line [21:25:14]line [21:25:14]line [21:25:14]written 0, free lines is 3330 [21:25:14]MH_Cut [21:25:14]Write to MH i2c: D1 01 00 B7 5D 01 E6 [21:25:14]Write i2c OK [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: D1 [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: D1 01 00 [21:25:14]MH_I2C_Read... [21:25:14]Read from MH i2c: D1 01 00 B7 5D 00 E5 [21:25:14]Write to MH i2c: 01 00 00 B8 5D 15 [21:25:14]Write i2c OK [21:25:14]MH_I2C_Read... [21:25:15]OFD Sender: No OFD packet to send [21:25:15]*** Cut start [21:25:15]*** Partial cut [21:25:15]*** CUTSNS_PIN = 1 [21:25:15]*** CUTSNS_PIN = 0 [21:25:15]*** Brake cut motor [21:25:16]Read from MH i2c: 01 [21:25:16]MH_I2C_Read... [21:25:16]*** Stop cut motor [21:25:16]*** Cut end [21:25:16]Read from MH i2c: 01 07 00 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: 01 07 00 B8 5D 00 00 00 00 00 FF 0F 2A [21:25:16]process_action close_receipt done [21:25:16]requested_data is exist [21:25:16]produce_requested_data [21:25:16]requested_item fm.sn is exist - process it [21:25:16]wFMCommunicate request_size=4 [21:25:16]MH_SAM_APDU [21:25:16]CAPDU: 80 11 00 00 [21:25:16]Write to MH i2c: E2 08 00 B9 5D 80 11 00 00 00 00 00 00 90 [21:25:16]Write i2c OK [21:25:16]MH_I2C_Read... [21:25:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:25:16]Read from MH i2c: E2 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: E2 17 00 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: E2 17 00 B9 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EB [21:25:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:25:16]wFMCommunicate OK [21:25:16]requested_item fd.num is exist - process it [21:25:16]SAM_PROTO_GetFieldsCounters [21:25:16]wFMCommunicate request_size=4 [21:25:16]MH_SAM_APDU [21:25:16]CAPDU: 80 13 00 00 [21:25:16]Write to MH i2c: E2 08 00 BA 5D 80 13 00 00 00 00 00 00 93 [21:25:16]Write i2c OK [21:25:16]MH_I2C_Read... [21:25:16]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:25:16]Read from MH i2c: E2 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: E2 62 00 [21:25:16]MH_I2C_Read... [21:25:16]Read from MH i2c: E2 62 00 BA 5D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EF 20 02 00 0E 04 04 00 2C 02 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 27 [21:25:16]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 EF 20 02 00 0E 04 04 00 2C 02 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 [21:25:16]wFMCommunicate OK [21:25:16]SAM_PROTO_GetFieldsCounters done [21:25:16]requested_item shift.num is exist - process it [21:25:16]requested_item shift.opened is exist - process it [21:25:16]req_shift_opened [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 BB 5D 80 13 01 00 00 00 00 00 95 [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 BB 5D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 25 [21:25:16]RAPDU: 09 00 01 86 76 21 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]req_shift_opened done [21:25:16]requested_item shift.open_date is exist - process it [21:25:16]req_shift_open_date [21:25:16]req_shift_open_date done [21:25:16]produce_requested_data done [21:25:16]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139503,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [21:25:16]process_action_free close_receipt [21:25:16]json_value_free [21:25:16]json_value_free done [21:25:16]process_json_proto returns [21:25:16]Send response to host [21:25:16]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139503,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [21:25:16]free response buf [21:25:16]execute_script done [21:25:16]execute_script returns [21:25:16]free content buf [21:25:16]Sock 8.Close socket [21:25:16]Sock 8.Thread stoped [21:25:20]OFD Sender: No OFD packet to send [21:25:25]OFD Sender: No OFD packet to send [21:25:30]OFD Sender: No OFD packet to send [21:25:35]OFD Sender: No OFD packet to send [21:25:40]OFD Sender: No OFD packet to send [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:25]OFD Sender: No OFD packet to send [21:27:30]OFD Sender: No OFD packet to send [21:27:35]OFD Sender: No OFD packet to send [21:27:40]OFD Sender: No OFD packet to send [21:27:45]OFD Sender: No OFD packet to send [21:27:50]OFD Sender: No OFD packet to send [21:27:55]OFD Sender: No OFD packet to send [21:28:00]OFD Sender: No OFD packet to send [21:28:05]OFD Sender: No OFD packet to send [21:28:10]OFD Sender: No OFD packet to send [21:28:15]OFD Sender: No OFD packet to send [21:28:20]OFD Sender: No OFD packet to send [21:28:25]OFD Sender: No OFD packet to send [21:28:30]OFD Sender: No OFD packet to send [21:28:35]OFD Sender: No OFD packet to send [21:28:40]OFD Sender: No OFD packet to send [21:28:45]OFD Sender: No OFD packet to send [21:28:50]OFD Sender: No OFD packet to send [21:28:55]OFD Sender: No OFD packet to send [21:29:00]OFD Sender: No OFD packet to send [21:29:05]OFD Sender: No OFD packet to send [21:29:10]OFD Sender: No OFD packet to send [21:29:15]OFD Sender: No OFD packet to send [21:29:20]OFD Sender: No OFD packet to send [21:29:25]OFD Sender: No OFD packet to send [21:29:30]OFD Sender: No OFD packet to send [21:29:35]OFD Sender: No OFD packet to send [21:29:40]OFD Sender: No OFD packet to send [21:29:45]OFD Sender: No OFD packet to send [21:29:50]OFD Sender: No OFD packet to send [21:29:55]OFD Sender: No OFD packet to send [21:30:00]OFD Sender: No OFD packet to send [21:30:05]OFD Sender: No OFD packet to send [21:30:10]OFD Sender: No OFD packet to send [21:30:15]OFD Sender: No OFD packet to send [21:30:20]OFD Sender: No OFD packet to send [21:30:25]OFD Sender: No OFD packet to send [21:30:30]OFD Sender: No OFD packet to send [21:30:35]OFD Sender: No OFD packet to send [21:30:40]OFD Sender: No OFD packet to send [21:30:45]OFD Sender: No OFD packet to send [21:30:50]OFD Sender: No OFD packet to send [21:30:55]OFD Sender: No OFD packet to send [21:31:00]OFD Sender: No OFD packet to send [21:31:05]OFD Sender: No OFD packet to send [21:31:10]OFD Sender: No OFD packet to send [21:31:15]OFD Sender: No OFD packet to send [21:31:20]OFD Sender: No OFD packet to send [21:31:25]OFD Sender: No OFD packet to send [21:31:30]OFD Sender: No OFD packet to send [21:31:35]OFD Sender: No OFD packet to send [21:31:40]OFD Sender: No OFD packet to send [21:31:45]OFD Sender: No OFD packet to send [21:31:50]OFD Sender: No OFD packet to send [21:31:55]OFD Sender: No OFD packet to send [21:32:00]OFD Sender: No OFD packet to send [21:32:05]OFD Sender: No OFD packet to send [21:32:10]OFD Sender: No OFD packet to send [21:32:15]OFD Sender: No OFD packet to send [21:32:20]OFD Sender: No OFD packet to send [21:32:25]OFD Sender: No OFD packet to send [21:32:30]OFD Sender: No OFD packet to send [21:32:35]OFD Sender: No OFD packet to send [21:32:40]OFD Sender: No OFD packet to send [21:32:45]OFD Sender: No OFD packet to send [21:32:50]OFD Sender: No OFD packet to send [21:32:55]OFD Sender: No OFD packet to send [21:33:00]OFD Sender: No OFD packet to send [21:33:05]OFD Sender: No OFD packet to send [21:33:10]OFD Sender: No OFD packet to send [21:33:15]OFD Sender: No OFD packet to send [21:33:20]OFD Sender: No OFD packet to send [21:33:25]OFD Sender: No OFD packet to send [21:33:30]OFD Sender: No OFD packet to send [21:33:35]OFD Sender: No OFD packet to send [21:33:40]OFD Sender: No OFD packet to send [21:33:45]OFD Sender: No OFD packet to send [21:33:50]OFD Sender: No OFD packet to send [21:33:55]OFD Sender: No OFD packet to send [21:34:00]OFD Sender: No OFD packet to send [21:34:05]OFD Sender: No OFD packet to send [21:34:10]OFD Sender: No OFD packet to send [21:34:15]OFD Sender: No OFD packet to send [21:34:20]OFD Sender: No OFD packet to send [21:34:25]OFD Sender: No OFD packet to send [21:34:30]OFD Sender: No OFD packet to send [21:34:35]OFD Sender: No OFD packet to send [21:34:40]OFD Sender: No OFD packet to send [21:34:45]OFD Sender: No OFD packet to send [21:34:50]OFD Sender: No OFD packet to send [21:34:55]OFD Sender: No OFD packet to send [21:35:00]OFD Sender: No OFD packet to send [21:35:05]OFD Sender: No OFD packet to send [21:35:10]OFD Sender: No OFD packet to send [21:35:15]OFD Sender: No OFD packet to send [21:35:20]OFD Sender: No OFD packet to send [21:35:25]OFD Sender: No OFD packet to send [21:35:30]OFD Sender: No OFD packet to send [21:35:35]OFD Sender: No OFD packet to send [21:35:40]OFD Sender: No OFD packet to send [21:35:45]OFD Sender: No OFD packet to send [21:35:50]OFD Sender: No OFD packet to send [21:35:55]OFD Sender: No OFD packet to send [21:36:00]OFD Sender: No OFD packet to send [21:36:05]OFD Sender: No OFD packet to send [21:36:10]OFD Sender: No OFD packet to send [21:36:15]OFD Sender: No OFD packet to send [21:36:20]OFD Sender: No OFD packet to send [21:36:25]OFD Sender: No OFD packet to send [21:36:30]OFD Sender: No OFD packet to send [21:36:35]OFD Sender: No OFD packet to send [21:36:40]OFD Sender: No OFD packet to send [21:36:45]OFD Sender: No OFD packet to send [21:36:50]OFD Sender: No OFD packet to send [21:36:55]OFD Sender: No OFD packet to send [21:37:00]OFD Sender: No OFD packet to send [21:37:05]OFD Sender: No OFD packet to send [21:37:10]OFD Sender: No OFD packet to send [21:37:15]OFD Sender: No OFD packet to send [21:37:20]OFD Sender: No OFD packet to send [21:37:25]OFD Sender: No OFD packet to send [21:37:30]OFD Sender: No OFD packet to send [21:37:35]OFD Sender: No OFD packet to send [21:37:40]OFD Sender: No OFD packet to send [21:37:45]OFD Sender: No OFD packet to send [21:37:50]OFD Sender: No OFD packet to send [21:37:55]OFD Sender: No OFD packet to send [21:38:00]OFD Sender: No OFD packet to send [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:20]OFD Sender: No OFD packet to send [21:38:25]OFD Sender: No OFD packet to send [21:38:30]OFD Sender: No OFD packet to send [21:38:35]OFD Sender: No OFD packet to send [21:38:40]OFD Sender: No OFD packet to send [21:38:45]OFD Sender: No OFD packet to send [21:38:50]OFD Sender: No OFD packet to send [21:38:55]OFD Sender: No OFD packet to send [21:39:00]OFD Sender: No OFD packet to send [21:39:05]OFD Sender: No OFD packet to send [21:39:10]OFD Sender: No OFD packet to send [21:39:15]OFD Sender: No OFD packet to send [21:39:20]OFD Sender: No OFD packet to send [21:39:25]OFD Sender: No OFD packet to send [21:39:30]OFD Sender: No OFD packet to send [21:39:35]OFD Sender: No OFD packet to send [21:39:40]OFD Sender: No OFD packet to send [21:39:45]OFD Sender: No OFD packet to send [21:39:50]OFD Sender: No OFD packet to send [21:39:55]OFD Sender: No OFD packet to send [21:40:00]OFD Sender: No OFD packet to send [21:40:05]OFD Sender: No OFD packet to send [21:40:10]OFD Sender: No OFD packet to send [21:40:15]OFD Sender: No OFD packet to send [21:40:20]OFD Sender: No OFD packet to send [21:40:25]OFD Sender: No OFD packet to send [21:40:30]OFD Sender: No OFD packet to send [21:40:35]OFD Sender: No OFD packet to send [21:40:40]OFD Sender: No OFD packet to send [21:40:45]OFD Sender: No OFD packet to send [21:40:50]OFD Sender: No OFD packet to send [21:40:55]OFD Sender: No OFD packet to send [21:41:00]OFD Sender: No OFD packet to send [21:41:05]OFD Sender: No OFD packet to send [21:41:10]OFD Sender: No OFD packet to send [21:41:15]OFD Sender: No OFD packet to send [21:41:20]OFD Sender: No OFD packet to send [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:51]OFD Sender: No OFD packet to send [21:41:56]OFD Sender: No OFD packet to send [21:42:01]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [21:44:01]OFD Sender: No OFD packet to send [21:44:06]OFD Sender: No OFD packet to send [21:44:11]OFD Sender: No OFD packet to send [21:44:16]OFD Sender: No OFD packet to send [21:44:21]OFD Sender: No OFD packet to send [21:44:26]OFD Sender: No OFD packet to send [21:44:31]OFD Sender: No OFD packet to send [21:44:36]OFD Sender: No OFD packet to send [21:44:41]OFD Sender: No OFD packet to send [21:44:46]OFD Sender: No OFD packet to send [21:44:51]OFD Sender: No OFD packet to send [21:44:56]OFD Sender: No OFD packet to send [21:45:01]OFD Sender: No OFD packet to send [21:45:06]OFD Sender: No OFD packet to send [21:45:11]OFD Sender: No OFD packet to send [21:45:16]OFD Sender: No OFD packet to send [21:45:21]OFD Sender: No OFD packet to send [21:45:26]OFD Sender: No OFD packet to send [21:45:31]OFD Sender: No OFD packet to send [21:45:36]OFD Sender: No OFD packet to send [21:45:41]OFD Sender: No OFD packet to send [21:45:46]OFD Sender: No OFD packet to send [21:45:51]OFD Sender: No OFD packet to send [21:45:56]OFD Sender: No OFD packet to send [21:46:01]OFD Sender: No OFD packet to send [21:46:06]OFD Sender: No OFD packet to send [21:46:11]OFD Sender: No OFD packet to send [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:56]OFD Sender: No OFD packet to send [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:36]OFD Sender: No OFD packet to send [21:50:41]OFD Sender: No OFD packet to send [21:50:46]OFD Sender: No OFD packet to send [21:50:51]OFD Sender: No OFD packet to send [21:50:56]OFD Sender: No OFD packet to send [21:51:01]OFD Sender: No OFD packet to send [21:51:06]OFD Sender: No OFD packet to send [21:51:11]OFD Sender: No OFD packet to send [21:51:16]OFD Sender: No OFD packet to send [21:51:21]OFD Sender: No OFD packet to send [21:51:26]OFD Sender: No OFD packet to send [21:51:31]OFD Sender: No OFD packet to send [21:51:36]OFD Sender: No OFD packet to send [21:51:41]OFD Sender: No OFD packet to send [21:51:46]OFD Sender: No OFD packet to send [21:51:51]OFD Sender: No OFD packet to send [21:51:56]OFD Sender: No OFD packet to send [21:52:01]OFD Sender: No OFD packet to send [21:52:06]OFD Sender: No OFD packet to send [21:52:11]OFD Sender: No OFD packet to send [21:52:16]OFD Sender: No OFD packet to send [21:52:21]OFD Sender: No OFD packet to send [21:52:26]OFD Sender: No OFD packet to send [21:52:31]OFD Sender: No OFD packet to send [21:52:36]OFD Sender: No OFD packet to send [21:52:41]OFD Sender: No OFD packet to send [21:52:46]OFD Sender: No OFD packet to send [21:52:51]OFD Sender: No OFD packet to send [21:52:56]OFD Sender: No OFD packet to send [21:53:01]OFD Sender: No OFD packet to send [21:53:06]OFD Sender: No OFD packet to send [21:53:11]OFD Sender: No OFD packet to send [21:53:16]OFD Sender: No OFD packet to send [21:53:21]OFD Sender: No OFD packet to send [21:53:26]OFD Sender: No OFD packet to send [21:53:31]OFD Sender: No OFD packet to send [21:53:36]OFD Sender: No OFD packet to send [21:53:41]accept exits with 9 [21:53:41]New connection [21:53:41]New thread 3067141476 created [21:53:41]Thread 3067284836 joined [21:53:41]Waiting for new connection... [21:53:41] Sock 9.Parse request [21:53:41]Sock 9.Check first char [21:53:41]Sock 9.First char is OK [21:53:41]request: POST /json_proto HTTP/1.0 [21:53:41]Method: POST [21:53:41]URL: /json_proto [21:53:41]Method is POST - this is cgi request [21:53:41]url: /json_proto [21:53:41]query_string will be loaded in cgi processing [21:53:41]execute_cgi json_proto POST (null) [21:53:41]execute_cgi path=json_proto method=POST [21:53:41]POST find Content-Length [21:53:41]Host: 172.17.50.196:8080 [21:53:41]Content-Length: 1011 [21:53:41]Content-Type: application/json [21:53:41] [21:53:41]POST finish read [21:53:41]Found Content-Length = 1011 [21:53:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335381", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:41]execute_script... [21:53: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 : (3)335381", "tax_sys" : 0, "items" : [ { "code": "4700003730039", "name": "\u0421\u043D\u0435\u043A \u0412\u043E\u0437\u0434 \u043F\u0448\u0435\u043D\u0438\u0446\u0430 \u0411\u0430\u0434\u044B\u0440\u0430\u043A \u0441\u043B\u0430\u0434\u043A\u0430\u044F 30\u0433\u0440", "price" : 20.00, "quantity" : 1.000, "sum" : 20.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 150.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:53:41]POST & json_proto [21:53:41]process_json_proto [21:53:41]json parsed OK: [21:53:41]protocol is kg_v1.0 [21:53:41]action value=close_receipt [21:53:41]process_action close_receipt [21:53:41]cmd_close_receipt [21:53:41]MH_GetDate [21:53:41]Write to MH i2c: F0 00 00 BC 5D 08 [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: F0 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: F0 09 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: F0 09 00 BC 5D 00 EC AA 22 67 72 0D 1C 67 32 [21:53:41]GetLastDocTimeStamp 1730323519 [21:53:41]current date 1730325228 [21:53:41]FM_GetShiftState [21:53:41]SAM_PROTO_GetShiftState [21:53:41]wFMCommunicate request_size=4 [21:53:41]MH_SAM_APDU [21:53:41]CAPDU: 80 13 01 00 [21:53:41]Write to MH i2c: E2 08 00 BD 5D 80 13 01 00 00 00 00 00 97 [21:53:41]Write i2c OK [21:53:41]MH_I2C_Read... [21:53:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:41]Read from MH i2c: E2 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 0E 00 [21:53:41]MH_I2C_Read... [21:53:41]Read from MH i2c: E2 0E 00 BD 5D 00 09 00 01 86 76 21 67 00 00 00 00 90 00 27 [21:53:41]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:53:41]wFMCommunicate OK [21:53:41]SAM_PROTO_GetShiftState done [21:53:41]FM_GetShiftState done [21:53:41]opened in 1730246278 [21:53:41]opened+sec_in_day 1730332678 [21:53:41]quantity*price = 2000 [21:53:41]sum+1 = 2001 [21:53:41]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 150.00 НСП 1% : 1.33 НДС 12% : 15.92 Наличными: 150.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 188 30.10.2024 21:53 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139504 ФПД: 64921412858038 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T215348&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139504&fm=64921412858038&tin=02508201610067®Number=0000000000091631&sum=15000 0 [21:53:42]StoreToDocumentArchive [21:53:42]shift 556 fd 139504 [21:53:42]save to /storage/0556/doc_00139504 [21:53:42]save last doc name /storage/0556/doc_00139504 to /storage/kkm_last_doc_name [21:53:42]save OK [21:53:42]Clear old archive folders... [21:53:42]ProcessDocumentItem done err = 0, tmpTLVsize=423 [21:53:42]tlvbuf is 0129C9A0 [21:53:42]SAM_PROTO_ClearQueue [21:53:42]wFMCommunicate request_size=4 [21:53:42]MH_SAM_APDU [21:53:42]CAPDU: 80 09 00 00 [21:53:42]Write to MH i2c: E2 08 00 CA 5D 80 09 00 00 00 00 00 00 99 [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:53:42]Read from MH i2c: E2 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: E2 03 00 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: E2 03 00 CA 5D 00 90 00 9B [21:53:42]RAPDU: 90 00 [21:53:42]wFMCommunicate OK [21:53:42]SAM_PROTO_ClearQueue done [21:53:42]KKMCreateOFDPacket [21:53:42]OFDProtocolAddRootSTLVToBuf [21:53:42]FM_MakeSignedData [21:53:42]FM_MakeSignedData [21:53:42]SAM_PROTO_SignData [21:53:42]wFMCommunicate request_size=4 [21:53:42]MH_SAM_APDU [21:53:42]CAPDU: 80 0D 01 02 [21:53:42]Write to MH i2c: E2 08 00 CB 5D 80 0D 01 02 00 00 00 00 A1 [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:53:42]Read from MH i2c: E2 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: E2 03 00 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: E2 03 00 CB 5D 00 90 00 9C [21:53:42]RAPDU: 90 00 [21:53:42]wFMCommunicate OK [21:53:42]wFMCommunicate request_size=255 [21:53:42]MH_SAM_APDU [21:53:42]CAPDU: 80 0D 02 02 FA 03 00 A7 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 [21:53:42]Write to MH i2c: E2 02 01 CC 5D 80 0D 02 02 FA 00 03 00 A7 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 00 79 [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:42]Read from MH i2c: E2 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: E2 03 00 [21:53:42]MH_I2C_Read... [21:53:42]Read from MH i2c: E2 03 00 CC 5D 00 90 00 9D [21:53:42]RAPDU: 90 00 [21:53:42]wFMCommunicate OK [21:53:42]wFMCommunicate request_size=182 [21:53:42]MH_SAM_APDU [21:53:42]CAPDU: 80 0D 02 02 B1 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 38 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 BC 00 00 00 F4 03 04 00 EC AA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 20 02 00 35 04 06 00 3B 0B B1 C0 70 B6 [21:53:42]Write to MH i2c: E2 B9 00 CD 5D 80 0D 02 02 B1 00 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 38 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 BC 00 00 00 F4 03 04 00 EC AA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 20 02 00 35 04 06 00 3B 0B B1 C0 70 B6 00 00 68 [21:53:42]Write i2c OK [21:53:42]MH_I2C_Read... [21:53:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:53:43]Read from MH i2c: E2 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 03 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 03 00 CD 5D 00 90 00 9E [21:53:43]RAPDU: 90 00 [21:53:43]wFMCommunicate OK [21:53:43]wFMCommunicate request_size=4 [21:53:43]MH_SAM_APDU [21:53:43]CAPDU: 80 0D 03 02 [21:53:43]Write to MH i2c: E2 08 00 CE 5D 80 0D 03 02 00 00 00 00 A6 [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:53:43]Read from MH i2c: E2 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 0B 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 0B 00 CE 5D 00 A8 77 78 A4 96 24 4C AC 90 00 94 [21:53:43]RAPDU: A8 77 78 A4 96 24 4C AC 90 00 [21:53:43]wFMCommunicate OK [21:53:43]SAM_PROTO_SignData done [21:53:43]FM_MakeSignedData done [21:53:43]CreateOFDProtocolMessage [21:53:43]wFMCommunicate request_size=4 [21:53:43]MH_SAM_APDU [21:53:43]CAPDU: 80 11 00 00 [21:53:43]Write to MH i2c: E2 08 00 CF 5D 80 11 00 00 00 00 00 00 A6 [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:43]Read from MH i2c: E2 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 17 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: E2 17 00 CF 5D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 01 [21:53:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:53:43]wFMCommunicate OK [21:53:43]CreateOFDProtocolMessage done [21:53:43]OFDSenderStorePacket 139504 [21:53:43]StoreOFDPacket docnum=139504 [21:53:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BB 01 00 00 84 FE B3 01 A6 44 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 38 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 BC 00 00 00 F4 03 04 00 EC AA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 20 02 00 35 04 06 00 3B 0B B1 C0 70 B6 A8 77 78 A4 96 24 4C AC [21:53:43]CheckFolder [21:53:43]dirname=/storage/ofd_packets [21:53:43]CheckFolder done [21:53:43]ProducePacketName [21:53:43]name=ofd_packets/00139504 [21:53:43]NVStorageSaveData ofd_packets/00139504 [21:53:43]File name is /storage/ofd_packets/00139504 [21:53:43]Write 473 bytes [21:53:43]NVStorageSaveData done [21:53:43]OFDSenderStorePacket done [21:53:43]KKMCreateOFDPacket done [21:53:43]NVStorageSaveData kkm_last_timestamp [21:53:43]File name is /storage/kkm_last_timestamp [21:53:43]Write 4 bytes [21:53:43]NVStorageSaveData done [21:53:43]ExternCall_PrintAddStr [21:53:43]wPrintStart [21:53:43]Write to MH i2c: 01 00 00 D0 5D 2D [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:43]OFD Sender: Processing packet 139504 [packets to send 34, broken 33] [21:53:43]Read from MH i2c: ProducePacketName [21:53:43]01 name=ofd_packets/00139504 [21:53:43] [21:53:43]MH_I2C_Read... [21:53:43]OFD Sender: To server: pG, [21:53:43]CommunicateWithHost lk.salyk.kg:30040 [21:53:43]Read from MH i2c: ConnectInit lk.salyk.kg [21:53:43]01 07 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: 01 07 00 D0 5D 00 00 00 00 00 FF 0F 42 [21:53:43]RasterBufferAndPrint [21:53:43]line Счет N : (3)335381 [21:53:43]line ИНН: 02508201610067 [21:53:43]line Контрольно-Кассовый Чек [21:53:43]line ПРОДАЖА [21:53:43]line Товар: 4700003730039 [21:53:43]line Снек Возд пшеница Бадырак сладкая 30гр [21:53:43]line 1.000 * 20.00 [21:53:43]line = 20.00 [21:53:43]line НДС 12% НСП 1% [21:53:43]line > о реализуемом товаре [21:53:43]line Товар: 2000036220012 [21:53:43]line Кофе Капучино XL(GABB TRADE) [21:53:43]line 1.000 * 130.00 [21:53:43]line = 130.00 [21:53:43]line НДС 12% НСП 1% [21:53:43]line > о реализуемом товаре [21:53:43]line ИТОГО: 150.00 [21:53:43]line НСП 1% : 1.33 [21:53:43]line НДС 12% : 15.92 [21:53:43]line Наличными: 150.00 [21:53:43]line Безнал.: 0.00 [21:53:43]line Место: АЗС № 101 "Партнер Нефть" [21:53:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:53:43]line СНО: Общий режим [21:53:43]line Чек 188 30.10.2024 21:53 [21:53:43]line Смена: 556 ФФД: 1.0 [21:53:43]line ЗНМ: 0300000081 [21:53:43]line РНМ: 0000000000091631 [21:53:43]line Версия ККМ: 001 [21:53:43]line ФМ: 0000000000874669 [21:53:43]line ФД: 139504 [21:53:43]line ФПД: 64921412858038 [21:53:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T215348&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139504&fm=64921412858038&tin=02508201610067®Number=0000000000091631&sum=15000 [21:53:43]line 0 [21:53:43]written 0, free lines is 4095 [21:53:43]Connected sock=11 [21:53:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BB 01 00 00 84 FE B3 01 A6 44 5A 03 01 00 03 00 A7 01 1E 04 01 00 01 23 04 89 00 8A 04 0D 00 34 37 30 30 30 30 33 37 33 30 30 33 39 06 04 45 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 92 D0 BE D0 B7 D0 B4 20 D0 BF D1 88 D0 B5 D0 BD D0 B8 D1 86 D0 B0 20 D0 91 D0 B0 D0 B4 D1 8B D1 80 D0 B0 D0 BA 20 D1 81 D0 BB D0 B0 D0 B4 D0 BA D0 B0 D1 8F 20 33 30 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 07 00 00 00 00 13 04 06 00 D0 07 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 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 38 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 BC 00 00 00 F4 03 04 00 EC AA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 20 02 00 35 04 06 00 3B 0B B1 C0 70 B6 A8 77 78 A4 96 24 4C AC [21:53:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FF 45 47 00 5E 94 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F0 20 02 00 F4 03 04 00 9C 56 22 67 B6 04 01 00 00 9F F5 29 C9 18 60 EA AF [21:53:43]CommunicateWithHost err = 0 [21:53:43]CheckOFDResponse [21:53:43]1017 (14) - 77093643461234 [21:53:43]1041 (16) - 0000000000874669 [21:53:43]1040 (4) - 139504 [21:53:43]1012 (4) - 30.10.2024 15:54 [21:53:43]1206 (1) - 0 [21:53:43]OFD Sender: Remove packet 139504 [21:53:43]ProducePacketName [21:53:43]name=ofd_packets/00139504 [21:53:43]NVStorageDeleteData [21:53:43]Write to MH i2c: 01 00 00 00 5E 5E [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: 01 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: 01 07 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: 01 07 00 00 5E 00 00 00 00 00 C4 0C 35 [21:53:43]RasterBufferAndPrint [21:53:43]line [21:53:43]line [21:53:43]line [21:53:43]line [21:53:43]line [21:53:43]written 0, free lines is 3276 [21:53:43]MH_Cut [21:53:43]Write to MH i2c: D1 01 00 07 5E 01 37 [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: D1 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: D1 01 00 [21:53:43]MH_I2C_Read... [21:53:43]Read from MH i2c: D1 01 00 07 5E 00 36 [21:53:43]Write to MH i2c: 01 00 00 08 5E 66 [21:53:43]Write i2c OK [21:53:43]MH_I2C_Read... [21:53:44]OFD Sender: No OFD packet to send [21:53:44]*** Cut start [21:53:44]*** Partial cut [21:53:44]*** CUTSNS_PIN = 1 [21:53:44]*** CUTSNS_PIN = 0 [21:53:44]*** Brake cut motor [21:53:45]Read from MH i2c: 01 [21:53:45]MH_I2C_Read... [21:53:45]*** Stop cut motor [21:53:45]*** Cut end [21:53:45]Read from MH i2c: 01 07 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: 01 07 00 08 5E 00 00 00 00 00 FF 0F 7B [21:53:45]process_action close_receipt done [21:53:45]requested_data is exist [21:53:45]produce_requested_data [21:53:45]requested_item fm.sn is exist - process it [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 11 00 00 [21:53:45]Write to MH i2c: E2 08 00 09 5E 80 11 00 00 00 00 00 00 E1 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 17 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 17 00 09 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3C [21:53:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:53:45]wFMCommunicate OK [21:53:45]requested_item fd.num is exist - process it [21:53:45]SAM_PROTO_GetFieldsCounters [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 13 00 00 [21:53:45]Write to MH i2c: E2 08 00 0A 5E 80 13 00 00 00 00 00 00 E4 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 62 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 62 00 0A 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F0 20 02 00 0E 04 04 00 2C 02 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 7C [21:53:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F0 20 02 00 0E 04 04 00 2C 02 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 [21:53:45]wFMCommunicate OK [21:53:45]SAM_PROTO_GetFieldsCounters done [21:53:45]requested_item shift.num is exist - process it [21:53:45]requested_item shift.opened is exist - process it [21:53:45]req_shift_opened [21:53:45]FM_GetShiftState [21:53:45]SAM_PROTO_GetShiftState [21:53:45]wFMCommunicate request_size=4 [21:53:45]MH_SAM_APDU [21:53:45]CAPDU: 80 13 01 00 [21:53:45]Write to MH i2c: E2 08 00 0B 5E 80 13 01 00 00 00 00 00 E6 [21:53:45]Write i2c OK [21:53:45]MH_I2C_Read... [21:53:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:53:45]Read from MH i2c: E2 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 0E 00 [21:53:45]MH_I2C_Read... [21:53:45]Read from MH i2c: E2 0E 00 0B 5E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 76 [21:53:45]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:53:45]wFMCommunicate OK [21:53:45]SAM_PROTO_GetShiftState done [21:53:45]FM_GetShiftState done [21:53:45]req_shift_opened done [21:53:45]requested_item shift.open_date is exist - process it [21:53:45]req_shift_open_date [21:53:45]req_shift_open_date done [21:53:45]produce_requested_data done [21:53:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139504,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [21:53:45]process_action_free close_receipt [21:53:45]json_value_free [21:53:45]json_value_free done [21:53:45]process_json_proto returns [21:53:45]Send response to host [21:53:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139504,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [21:53:45]free response buf [21:53:45]execute_script done [21:53:45]execute_script returns [21:53:45]free content buf [21:53:45]Sock 9.Close socket [21:53:45]Sock 9.Thread stoped [21:53:49]OFD Sender: No OFD packet to send [21:53:54]OFD Sender: No OFD packet to send [21:53:59]OFD Sender: No OFD packet to send [21:54:04]OFD Sender: No OFD packet to send [21:54:09]OFD Sender: No OFD packet to send [21:54:14]OFD Sender: No OFD packet to send [21:54:19]OFD Sender: No OFD packet to send [21:54:24]OFD Sender: No OFD packet to send [21:54:29]OFD Sender: No OFD packet to send [21:54:34]OFD Sender: No OFD packet to send [21:54:39]OFD Sender: No OFD packet to send [21:54:44]OFD Sender: No OFD packet to send [21:54:49]OFD Sender: No OFD packet to send [21:54:54]OFD Sender: No OFD packet to send [21:54:59]OFD Sender: No OFD packet to send [21:55:04]OFD Sender: No OFD packet to send [21:55:09]OFD Sender: No OFD packet to send [21:55:14]OFD Sender: No OFD packet to send [21:55:19]OFD Sender: No OFD packet to send [21:55:24]OFD Sender: No OFD packet to send [21:55:29]OFD Sender: No OFD packet to send [21:55:34]OFD Sender: No OFD packet to send [21:55:39]OFD Sender: No OFD packet to send [21:55:44]OFD Sender: No OFD packet to send [21:55:49]OFD Sender: No OFD packet to send [21:55:54]OFD Sender: No OFD packet to send [21:55:59]OFD Sender: No OFD packet to send [21:56:04]OFD Sender: No OFD packet to send [21:56:09]OFD Sender: No OFD packet to send [21:56:14]OFD Sender: No OFD packet to send [21:56:19]OFD Sender: No OFD packet to send [21:56:24]OFD Sender: No OFD packet to send [21:56:29]OFD Sender: No OFD packet to send [21:56:34]OFD Sender: No OFD packet to send [21:56:39]OFD Sender: No OFD packet to send [21:56:44]OFD Sender: No OFD packet to send [21:56:49]OFD Sender: No OFD packet to send [21:56:54]OFD Sender: No OFD packet to send [21:56:59]OFD Sender: No OFD packet to send [21:57:04]OFD Sender: No OFD packet to send [21:57:04]accept exits with 8 [21:57:04]New connection [21:57:04]New thread 3067284836 created [21:57:04]Thread 3067141476 joined [21:57:04]Waiting for new connection... [21:57:04] Sock 8.Parse request [21:57:04]Sock 8.Check first char [21:57:04]Sock 8.First char is OK [21:57:04]request: POST /json_proto HTTP/1.0 [21:57:04]Method: POST [21:57:04]URL: /json_proto [21:57:04]Method is POST - this is cgi request [21:57:04]url: /json_proto [21:57:04]query_string will be loaded in cgi processing [21:57:04]execute_cgi json_proto POST (null) [21:57:04]execute_cgi path=json_proto method=POST [21:57:04]POST find Content-Length [21:57:04]Host: 172.17.50.196:8080 [21:57:04]Content-Length: 1198 [21:57:04]Content-Type: application/json [21:57:04] [21:57:04]POST finish read [21:57:04]Found Content-Length = 1198 [21:57:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335382", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904310231343", "name": "\u041B\u0435\u0434\u0435\u043D\u0435\u0446 Johny Bee BOOTS POP", "price" : 212.00, "quantity" : 1.000, "sum" : 212.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 431.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:04]execute_script... [21:57: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 : (3)335382", "tax_sys" : 0, "items" : [ { "code": "4870202521148", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 \u0437\u0435\u043B \u043B\u0438\u043C\u043E\u043D 0.45\u043B", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "5904310231343", "name": "\u041B\u0435\u0434\u0435\u043D\u0435\u0446 Johny Bee BOOTS POP", "price" : 212.00, "quantity" : 1.000, "sum" : 212.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "90456060", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Red Bull Sugarfree 0.25\u043B \u0436", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 431.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [21:57:04]POST & json_proto [21:57:04]process_json_proto [21:57:04]json parsed OK: [21:57:04]protocol is kg_v1.0 [21:57:04]action value=close_receipt [21:57:04]process_action close_receipt [21:57:04]cmd_close_receipt [21:57:04]MH_GetDate [21:57:04]Write to MH i2c: F0 00 00 0C 5E 59 [21:57:04]Write i2c OK [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: F0 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: F0 09 00 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: F0 09 00 0C 5E 00 B7 AB 22 67 72 0D 1C 67 4F [21:57:04]GetLastDocTimeStamp 1730325228 [21:57:04]current date 1730325431 [21:57:04]FM_GetShiftState [21:57:04]SAM_PROTO_GetShiftState [21:57:04]wFMCommunicate request_size=4 [21:57:04]MH_SAM_APDU [21:57:04]CAPDU: 80 13 01 00 [21:57:04]Write to MH i2c: E2 08 00 0D 5E 80 13 01 00 00 00 00 00 E8 [21:57:04]Write i2c OK [21:57:04]MH_I2C_Read... [21:57:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:04]Read from MH i2c: E2 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: E2 0E 00 [21:57:04]MH_I2C_Read... [21:57:04]Read from MH i2c: E2 0E 00 0D 5E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 78 [21:57:04]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:57:04]wFMCommunicate OK [21:57:04]SAM_PROTO_GetShiftState done [21:57:04]FM_GetShiftState done [21:57:04]opened in 1730246278 [21:57:04]opened+sec_in_day 1730332678 [21:57:04]quantity*price = 7000 [21:57:04]sum+1 = 7001 [21:57:04]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 5904310231343 Леденец Johny Bee BOOTS POP 1.000 * 212.00 = 212.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 90456060 Напиток энерг Red Bull Sugarfree 0.25л ж 1.000 * 149.00 = 149.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 431.00 НСП 1% : 3.82 НДС 12% : 45.76 Наличными: 431.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 189 30.10.2024 21:57 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139505 ФПД: 163602488494472 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T215711&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139505&fm=163602488494472&tin=02508201610067®Number=0000000000091631&sum=43100 0 [21:57:05]StoreToDocumentArchive [21:57:05]shift 556 fd 139505 [21:57:05]save to /storage/0556/doc_00139505 [21:57:05]save last doc name /storage/0556/doc_00139505 to /storage/kkm_last_doc_name [21:57:05]save OK [21:57:05]Clear old archive folders... [21:57:05]ProcessDocumentItem done err = 0, tmpTLVsize=520 [21:57:05]tlvbuf is 01305B00 [21:57:05]SAM_PROTO_ClearQueue [21:57:05]wFMCommunicate request_size=4 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 09 00 00 [21:57:05]Write to MH i2c: E2 08 00 1A 5E 80 09 00 00 00 00 00 00 EA [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 1A 5E 00 90 00 EC [21:57:05]RAPDU: 90 00 [21:57:05]wFMCommunicate OK [21:57:05]SAM_PROTO_ClearQueue done [21:57:05]KKMCreateOFDPacket [21:57:05]OFDProtocolAddRootSTLVToBuf [21:57:05]FM_MakeSignedData [21:57:05]FM_MakeSignedData [21:57:05]SAM_PROTO_SignData [21:57:05]wFMCommunicate request_size=4 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 0D 01 02 [21:57:05]Write to MH i2c: E2 08 00 1B 5E 80 0D 01 02 00 00 00 00 F2 [21:57:05]Write i2c OK [21:57:05]MH_I2C_Read... [21:57:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [21:57:05]Read from MH i2c: E2 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 [21:57:05]MH_I2C_Read... [21:57:05]Read from MH i2c: E2 03 00 1B 5E 00 90 00 ED [21:57:05]RAPDU: 90 00 [21:57:05]wFMCommunicate OK [21:57:05]wFMCommunicate request_size=255 [21:57:05]MH_SAM_APDU [21:57:05]CAPDU: 80 0D 02 02 FA 03 00 08 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 [21:57:06]Write to MH i2c: E2 02 01 1C 5E 80 0D 02 02 FA 00 03 00 08 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 00 00 06 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:06]Read from MH i2c: E2 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 03 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 03 00 1C 5E 00 90 00 EE [21:57:06]RAPDU: 90 00 [21:57:06]wFMCommunicate OK [21:57:06]wFMCommunicate request_size=255 [21:57:06]MH_SAM_APDU [21:57:06]CAPDU: 80 0D 02 02 FA 36 30 36 30 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 11 00 00 00 00 07 04 06 00 5C A8 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 B7 AB 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 [21:57:06]Write to MH i2c: E2 02 01 1D 5E 80 0D 02 02 FA 00 36 30 36 30 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 11 00 00 00 00 07 04 06 00 5C A8 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 B7 AB 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 00 00 67 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:06]Read from MH i2c: E2 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 03 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 03 00 1D 5E 00 90 00 EF [21:57:06]RAPDU: 90 00 [21:57:06]wFMCommunicate OK [21:57:06]wFMCommunicate request_size=29 [21:57:06]MH_SAM_APDU [21:57:06]CAPDU: 80 0D 02 02 18 38 37 34 36 36 39 10 04 04 00 F1 20 02 00 35 04 06 00 94 CB AC 36 09 88 [21:57:06]Write to MH i2c: E2 20 00 1E 5E 80 0D 02 02 18 00 38 37 34 36 36 39 10 04 04 00 F1 20 02 00 35 04 06 00 94 CB AC 36 09 88 00 00 AA [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [21:57:06]Read from MH i2c: E2 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 03 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 03 00 1E 5E 00 90 00 F0 [21:57:06]RAPDU: 90 00 [21:57:06]wFMCommunicate OK [21:57:06]wFMCommunicate request_size=4 [21:57:06]MH_SAM_APDU [21:57:06]CAPDU: 80 0D 03 02 [21:57:06]Write to MH i2c: E2 08 00 1F 5E 80 0D 03 02 00 00 00 00 F8 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [21:57:06]Read from MH i2c: E2 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 0B 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 0B 00 1F 5E 00 4C A0 0B FC 22 4F 97 71 90 00 65 [21:57:06]RAPDU: 4C A0 0B FC 22 4F 97 71 90 00 [21:57:06]wFMCommunicate OK [21:57:06]SAM_PROTO_SignData done [21:57:06]FM_MakeSignedData done [21:57:06]CreateOFDProtocolMessage [21:57:06]wFMCommunicate request_size=4 [21:57:06]MH_SAM_APDU [21:57:06]CAPDU: 80 11 00 00 [21:57:06]Write to MH i2c: E2 08 00 20 5E 80 11 00 00 00 00 00 00 F8 [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:06]Read from MH i2c: E2 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 17 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: E2 17 00 20 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 53 [21:57:06]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:57:06]wFMCommunicate OK [21:57:06]CreateOFDProtocolMessage done [21:57:06]OFDSenderStorePacket 139505 [21:57:06]StoreOFDPacket docnum=139505 [21:57:06]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1C 02 00 00 28 A9 14 02 E8 45 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 11 00 00 00 00 07 04 06 00 5C A8 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 B7 AB 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 20 02 00 35 04 06 00 94 CB AC 36 09 88 4C A0 0B FC 22 4F 97 71 [21:57:06]CheckFolder [21:57:06]dirname=/storage/ofd_packets [21:57:06]CheckFolder done [21:57:06]ProducePacketName [21:57:06]name=ofd_packets/00139505 [21:57:06]NVStorageSaveData ofd_packets/00139505 [21:57:06]File name is /storage/ofd_packets/00139505 [21:57:06]Write 570 bytes [21:57:06]NVStorageSaveData done [21:57:06]OFDSenderStorePacket done [21:57:06]KKMCreateOFDPacket done [21:57:06]NVStorageSaveData kkm_last_timestamp [21:57:06]File name is /storage/kkm_last_timestamp [21:57:06]Write 4 bytes [21:57:06]NVStorageSaveData done [21:57:06]ExternCall_PrintAddStr [21:57:06]wPrintStart [21:57:06]Write to MH i2c: 01 00 00 21 5E 7F [21:57:06]Write i2c OK [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: 01 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: 01 07 00 [21:57:06]MH_I2C_Read... [21:57:06]Read from MH i2c: 01 07 00 21 5E 00 00 00 00 00 FF 0F 94 [21:57:06]RasterBufferAndPrint [21:57:06]line Счет N : (3)335382 [21:57:06]line ИНН: 02508201610067 [21:57:06]line Контрольно-Кассовый Чек [21:57:06]line ПРОДАЖА [21:57:06]line Товар: 4870202521148 [21:57:06]line Напиток MAXI чай зел лимон 0.45л [21:57:06]line 1.000 * 70.00 [21:57:06]line = 70.00 [21:57:06]line НДС 12% НСП 1% [21:57:06]line > о реализуемом товаре [21:57:06]line Товар: 5904310231343 [21:57:06]line Леденец Johny Bee BOOTS POP [21:57:06]line 1.000 * 212.00 [21:57:06]line = 212.00 [21:57:06]line НДС 12% НСП 1% [21:57:06]line > о реализуемом товаре [21:57:06]line Товар: 90456060 [21:57:06]line Напиток энерг Red Bull Sugarfree 0.25л ж [21:57:06]line 1.000 * 149.00 [21:57:06]line = 149.00 [21:57:06]line НДС 12% НСП 1% [21:57:06]line > о реализуемом товаре [21:57:06]line ИТОГО: 431.00 [21:57:06]line НСП 1% : 3.82 [21:57:06]line НДС 12% : 45.76 [21:57:06]line Наличными: 431.00 [21:57:06]line Безнал.: 0.00 [21:57:06]line Место: АЗС № 101 "Партнер Нефть" [21:57:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [21:57:06]line СНО: Общий режим [21:57:06]line Чек 189 30.10.2024 21:57 [21:57:06]line Смена: 556 ФФД: 1.0 [21:57:06]line ЗНМ: 0300000081 [21:57:06]line РНМ: 0000000000091631 [21:57:06]line Версия ККМ: 001 [21:57:06]line ФМ: 0000000000874669 [21:57:06]line ФД: 139505 [21:57:06]line ФПД: 163602488494472 [21:57:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T215711&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139505&fm=163602488494472&tin=02508201610067®Number=0000000000091631&sum=43100 [21:57:06]line 0 [21:57:06]written 0, free lines is 4095 [21:57:06]OFD Sender: Processing packet 139505 [packets to send 34, broken 33] [21:57:06]ProducePacketName [21:57:06]name=ofd_packets/00139505 [21:57:06]OFD Sender: To server: pG, [21:57:06]CommunicateWithHost lk.salyk.kg:30040 [21:57:06]ConnectInit lk.salyk.kg [21:57:07]Connected sock=9 [21:57:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1C 02 00 00 28 A9 14 02 E8 45 5A 03 01 00 03 00 08 02 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 31 34 38 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 D0 B7 D0 B5 D0 BB 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2E 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 66 00 8A 04 0D 00 35 39 30 34 33 31 30 32 33 31 33 34 33 06 04 22 00 D0 9B D0 B5 D0 B4 D0 B5 D0 BD D0 B5 D1 86 20 4A 6F 68 6E 79 20 42 65 65 20 42 4F 4F 54 53 20 50 4F 50 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 52 00 00 00 00 13 04 06 00 D0 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 75 00 8A 04 08 00 39 30 34 35 36 30 36 30 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 52 65 64 20 42 75 6C 6C 20 53 75 67 61 72 66 72 65 65 20 30 2E 32 35 D0 BB 20 D0 B6 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C A8 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7E 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 11 00 00 00 00 07 04 06 00 5C A8 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 B7 AB 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 20 02 00 35 04 06 00 94 CB AC 36 09 88 4C A0 0B FC 22 4F 97 71 [21:57:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F4 EE 47 00 6A B3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F1 20 02 00 F4 03 04 00 67 57 22 67 B6 04 01 00 00 76 56 62 54 C7 8E 9D FB [21:57:07]CommunicateWithHost err = 0 [21:57:07]CheckOFDResponse [21:57:07]1017 (14) - 77093643461234 [21:57:07]1041 (16) - 0000000000874669 [21:57:07]1040 (4) - 139505 [21:57:07]1012 (4) - 30.10.2024 15:57 [21:57:07]1206 (1) - 0 [21:57:07]OFD Sender: Remove packet 139505 [21:57:07]ProducePacketName [21:57:07]name=ofd_packets/00139505 [21:57:07]NVStorageDeleteData [21:57:07]Write to MH i2c: 01 00 00 58 5E B6 [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: 01 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: 01 07 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: 01 07 00 58 5E 00 00 00 00 00 2E 0C F7 [21:57:07]RasterBufferAndPrint [21:57:07]line [21:57:07]line [21:57:07]line [21:57:07]line [21:57:07]line [21:57:07]written 0, free lines is 3127 [21:57:07]MH_Cut [21:57:07]Write to MH i2c: D1 01 00 5F 5E 01 8F [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: D1 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: D1 01 00 [21:57:07]MH_I2C_Read... [21:57:07]Read from MH i2c: D1 01 00 5F 5E 00 8E [21:57:07]Write to MH i2c: 01 00 00 60 5E BE [21:57:07]Write i2c OK [21:57:07]MH_I2C_Read... [21:57:07]OFD Sender: No OFD packet to send [21:57:08]*** Cut start [21:57:08]*** Partial cut [21:57:08]*** CUTSNS_PIN = 1 [21:57:08]*** CUTSNS_PIN = 0 [21:57:08]*** Brake cut motor [21:57:08]Read from MH i2c: 01 [21:57:08]MH_I2C_Read... [21:57:08]*** Stop cut motor [21:57:08]*** Cut end [21:57:08]Read from MH i2c: 01 07 00 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: 01 07 00 60 5E 00 00 00 00 00 FF 0F D3 [21:57:08]process_action close_receipt done [21:57:08]requested_data is exist [21:57:08]produce_requested_data [21:57:08]requested_item fm.sn is exist - process it [21:57:08]wFMCommunicate request_size=4 [21:57:08]MH_SAM_APDU [21:57:08]CAPDU: 80 11 00 00 [21:57:08]Write to MH i2c: E2 08 00 61 5E 80 11 00 00 00 00 00 00 39 [21:57:08]Write i2c OK [21:57:08]MH_I2C_Read... [21:57:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [21:57:08]Read from MH i2c: E2 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: E2 17 00 [21:57:08]MH_I2C_Read... [21:57:08]Read from MH i2c: E2 17 00 61 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [21:57:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [21:57:08]wFMCommunicate OK [21:57:08]requested_item fd.num is exist - process it [21:57:08]SAM_PROTO_GetFieldsCounters [21:57:08]wFMCommunicate request_size=4 [21:57:08]MH_SAM_APDU [21:57:08]CAPDU: 80 13 00 00 [21:57:08]Write to MH i2c: E2 08 00 62 5E 80 13 00 00 00 00 00 00 3C [21:57:08]Write i2c OK [21:57:08]MH_I2C_Read... [21:57:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [21:57:09]Read from MH i2c: E2 [21:57:09]MH_I2C_Read... [21:57:09]Read from MH i2c: E2 62 00 [21:57:09]MH_I2C_Read... [21:57:09]Read from MH i2c: E2 62 00 62 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F1 20 02 00 0E 04 04 00 2C 02 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 D8 [21:57:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F1 20 02 00 0E 04 04 00 2C 02 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 [21:57:09]wFMCommunicate OK [21:57:09]SAM_PROTO_GetFieldsCounters done [21:57:09]requested_item shift.num is exist - process it [21:57:09]requested_item shift.opened is exist - process it [21:57:09]req_shift_opened [21:57:09]FM_GetShiftState [21:57:09]SAM_PROTO_GetShiftState [21:57:09]wFMCommunicate request_size=4 [21:57:09]MH_SAM_APDU [21:57:09]CAPDU: 80 13 01 00 [21:57:09]Write to MH i2c: E2 08 00 63 5E 80 13 01 00 00 00 00 00 3E [21:57:09]Write i2c OK [21:57:09]MH_I2C_Read... [21:57:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [21:57:09]Read from MH i2c: E2 [21:57:09]MH_I2C_Read... [21:57:09]Read from MH i2c: E2 0E 00 [21:57:09]MH_I2C_Read... [21:57:09]Read from MH i2c: E2 0E 00 63 5E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 CE [21:57:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [21:57:09]wFMCommunicate OK [21:57:09]SAM_PROTO_GetShiftState done [21:57:09]FM_GetShiftState done [21:57:09]req_shift_opened done [21:57:09]requested_item shift.open_date is exist - process it [21:57:09]req_shift_open_date [21:57:09]req_shift_open_date done [21:57:09]produce_requested_data done [21:57:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139505,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [21:57:09]process_action_free close_receipt [21:57:09]json_value_free [21:57:09]json_value_free done [21:57:09]process_json_proto returns [21:57:09]Send response to host [21:57:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139505,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [21:57:09]free response buf [21:57:09]execute_script done [21:57:09]execute_script returns [21:57:09]free content buf [21:57:09]Sock 8.Close socket [21:57:09]Sock 8.Thread stoped [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:52]OFD Sender: No OFD packet to send [21:58:57]OFD Sender: No OFD packet to send [21:59:02]OFD Sender: No OFD packet to send [21:59:07]OFD Sender: No OFD packet to send [21:59:12]OFD Sender: No OFD packet to send [21:59:17]OFD Sender: No OFD packet to send [21:59:22]OFD Sender: No OFD packet to send [21:59:27]OFD Sender: No OFD packet to send 00 6C 5E 80 15 02 00 0A 00 39 04 06 00 00 00 00 00 00 00 00 00 A1 [22:01:41]Write i2c OK [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 [22:01:41]MH_I2C_Read... [22:01:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:01:41]Read from MH i2c: E2 03 00 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 03 00 6C 5E 00 90 00 3E [22:01:41]RAPDU: 90 00 [22:01:41]wFMCommunicate OK [22:01:41]wFMCommunicate request_size=11 [22:01:41]MH_SAM_APDU [22:01:41]CAPDU: 80 15 02 00 06 1F 04 02 00 01 00 [22:01:41]Write to MH i2c: E2 0E 00 6D 5E 80 15 02 00 06 00 1F 04 02 00 01 00 00 00 7D [22:01:41]Write i2c OK [22:01:41]MH_I2C_Read... [22:01:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:01:41]Read from MH i2c: E2 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 03 00 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 03 00 6D 5E 00 90 00 3F [22:01:41]RAPDU: 90 00 [22:01:41]wFMCommunicate OK [22:01:41]wFMCommunicate request_size=13 [22:01:41]MH_SAM_APDU [22:01:41]CAPDU: 80 15 02 00 08 F4 03 04 00 CC AC 22 67 [22:01:41]Write to MH i2c: E2 10 00 6E 5E 80 15 02 00 08 00 F4 03 04 00 CC AC 22 67 00 00 58 [22:01:41]Write i2c OK [22:01:41]MH_I2C_Read... [22:01:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:01:41]Read from MH i2c: E2 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 03 00 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 03 00 6E 5E 00 90 00 40 [22:01:41]RAPDU: 90 00 [22:01:41]wFMCommunicate OK [22:01:41]wFMCommunicate request_size=25 [22:01:41]MH_SAM_APDU [22:01:41]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [22:01:41]Write to MH i2c: E2 1C 00 6F 5E 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 AA [22:01:41]Write i2c OK [22:01:41]MH_I2C_Read... [22:01:41]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:01:41]Read from MH i2c: E2 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 03 00 [22:01:41]MH_I2C_Read... [22:01:41]Read from MH i2c: E2 03 00 6F 5E 00 90 00 41 [22:01:41]RAPDU: 90 00 [22:01:41]wFMCommunicate OK [22:01:41]wFMCommunicate request_size=4 [22:01:41]MH_SAM_APDU [22:01:41]CAPDU: 80 15 03 00 [22:01:41]Write to MH i2c: E2 08 00 70 5E 80 15 03 00 00 00 00 00 4F [22:01:41]Write i2c OK [22:01:41]MH_I2C_Read... [22:01:42]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [22:01:42]Read from MH i2c: E2 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 40 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 40 00 70 5E 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 BE 00 00 00 35 04 06 00 E8 6F 02 37 4B 62 90 00 8A [22:01:42]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 BE 00 00 00 35 04 06 00 E8 6F 02 37 4B 62 90 00 [22:01:42]wFMCommunicate OK [22:01:42]SAM_PROTO_ProcessDocument answer len = 59 [22:01:42]SAM_PROTO_ProcessDocument done [22:01:42]SetTLVBufToDocument [22:01:42]Processing tag 1209 (04B9) [22:01:42]Malloc new data [22:01:42]Processing tag 1041 (0411) [22:01:42]Processing tag 1040 (0410) [22:01:42]Malloc new data [22:01:42]Processing tag 1038 (040E) [22:01:42]Malloc new data [22:01:42]Processing tag 1042 (0412) [22:01:42]Malloc new data [22:01:42]Processing tag 1077 (0435) [22:01:42]Malloc new data [22:01:42]SetTLVBufToDocument err=0 [22:01:42]KKMLoadAndSignReceiptData store KKM data [22:01:42]KKMLoadAndSignReceiptData err=0 [22:01:42]wFMCommunicate request_size=4 [22:01:42]MH_SAM_APDU [22:01:42]CAPDU: 80 11 00 00 [22:01:42]Write to MH i2c: E2 08 00 71 5E 80 11 00 00 00 00 00 00 49 [22:01:42]Write i2c OK [22:01:42]MH_I2C_Read... [22:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:42]Read from MH i2c: E2 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 17 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 17 00 71 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A4 [22:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:01:42]wFMCommunicate OK [22:01:42]Счет N : (3)335383 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 4870202521216 Напиток MAXI чай 1,2 зел.лимон (новый) 1.000 * 104.00 = 104.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 190 30.10.2024 22:01 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139506 ФПД: 255563476192098 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T220148&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139506&fm=255563476192098&tin=02508201610067®Number=0000000000091631&sum=10400 0 [22:01:42]StoreToDocumentArchive [22:01:42]shift 556 fd 139506 [22:01:42]save to /storage/0556/doc_00139506 [22:01:42]save last doc name /storage/0556/doc_00139506 to /storage/kkm_last_doc_name [22:01:42]save OK [22:01:42]Clear old archive folders... [22:01:42]ProcessDocumentItem done err = 0, tmpTLVsize=303 [22:01:42]tlvbuf is 01273170 [22:01:42]SAM_PROTO_ClearQueue [22:01:42]wFMCommunicate request_size=4 [22:01:42]MH_SAM_APDU [22:01:42]CAPDU: 80 09 00 00 [22:01:42]Write to MH i2c: E2 08 00 72 5E 80 09 00 00 00 00 00 00 42 [22:01:42]Write i2c OK [22:01:42]MH_I2C_Read... [22:01:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:01:42]Read from MH i2c: E2 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 03 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 03 00 72 5E 00 90 00 44 [22:01:42]RAPDU: 90 00 [22:01:42]wFMCommunicate OK [22:01:42]SAM_PROTO_ClearQueue done [22:01:42]KKMCreateOFDPacket [22:01:42]OFDProtocolAddRootSTLVToBuf [22:01:42]FM_MakeSignedData [22:01:42]FM_MakeSignedData [22:01:42]SAM_PROTO_SignData [22:01:42]wFMCommunicate request_size=4 [22:01:42]MH_SAM_APDU [22:01:42]CAPDU: 80 0D 01 02 [22:01:42]Write to MH i2c: E2 08 00 73 5E 80 0D 01 02 00 00 00 00 4A [22:01:42]Write i2c OK [22:01:42]MH_I2C_Read... [22:01:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:01:42]Read from MH i2c: E2 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 03 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 03 00 73 5E 00 90 00 45 [22:01:42]RAPDU: 90 00 [22:01:42]wFMCommunicate OK [22:01:42]wFMCommunicate request_size=255 [22:01:42]MH_SAM_APDU [22:01:42]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 00 00 00 F4 03 04 00 CC AC 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D [22:01:42]Write to MH i2c: E2 02 01 74 5E 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 00 00 00 F4 03 04 00 CC AC 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 00 00 7A [22:01:42]Write i2c OK [22:01:42]MH_I2C_Read... [22:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:42]Read from MH i2c: E2 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 03 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 03 00 74 5E 00 90 00 46 [22:01:42]RAPDU: 90 00 [22:01:42]wFMCommunicate OK [22:01:42]wFMCommunicate request_size=62 [22:01:42]MH_SAM_APDU [22:01:42]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 20 02 00 35 04 06 00 E8 6F 02 37 4B 62 [22:01:42]Write to MH i2c: E2 41 00 75 5E 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 20 02 00 35 04 06 00 E8 6F 02 37 4B 62 00 00 DC [22:01:42]Write i2c OK [22:01:42]MH_I2C_Read... [22:01:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:01:42]Read from MH i2c: E2 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 03 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 03 00 75 5E 00 90 00 47 [22:01:42]RAPDU: 90 00 [22:01:42]wFMCommunicate OK [22:01:42]wFMCommunicate request_size=4 [22:01:42]MH_SAM_APDU [22:01:42]CAPDU: 80 0D 03 02 [22:01:42]Write to MH i2c: E2 08 00 76 5E 80 0D 03 02 00 00 00 00 4F [22:01:42]Write i2c OK [22:01:42]MH_I2C_Read... [22:01:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:01:42]Read from MH i2c: E2 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 0B 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 0B 00 76 5E 00 2A EA C6 AF DE 86 F3 69 90 00 99 [22:01:42]RAPDU: 2A EA C6 AF DE 86 F3 69 90 00 [22:01:42]wFMCommunicate OK [22:01:42]SAM_PROTO_SignData done [22:01:42]FM_MakeSignedData done [22:01:42]CreateOFDProtocolMessage [22:01:42]wFMCommunicate request_size=4 [22:01:42]MH_SAM_APDU [22:01:42]CAPDU: 80 11 00 00 [22:01:42]Write to MH i2c: E2 08 00 77 5E 80 11 00 00 00 00 00 00 4F [22:01:42]Write i2c OK [22:01:42]MH_I2C_Read... [22:01:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:42]Read from MH i2c: E2 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 17 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: E2 17 00 77 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AA [22:01:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:01:42]wFMCommunicate OK [22:01:42]CreateOFDProtocolMessage done [22:01:42]OFDSenderStorePacket 139506 [22:01:42]StoreOFDPacket docnum=139506 [22:01:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 DB 3A 3B 01 5D E7 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 00 00 00 F4 03 04 00 CC AC 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 20 02 00 35 04 06 00 E8 6F 02 37 4B 62 2A EA C6 AF DE 86 F3 69 [22:01:42]CheckFolder [22:01:42]dirname=/storage/ofd_packets [22:01:42]CheckFolder done [22:01:42]ProducePacketName [22:01:42]name=ofd_packets/00139506 [22:01:42]NVStorageSaveData ofd_packets/00139506 [22:01:42]File name is /storage/ofd_packets/00139506 [22:01:42]Write 353 bytes [22:01:42]NVStorageSaveData done [22:01:42]OFDSenderStorePacket done [22:01:42]KKMCreateOFDPacket done [22:01:42]NVStorageSaveData kkm_last_timestamp [22:01:42]File name is /storage/kkm_last_timestamp [22:01:42]Write 4 bytes [22:01:42]NVStorageSaveData done [22:01:42]ExternCall_PrintAddStr [22:01:42]wPrintStart [22:01:42]Write to MH i2c: 01 00 00 78 5E D6 [22:01:42]OFD Sender: Processing packet 139506 [packets to send 34, broken 33] [22:01:42]ProducePacketName [22:01:42]name=ofd_packets/00139506 [22:01:42]OFD Sender: To server: pG, [22:01:42]CommunicateWithHost lk.salyk.kg:30040 [22:01:42]ConnectInit lk.salyk.kg [22:01:42]Write i2c OK [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: 01 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: 01 07 00 [22:01:42]MH_I2C_Read... [22:01:42]Read from MH i2c: 01 07 00 78 5E 00 00 00 00 00 FF 0F EB [22:01:42]RasterBufferAndPrint [22:01:42]line Счет N : (3)335383 [22:01:42]line ИНН: 02508201610067 [22:01:42]line Контрольно-Кассовый Чек [22:01:42]line ПРОДАЖА [22:01:42]line Товар: 4870202521216 [22:01:42]line Напиток MAXI чай 1,2 зел.лимон (новый) [22:01:42]line 1.000 * 104.00 [22:01:42]line = 104.00 [22:01:42]line НДС 12% НСП 1% [22:01:42]line > о реализуемом товаре [22:01:42]line ИТОГО: 104.00 [22:01:42]line НСП 1% : 0.92 [22:01:42]line НДС 12% : 11.04 [22:01:42]line Наличными: 104.00 [22:01:42]line Безнал.: 0.00 [22:01:42]line Место: АЗС № 101 "Партнер Нефть" [22:01:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:01:42]line СНО: Общий режим [22:01:42]line Чек 190 30.10.2024 22:01 [22:01:42]line Смена: 556 ФФД: 1.0 [22:01:42]line ЗНМ: 0300000081 [22:01:42]line РНМ: 0000000000091631 [22:01:42]line Версия ККМ: 001 [22:01:42]line ФМ: 0000000000874669 [22:01:42]line ФД: 139506 [22:01:42]line ФПД: 255563476192098 [22:01:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T220148&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139506&fm=255563476192098&tin=02508201610067®Number=0000000000091631&sum=10400 [22:01:43]line 0 [22:01:43]Connected sock=11 [22:01:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 DB 3A 3B 01 5D E7 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 00 00 00 F4 03 04 00 CC AC 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 written 0, free lines is 4095 [22:01:43]30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F2 20 02 00 35 04 06 00 E8 6F 02 37 4B 62 2A EA C6 AF DE 86 F3 69 [22:01:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 4B 45 47 00 C3 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 38 37 34 36 36 39 10 04 04 00 F2 20 02 00 F4 03 04 00 7B 58 22 67 B6 04 01 00 00 3E 55 D2 7C 7F 7B A5 DE [22:01:43]CommunicateWithHost err = 0 [22:01:43]CheckOFDResponse [22:01:43]1017 (14) - 77093643461234 [22:01:43]1041 (16) - 0000000000874669 [22:01:43]1040 (4) - 139506 [22:01:43]1012 (4) - 30.10.2024 16:02 [22:01:43]1206 (1) - 0 [22:01:43]OFD Sender: Remove packet 139506 [22:01:43]ProducePacketName [22:01:43]name=ofd_packets/00139506 [22:01:43]NVStorageDeleteData [22:01:43]Write to MH i2c: 01 00 00 A1 5E FF [22:01:43]Write i2c OK [22:01:43]MH_I2C_Read... [22:01:43]Read from MH i2c: 01 [22:01:43]MH_I2C_Read... [22:01:43]Read from MH i2c: 01 07 00 [22:01:43]MH_I2C_Read... [22:01:43]Read from MH i2c: 01 07 00 A1 5E 00 00 00 00 00 04 0D 17 [22:01:43]RasterBufferAndPrint [22:01:43]line [22:01:43]line [22:01:43]line [22:01:43]line [22:01:43]line [22:01:43]written 0, free lines is 3341 [22:01:43]MH_Cut [22:01:43]Write to MH i2c: D1 01 00 A8 5E 01 D8 [22:01:43]Write i2c OK [22:01:43]MH_I2C_Read... [22:01:43]Read from MH i2c: D1 [22:01:43]MH_I2C_Read... [22:01:43]Read from MH i2c: D1 01 00 [22:01:43]MH_I2C_Read... [22:01:43]Read from MH i2c: D1 01 00 A8 5E 00 D7 [22:01:43]Write to MH i2c: 01 00 00 A9 5E 07 [22:01:43]Write i2c OK [22:01:43]MH_I2C_Read... [22:01:43]OFD Sender: No OFD packet to send [22:01:44]*** Cut start [22:01:44]*** Partial cut [22:01:44]*** CUTSNS_PIN = 1 [22:01:44]*** CUTSNS_PIN = 0 [22:01:44]*** Brake cut motor [22:01:44]Read from MH i2c: 01 [22:01:44]MH_I2C_Read... [22:01:44]*** Stop cut motor [22:01:44]*** Cut end [22:01:44]Read from MH i2c: 01 07 00 [22:01:44]MH_I2C_Read... [22:01:44]Read from MH i2c: 01 07 00 A9 5E 00 00 00 00 00 FF 0F 1C [22:01:44]process_action close_receipt done [22:01:44]requested_data is exist [22:01:44]produce_requested_data [22:01:44]requested_item fm.sn is exist - process it [22:01:44]wFMCommunicate request_size=4 [22:01:44]MH_SAM_APDU [22:01:44]CAPDU: 80 11 00 00 [22:01:44]Write to MH i2c: E2 08 00 AA 5E 80 11 00 00 00 00 00 00 82 [22:01:44]Write i2c OK [22:01:44]MH_I2C_Read... [22:01:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:01:44]Read from MH i2c: E2 [22:01:44]MH_I2C_Read... [22:01:44]Read from MH i2c: E2 17 00 [22:01:44]MH_I2C_Read... [22:01:44]Read from MH i2c: E2 17 00 AA 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DD [22:01:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:01:44]wFMCommunicate OK [22:01:44]requested_item fd.num is exist - process it [22:01:44]SAM_PROTO_GetFieldsCounters [22:01:44]wFMCommunicate request_size=4 [22:01:44]MH_SAM_APDU [22:01:44]CAPDU: 80 13 00 00 [22:01:44]Write to MH i2c: E2 08 00 AB 5E 80 13 00 00 00 00 00 00 85 [22:01:44]Write i2c OK [22:01:44]MH_I2C_Read... [22:01:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:01:45]Read from MH i2c: E2 [22:01:45]MH_I2C_Read... [22:01:45]Read from MH i2c: E2 62 00 [22:01:45]MH_I2C_Read... [22:01:45]Read from MH i2c: E2 62 00 AB 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F2 20 02 00 0E 04 04 00 2C 02 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 25 [22:01:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F2 20 02 00 0E 04 04 00 2C 02 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 [22:01:45]wFMCommunicate OK [22:01:45]SAM_PROTO_GetFieldsCounters done [22:04:24]OFD Sender: No OFD packet to send [22:04:29]OFD Sender: No OFD packet to send [22:04:34]OFD Sender: No OFD packet to send [22:04:39]OFD Sender: No OFD packet to send [22:04:44]OFD Sender: No OFD packet to send [22:04:49]OFD Sender: No OFD packet to send [22:04:54]OFD Sender: No OFD packet to send [22:04:59]OFD Sender: No OFD packet to send [22:05:04]OFD Sender: No OFD packet to send [22:05:09]OFD Sender: No OFD packet to send [22:05:14]OFD Sender: No OFD packet to send [22:05:19]OFD Sender: No OFD packet to send [22:05:24]OFD Sender: No OFD packet to send [22:05:29]OFD Sender: No OFD packet to send [22:05:34]OFD Sender: No OFD packet to send [22:05:39]OFD Sender: No OFD packet to send [22:05:44]OFD Sender: No OFD packet to send [22:05:49]OFD Sender: No OFD packet to send [22:05:54]OFD Sender: No OFD packet to send [22:05:59]OFD Sender: No OFD packet to send [22:06:04]OFD Sender: No OFD packet to send [22:06:09]OFD Sender: No OFD packet to send [22:06:14]OFD Sender: No OFD packet to send [22:06:19]OFD Sender: No OFD packet to send [22:06:24]OFD Sender: No OFD packet to send [22:06:29]OFD Sender: No OFD packet to send [22:06:33]ConnectInit Can't connect to host [22:06:34]OFD Sender: No OFD packet to send [22:06:44]OFD Sender: No OFD packet to send [22:06:49]OFD Sender: No OFD packet to send [22:06:54]OFD Sender: No OFD packet to send [22:06:59]OFD Sender: No OFD packet to send [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:56]ConnectInit Can't connect to host [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:24]OFD Sender: No OFD packet to send [22:09:29]OFD Sender: No OFD packet to send [22:09:34]OFD Sender: No OFD packet to send [22:09:39]OFD Sender: No OFD packet to send [22:09:44]OFD Sender: No OFD packet to send [22:09:49]OFD Sender: No OFD packet to send [22:09:54]OFD Sender: No OFD packet to send [22:09:59]OFD Sender: No OFD packet to send [22:10:04]OFD Sender: No OFD packet to send [22:10:09]OFD Sender: No OFD packet to send [22:10:14]OFD Sender: No OFD packet to send [22:10:19]OFD Sender: No OFD packet to send [22:10:24]OFD Sender: No OFD packet to send [22:10:29]OFD Sender: No OFD packet to send [22:10:34]OFD Sender: No OFD packet to send [22:10:39]OFD Sender: No OFD packet to send [22:10:44]OFD Sender: No OFD packet to send [22:10:49]OFD Sender: No OFD packet to send [22:10:54]OFD Sender: No OFD packet to send [22:10:59]OFD Sender: No OFD packet to send [22:11:04]OFD Sender: No OFD packet to send [22:11:09]OFD Sender: No OFD packet to send [22:11:14]OFD Sender: No OFD packet to send [22:11:19]OFD Sender: No OFD packet to send [22:11:24]OFD Sender: No OFD packet to send [22:11:29]OFD Sender: No OFD packet to send [22:11:34]OFD Sender: No OFD packet to send [22:11:39]OFD Sender: No OFD packet to send [22:11:44]OFD Sender: No OFD packet to send [22:11:49]OFD Sender: No OFD packet to send [22:11:54]OFD Sender: No OFD packet to send [22:11:59]OFD Sender: No OFD packet to send [22:12:04]OFD Sender: No OFD packet to send [22:12:09]OFD Sender: No OFD packet to send [22:12:14]OFD Sender: No OFD packet to send [22:12:19]OFD Sender: No OFD packet to send [22:12:24]OFD Sender: No OFD packet to send [22:12:29]OFD Sender: No OFD packet to send [22:12:34]OFD Sender: No OFD packet to send [22:12:39]OFD Sender: No OFD packet to send [22:12:44]OFD Sender: No OFD packet to send [22:12:49]OFD Sender: No OFD packet to send [22:12:54]OFD Sender: No OFD packet to send [22:12:59]OFD Sender: No OFD packet to send [22:13:04]OFD Sender: No OFD packet to send [22:13:09]OFD Sender: No OFD packet to send [22:13:14]OFD Sender: No OFD packet to send [22:13:19]OFD Sender: No OFD packet to send [22:13:24]OFD Sender: No OFD packet to send [22:13:29]OFD Sender: No OFD packet to send [22:13:34]OFD Sender: No OFD packet to send [22:13:39]OFD Sender: No OFD packet to send [22:13:44]OFD Sender: No OFD packet to send [22:13:49]OFD Sender: No OFD packet to send [22:13:54]OFD Sender: No OFD packet to send [22:13:59]OFD Sender: No OFD packet to send [22:14:04]OFD Sender: No OFD packet to send [22:14:09]OFD Sender: No OFD packet to send [22:14:14]OFD Sender: No OFD packet to send [22:14:19]OFD Sender: No OFD packet to send [22:14:24]OFD Sender: No OFD packet to send [22:14:29]OFD Sender: No OFD packet to send [22:14:34]OFD Sender: No OFD packet to send [22:14:39]OFD Sender: No OFD packet to send [22:14:44]OFD Sender: No OFD packet to send [22:14:49]OFD Sender: No OFD packet to send [22:14:54]OFD Sender: No OFD packet to send [22:14:59]OFD Sender: No OFD packet to send [22:15:04]OFD Sender: No OFD packet to send [22:15:09]OFD Sender: No OFD packet to send [22:15:14]OFD Sender: No OFD packet to send [22:15:19]OFD Sender: No OFD packet to send [22:15:24]OFD Sender: No OFD packet to send [22:15:29]OFD Sender: No OFD packet to send [22:15:34]OFD Sender: No OFD packet to send [22:15:39]OFD Sender: No OFD packet to send [22:15:44]OFD Sender: No OFD packet to send [22:15:49]OFD Sender: No OFD packet to send [22:15:54]OFD Sender: No OFD packet to send [22:15:59]OFD Sender: No OFD packet to send [22:16:04]OFD Sender: No OFD packet to send [22:16:09]OFD Sender: No OFD packet to send [22:16:14]OFD Sender: No OFD packet to send [22:16:19]OFD Sender: No OFD packet to send [22:16:20]accept exits with 9 [22:16:20]New connection [22:16:20]New thread 3067284836 created [22:16:20]Thread 3067141476 joined [22:16:20]Waiting for new connection... [22:16:20] Sock 9.Parse request [22:16:20]Sock 9.Check first char [22:16:20]Sock 9.First char is OK [22:16:20]request: POST /json_proto HTTP/1.0 [22:16:20]Method: POST [22:16:20]URL: /json_proto [22:16:20]Method is POST - this is cgi request [22:16:20]url: /json_proto [22:16:20]query_string will be loaded in cgi processing [22:16:20]execute_cgi json_proto POST (null) [22:16:20]execute_cgi path=json_proto method=POST [22:16:20]POST find Content-Length [22:16:20]Host: 172.17.50.196:8080 [22:16:20]Content-Length: 804 [22:16:20]Content-Type: application/json [22:16:20] [22:16:20]POST finish read [22:16:20]Found Content-Length = 804 [22:16:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "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" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:20]execute_script... [22:16: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)1094812", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 33", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "price" : 66.90, "quantity" : 44.850, "sum" : 3000.47, "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" : 3000.47 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:16:20]POST & json_proto [22:16:20]process_json_proto [22:16:20]json parsed OK: [22:16:20]protocol is kg_v1.0 [22:16:20]action value=close_receipt [22:16:20]process_action close_receipt [22:16:20]cmd_close_receipt [22:16:20]MH_GetDate [22:16:20]Write to MH i2c: F0 00 00 AD 5E FA [22:16:20]Write i2c OK [22:16:20]MH_I2C_Read... [22:16:20]Read from MH i2c: F0 [22:16:20]MH_I2C_Read... [22:16:20]Read from MH i2c: F0 09 00 [22:16:20]MH_I2C_Read... [22:16:20]Read from MH i2c: F0 09 00 AD 5E 00 3B B0 22 67 72 0D 1C 67 79 [22:16:20]GetLastDocTimeStamp 1730325708 [22:16:20]current date 1730326587 [22:16:20]FM_GetShiftState [22:16:20]SAM_PROTO_GetShiftState [22:16:20]wFMCommunicate request_size=4 [22:16:20]MH_SAM_APDU [22:16:20]CAPDU: 80 13 01 00 [22:16:20]Write to MH i2c: E2 08 00 AE 5E 80 13 01 00 00 00 00 00 89 [22:16:20]Write i2c OK [22:16:20]MH_I2C_Read... [22:16:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:20]Read from MH i2c: E2 [22:16:20]MH_I2C_Read... [22:16:20]Read from MH i2c: E2 0E 00 [22:16:20]MH_I2C_Read... [22:16:20]Read from MH i2c: E2 0E 00 AE 5E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 19 [22:16:20]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:16:20]wFMCommunicate OK [22:16:20]SAM_PROTO_GetShiftState done [22:16:20]FM_GetShiftState done [22:16:20]opened in 1730246278 [22:16:20]opened+sec_in_day 1730332678 [22:16:20]quantity*price = 300046 [22:16:20]sum+1 = 300048 [22:16:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 3000.47 НСП 1% : 26.55 НДС 12% : 318.63 Наличными: 0.00 Безнал.: 3000.47 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 191 30.10.2024 22:16 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874669 ФД: 139507 ФПД: 128961363849925 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T221627&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139507&fm=128961363849925&tin=02508201610067®Number=0000000000091631&sum=300047 [22:16:21]StoreToDocumentArchive [22:16:21]shift 556 fd 139507 [22:16:21]save to /storage/0556/doc_00139507 [22:16:21]save last doc name /storage/0556/doc_00139507 to /storage/kkm_last_doc_name [22:16:21]save OK [22:16:21]Clear old archive folders... [22:16:21]ProcessDocumentItem done err = 0, tmpTLVsize=251 [22:16:21]tlvbuf is 011E48E0 [22:16:21]SAM_PROTO_ClearQueue [22:16:21]wFMCommunicate request_size=4 [22:16:21]MH_SAM_APDU [22:16:21]CAPDU: 80 09 00 00 [22:16:21]Write to MH i2c: E2 08 00 BB 5E 80 09 00 00 00 00 00 00 8B [22:16:21]Write i2c OK [22:16:21]MH_I2C_Read... [22:16:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:16:21]Read from MH i2c: E2 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 03 00 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 03 00 BB 5E 00 90 00 8D [22:16:21]RAPDU: 90 00 [22:16:21]wFMCommunicate OK [22:16:21]SAM_PROTO_ClearQueue done [22:16:21]KKMCreateOFDPacket [22:16:21]OFDProtocolAddRootSTLVToBuf [22:16:21]FM_MakeSignedData [22:16:21]FM_MakeSignedData [22:16:21]SAM_PROTO_SignData [22:16:21]wFMCommunicate request_size=4 [22:16:21]MH_SAM_APDU [22:16:21]CAPDU: 80 0D 01 02 [22:16:21]Write to MH i2c: E2 08 00 BC 5E 80 0D 01 02 00 00 00 00 93 [22:16:21]Write i2c OK [22:16:21]MH_I2C_Read... [22:16:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:16:21]Read from MH i2c: E2 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 03 00 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 03 00 BC 5E 00 90 00 8E [22:16:21]RAPDU: 90 00 [22:16:21]wFMCommunicate OK [22:16:21]wFMCommunicate request_size=255 [22:16:21]MH_SAM_APDU [22:16:21]CAPDU: 80 0D 02 02 FA 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3B B0 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 20 02 00 35 04 06 00 75 [22:16:21]Write to MH i2c: E2 02 01 BD 5E 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3B B0 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 20 02 00 35 04 06 00 75 00 00 F6 [22:16:21]Write i2c OK [22:16:21]MH_I2C_Read... [22:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:21]Read from MH i2c: E2 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 03 00 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 03 00 BD 5E 00 90 00 8F [22:16:21]RAPDU: 90 00 [22:16:21]wFMCommunicate OK [22:16:21]wFMCommunicate request_size=10 [22:16:21]MH_SAM_APDU [22:16:21]CAPDU: 80 0D 02 02 05 4A 28 48 32 C5 [22:16:21]Write to MH i2c: E2 0D 00 BE 5E 80 0D 02 02 05 00 4A 28 48 32 C5 00 00 51 [22:16:21]Write i2c OK [22:16:21]MH_I2C_Read... [22:16:21]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:16:21]Read from MH i2c: E2 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 03 00 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 03 00 BE 5E 00 90 00 90 [22:16:21]RAPDU: 90 00 [22:16:21]wFMCommunicate OK [22:16:21]wFMCommunicate request_size=4 [22:16:21]MH_SAM_APDU [22:16:21]CAPDU: 80 0D 03 02 [22:16:21]Write to MH i2c: E2 08 00 BF 5E 80 0D 03 02 00 00 00 00 98 [22:16:21]Write i2c OK [22:16:21]MH_I2C_Read... [22:16:21]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:16:21]Read from MH i2c: E2 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 0B 00 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 0B 00 BF 5E 00 52 C0 31 2B B0 EB A3 83 90 00 C8 [22:16:21]RAPDU: 52 C0 31 2B B0 EB A3 83 90 00 [22:16:21]wFMCommunicate OK [22:16:21]SAM_PROTO_SignData done [22:16:21]FM_MakeSignedData done [22:16:21]CreateOFDProtocolMessage [22:16:21]wFMCommunicate request_size=4 [22:16:21]MH_SAM_APDU [22:16:21]CAPDU: 80 11 00 00 [22:16:21]Write to MH i2c: E2 08 00 C0 5E 80 11 00 00 00 00 00 00 98 [22:16:21]Write i2c OK [22:16:21]MH_I2C_Read... [22:16:21]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:21]Read from MH i2c: E2 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 17 00 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: E2 17 00 C0 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F3 [22:16:21]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:16:21]wFMCommunicate OK [22:16:21]CreateOFDProtocolMessage done [22:16:21]OFDSenderStorePacket 139507 [22:16:21]StoreOFDPacket docnum=139507 [22:16:21]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 D8 58 07 01 1E 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3B B0 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 20 02 00 35 04 06 00 75 4A 28 48 32 C5 52 C0 31 2B B0 EB A3 83 [22:16:21]CheckFolder [22:16:21]dirname=/storage/ofd_packets [22:16:21]CheckFolder done [22:16:21]ProducePacketName [22:16:21]name=ofd_packets/00139507 [22:16:21]NVStorageSaveData ofd_packets/00139507 [22:16:21]File name is /storage/ofd_packets/00139507 [22:16:21]Write 301 bytes [22:16:21]NVStorageSaveData done [22:16:21]OFDSenderStorePacket done [22:16:21]KKMCreateOFDPacket done [22:16:21]NVStorageSaveData kkm_last_timestamp [22:16:21]File name is /storage/kkm_last_timestamp [22:16:21]Write 4 bytes [22:16:21]NVStorageSaveData done [22:16:21]ExternCall_PrintAddStr [22:16:21]wPrintStart [22:16:21]Write to MH i2c: 01 00 00 C1 5E 1F [22:16:21]Write i2c OK [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: 01 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: 01 07 00 [22:16:21]MH_I2C_Read... [22:16:21]Read from MH i2c: 01 07 00 C1 5E 00 00 00 00 00 FF 0F 34 [22:16:21]RasterBufferAndPrint [22:16:21]line Счет N : (1)1094812 [22:16:21]line ИНН: 02508201610067 [22:16:21]line Контрольно-Кассовый Чек [22:16:21]line ПРОДАЖА [22:16:21]line ТРК (МРК, ГНК) : 33 [22:16:21]line Товар: 2710124130 [22:16:21]line Аи-92-К-2 [22:16:21]line 44.850 * 66.90 [22:16:21]line = 3000.47 [22:16:21]line НДС 12% НСП 1% [22:16:21]line > о реализуемом товаре [22:16:21]line ИТОГО: 3000.47 [22:16:21]line НСП 1% : 26.55 [22:16:21]line НДС 12% : 318.63 [22:16:21]line Наличными: 0.00 [22:16:21]line Безнал.: 3000.47 [22:16:21]line Место: АЗС № 101 "Партнер Нефть" [22:16:21]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:16:21]line СНО: Общий режим [22:16:21]line Чек 191 30.10.2024 22:16 [22:16:21]line Смена: 556 ФФД: 1.0 [22:16:21]line ЗНМ: 0300000081 [22:16:21]line РНМ: 0000000000091631 [22:16:21]line Версия ККМ: 001 [22:16:21]line Платежная система: O! деньги [22:16:21]line ФМ: 0000000000874669 [22:16:21]line ФД: 139507 [22:16:21]line ФПД: 128961363849925 [22:16:21]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T221627&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139507&fm=128961363849925&tin=02508201610067®Number=0000000000091631&sum=300047 [22:16:22]written 0, free lines is 4095 [22:16:22]OFD Sender: Processing packet 139507 [packets to send 34, broken 33] [22:16:22]ProducePacketName [22:16:22]name=ofd_packets/00139507 [22:16:22]OFD Sender: To server: pG, [22:16:22]CommunicateWithHost lk.salyk.kg:30040 [22:16:22]ConnectInit lk.salyk.kg [22:16:22]Connected sock=10 [22:16:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 D8 58 07 01 1E 44 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 0F 94 04 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5F 0A 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 7C 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 0F 94 04 00 00 00 1F 04 02 00 01 00 12 04 04 00 BF 00 00 00 F4 03 04 00 3B B0 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 20 02 00 35 04 06 00 75 4A 28 48 32 C5 52 C0 31 2B B0 EB A3 83 [22:16:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F2 09 47 00 04 68 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F3 20 02 00 F4 03 04 00 EA 5B 22 67 B6 04 01 00 00 C9 1E B9 D8 96 FB 21 12 [22:16:22]CommunicateWithHost err = 0 [22:16:22]CheckOFDResponse [22:16:22]1017 (14) - 77093643461234 [22:16:22]1041 (16) - 0000000000874669 [22:16:22]1040 (4) - 139507 [22:16:22]1012 (4) - 30.10.2024 16:16 [22:16:22]1206 (1) - 0 [22:16:22]OFD Sender: Remove packet 139507 [22:16:22]ProducePacketName [22:16:22]name=ofd_packets/00139507 [22:16:22]NVStorageDeleteData [22:16:22]Write to MH i2c: 01 00 00 EB 5E 49 [22:16:22]Write i2c OK [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: 01 [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: 01 07 00 [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: 01 07 00 EB 5E 00 00 00 00 00 03 0D 60 [22:16:22]RasterBufferAndPrint [22:16:22]line [22:16:22]line [22:16:22]line [22:16:22]line [22:16:22]line [22:16:22]written 0, free lines is 3337 [22:16:22]MH_Cut [22:16:22]Write to MH i2c: D1 01 00 F2 5E 01 22 [22:16:22]Write i2c OK [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: D1 [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: D1 01 00 [22:16:22]MH_I2C_Read... [22:16:22]Read from MH i2c: D1 01 00 F2 5E 00 21 [22:16:22]Write to MH i2c: 01 00 00 F3 5E 51 [22:16:22]Write i2c OK [22:16:22]MH_I2C_Read... [22:16:23]OFD Sender: No OFD packet to send [22:16:23]*** Cut start [22:16:23]*** Partial cut [22:16:23]*** CUTSNS_PIN = 1 [22:16:23]*** CUTSNS_PIN = 0 [22:16:23]*** Brake cut motor [22:16:23]Read from MH i2c: 01 [22:16:23]MH_I2C_Read... [22:16:23]*** Stop cut motor [22:16:23]*** Cut end [22:16:23]Read from MH i2c: 01 07 00 [22:16:23]MH_I2C_Read... [22:16:23]Read from MH i2c: 01 07 00 F3 5E 00 00 00 00 00 FF 0F 66 [22:16:23]process_action close_receipt done [22:16:23]requested_data is exist [22:16:23]produce_requested_data [22:16:23]requested_item fm.sn is exist - process it [22:16:23]wFMCommunicate request_size=4 [22:16:23]MH_SAM_APDU [22:16:23]CAPDU: 80 11 00 00 [22:16:23]Write to MH i2c: E2 08 00 F4 5E 80 11 00 00 00 00 00 00 CC [22:16:23]Write i2c OK [22:16:23]MH_I2C_Read... [22:16:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:16:24]Read from MH i2c: E2 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 17 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 17 00 F4 5E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 27 [22:16:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:16:24]wFMCommunicate OK [22:16:24]requested_item fd.num is exist - process it [22:16:24]SAM_PROTO_GetFieldsCounters [22:16:24]wFMCommunicate request_size=4 [22:16:24]MH_SAM_APDU [22:16:24]CAPDU: 80 13 00 00 [22:16:24]Write to MH i2c: E2 08 00 F5 5E 80 13 00 00 00 00 00 00 CF [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:16:24]Read from MH i2c: E2 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 62 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 62 00 F5 5E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F3 20 02 00 0E 04 04 00 2C 02 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 73 [22:16:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F3 20 02 00 0E 04 04 00 2C 02 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 [22:16:24]wFMCommunicate OK [22:16:24]SAM_PROTO_GetFieldsCounters done [22:16:24]requested_item shift.num is exist - process it [22:16:24]requested_item shift.opened is exist - process it [22:16:24]req_shift_opened [22:16:24]FM_GetShiftState [22:16:24]SAM_PROTO_GetShiftState [22:16:24]wFMCommunicate request_size=4 [22:16:24]MH_SAM_APDU [22:16:24]CAPDU: 80 13 01 00 [22:16:24]Write to MH i2c: E2 08 00 F6 5E 80 13 01 00 00 00 00 00 D1 [22:16:24]Write i2c OK [22:16:24]MH_I2C_Read... [22:16:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:16:24]Read from MH i2c: E2 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 0E 00 [22:16:24]MH_I2C_Read... [22:16:24]Read from MH i2c: E2 0E 00 F6 5E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 61 [22:16:24]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:16:24]wFMCommunicate OK [22:16:24]SAM_PROTO_GetShiftState done [22:16:24]FM_GetShiftState done [22:16:24]req_shift_opened done [22:16:24]requested_item shift.open_date is exist - process it [22:16:24]req_shift_open_date [22:16:24]req_shift_open_date done [22:16:24]produce_requested_data done [22:16:24]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139507,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [22:16:24]process_action_free close_receipt [22:16:24]json_value_free [22:16:24]json_value_free done [22:16:24]process_json_proto returns [22:16:24]Send response to host [22:16:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139507,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [22:16:24]free response buf [22:16:24]execute_script done [22:16:24]execute_script returns [22:16:24]free content buf [22:16:24]Sock 9.Close socket [22:16:24]Sock 9.Thread stoped [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:08]accept exits with 8 [22:18:08]New connection [22:18:08]New thread 3067141476 created [22:18:08]Thread 3067284836 joined [22:18:08]Waiting for new connection... [22:18:08] Sock 8.Parse request [22:18:08]Sock 8.Check first char [22:18:08]Sock 8.First char is OK [22:18:08]request: POST /json_proto HTTP/1.0 [22:18:08]Method: POST [22:18:08]URL: /json_proto [22:18:08]Method is POST - this is cgi request [22:18:08]url: /json_proto [22:18:08]query_string will be loaded in cgi processing [22:18:08]execute_cgi json_proto POST (null) [22:18:08]execute_cgi path=json_proto method=POST [22:18:08]POST find Content-Length [22:18:08]Host: 172.17.50.196:8080 [22:18:08]Content-Length: 728 [22:18:08]Content-Type: application/json [22:18:08] [22:18:08]POST finish read [22:18:08]Found Content-Length = 728 [22:18:08]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335384", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:08]execute_script... [22: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 : (3)335384", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:18:08]POST & json_proto [22:18:08]process_json_proto [22:18:08]json parsed OK: [22:18:08]protocol is kg_v1.0 [22:18:08]action value=close_receipt [22:18:08]process_action close_receipt [22:18:08]cmd_close_receipt [22:18:08]MH_GetDate [22:18:08]Write to MH i2c: F0 00 00 F7 5E 44 [22:18:08]Write i2c OK [22:18:08]MH_I2C_Read... [22:18:08]Read from MH i2c: F0 [22:18:08]MH_I2C_Read... [22:18:08]Read from MH i2c: F0 09 00 [22:18:08]MH_I2C_Read... [22:18:08]Read from MH i2c: F0 09 00 F7 5E 00 A8 B0 22 67 72 0D 1C 67 30 [22:18:08]GetLastDocTimeStamp 1730326587 [22:18:08]current date 1730326696 [22:18:08]FM_GetShiftState [22:18:08]SAM_PROTO_GetShiftState [22:18:08]wFMCommunicate request_size=4 [22:18:08]MH_SAM_APDU [22:18:08]CAPDU: 80 13 01 00 [22:18:08]Write to MH i2c: E2 08 00 F8 5E 80 13 01 00 00 00 00 00 D3 [22:18:08]Write i2c OK [22:18:08]MH_I2C_Read... [22:18:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:09]Read from MH i2c: E2 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 0E 00 [22:18:09]MH_I2C_Read... [22:18:09]Read from MH i2c: E2 0E 00 F8 5E 00 09 00 01 86 76 21 67 00 00 00 00 90 00 63 [22:18:09]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:18:09]wFMCommunicate OK [22:18:09]SAM_PROTO_GetShiftState done [22:18:09]FM_GetShiftState done [22:18:09]opened in 1730246278 [22:18:09]opened+sec_in_day 1730332678 [22:18:09]quantity*price = 6000 [22:18:09]sum+1 = 6001 [22:18:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 192 30.10.2024 22:18 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139508 ФПД: 226948045674055 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T221816&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139508&fm=226948045674055&tin=02508201610067®Number=0000000000091631&sum=6000 0 [22:18:10]StoreToDocumentArchive [22:18:10]shift 556 fd 139508 [22:18:10]save to /storage/0556/doc_00139508 [22:18:10]save last doc name /storage/0556/doc_00139508 to /storage/kkm_last_doc_name [22:18:10]save OK [22:18:10]Clear old archive folders... [22:18:10]ProcessDocumentItem done err = 0, tmpTLVsize=303 [22:18:10]tlvbuf is 012450D0 [22:18:10]SAM_PROTO_ClearQueue [22:18:10]wFMCommunicate request_size=4 [22:18:10]MH_SAM_APDU [22:18:10]CAPDU: 80 09 00 00 [22:18:10]Write to MH i2c: E2 08 00 05 5F 80 09 00 00 00 00 00 00 D6 [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:18:10]Read from MH i2c: E2 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 03 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 03 00 05 5F 00 90 00 D8 [22:18:10]RAPDU: 90 00 [22:18:10]wFMCommunicate OK [22:18:10]SAM_PROTO_ClearQueue done [22:18:10]KKMCreateOFDPacket [22:18:10]OFDProtocolAddRootSTLVToBuf [22:18:10]FM_MakeSignedData [22:18:10]FM_MakeSignedData [22:18:10]SAM_PROTO_SignData [22:18:10]wFMCommunicate request_size=4 [22:18:10]MH_SAM_APDU [22:18:10]CAPDU: 80 0D 01 02 [22:18:10]Write to MH i2c: E2 08 00 06 5F 80 0D 01 02 00 00 00 00 DE [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:18:10]Read from MH i2c: E2 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 03 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 03 00 06 5F 00 90 00 D9 [22:18:10]RAPDU: 90 00 [22:18:10]wFMCommunicate OK [22:18:10]wFMCommunicate request_size=255 [22:18:10]MH_SAM_APDU [22:18:10]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 A8 B0 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D [22:18:10]Write to MH i2c: E2 02 01 07 5F 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 A8 B0 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 00 00 8D [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:10]Read from MH i2c: E2 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 03 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 03 00 07 5F 00 90 00 DA [22:18:10]RAPDU: 90 00 [22:18:10]wFMCommunicate OK [22:18:10]wFMCommunicate request_size=62 [22:18:10]MH_SAM_APDU [22:18:10]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 20 02 00 35 04 06 00 CE 68 75 A5 16 47 [22:18:10]Write to MH i2c: E2 41 00 08 5F 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 20 02 00 35 04 06 00 CE 68 75 A5 16 47 00 00 E2 [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:18:10]Read from MH i2c: E2 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 03 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 03 00 08 5F 00 90 00 DB [22:18:10]RAPDU: 90 00 [22:18:10]wFMCommunicate OK [22:18:10]wFMCommunicate request_size=4 [22:18:10]MH_SAM_APDU [22:18:10]CAPDU: 80 0D 03 02 [22:18:10]Write to MH i2c: E2 08 00 09 5F 80 0D 03 02 00 00 00 00 E3 [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:18:10]Read from MH i2c: E2 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 0B 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 0B 00 09 5F 00 3B FB BB 24 1D 35 71 B8 90 00 74 [22:18:10]RAPDU: 3B FB BB 24 1D 35 71 B8 90 00 [22:18:10]wFMCommunicate OK [22:18:10]SAM_PROTO_SignData done [22:18:10]FM_MakeSignedData done [22:18:10]CreateOFDProtocolMessage [22:18:10]wFMCommunicate request_size=4 [22:18:10]MH_SAM_APDU [22:18:10]CAPDU: 80 11 00 00 [22:18:10]Write to MH i2c: E2 08 00 0A 5F 80 11 00 00 00 00 00 00 E3 [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:10]Read from MH i2c: E2 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 17 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: E2 17 00 0A 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3E [22:18:10]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:18:10]wFMCommunicate OK [22:18:10]CreateOFDProtocolMessage done [22:18:10]OFDSenderStorePacket 139508 [22:18:10]StoreOFDPacket docnum=139508 [22:18:10]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 74 D7 3B 01 EE 21 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 A8 B0 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 20 02 00 35 04 06 00 CE 68 75 A5 16 47 3B FB BB 24 1D 35 71 B8 [22:18:10]CheckFolder [22:18:10]dirname=/storage/ofd_packets [22:18:10]CheckFolder done [22:18:10]ProducePacketName [22:18:10]name=ofd_packets/00139508 [22:18:10]NVStorageSaveData ofd_packets/00139508 [22:18:10]File name is /storage/ofd_packets/00139508 [22:18:10]Write 353 bytes [22:18:10]NVStorageSaveData done [22:18:10]OFDSenderStorePacket done [22:18:10]KKMCreateOFDPacket done [22:18:10]NVStorageSaveData kkm_last_timestamp [22:18:10]File name is /storage/kkm_last_timestamp [22:18:10]Write 4 bytes [22:18:10]NVStorageSaveData done [22:18:10]ExternCall_PrintAddStr [22:18:10]wPrintStart [22:18:10]Write to MH i2c: 01 00 00 0B 5F 6A [22:18:10]Write i2c OK [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: 01 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: 01 07 00 [22:18:10]MH_I2C_Read... [22:18:10]Read from MH i2c: 01 07 00 0B 5F 00 00 00 00 00 FF 0F 7F [22:18:10]RasterBufferAndPrint [22:18:10]line Счет N : (3)335384 [22:18:10]line ИНН: 02508201610067 [22:18:10]line Контрольно-Кассовый Чек [22:18:10]line ПРОДАЖА [22:18:10]line Товар: 4700000160792 [22:18:10]line Снек Курут классический (круглый) [22:18:10]line 1.000 * 60.00 [22:18:10]line = 60.00 [22:18:10]line НДС 12% НСП 1% [22:18:10]line > о реализуемом товаре [22:18:10]line ИТОГО: 60.00 [22:18:10]line НСП 1% : 0.53 [22:18:10]line НДС 12% : 6.37 [22:18:10]line Наличными: 60.00 [22:18:10]line Безнал.: 0.00 [22:18:10]line Место: АЗС № 101 "Партнер Нефть" [22:18:10]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:18:10]line СНО: Общий режим [22:18:10]line Чек 192 30.10.2024 22:18 [22:18:10]line Смена: 556 ФФД: 1.0 [22:18:10]line ЗНМ: 0300000081 [22:18:10]line РНМ: 0000000000091631 [22:18:10]line Версия ККМ: 001 [22:18:10]line ФМ: 0000000000874669 [22:18:10]line ФД: 139508 [22:18:10]line ФПД: 226948045674055 [22:18:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T221816&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139508&fm=226948045674055&tin=02508201610067®Number=0000000000091631&sum=6000 [22:18:11]line 0 [22:18:11]OFD Sender: Processing packet 139508 [packets to send 34, broken 33] [22:18:11]ProducePacketName [22:18:11]name=ofd_packets/00139508 [22:18:11]OFD Sender: To server: pG, [22:18:11]CommunicateWithHost lk.salyk.kg:30040 [22:18:11]ConnectInit lk.salyk.kg [22:18:11]written 0, free lines is 4095 [22:18:11]Connected sock=10 [22:18:11]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 74 D7 3B 01 EE 21 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 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 A8 B0 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F4 20 02 00 35 04 06 00 CE 68 75 A5 16 47 3B FB BB 24 1D 35 71 B8 [22:18:11]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 16 35 47 00 2E 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 38 37 34 36 36 39 10 04 04 00 F4 20 02 00 F4 03 04 00 57 5C 22 67 B6 04 01 00 00 55 3F C1 90 8F 83 21 C1 [22:18:11]CommunicateWithHost err = 0 [22:18:11]CheckOFDResponse [22:18:11]1017 (14) - 77093643461234 [22:18:11]1041 (16) - 0000000000874669 [22:18:11]1040 (4) - 139508 [22:18:11]1012 (4) - 30.10.2024 16:18 [22:18:11]1206 (1) - 0 [22:18:11]OFD Sender: Remove packet 139508 [22:18:11]ProducePacketName [22:18:11]name=ofd_packets/00139508 [22:18:11]NVStorageDeleteData [22:18:11]Write to MH i2c: 01 00 00 34 5F 93 [22:18:11]Write i2c OK [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: 01 [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: 01 07 00 [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: 01 07 00 34 5F 00 00 00 00 00 05 0D AC [22:18:11]RasterBufferAndPrint [22:18:11]line [22:18:11]line [22:18:11]line [22:18:11]line [22:18:11]line [22:18:11]written 0, free lines is 3342 [22:18:11]MH_Cut [22:18:11]Write to MH i2c: D1 01 00 3B 5F 01 6C [22:18:11]Write i2c OK [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: D1 [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: D1 01 00 [22:18:11]MH_I2C_Read... [22:18:11]Read from MH i2c: D1 01 00 3B 5F 00 6B [22:18:11]Write to MH i2c: 01 00 00 3C 5F 9B [22:18:11]Write i2c OK [22:18:11]MH_I2C_Read... [22:18:11]OFD Sender: No OFD packet to send [22:18:12]*** Cut start [22:18:12]*** Partial cut [22:18:12]*** CUTSNS_PIN = 1 [22:18:12]*** CUTSNS_PIN = 0 [22:18:12]*** Brake cut motor [22:18:12]Read from MH i2c: 01 [22:18:12]MH_I2C_Read... [22:18:12]*** Stop cut motor [22:18:12]*** Cut end [22:18:12]Read from MH i2c: 01 07 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: 01 07 00 3C 5F 00 00 00 00 00 FF 0F B0 [22:18:12]process_action close_receipt done [22:18:12]requested_data is exist [22:18:12]produce_requested_data [22:18:12]requested_item fm.sn is exist - process it [22:18:12]wFMCommunicate request_size=4 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 11 00 00 [22:18:12]Write to MH i2c: E2 08 00 3D 5F 80 11 00 00 00 00 00 00 16 [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 17 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 17 00 3D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 71 [22:18:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:18:12]wFMCommunicate OK [22:18:12]requested_item fd.num is exist - process it [22:18:12]SAM_PROTO_GetFieldsCounters [22:18:12]wFMCommunicate request_size=4 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 13 00 00 [22:18:12]Write to MH i2c: E2 08 00 3E 5F 80 13 00 00 00 00 00 00 19 [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:12]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:18:12]Read from MH i2c: E2 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 62 00 [22:18:12]MH_I2C_Read... [22:18:12]Read from MH i2c: E2 62 00 3E 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 20 02 00 0E 04 04 00 2C 02 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 C1 [22:18:12]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F4 20 02 00 0E 04 04 00 2C 02 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 [22:18:12]wFMCommunicate OK [22:18:12]SAM_PROTO_GetFieldsCounters done [22:18:12]requested_item shift.num is exist - process it [22:18:12]requested_item shift.opened is exist - process it [22:18:12]req_shift_opened [22:18:12]FM_GetShiftState [22:18:12]SAM_PROTO_GetShiftState [22:18:12]wFMCommunicate request_size=4 [22:18:12]MH_SAM_APDU [22:18:12]CAPDU: 80 13 01 00 [22:18:12]Write to MH i2c: E2 08 00 3F 5F 80 13 01 00 00 00 00 00 1B [22:18:12]Write i2c OK [22:18:12]MH_I2C_Read... [22:18:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:18:13]Read from MH i2c: E2 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: E2 0E 00 [22:18:13]MH_I2C_Read... [22:18:13]Read from MH i2c: E2 0E 00 3F 5F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AB [22:18:13]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:18:13]wFMCommunicate OK [22:18:13]SAM_PROTO_GetShiftState done [22:18:13]FM_GetShiftState done [22:18:13]req_shift_opened done [22:18:13]requested_item shift.open_date is exist - process it [22:18:13]req_shift_open_date [22:18:13]req_shift_open_date done [22:18:13]produce_requested_data done [22:18:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139508,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [22:18:13]process_action_free close_receipt [22:18:13]json_value_free [22:18:13]json_value_free done [22:18:13]process_json_proto returns [22:18:13]Send response to host [22:18:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139508,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [22:18:13]free response buf [22:18:13]execute_script done [22:18:13]execute_script returns [22:18:13]free content buf [22:18:13]Sock 8.Close socket [22:18:13]Sock 8.Thread stoped [22:18:16]OFD Sender: No OFD packet to send [22:18:21]OFD Sender: No OFD packet to send [22:18:26]OFD Sender: No OFD packet to send [22:18:31]OFD Sender: No OFD packet to send [22:18:36]OFD Sender: No OFD packet to send [22:18:41]OFD Sender: No OFD packet to send [22:18:46]OFD Sender: No OFD packet to send [22:18:51]OFD Sender: No OFD packet to send [22:18:56]OFD Sender: No OFD packet to send [22:19:01]OFD Sender: No OFD packet to send [22:19:06]OFD Sender: No OFD packet to send [22:19:11]OFD Sender: No OFD packet to send [22:19:16]OFD Sender: No OFD packet to send [22:19:21]OFD Sender: No OFD packet to send [22:19:26]OFD Sender: No OFD packet to send [22:19:31]OFD Sender: No OFD packet to send [22:19:36]OFD Sender: No OFD packet to send [22:19:41]OFD Sender: No OFD packet to send [22:19:46]OFD Sender: No OFD packet to send [22:19:51]OFD Sender: No OFD packet to send [22:19:56]OFD Sender: No OFD packet to send [22:20:01]OFD Sender: No OFD packet to send [22:20:06]OFD Sender: No OFD packet to send [22:20:11]OFD Sender: No OFD packet to send [22:20:16]OFD Sender: No OFD packet to send [22:20:21]OFD Sender: No OFD packet to send [22:20:26]OFD Sender: No OFD packet to send [22:20:31]OFD Sender: No OFD packet to send [22:20:36]OFD Sender: No OFD packet to send [22:20:41]OFD Sender: No OFD packet to send [22:20:46]OFD Sender: No OFD packet to send [22:20:51]OFD Sender: No OFD packet to send [22:20:56]OFD Sender: No OFD packet to send [22:21:01]OFD Sender: No OFD packet to send [22:21:07]OFD Sender: No OFD packet to send [22:21:12]OFD Sender: No OFD packet to send [22:21:17]OFD Sender: No OFD packet to send [22:21:22]OFD Sender: No OFD packet to send [22:21:27]OFD Sender: No OFD packet to send [22:21:32]OFD Sender: No OFD packet to send [22:21:37]OFD Sender: No OFD packet to send [22:21:42]OFD Sender: No OFD packet to send [22:21:47]OFD Sender: No OFD packet to send [22:21:52]OFD Sender: No OFD packet to send [22:21:57]OFD Sender: No OFD packet to send [22:22:02]OFD Sender: No OFD packet to send [22:22:07]OFD Sender: No OFD packet to send [22:22:12]OFD Sender: No OFD packet to send [22:22:17]OFD Sender: No OFD packet to send [22:22:22]OFD Sender: No OFD packet to send [22:22:27]OFD Sender: No OFD packet to send [22:22:32]OFD Sender: No OFD packet to send [22:22:37]OFD Sender: No OFD packet to send [22:22:42]OFD Sender: No OFD packet to send [22:22:47]OFD Sender: No OFD packet to send [22:22:52]OFD Sender: No OFD packet to send [22:22:57]OFD Sender: No OFD packet to send [22:23:02]OFD Sender: No OFD packet to send [22:23:07]OFD Sender: No OFD packet to send [22:23:12]OFD Sender: No OFD packet to send [22:23:17]OFD Sender: No OFD packet to send [22:23:22]OFD Sender: No OFD packet to send [22:23:27]OFD Sender: No OFD packet to send [22:23:32]OFD Sender: No OFD packet to send [22:23:37]OFD Sender: No OFD packet to send [22:23:42]OFD Sender: No OFD packet to send [22:23:47]OFD Sender: No OFD packet to send [22:23:52]OFD Sender: No OFD packet to send [22:23:57]OFD Sender: No OFD packet to send [22:24:02]OFD Sender: No OFD packet to send [22:24:07]OFD Sender: No OFD packet to send [22:24:12]OFD Sender: No OFD packet to send [22:24:17]OFD Sender: No OFD packet to send [22:24:22]OFD Sender: No OFD packet to send [22:24:27]OFD Sender: No OFD packet to send [22:24:32]OFD Sender: No OFD packet to send [22:24:37]OFD Sender: No OFD packet to send [22:24:42]OFD Sender: No OFD packet to send [22:24:47]OFD Sender: No OFD packet to send [22:24:52]OFD Sender: No OFD packet to send [22:24:57]OFD Sender: No OFD packet to send [22:25:02]OFD Sender: No OFD packet to send [22:25:07]OFD Sender: No OFD packet to send [22:25:12]OFD Sender: No OFD packet to send [22:25:17]OFD Sender: No OFD packet to send [22:25:22]OFD Sender: No OFD packet to send [22:25:27]OFD Sender: No OFD packet to send [22:25:32]OFD Sender: No OFD packet to send [22:25:37]OFD Sender: No OFD packet to send [22:25:42]OFD Sender: No OFD packet to send [22:25:47]OFD Sender: No OFD packet to send [22:25:52]OFD Sender: No OFD packet to send [22:25:57]OFD Sender: No OFD packet to send [22:26:02]OFD Sender: No OFD packet to send [22:26:07]OFD Sender: No OFD packet to send [22:26:12]OFD Sender: No OFD packet to send [22:26:17]OFD Sender: No OFD packet to send [22:26:22]OFD Sender: No OFD packet to send [22:26:27]OFD Sender: No OFD packet to send [22:26:32]OFD Sender: No OFD packet to send [22:26:37]OFD Sender: No OFD packet to send [22:26:42]OFD Sender: No OFD packet to send [22:26:47]OFD Sender: No OFD packet to send [22:26:52]OFD Sender: No OFD packet to send [22:26:57]OFD Sender: No OFD packet to send [22:27:02]OFD Sender: No OFD packet to send [22:27:07]OFD Sender: No OFD packet to send [22:27:12]OFD Sender: No OFD packet to send [22:27:17]OFD Sender: No OFD packet to send [22:27:22]OFD Sender: No OFD packet to send [22:27:27]OFD Sender: No OFD packet to send [22:27:32]OFD Sender: No OFD packet to send [22:27:37]OFD Sender: No OFD packet to send [22:27:42]OFD Sender: No OFD packet to send [22:27:47]OFD Sender: No OFD packet to send [22:27:52]OFD Sender: No OFD packet to send [22:27:57]OFD Sender: No OFD packet to send [22:28:02]OFD Sender: No OFD packet to send [22:28:07]OFD Sender: No OFD packet to send [22:28:12]OFD Sender: No OFD packet to send [22:28:17]OFD Sender: No OFD packet to send [22:28:22]OFD Sender: No OFD packet to send [22:28:27]OFD Sender: No OFD packet to send [22:28:32]OFD Sender: No OFD packet to send [22:28:37]OFD Sender: No OFD packet to send [22:28:42]OFD Sender: No OFD packet to send [22:28:47]OFD Sender: No OFD packet to send [22:28:52]OFD Sender: No OFD packet to send [22:28:57]OFD Sender: No OFD packet to send [22:29:02]OFD Sender: No OFD packet to send [22:29:07]OFD Sender: No OFD packet to send [22:29:12]OFD Sender: No OFD packet to send [22:29:17]OFD Sender: No OFD packet to send [22:29:22]OFD Sender: No OFD packet to send [22:29:27]OFD Sender: No OFD packet to send [22:29:32]OFD Sender: No OFD packet to send [22:29:37]OFD Sender: No OFD packet to send [22:29:42]OFD Sender: No OFD packet to send [22:29:47]OFD Sender: No OFD packet to send [22:29:52]OFD Sender: No OFD packet to send [22:29:57]OFD Sender: No OFD packet to send [22:30:02]OFD Sender: No OFD packet to send [22:30:07]OFD Sender: No OFD packet to send [22:30:12]OFD Sender: No OFD packet to send [22:30:17]OFD Sender: No OFD packet to send [22:30:22]OFD Sender: No OFD packet to send [22:30:27]OFD Sender: No OFD packet to send [22:30:32]OFD Sender: No OFD packet to send [22:30:37]OFD Sender: No OFD packet to send [22:30:42]OFD Sender: No OFD packet to send [22:30:47]OFD Sender: No OFD packet to send [22:30:52]OFD Sender: No OFD packet to send [22:30:57]OFD Sender: No OFD packet to send [22:31:02]OFD Sender: No OFD packet to send [22:31:07]OFD Sender: No OFD packet to send [22:31:12]OFD Sender: No OFD packet to send [22:31:17]OFD Sender: No OFD packet to send [22:31:22]OFD Sender: No OFD packet to send [22:31:27]OFD Sender: No OFD packet to send [22:31:32]OFD Sender: No OFD packet to send [22:31:37]OFD Sender: No OFD packet to send [22:31:42]OFD Sender: No OFD packet to send [22:31:47]OFD Sender: No OFD packet to send [22:31:52]OFD Sender: No OFD packet to send [22:31:57]OFD Sender: No OFD packet to send [22:32:02]OFD Sender: No OFD packet to send [22:32:07]OFD Sender: No OFD packet to send [22:32:12]OFD Sender: No OFD packet to send [22:32:17]OFD Sender: No OFD packet to send [22:32:22]OFD Sender: No OFD packet to send [22:32:27]OFD Sender: No OFD packet to send [22:32:32]OFD Sender: No OFD packet to send [22:32:37]OFD Sender: No OFD packet to send [22:32:42]OFD Sender: No OFD packet to send [22:32:47]OFD Sender: No OFD packet to send [22:32:52]OFD Sender: No OFD packet to send [22:32:57]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:17]OFD Sender: No OFD packet to send [22:34:22]OFD Sender: No OFD packet to send [22:34:27]OFD Sender: No OFD packet to send [22:34:32]OFD Sender: No OFD packet to send [22:34:37]OFD Sender: No OFD packet to send [22:34:42]OFD Sender: No OFD packet to send [22:34:47]OFD Sender: No OFD packet to send [22:34:52]OFD Sender: No OFD packet to send [22:34:57]OFD Sender: No OFD packet to send [22:35:02]OFD Sender: No OFD packet to send [22:35:07]OFD Sender: No OFD packet to send [22:35:12]OFD Sender: No OFD packet to send [22:35:17]OFD Sender: No OFD packet to send [22:35:22]OFD Sender: No OFD packet to send [22:35:27]OFD Sender: No OFD packet to send [22:35:32]OFD Sender: No OFD packet to send [22:35:37]OFD Sender: No OFD packet to send [22:35:42]OFD Sender: No OFD packet to send [22:35:47]OFD Sender: No OFD packet to send [22:35:52]OFD Sender: No OFD packet to send [22:35:57]OFD Sender: No OFD packet to send [22:36:02]OFD Sender: No OFD packet to send [22:36:07]OFD Sender: No OFD packet to send [22:36:12]OFD Sender: No OFD packet to send [22:36:17]OFD Sender: No OFD packet to send [22:36:22]OFD Sender: No OFD packet to send [22:36:27]OFD Sender: No OFD packet to send [22:36:32]OFD Sender: No OFD packet to send [22:36:37]OFD Sender: No OFD packet to send [22:36:42]OFD Sender: No OFD packet to send [22:36:47]OFD Sender: No OFD packet to send [22:36:52]OFD Sender: No OFD packet to send [22:36:57]OFD Sender: No OFD packet to send [22:37:02]OFD Sender: No OFD packet to send [22:37:07]OFD Sender: No OFD packet to send [22:37:12]OFD Sender: No OFD packet to send [22:37:17]OFD Sender: No OFD packet to send [22:37:22]OFD Sender: No OFD packet to send [22:37:27]OFD Sender: No OFD packet to send [22:37:32]OFD Sender: No OFD packet to send [22:37:37]OFD Sender: No OFD packet to send [22:37:42]OFD Sender: No OFD packet to send [22:37:47]OFD Sender: No OFD packet to send [22:37:52]OFD Sender: No OFD packet to send [22:37:57]OFD Sender: No OFD packet to send [22:38:02]OFD Sender: No OFD packet to send [22:38:07]OFD Sender: No OFD packet to send [22:38:12]OFD Sender: No OFD packet to send [22:38:17]OFD Sender: No OFD packet to send [22:38:22]OFD Sender: No OFD packet to send [22:38:27]OFD Sender: No OFD packet to send [22:38:32]OFD Sender: No OFD packet to send [22:38:37]OFD Sender: No OFD packet to send [22:38:42]OFD Sender: No OFD packet to send [22:38:47]OFD Sender: No OFD packet to send [22:38:52]OFD Sender: No OFD packet to send [22:38:57]OFD Sender: No OFD packet to send [22:39:02]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:07]OFD Sender: No OFD packet to send [22:40:12]OFD Sender: No OFD packet to send [22:40:17]OFD Sender: No OFD packet to send [22:40:22]OFD Sender: No OFD packet to send [22:40:28]OFD Sender: No OFD packet to send [22:40:33]OFD Sender: No OFD packet to send [22:40:38]OFD Sender: No OFD packet to send [22:40:43]OFD Sender: No OFD packet to send [22:40:48]OFD Sender: No OFD packet to send [22:40:53]OFD Sender: No OFD packet to send [22:40:58]OFD Sender: No OFD packet to send [22:41:03]OFD Sender: No OFD packet to send [22:41:08]OFD Sender: No OFD packet to send [22:41:13]OFD Sender: No OFD packet to send [22:41:18]OFD Sender: No OFD packet to send [22:41:23]OFD Sender: No OFD packet to send [22:41:28]OFD Sender: No OFD packet to send [22:41:33]OFD Sender: No OFD packet to send [22:41:38]OFD Sender: No OFD packet to send [22:41:43]OFD Sender: No OFD packet to send [22:41:48]OFD Sender: No OFD packet to send [22:41:53]OFD Sender: No OFD packet to send [22:41:58]OFD Sender: No OFD packet to send [22:42:03]OFD Sender: No OFD packet to send [22:42:08]OFD Sender: No OFD packet to send [22:42:13]OFD Sender: No OFD packet to send [22:42:18]OFD Sender: No OFD packet to send [22:42:23]OFD Sender: No OFD packet to send [22:42:28]OFD Sender: No OFD packet to send [22:42:33]OFD Sender: No OFD packet to send [22:42:38]OFD Sender: No OFD packet to send [22:42:43]OFD Sender: No OFD packet to send [22:42:48]OFD Sender: No OFD packet to send [22:42:53]OFD Sender: No OFD packet to send [22:42:58]OFD Sender: No OFD packet to send [22:43:03]OFD Sender: No OFD packet to send [22:43:08]OFD Sender: No OFD packet to send [22:43:13]OFD Sender: No OFD packet to send [22:43:18]OFD Sender: No OFD packet to send [22:43:23]OFD Sender: No OFD packet to send [22:43:28]OFD Sender: No OFD packet to send [22:43:33]OFD Sender: No OFD packet to send [22:43:38]OFD Sender: No OFD packet to send [22:43:43]OFD Sender: No OFD packet to send [22:43:48]OFD Sender: No OFD packet to send [22:43:53]OFD Sender: No OFD packet to send [22:43:58]OFD Sender: No OFD packet to send [22:44:03]OFD Sender: No OFD packet to send [22:44:08]OFD Sender: No OFD packet to send [22:44:13]OFD Sender: No OFD packet to send [22:44:18]OFD Sender: No OFD packet to send [22:44:23]OFD Sender: No OFD packet to send [22:44:28]OFD Sender: No OFD packet to send [22:44:33]OFD Sender: No OFD packet to send [22:44:38]OFD Sender: No OFD packet to send [22:44:43]OFD Sender: No OFD packet to send [22:44:48]OFD Sender: No OFD packet to send [22:44:53]OFD Sender: No OFD packet to send [22:44:58]OFD Sender: No OFD packet to send [22:45:03]OFD Sender: No OFD packet to send [22:45:08]OFD Sender: No OFD packet to send [22:45:13]OFD Sender: No OFD packet to send [22:45:18]OFD Sender: No OFD packet to send [22:45:23]OFD Sender: No OFD packet to send [22:45:28]OFD Sender: No OFD packet to send [22:45:33]OFD Sender: No OFD packet to send [22:45:38]OFD Sender: No OFD packet to send [22:45:43]OFD Sender: No OFD packet to send [22:45:48]OFD Sender: No OFD packet to send [22:45:53]OFD Sender: No OFD packet to send [22:45:58]OFD Sender: No OFD packet to send [22:46:03]OFD Sender: No OFD packet to send [22:46:08]OFD Sender: No OFD packet to send [22:46:13]OFD Sender: No OFD packet to send [22:46:18]OFD Sender: No OFD packet to send [22:46:23]OFD Sender: No OFD packet to send [22:46:28]OFD Sender: No OFD packet to send [22:46:33]OFD Sender: No OFD packet to send [22:46:38]OFD Sender: No OFD packet to send [22:46:43]OFD Sender: No OFD packet to send [22:46:48]OFD Sender: No OFD packet to send [22:46:53]OFD Sender: No OFD packet to send [22:46:58]OFD Sender: No OFD packet to send [22:47:03]OFD Sender: No OFD packet to send [22:47:08]OFD Sender: No OFD packet to send [22:47:13]OFD Sender: No OFD packet to send [22:47:18]OFD Sender: No OFD packet to send [22:47:23]OFD Sender: No OFD packet to send [22:47:28]OFD Sender: No OFD packet to send [22:47:33]OFD Sender: No OFD packet to send [22:47:38]OFD Sender: No OFD packet to send [22:47:43]OFD Sender: No OFD packet to send [22:47:48]OFD Sender: No OFD packet to send [22:47:53]OFD Sender: No OFD packet to send [22:47:58]OFD Sender: No OFD packet to send [22:48:03]OFD Sender: No OFD packet to send [22:48:08]OFD Sender: No OFD packet to send [22:48:13]OFD Sender: No OFD packet to send [22:48:18]OFD Sender: No OFD packet to send [22:48:23]OFD Sender: No OFD packet to send [22:48:28]OFD Sender: No OFD packet to send [22:48:33]OFD Sender: No OFD packet to send [22:48:38]OFD Sender: No OFD packet to send [22:48:43]OFD Sender: No OFD packet to send [22:49:14]MH_SAM_APDU [22:49:14]CAPDU: 80 15 02 00 08 F4 03 04 00 F1 B7 22 67 [22:49:14]Write to MH i2c: E2 10 00 4A 5F 80 15 02 00 08 00 F4 03 04 00 F1 B7 22 67 00 00 65 [22:49:14]Write i2c OK [22:49:14]MH_I2C_Read... [22:49:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:49:14]Read from MH i2c: E2 [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: E2 03 00 [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: E2 03 00 4A 5F 00 90 00 1D [22:49:14]RAPDU: 90 00 [22:49:14]wFMCommunicate OK [22:49:14]wFMCommunicate request_size=25 [22:49:14]MH_SAM_APDU [22:49:14]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [22:49:14]Write to MH i2c: E2 1C 00 4B 5F 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 87 [22:49:14]Write i2c OK [22:49:14]MH_I2C_Read... [22:49:14]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [22:49:14]Read from MH i2c: E2 [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: E2 03 00 [22:49:14]MH_I2C_Read... [22:49:14]Read from MH i2c: E2 03 00 4B 5F 00 90 00 1E [22:49:14]RAPDU: 90 00 [22:49:14]wFMCommunicate OK [22:49:14]wFMCommunicate request_size=4 [22:49:14]MH_SAM_APDU [22:49:14]CAPDU: 80 15 03 00 [22:49:14]Write to MH i2c: E2 08 00 4C 5F 80 15 03 00 00 00 00 00 2C [22:49:14]Write i2c OK [22:49:14]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 61! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 40 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 40 00 4C 5F 00 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 C1 00 00 00 35 04 06 00 0F 39 8F 07 11 88 90 00 A7 [22:49:15]RAPDU: 3B 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 20 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 C1 00 00 00 35 04 06 00 0F 39 8F 07 11 88 90 00 [22:49:15]wFMCommunicate OK [22:49:15]SAM_PROTO_ProcessDocument answer len = 59 [22:49:15]SAM_PROTO_ProcessDocument done [22:49:15]SetTLVBufToDocument [22:49:15]Processing tag 1209 (04B9) [22:49:15]Malloc new data [22:49:15]Processing tag 1041 (0411) [22:49:15]Processing tag 1040 (0410) [22:49:15]Malloc new data [22:49:15]Processing tag 1038 (040E) [22:49:15]Malloc new data [22:49:15]Processing tag 1042 (0412) [22:49:15]Malloc new data [22:49:15]Processing tag 1077 (0435) [22:49:15]Malloc new data [22:49:15]SetTLVBufToDocument err=0 [22:49:15]KKMLoadAndSignReceiptData store KKM data [22:49:15]KKMLoadAndSignReceiptData err=0 [22:49:15]wFMCommunicate request_size=4 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 11 00 00 [22:49:15]Write to MH i2c: E2 08 00 4D 5F 80 11 00 00 00 00 00 00 26 [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 17 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 17 00 4D 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 81 [22:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:49:15]wFMCommunicate OK [22:49:15]Счет N : (3)335385 ИНН: 02508201610067 Контрольно-Кассовый Чек ПРОДАЖА Товар: 48745895 Сигареты RICHMOND KS GOLD EDITION 1.000 * 159.00 = 159.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 193 30.10.2024 22:49 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139509 ФПД: 16739887157640 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T224921&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139509&fm=16739887157640&tin=02508201610067®Number=0000000000091631&sum=15900 0 [22:49:15]StoreToDocumentArchive [22:49:15]shift 556 fd 139509 [22:49:15]save to /storage/0556/doc_00139509 [22:49:15]save last doc name /storage/0556/doc_00139509 to /storage/kkm_last_doc_name [22:49:15]save OK [22:49:15]Clear old archive folders... [22:49:15]ProcessDocumentItem done err = 0, tmpTLVsize=278 [22:49:15]tlvbuf is 01287550 [22:49:15]SAM_PROTO_ClearQueue [22:49:15]wFMCommunicate request_size=4 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 09 00 00 [22:49:15]Write to MH i2c: E2 08 00 4E 5F 80 09 00 00 00 00 00 00 1F [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 4E 5F 00 90 00 21 [22:49:15]RAPDU: 90 00 [22:49:15]wFMCommunicate OK [22:49:15]SAM_PROTO_ClearQueue done [22:49:15]KKMCreateOFDPacket [22:49:15]OFDProtocolAddRootSTLVToBuf [22:49:15]FM_MakeSignedData [22:49:15]FM_MakeSignedData [22:49:15]SAM_PROTO_SignData [22:49:15]wFMCommunicate request_size=4 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 0D 01 02 [22:49:15]Write to MH i2c: E2 08 00 4F 5F 80 0D 01 02 00 00 00 00 27 [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 4F 5F 00 90 00 22 [22:49:15]RAPDU: 90 00 [22:49:15]wFMCommunicate OK [22:49:15]wFMCommunicate request_size=255 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 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 00 00 00 F4 03 04 00 F1 B7 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [22:49:15]Write to MH i2c: E2 02 01 50 5F 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 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 00 00 00 F4 03 04 00 F1 B7 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 6E [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 50 5F 00 90 00 23 [22:49:15]RAPDU: 90 00 [22:49:15]wFMCommunicate OK [22:49:15]wFMCommunicate request_size=37 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 20 02 00 35 04 06 00 0F 39 8F 07 11 88 [22:49:15]Write to MH i2c: E2 28 00 51 5F 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 20 02 00 35 04 06 00 0F 39 8F 07 11 88 00 00 17 [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 03 00 51 5F 00 90 00 24 [22:49:15]RAPDU: 90 00 [22:49:15]wFMCommunicate OK [22:49:15]wFMCommunicate request_size=4 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 0D 03 02 [22:49:15]Write to MH i2c: E2 08 00 52 5F 80 0D 03 02 00 00 00 00 2C [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 0B 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 0B 00 52 5F 00 BE 4F AF 82 8E 05 0A 3B 90 00 43 [22:49:15]RAPDU: BE 4F AF 82 8E 05 0A 3B 90 00 [22:49:15]wFMCommunicate OK [22:49:15]SAM_PROTO_SignData done [22:49:15]FM_MakeSignedData done [22:49:15]CreateOFDProtocolMessage [22:49:15]wFMCommunicate request_size=4 [22:49:15]MH_SAM_APDU [22:49:15]CAPDU: 80 11 00 00 [22:49:15]Write to MH i2c: E2 08 00 53 5F 80 11 00 00 00 00 00 00 2C [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:15]Read from MH i2c: E2 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 17 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: E2 17 00 53 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [22:49:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:49:15]wFMCommunicate OK [22:49:15]CreateOFDProtocolMessage done [22:49:15]OFDSenderStorePacket 139509 [22:49:15]StoreOFDPacket docnum=139509 [22:49:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 9C F0 22 01 F4 AF 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 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 00 00 00 F4 03 04 00 F1 B7 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 20 02 00 35 04 06 00 0F 39 8F 07 11 88 BE 4F AF 82 8E 05 0A 3B [22:49:15]CheckFolder [22:49:15]dirname=/storage/ofd_packets [22:49:15]CheckFolder done [22:49:15]ProducePacketName [22:49:15]name=ofd_packets/00139509 [22:49:15]NVStorageSaveData ofd_packets/00139509 [22:49:15]File name is /storage/ofd_packets/00139509 [22:49:15]Write 328 bytes [22:49:15]NVStorageSaveData done [22:49:15]OFDSenderStorePacket done [22:49:15]KKMCreateOFDPacket done [22:49:15]NVStorageSaveData kkm_last_timestamp [22:49:15]File name is /storage/kkm_last_timestamp [22:49:15]Write 4 bytes [22:49:15]NVStorageSaveData done [22:49:15]ExternCall_PrintAddStr [22:49:15]wPrintStart [22:49:15]Write to MH i2c: 01 00 00 54 5F B3 [22:49:15]Write i2c OK [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: 01 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: 01 07 00 [22:49:15]MH_I2C_Read... [22:49:15]Read from MH i2c: 01 07 00 54 5F 00 00 00 00 00 FF 0F C8 [22:49:15]RasterBufferAndPrint [22:49:15]line Счет N : (3)335385 [22:49:15]line ИНН: 02508201610067 [22:49:15]line Контрольно-Кассовый Чек [22:49:15]line ПРОДАЖА [22:49:15]line Товар: 48745895 [22:49:15]line Сигареты RICHMOND KS GOLD EDITION [22:49:15]line 1.000 * 159.00 [22:49:15]line = 159.00 [22:49:15]line НДС 12% НСП 1% [22:49:15]line > о реализуемом товаре [22:49:15]line ИТОГО: 159.00 [22:49:15]line НСП 1% : 1.41 [22:49:15]line НДС 12% : 16.88 [22:49:15]line Наличными: 159.00 [22:49:15]line Безнал.: 0.00 [22:49:15]line Место: АЗС № 101 "Партнер Нефть" [22:49:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:49:15]line СНО: Общий режим [22:49:15]line Чек 193 30.10.2024 22:49 [22:49:15]line Смена: 556 ФФД: 1.0 [22:49:15]line ЗНМ: 0300000081 [22:49:15]line РНМ: 0000000000091631 [22:49:15]line Версия ККМ: 001 [22:49:15]line ФМ: 0000000000874669 [22:49:15]line ФД: 139509 [22:49:15]line ФПД: 16739887157640 [22:49:16]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T224921&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139509&fm=16739887157640&tin=02508201610067®Number=0000000000091631&sum=15900 [22:49:16]line 0 [22:49:16]OFD Sender: Processing packet 139509 [packets to send 34, broken 33] [22:49:16]ProducePacketName [22:49:16]name=ofd_packets/00139509 [22:49:16]OFD Sender: To server: pG, [22:49:16]CommunicateWithHost lk.salyk.kg:30040 [22:49:16]ConnectInit lk.salyk.kg [22:49:16]written 0, free lines is 4095 [22:49:16]Connected sock=11 [22:49:16]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 9C F0 22 01 F4 AF 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 34 38 37 34 35 38 39 35 06 04 29 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 49 43 48 4D 4F 4E 44 20 4B 53 20 47 4F 4C 44 20 45 44 49 54 49 4F 4E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 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 00 00 00 F4 03 04 00 F1 B7 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 20 02 00 35 04 06 00 0F 39 8F 07 11 88 BE 4F AF 82 8E 05 0A 3B [22:49:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 37 ED 47 00 41 7A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F5 20 02 00 F4 03 04 00 A0 63 22 67 B6 04 01 00 00 9E AB A7 8D 12 6D 85 8B [22:49:16]CommunicateWithHost err = 0 [22:49:16]CheckOFDResponse [22:49:16]1017 (14) - 77093643461234 [22:49:16]1041 (16) - 0000000000874669 [22:49:16]1040 (4) - 139509 [22:49:16]1012 (4) - 30.10.2024 16:49 [22:49:16]1206 (1) - 0 [22:49:16]OFD Sender: Remove packet 139509 [22:49:16]ProducePacketName [22:49:16]name=ofd_packets/00139509 [22:49:16]NVStorageDeleteData [22:49:16]Write to MH i2c: 01 00 00 7D 5F DC [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: 01 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: 01 07 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: 01 07 00 7D 5F 00 00 00 00 00 05 0D F5 [22:49:16]RasterBufferAndPrint [22:49:16]line [22:49:16]line [22:49:16]line [22:49:16]line [22:49:16]line [22:49:16]written 0, free lines is 3342 [22:49:16]MH_Cut [22:49:16]Write to MH i2c: D1 01 00 84 5F 01 B5 [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: D1 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: D1 01 00 [22:49:16]MH_I2C_Read... [22:49:16]Read from MH i2c: D1 01 00 84 5F 00 B4 [22:49:16]Write to MH i2c: 01 00 00 85 5F E4 [22:49:16]Write i2c OK [22:49:16]MH_I2C_Read... [22:49:16]OFD Sender: No OFD packet to send [22:49:17]*** Cut start [22:49:17]*** Partial cut [22:49:17]*** CUTSNS_PIN = 1 [22:49:17]*** CUTSNS_PIN = 0 [22:49:17]*** Brake cut motor [22:49:17]Read from MH i2c: 01 [22:49:17]MH_I2C_Read... [22:49:17]*** Stop cut motor [22:49:17]*** Cut end [22:49:17]Read from MH i2c: 01 07 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: 01 07 00 85 5F 00 00 00 00 00 FF 0F F9 [22:49:17]process_action close_receipt done [22:49:17]requested_data is exist [22:49:17]produce_requested_data [22:49:17]requested_item fm.sn is exist - process it [22:49:17]wFMCommunicate request_size=4 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 11 00 00 [22:49:17]Write to MH i2c: E2 08 00 86 5F 80 11 00 00 00 00 00 00 5F [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 17 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 17 00 86 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [22:49:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:49:17]wFMCommunicate OK [22:49:17]requested_item fd.num is exist - process it [22:49:17]SAM_PROTO_GetFieldsCounters [22:49:17]wFMCommunicate request_size=4 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 13 00 00 [22:49:17]Write to MH i2c: E2 08 00 87 5F 80 13 00 00 00 00 00 00 62 [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 62 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 62 00 87 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F5 20 02 00 0E 04 04 00 2C 02 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 0E [22:49:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F5 20 02 00 0E 04 04 00 2C 02 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 [22:49:17]wFMCommunicate OK [22:49:17]SAM_PROTO_GetFieldsCounters done [22:49:17]requested_item shift.num is exist - process it [22:49:17]requested_item shift.opened is exist - process it [22:49:17]req_shift_opened [22:49:17]FM_GetShiftState [22:49:17]SAM_PROTO_GetShiftState [22:49:17]wFMCommunicate request_size=4 [22:49:17]MH_SAM_APDU [22:49:17]CAPDU: 80 13 01 00 [22:49:17]Write to MH i2c: E2 08 00 88 5F 80 13 01 00 00 00 00 00 64 [22:49:17]Write i2c OK [22:49:17]MH_I2C_Read... [22:49:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:49:17]Read from MH i2c: E2 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 0E 00 [22:49:17]MH_I2C_Read... [22:49:17]Read from MH i2c: E2 0E 00 88 5F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F4 [22:49:17]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:49:17]wFMCommunicate OK [22:49:17]SAM_PROTO_GetShiftState done [22:49:17]FM_GetShiftState done [22:49:17]req_shift_opened done [22:49:17]requested_item shift.open_date is exist - process it [22:49:17]req_shift_open_date [22:49:17]req_shift_open_date done [22:49:17]produce_requested_data done [22:49:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139509,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [22:49:17]process_action_free close_receipt [22:49:17]json_value_free [22:49:17]json_value_free done [22:49:17]process_json_proto returns [22:49:17]Send response to host [22:49:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139509,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [22:49:17]free response buf [22:49:17]execute_script done [22:49:17]execute_script returns [22:49:17]free content buf [22:49:17]Sock 9.Close socket [22:49:17]Sock 9.Thread stoped [22:49:21]OFD Sender: No OFD packet to send [22:49:26]OFD Sender: No OFD packet to send [22:49:31]OFD Sender: No OFD packet to send [22:49:36]OFD Sender: No OFD packet to send [22:49:41]OFD Sender: No OFD packet to send [22:49:46]OFD Sender: No OFD packet to send [22:49:51]OFD Sender: No OFD packet to send [22:49:56]OFD Sender: No OFD packet to send [22:50:01]OFD Sender: No OFD packet to send [22:50:06]OFD Sender: No OFD packet to send [22:50:11]OFD Sender: No OFD packet to send [22:50:16]OFD Sender: No OFD packet to send [22:50:21]OFD Sender: No OFD packet to send [22:50:26]OFD Sender: No OFD packet to send [22:50:31]OFD Sender: No OFD packet to send [22:50:36]OFD Sender: No OFD packet to send [22:50:41]OFD Sender: No OFD packet to send [22:50:46]OFD Sender: No OFD packet to send [22:50:48]accept exits with 10 [22:50:48]New connection [22:50:48]New thread 3067141476 created [22:50:48]Thread 3067284836 joined [22:50:48]Waiting for new connection... [22:50:48] Sock 10.Parse request [22:50:48]Sock 10.Check first char [22:50:48]Sock 10.First char is OK [22:50:48]request: POST /json_proto HTTP/1.0 [22:50:48]Method: POST [22:50:48]URL: /json_proto [22:50:48]Method is POST - this is cgi request [22:50:48]url: /json_proto [22:50:48]query_string will be loaded in cgi processing [22:50:48]execute_cgi json_proto POST (null) [22:50:48]execute_cgi path=json_proto method=POST [22:50:48]POST find Content-Length [22:50:48]Host: 172.17.50.196:8080 [22:50:48]Content-Length: 666 [22:50:48]Content-Type: application/json [22:50:48] [22:50:48]POST finish read [22:50:48]Found Content-Length = 666 [22:50:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335386", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:48]execute_script... [22: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 : (3)335386", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:50:48]POST & json_proto [22:50:48]process_json_proto [22:50:48]json parsed OK: [22:50:48]protocol is kg_v1.0 [22:50:48]action value=close_receipt [22:50:48]process_action close_receipt [22:50:48]cmd_close_receipt [22:50:48]MH_GetDate [22:50:48]Write to MH i2c: F0 00 00 89 5F D7 [22:50:48]Write i2c OK [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 09 00 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: F0 09 00 89 5F 00 50 B8 22 67 72 0D 1C 67 73 [22:50:48]GetLastDocTimeStamp 1730328561 [22:50:48]current date 1730328656 [22:50:48]FM_GetShiftState [22:50:48]SAM_PROTO_GetShiftState [22:50:48]wFMCommunicate request_size=4 [22:50:48]MH_SAM_APDU [22:50:48]CAPDU: 80 13 01 00 [22:50:48]Write to MH i2c: E2 08 00 8A 5F 80 13 01 00 00 00 00 00 66 [22:50:48]Write i2c OK [22:50:48]MH_I2C_Read... [22:50:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:48]Read from MH i2c: E2 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: E2 0E 00 [22:50:48]MH_I2C_Read... [22:50:48]Read from MH i2c: E2 0E 00 8A 5F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F6 [22:50:48]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:50:48]wFMCommunicate OK [22:50:48]SAM_PROTO_GetShiftState done [22:50:48]FM_GetShiftState done [22:50:48]opened in 1730246278 [22:50:48]opened+sec_in_day 1730332678 [22:50:48]quantity*price = 9900 [22:50:48]sum+1 = 9901 [22:50:48]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 194 30.10.2024 22:50 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139510 ФПД: 243681445887450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225056&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139510&fm=243681445887450&tin=02508201610067®Number=0000000000091631&sum=9900 0 [22:50:50]StoreToDocumentArchive [22:50:50]shift 556 fd 139510 [22:50:50]save to /storage/0556/doc_00139510 [22:50:50]save last doc name /storage/0556/doc_00139510 to /storage/kkm_last_doc_name [22:50:50]save OK [22:50:50]Clear old archive folders... [22:50:50]ProcessDocumentItem done err = 0, tmpTLVsize=293 [22:50:50]tlvbuf is 01171540 [22:50:50]SAM_PROTO_ClearQueue [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 09 00 00 [22:50:50]Write to MH i2c: E2 08 00 97 5F 80 09 00 00 00 00 00 00 68 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 97 5F 00 90 00 6A [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]SAM_PROTO_ClearQueue done [22:50:50]KKMCreateOFDPacket [22:50:50]OFDProtocolAddRootSTLVToBuf [22:50:50]FM_MakeSignedData [22:50:50]FM_MakeSignedData [22:50:50]SAM_PROTO_SignData [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 01 02 [22:50:50]Write to MH i2c: E2 08 00 98 5F 80 0D 01 02 00 00 00 00 70 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 98 5F 00 90 00 6B [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=255 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 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 50 B8 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [22:50:50]Write to MH i2c: E2 02 01 99 5F 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 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 50 B8 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 4D [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 99 5F 00 90 00 6C [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=52 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 20 02 00 35 04 06 00 DD A0 82 05 3D DA [22:50:50]Write to MH i2c: E2 37 00 9A 5F 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 20 02 00 35 04 06 00 DD A0 82 05 3D DA 00 00 6C [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 03 00 9A 5F 00 90 00 6D [22:50:50]RAPDU: 90 00 [22:50:50]wFMCommunicate OK [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 0D 03 02 [22:50:50]Write to MH i2c: E2 08 00 9B 5F 80 0D 03 02 00 00 00 00 75 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 0B 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 0B 00 9B 5F 00 87 4D 15 66 3A CD 52 D1 90 00 EF [22:50:50]RAPDU: 87 4D 15 66 3A CD 52 D1 90 00 [22:50:50]wFMCommunicate OK [22:50:50]SAM_PROTO_SignData done [22:50:50]FM_MakeSignedData done [22:50:50]CreateOFDProtocolMessage [22:50:50]wFMCommunicate request_size=4 [22:50:50]MH_SAM_APDU [22:50:50]CAPDU: 80 11 00 00 [22:50:50]Write to MH i2c: E2 08 00 9C 5F 80 11 00 00 00 00 00 00 75 [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:50]Read from MH i2c: E2 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 17 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: E2 17 00 9C 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [22:50:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:50:50]wFMCommunicate OK [22:50:50]CreateOFDProtocolMessage done [22:50:50]OFDSenderStorePacket 139510 [22:50:50]StoreOFDPacket docnum=139510 [22:50:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 64 1D 31 01 9A 13 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 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 50 B8 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 20 02 00 35 04 06 00 DD A0 82 05 3D DA 87 4D 15 66 3A CD 52 D1 [22:50:50]CheckFolder [22:50:50]dirname=/storage/ofd_packets [22:50:50]CheckFolder done [22:50:50]ProducePacketName [22:50:50]name=ofd_packets/00139510 [22:50:50]NVStorageSaveData ofd_packets/00139510 [22:50:50]File name is /storage/ofd_packets/00139510 [22:50:50]Write 343 bytes [22:50:50]NVStorageSaveData done [22:50:50]OFDSenderStorePacket done [22:50:50]KKMCreateOFDPacket done [22:50:50]NVStorageSaveData kkm_last_timestamp [22:50:50]File name is /storage/kkm_last_timestamp [22:50:50]Write 4 bytes [22:50:50]NVStorageSaveData done [22:50:50]ExternCall_PrintAddStr [22:50:50]wPrintStart [22:50:50]Write to MH i2c: 01 00 00 9D 5F FC [22:50:50]Write i2c OK [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 07 00 [22:50:50]MH_I2C_Read... [22:50:50]Read from MH i2c: 01 07 00 9D 5F 00 00 00 00 00 FF 0F 11 [22:50:50]RasterBufferAndPrint [22:50:50]line Счет N : (3)335386 [22:50:50]line ИНН: 02508201610067 [22:50:50]line Контрольно-Кассовый Чек [22:50:50]line ПРОДАЖА [22:50:50]line Товар: 4870022003305 [22:50:50]line Напиток Gorilla эн нат ж/б 0,5/0,45л [22:50:50]line 1.000 * 99.00 [22:50:50]line = 99.00 [22:50:50]line НДС 12% НСП 1% [22:50:50]line > о реализуемом товаре [22:50:50]line ИТОГО: 99.00 [22:50:50]line НСП 1% : 0.88 [22:50:50]line НДС 12% : 10.51 [22:50:50]line Наличными: 99.00 [22:50:50]line Безнал.: 0.00 [22:50:50]line Место: АЗС № 101 "Партнер Нефть" [22:50:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:50:50]line СНО: Общий режим [22:50:50]line Чек 194 30.10.2024 22:50 [22:50:50]line Смена: 556 ФФД: 1.0 [22:50:50]line ЗНМ: 0300000081 [22:50:50]line РНМ: 0000000000091631 [22:50:50]line Версия ККМ: 001 [22:50:50]line ФМ: 0000000000874669 [22:50:50]line ФД: 139510 [22:50:50]line ФПД: 243681445887450 [22:50:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225056&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139510&fm=243681445887450&tin=02508201610067®Number=0000000000091631&sum=9900 [22:50:50]line 0 [22:50:50]written 0, free lines is 4095 [22:50:50]OFD Sender: Processing packet 139510 [packets to send 34, broken 33] [22:50:50]ProducePacketName [22:50:50]name=ofd_packets/00139510 [22:50:50]OFD Sender: To server: pG, [22:50:50]CommunicateWithHost lk.salyk.kg:30040 [22:50:50]ConnectInit lk.salyk.kg [22:50:50]Connected sock=11 [22:50:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 64 1D 31 01 9A 13 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 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 50 B8 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 20 02 00 35 04 06 00 DD A0 82 05 3D DA 87 4D 15 66 3A CD 52 D1 [22:50:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 3E 0F 47 00 63 0F A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F6 20 02 00 F4 03 04 00 FF 63 22 67 B6 04 01 00 00 29 36 D0 00 AF B6 23 35 [22:50:51]CommunicateWithHost err = 0 [22:50:51]CheckOFDResponse [22:50:51]1017 (14) - 77093643461234 [22:50:51]1041 (16) - 0000000000874669 [22:50:51]1040 (4) - 139510 [22:50:51]1012 (4) - 30.10.2024 16:51 [22:50:51]1206 (1) - 0 [22:50:51]OFD Sender: Remove packet 139510 [22:50:51]ProducePacketName [22:50:51]name=ofd_packets/00139510 [22:50:51]NVStorageDeleteData [22:50:51]Write to MH i2c: 01 00 00 C6 5F 25 [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 07 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: 01 07 00 C6 5F 00 00 00 00 00 0D 0D 46 [22:50:51]RasterBufferAndPrint [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]line [22:50:51]written 0, free lines is 3357 [22:50:51]MH_Cut [22:50:51]Write to MH i2c: D1 01 00 CD 5F 01 FE [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 01 00 [22:50:51]MH_I2C_Read... [22:50:51]Read from MH i2c: D1 01 00 CD 5F 00 FD [22:50:51]Write to MH i2c: 01 00 00 CE 5F 2D [22:50:51]Write i2c OK [22:50:51]MH_I2C_Read... [22:50:51]OFD Sender: No OFD packet to send [22:50:51]*** Cut start [22:50:51]*** Partial cut [22:50:51]*** CUTSNS_PIN = 1 [22:50:51]*** CUTSNS_PIN = 0 [22:50:52]*** Brake cut motor [22:50:52]Read from MH i2c: 01 [22:50:52]MH_I2C_Read... [22:50:52]*** Stop cut motor [22:50:52]*** Cut end [22:50:52]Read from MH i2c: 01 07 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: 01 07 00 CE 5F 00 00 00 00 00 FF 0F 42 [22:50:52]process_action close_receipt done [22:50:52]requested_data is exist [22:50:52]produce_requested_data [22:50:52]requested_item fm.sn is exist - process it [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 11 00 00 [22:50:52]Write to MH i2c: E2 08 00 CF 5F 80 11 00 00 00 00 00 00 A8 [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 17 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 17 00 CF 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 03 [22:50:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:50:52]wFMCommunicate OK [22:50:52]requested_item fd.num is exist - process it [22:50:52]SAM_PROTO_GetFieldsCounters [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 13 00 00 [22:50:52]Write to MH i2c: E2 08 00 D0 5F 80 13 00 00 00 00 00 00 AB [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 62 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 62 00 D0 5F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F6 20 02 00 0E 04 04 00 2C 02 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 5B [22:50:52]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F6 20 02 00 0E 04 04 00 2C 02 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 [22:50:52]wFMCommunicate OK [22:50:52]SAM_PROTO_GetFieldsCounters done [22:50:52]requested_item shift.num is exist - process it [22:50:52]requested_item shift.opened is exist - process it [22:50:52]req_shift_opened [22:50:52]FM_GetShiftState [22:50:52]SAM_PROTO_GetShiftState [22:50:52]wFMCommunicate request_size=4 [22:50:52]MH_SAM_APDU [22:50:52]CAPDU: 80 13 01 00 [22:50:52]Write to MH i2c: E2 08 00 D1 5F 80 13 01 00 00 00 00 00 AD [22:50:52]Write i2c OK [22:50:52]MH_I2C_Read... [22:50:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:50:52]Read from MH i2c: E2 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 0E 00 [22:50:52]MH_I2C_Read... [22:50:52]Read from MH i2c: E2 0E 00 D1 5F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3D [22:50:52]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:50:52]wFMCommunicate OK [22:50:52]SAM_PROTO_GetShiftState done [22:50:52]FM_GetShiftState done [22:50:52]req_shift_opened done [22:50:52]requested_item shift.open_date is exist - process it [22:50:52]req_shift_open_date [22:50:52]req_shift_open_date done [22:50:52]produce_requested_data done [22:50:52]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139510,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [22:50:52]process_action_free close_receipt [22:50:52]json_value_free [22:50:52]json_value_free done [22:50:52]process_json_proto returns [22:50:52]Send response to host [22:50:52]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139510,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [22:50:52]free response buf [22:50:52]execute_script done [22:50:52]execute_script returns [22:50:52]free content buf [22:50:52]Sock 10.Close socket [22:50:52]Sock 10.Thread stoped [22:50:56]OFD Sender: No OFD packet to send [22:51:01]OFD Sender: No OFD packet to send [22:51:06]OFD Sender: No OFD packet to send [22:51:11]OFD Sender: No OFD packet to send [22:51:16]OFD Sender: No OFD packet to send [22:51:21]OFD Sender: No OFD packet to send [22:51:26]OFD Sender: No OFD packet to send [22:51:31]OFD Sender: No OFD packet to send [22:51:36]OFD Sender: No OFD packet to send [22:51:41]OFD Sender: No OFD packet to send [22:51:46]OFD Sender: No OFD packet to send [22:51:51]OFD Sender: No OFD packet to send [22:51:56]OFD Sender: No OFD packet to send [22:52:01]OFD Sender: No OFD packet to send [22:52:06]OFD Sender: No OFD packet to send [22:52:07]ConnectInit Can't connect to host [22:52:11]OFD Sender: No OFD packet to send [22:52:16]OFD Sender: No OFD packet to send [22:52:21]OFD Sender: No OFD packet to send [22:52:26]OFD Sender: No OFD packet to send [22:52:31]OFD Sender: No OFD packet to send [22:52:36]OFD Sender: No OFD packet to send [22:52:41]OFD Sender: No OFD packet to send [22:52:46]OFD Sender: No OFD packet to send [22:52:51]OFD Sender: No OFD packet to send [22:52:56]OFD Sender: No OFD packet to send [22:53:01]OFD Sender: No OFD packet to send [22:53:06]OFD Sender: No OFD packet to send [22:53:11]OFD Sender: No OFD packet to send [22:53:16]OFD Sender: No OFD packet to send [22:53:21]OFD Sender: No OFD packet to send [22:53:26]OFD Sender: No OFD packet to send [22:53:31]OFD Sender: No OFD packet to send [22:53:36]OFD Sender: No OFD packet to send [22:53:41]OFD Sender: No OFD packet to send [22:53:46]OFD Sender: No OFD packet to send [22:53:51]OFD Sender: No OFD packet to send [22:53:56]OFD Sender: No OFD packet to send [22:54:01]OFD Sender: No OFD packet to send [22:54:06]OFD Sender: No OFD packet to send [22:54:11]OFD Sender: No OFD packet to send [22:54:16]OFD Sender: No OFD packet to send [22:54:21]OFD Sender: No OFD packet to send [22:54:26]OFD Sender: No OFD packet to send [22:54:31]OFD Sender: No OFD packet to send [22:54:36]OFD Sender: No OFD packet to send [22:54:41]OFD Sender: No OFD packet to send [22:54:46]OFD Sender: No OFD packet to send [22:54:51]OFD Sender: No OFD packet to send [22:54:56]OFD Sender: No OFD packet to send [22:55:01]OFD Sender: No OFD packet to send [22:55:06]OFD Sender: No OFD packet to send [22:55:11]OFD Sender: No OFD packet to send [22:55:17]OFD Sender: No OFD packet to send [22:55:22]OFD Sender: No OFD packet to send [22:55:27]OFD Sender: No OFD packet to send [22:55:32]OFD Sender: No OFD packet to send [22:55:37]OFD Sender: No OFD packet to send [22:55:42]OFD Sender: No OFD packet to send [22:55:47]OFD Sender: No OFD packet to send [22:55:52]OFD Sender: No OFD packet to send [22:55:57]OFD Sender: No OFD packet to send [22:56:02]OFD Sender: No OFD packet to send [22:56:07]OFD Sender: No OFD packet to send [22:56:12]OFD Sender: No OFD packet to send [22:56:17]OFD Sender: No OFD packet to send [22:56:22]OFD Sender: No OFD packet to send [22:56:27]OFD Sender: No OFD packet to send [22:56:32]OFD Sender: No OFD packet to send [22:56:37]OFD Sender: No OFD packet to send [22:56:42]OFD Sender: No OFD packet to send [22:56:45]accept exits with 9 [22:56:45]New connection [22:56:45]New thread 3067284836 created [22:56:45]Thread 3067141476 joined [22:56:45]Waiting for new connection... [22:56:45] Sock 9.Parse request [22:56:45]Sock 9.Check first char [22:56:45]Sock 9.First char is OK [22:56:45]request: POST /json_proto HTTP/1.0 [22:56:45]Method: POST [22:56:45]URL: /json_proto [22:56:45]Method is POST - this is cgi request [22:56:45]url: /json_proto [22:56:45]query_string will be loaded in cgi processing [22:56:45]execute_cgi json_proto POST (null) [22:56:45]execute_cgi path=json_proto method=POST [22:56:45]POST find Content-Length [22:56:45]Host: 172.17.50.196:8080 [22:56:45]Content-Length: 1241 [22:56:45]Content-Type: application/json [22:56:45] [22:56:45]POST finish read [22:56:45]Found Content-Length = 1241 [22:56:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335387", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 439.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:45]execute_script... [22:56: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 : (3)335387", "tax_sys" : 0, "items" : [ { "code": "90448300", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red Bull 0,355\u043B", "price" : 265.00, "quantity" : 1.000, "sum" : 265.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4780111550484", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0438\u0437 \u0427\u0415\u0420\u041D\u041E\u0413\u041E\u041B \u0433\u0430\u0437 \u0442\u0430\u0440\u0445\u0443\u043D \u0441\u0442 0,5\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 439.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:56:45]POST & json_proto [22:56:45]process_json_proto [22:56:45]json parsed OK: [22:56:45]protocol is kg_v1.0 [22:56:45]action value=close_receipt [22:56:45]process_action close_receipt [22:56:45]cmd_close_receipt [22:56:45]MH_GetDate [22:56:45]Write to MH i2c: F0 00 00 D2 5F 20 [22:56:45]Write i2c OK [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: F0 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: F0 09 00 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: F0 09 00 D2 5F 00 B4 B9 22 67 72 0D 1C 67 21 [22:56:45]GetLastDocTimeStamp 1730328656 [22:56:45]current date 1730329012 [22:56:45]FM_GetShiftState [22:56:45]SAM_PROTO_GetShiftState [22:56:45]wFMCommunicate request_size=4 [22:56:45]MH_SAM_APDU [22:56:45]CAPDU: 80 13 01 00 [22:56:45]Write to MH i2c: E2 08 00 D3 5F 80 13 01 00 00 00 00 00 AF [22:56:45]Write i2c OK [22:56:45]MH_I2C_Read... [22:56:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:45]Read from MH i2c: E2 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: E2 0E 00 [22:56:45]MH_I2C_Read... [22:56:45]Read from MH i2c: E2 0E 00 D3 5F 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3F [22:56:45]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:56:45]wFMCommunicate OK [22:56:45]SAM_PROTO_GetShiftState done [22:56:45]FM_GetShiftState done [22:56:45]opened in 1730246278 [22:56:45]opened+sec_in_day 1730332678 [22:56:45]quantity*price = 26500 [22:56:45]sum+1 = 26501 [22:56:45]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4780111550484 Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л 1.000 * 125.00 = 125.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 46214645 Р/ж mentos pure white клуб 16/15,5г 1.000 * 49.00 = 49.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 439.00 НСП 1% : 3.88 НДС 12% : 46.61 Наличными: 439.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 195 30.10.2024 22:56 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139511 ФПД: 206980399165118 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225653&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139511&fm=206980399165118&tin=02508201610067®Number=0000000000091631&sum=43900 0 [22:56:46]StoreToDocumentArchive [22:56:46]shift 556 fd 139511 [22:56:46]save to /storage/0556/doc_00139511 [22:56:46]save last doc name /storage/0556/doc_00139511 to /storage/kkm_last_doc_name [22:56:46]save OK [22:56:46]Clear old archive folders... [22:56:46]ProcessDocumentItem done err = 0, tmpTLVsize=527 [22:56:46]tlvbuf is 01171140 [22:56:46]SAM_PROTO_ClearQueue [22:56:46]wFMCommunicate request_size=4 [22:56:46]MH_SAM_APDU [22:56:46]CAPDU: 80 09 00 00 [22:56:46]Write to MH i2c: E2 08 00 E0 5F 80 09 00 00 00 00 00 00 B1 [22:56:46]Write i2c OK [22:56:46]MH_I2C_Read... [22:56:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:56:46]Read from MH i2c: E2 [22:56:46]MH_I2C_Read... [22:56:46]Read from MH i2c: E2 03 00 [22:56:46]MH_I2C_Read... [22:56:46]Read from MH i2c: E2 03 00 E0 5F 00 90 00 B3 [22:56:46]RAPDU: 90 00 [22:56:46]wFMCommunicate OK [22:56:46]SAM_PROTO_ClearQueue done [22:56:46]KKMCreateOFDPacket [22:56:46]OFDProtocolAddRootSTLVToBuf [22:56:46]FM_MakeSignedData [22:56:46]FM_MakeSignedData [22:56:46]SAM_PROTO_SignData [22:56:46]wFMCommunicate request_size=4 [22:56:46]MH_SAM_APDU [22:56:46]CAPDU: 80 0D 01 02 [22:56:46]Write to MH i2c: E2 08 00 E1 5F 80 0D 01 02 00 00 00 00 B9 [22:56:46]Write i2c OK [22:56:46]MH_I2C_Read... [22:56:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:56:46]Read from MH i2c: E2 [22:56:46]MH_I2C_Read... [22:56:46]Read from MH i2c: E2 03 00 [22:56:46]MH_I2C_Read... [22:56:46]Read from MH i2c: E2 03 00 E1 5F 00 90 00 B4 [22:56:46]RAPDU: 90 00 [22:56:46]wFMCommunicate OK [22:56:46]wFMCommunicate request_size=255 [22:56:46]MH_SAM_APDU [22:56:46]CAPDU: 80 0D 02 02 FA 03 00 0F 02 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 [22:56:46]Write to MH i2c: E2 02 01 E2 5F 80 0D 02 02 FA 00 03 00 0F 02 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 00 2A [22:56:47]Write i2c OK [22:56:47]MH_I2C_Read... [22:56:47]OFD Sender: No OFD packet to send [22:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:47]Read from MH i2c: E2 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 03 00 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 03 00 E2 5F 00 90 00 B5 [22:56:47]RAPDU: 90 00 [22:56:47]wFMCommunicate OK [22:56:47]wFMCommunicate request_size=255 [22:56:47]MH_SAM_APDU [22:56:47]CAPDU: 80 0D 02 02 FA 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 7C AB 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 B5 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 [22:56:47]Write to MH i2c: E2 02 01 E3 5F 80 0D 02 02 FA 00 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 7C AB 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 B5 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 00 00 40 [22:56:47]Write i2c OK [22:56:47]MH_I2C_Read... [22:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:47]Read from MH i2c: E2 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 03 00 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 03 00 E3 5F 00 90 00 B6 [22:56:47]RAPDU: 90 00 [22:56:47]wFMCommunicate OK [22:56:47]wFMCommunicate request_size=36 [22:56:47]MH_SAM_APDU [22:56:47]CAPDU: 80 0D 02 02 1F 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 20 02 00 35 04 06 00 BC 3F 61 2A EE BE [22:56:47]Write to MH i2c: E2 27 00 E4 5F 80 0D 02 02 1F 00 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 20 02 00 35 04 06 00 BC 3F 61 2A EE BE 00 00 35 [22:56:47]Write i2c OK [22:56:47]MH_I2C_Read... [22:56:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:56:47]Read from MH i2c: E2 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 03 00 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 03 00 E4 5F 00 90 00 B7 [22:56:47]RAPDU: 90 00 [22:56:47]wFMCommunicate OK [22:56:47]wFMCommunicate request_size=4 [22:56:47]MH_SAM_APDU [22:56:47]CAPDU: 80 0D 03 02 [22:56:47]Write to MH i2c: E2 08 00 E5 5F 80 0D 03 02 00 00 00 00 BF [22:56:47]Write i2c OK [22:56:47]MH_I2C_Read... [22:56:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:56:47]Read from MH i2c: E2 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 0B 00 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 0B 00 E5 5F 00 EB F1 9C 95 6D 8A BC A8 90 00 28 [22:56:47]RAPDU: EB F1 9C 95 6D 8A BC A8 90 00 [22:56:47]wFMCommunicate OK [22:56:47]SAM_PROTO_SignData done [22:56:47]FM_MakeSignedData done [22:56:47]CreateOFDProtocolMessage [22:56:47]wFMCommunicate request_size=4 [22:56:47]MH_SAM_APDU [22:56:47]CAPDU: 80 11 00 00 [22:56:47]Write to MH i2c: E2 08 00 E6 5F 80 11 00 00 00 00 00 00 BF [22:56:47]Write i2c OK [22:56:47]MH_I2C_Read... [22:56:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:47]Read from MH i2c: E2 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 17 00 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: E2 17 00 E6 5F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1A [22:56:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:56:47]wFMCommunicate OK [22:56:47]CreateOFDProtocolMessage done [22:56:47]OFDSenderStorePacket 139511 [22:56:47]StoreOFDPacket docnum=139511 [22:56:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 02 00 00 25 DF 1B 02 38 21 5A 03 01 00 03 00 0F 02 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 7C AB 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 B5 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 20 02 00 35 04 06 00 BC 3F 61 2A EE BE EB F1 9C 95 6D 8A BC A8 [22:56:47]CheckFolder [22:56:47]dirname=/storage/ofd_packets [22:56:47]CheckFolder done [22:56:47]ProducePacketName [22:56:47]name=ofd_packets/00139511 [22:56:47]NVStorageSaveData ofd_packets/00139511 [22:56:47]File name is /storage/ofd_packets/00139511 [22:56:47]Write 577 bytes [22:56:47]NVStorageSaveData done [22:56:47]OFDSenderStorePacket done [22:56:47]KKMCreateOFDPacket done [22:56:47]NVStorageSaveData kkm_last_timestamp [22:56:47]File name is /storage/kkm_last_timestamp [22:56:47]Write 4 bytes [22:56:47]NVStorageSaveData done [22:56:47]ExternCall_PrintAddStr [22:56:47]wPrintStart [22:56:47]Write to MH i2c: 01 00 00 E7 5F 46 [22:56:47]Write i2c OK [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: 01 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: 01 07 00 [22:56:47]MH_I2C_Read... [22:56:47]Read from MH i2c: 01 07 00 E7 5F 00 00 00 00 00 FF 0F 5B [22:56:47]RasterBufferAndPrint [22:56:47]line Счет N : (3)335387 [22:56:47]line ИНН: 02508201610067 [22:56:47]line Контрольно-Кассовый Чек [22:56:47]line ПРОДАЖА [22:56:47]line Товар: 90448300 [22:56:47]line Энерг напиток Red Bull 0,355л [22:56:47]line 1.000 * 265.00 [22:56:47]line = 265.00 [22:56:47]line НДС 12% НСП 1% [22:56:47]line > о реализуемом товаре [22:56:47]line Товар: 4780111550484 [22:56:47]line Напиток из ЧЕРНОГОЛ газ тархун ст 0,5л [22:56:47]line 1.000 * 125.00 [22:56:47]line = 125.00 [22:56:47]line НДС 12% НСП 1% [22:56:47]line > о реализуемом товаре [22:56:47]line Товар: 46214645 [22:56:47]line Р/ж mentos pure white клуб 16/15,5г [22:56:47]line 1.000 * 49.00 [22:56:47]line = 49.00 [22:56:47]line НДС 12% НСП 1% [22:56:47]line > о реализуемом товаре [22:56:47]line ИТОГО: 439.00 [22:56:47]line НСП 1% : 3.88 [22:56:47]line НДС 12% : 46.61 [22:56:47]line Наличными: 439.00 [22:56:47]line Безнал.: 0.00 [22:56:47]line Место: АЗС № 101 "Партнер Нефть" [22:56:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:56:47]line СНО: Общий режим [22:56:47]line Чек 195 30.10.2024 22:56 [22:56:47]line Смена: 556 ФФД: 1.0 [22:56:47]line ЗНМ: 0300000081 [22:56:47]line РНМ: 0000000000091631 [22:56:47]line Версия ККМ: 001 [22:56:47]line ФМ: 0000000000874669 [22:56:47]line ФД: 139511 [22:56:47]line ФПД: 206980399165118 [22:56:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225653&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139511&fm=206980399165118&tin=02508201610067®Number=0000000000091631&sum=43900 [22:56:47]line 0 [22:56:47]written 0, free lines is 4095 [22:56:47]OFD Sender: Processing packet 139511 [packets to send 34, broken 33] [22:56:47]ProducePacketName [22:56:47]name=ofd_packets/00139511 [22:56:47]OFD Sender: To server: pG, [22:56:47]CommunicateWithHost lk.salyk.kg:30040 [22:56:47]ConnectInit lk.salyk.kg [22:56:47]Connected sock=10 [22:56:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 23 02 00 00 25 DF 1B 02 38 21 5A 03 01 00 03 00 0F 02 1E 04 01 00 01 23 04 69 00 8A 04 08 00 39 30 34 34 38 33 30 30 06 04 2A 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 42 75 6C 6C 20 30 2C 33 35 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 84 67 00 00 00 00 13 04 06 00 84 67 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 87 00 8A 04 0D 00 34 37 38 30 31 31 31 35 35 30 34 38 34 06 04 43 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 B8 D0 B7 20 D0 A7 D0 95 D0 A0 D0 9D D0 9E D0 93 D0 9E D0 9B 20 D0 B3 D0 B0 D0 B7 20 D1 82 D0 B0 D1 80 D1 85 D1 83 D0 BD 20 D1 81 D1 82 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C AB 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 35 12 00 00 00 00 07 04 06 00 7C AB 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 B5 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 20 02 00 35 04 06 00 BC 3F 61 2A EE BE EB F1 9C 95 6D 8A BC A8 [22:56:48]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CD 2D 47 00 2E CD A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F7 20 02 00 F4 03 04 00 64 65 22 67 B6 04 01 00 00 F3 92 8A 5D DC 83 C9 88 [22:56:48]CommunicateWithHost err = 0 [22:56:48]CheckOFDResponse [22:56:48]1017 (14) - 77093643461234 [22:56:48]1041 (16) - 0000000000874669 [22:56:48]1040 (4) - 139511 [22:56:48]1012 (4) - 30.10.2024 16:57 [22:56:48]1206 (1) - 0 [22:56:48]OFD Sender: Remove packet 139511 [22:56:48]ProducePacketName [22:56:48]name=ofd_packets/00139511 [22:56:48]NVStorageDeleteData [22:56:48]Write to MH i2c: 01 00 00 1D 60 7D [22:56:48]Write i2c OK [22:56:48]MH_I2C_Read... [22:56:48]Read from MH i2c: 01 [22:56:48]MH_I2C_Read... [22:56:48]Read from MH i2c: 01 07 00 [22:56:48]MH_I2C_Read... [22:56:48]Read from MH i2c: 01 07 00 1D 60 00 00 00 00 00 62 0C F2 [22:56:48]RasterBufferAndPrint [22:56:48]line [22:56:48]line [22:56:48]line [22:56:48]line [22:56:48]line [22:56:48]written 0, free lines is 3179 [22:56:48]MH_Cut [22:56:48]Write to MH i2c: D1 01 00 24 60 01 56 [22:56:48]Write i2c OK [22:56:48]MH_I2C_Read... [22:56:48]Read from MH i2c: D1 [22:56:48]MH_I2C_Read... [22:56:48]Read from MH i2c: D1 01 00 [22:56:48]MH_I2C_Read... [22:56:48]Read from MH i2c: D1 01 00 24 60 00 55 [22:56:48]Write to MH i2c: 01 00 00 25 60 85 [22:56:48]Write i2c OK [22:56:48]MH_I2C_Read... [22:56:48]OFD Sender: No OFD packet to send [22:56:49]*** Cut start [22:56:49]*** Partial cut [22:56:49]*** CUTSNS_PIN = 1 [22:56:49]*** CUTSNS_PIN = 0 [22:56:49]*** Brake cut motor [22:56:49]Read from MH i2c: 01 [22:56:49]MH_I2C_Read... [22:56:49]*** Stop cut motor [22:56:49]*** Cut end [22:56:49]Read from MH i2c: 01 07 00 [22:56:49]MH_I2C_Read... [22:56:49]Read from MH i2c: 01 07 00 25 60 00 00 00 00 00 FF 0F 9A [22:56:49]process_action close_receipt done [22:56:49]requested_data is exist [22:56:49]produce_requested_data [22:56:49]requested_item fm.sn is exist - process it [22:56:49]wFMCommunicate request_size=4 [22:56:49]MH_SAM_APDU [22:56:49]CAPDU: 80 11 00 00 [22:56:49]Write to MH i2c: E2 08 00 26 60 80 11 00 00 00 00 00 00 00 [22:56:49]Write i2c OK [22:56:49]MH_I2C_Read... [22:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:56:49]Read from MH i2c: E2 [22:56:49]MH_I2C_Read... [22:56:49]Read from MH i2c: E2 17 00 [22:56:49]MH_I2C_Read... [22:56:49]Read from MH i2c: E2 17 00 26 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5B [22:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:56:49]wFMCommunicate OK [22:56:49]requested_item fd.num is exist - process it [22:56:49]SAM_PROTO_GetFieldsCounters [22:56:49]wFMCommunicate request_size=4 [22:56:49]MH_SAM_APDU [22:56:49]CAPDU: 80 13 00 00 [22:56:49]Write to MH i2c: E2 08 00 27 60 80 13 00 00 00 00 00 00 03 [22:56:49]Write i2c OK [22:56:49]MH_I2C_Read... [22:56:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:56:49]Read from MH i2c: E2 [22:56:49]MH_I2C_Read... [22:56:49]Read from MH i2c: E2 62 00 [22:56:49]MH_I2C_Read... [22:56:49]Read from MH i2c: E2 62 00 27 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F7 20 02 00 0E 04 04 00 2C 02 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 B7 [22:56:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F7 20 02 00 0E 04 04 00 2C 02 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 [22:56:49]wFMCommunicate OK [22:56:49]SAM_PROTO_GetFieldsCounters done [22:56:49]requested_item shift.num is exist - process it [22:56:49]requested_item shift.opened is exist - process it [22:56:49]req_shift_opened [22:56:49]FM_GetShiftState [22:56:49]SAM_PROTO_GetShiftState [22:56:49]wFMCommunicate request_size=4 [22:56:49]MH_SAM_APDU [22:56:49]CAPDU: 80 13 01 00 [22:56:49]Write to MH i2c: E2 08 00 28 60 80 13 01 00 00 00 00 00 05 [22:56:49]Write i2c OK [22:56:49]MH_I2C_Read... [22:56:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:56:49]Read from MH i2c: E2 [22:56:49]MH_I2C_Read... [22:56:49]Read from MH i2c: E2 0E 00 [22:56:49]MH_I2C_Read... [22:56:49]Read from MH i2c: E2 0E 00 28 60 00 09 00 01 86 76 21 67 00 00 00 00 90 00 95 [22:56:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:56:49]wFMCommunicate OK [22:56:49]SAM_PROTO_GetShiftState done [22:56:49]FM_GetShiftState done [22:56:49]req_shift_opened done [22:56:49]requested_item shift.open_date is exist - process it [22:56:49]req_shift_open_date [22:56:49]req_shift_open_date done [22:56:49]produce_requested_data done [22:56:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139511,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [22:56:49]process_action_free close_receipt [22:56:49]json_value_free [22:56:49]json_value_free done [22:56:49]process_json_proto returns [22:56:49]Send response to host [22:56:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139511,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [22:56:50]free response buf [22:56:50]execute_script done [22:56:50]execute_script returns [22:56:50]free content buf [22:56:50]Sock 9.Close socket [22:56:50]Sock 9.Thread stoped [22:56:53]OFD Sender: No OFD packet to send [22:56:58]OFD Sender: No OFD packet to send [22:57:03]OFD Sender: No OFD packet to send [22:57:08]OFD Sender: No OFD packet to send [22:57:13]OFD Sender: No OFD packet to send [22:57:18]OFD Sender: No OFD packet to send [22:57:23]OFD Sender: No OFD packet to send [22:57:28]OFD Sender: No OFD packet to send [22:57:33]OFD Sender: No OFD packet to send [22:57:38]OFD Sender: No OFD packet to send [22:57:43]OFD Sender: No OFD packet to send [22:57:45]accept exits with 8 [22:57:45]New connection [22:57:45]New thread 3067141476 created [22:57:45]Thread 3067284836 joined [22:57:45]Waiting for new connection... [22:57:45] Sock 8.Parse request [22:57:45]Sock 8.Check first char [22:57:45]Sock 8.First char is OK [22:57:45]request: POST /json_proto HTTP/1.0 [22:57:45]Method: POST [22:57:45]URL: /json_proto [22:57:45]Method is POST - this is cgi request [22:57:45]url: /json_proto [22:57:45]query_string will be loaded in cgi processing [22:57:45]execute_cgi json_proto POST (null) [22:57:45]execute_cgi path=json_proto method=POST [22:57:45]POST find Content-Length [22:57:45]Host: 172.17.50.196:8080 [22:57:45]Content-Length: 641 [22:57:45]Content-Type: application/json [22:57:45] [22:57:45]POST finish read [22:57:45]Found Content-Length = 641 [22:57:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335388", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:45]execute_script... [22:57: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 : (3)335388", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:57:45]POST & json_proto [22:57:45]process_json_proto [22:57:45]json parsed OK: [22:57:45]protocol is kg_v1.0 [22:57:45]action value=close_receipt [22:57:45]process_action close_receipt [22:57:45]cmd_close_receipt [22:57:45]MH_GetDate [22:57:45]Write to MH i2c: F0 00 00 29 60 78 [22:57:45]Write i2c OK [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: F0 [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: F0 09 00 [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: F0 09 00 29 60 00 F1 B9 22 67 72 0D 1C 67 B6 [22:57:45]GetLastDocTimeStamp 1730329013 [22:57:45]current date 1730329073 [22:57:45]FM_GetShiftState [22:57:45]SAM_PROTO_GetShiftState [22:57:45]wFMCommunicate request_size=4 [22:57:45]MH_SAM_APDU [22:57:45]CAPDU: 80 13 01 00 [22:57:45]Write to MH i2c: E2 08 00 2A 60 80 13 01 00 00 00 00 00 07 [22:57:45]Write i2c OK [22:57:45]MH_I2C_Read... [22:57:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:45]Read from MH i2c: E2 [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: E2 0E 00 [22:57:45]MH_I2C_Read... [22:57:45]Read from MH i2c: E2 0E 00 2A 60 00 09 00 01 86 76 21 67 00 00 00 00 90 00 97 [22:57:45]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:57:45]wFMCommunicate OK [22:57:45]SAM_PROTO_GetShiftState done [22:57:45]FM_GetShiftState done [22:57:45]opened in 1730246278 [22:57:45]opened+sec_in_day 1730332678 [22:57:45]quantity*price = 33000 [22:57:45]sum+1 = 33001 [22:57:45]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 196 30.10.2024 22:57 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139512 ФПД: 158512615592948 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225753&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139512&fm=158512615592948&tin=02508201610067®Number=0000000000091631&sum=33000 0 [22:57:47]StoreToDocumentArchive [22:57:47]shift 556 fd 139512 [22:57:47]save to /storage/0556/doc_00139512 [22:57:47]save last doc name /storage/0556/doc_00139512 to /storage/kkm_last_doc_name [22:57:47]save OK [22:57:47]Clear old archive folders... [22:57:47]ProcessDocumentItem done err = 0, tmpTLVsize=273 [22:57:47]tlvbuf is 012BF930 [22:57:47]SAM_PROTO_ClearQueue [22:57:47]wFMCommunicate request_size=4 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 09 00 00 [22:57:47]Write to MH i2c: E2 08 00 37 60 80 09 00 00 00 00 00 00 09 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 03 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 03 00 37 60 00 90 00 0B [22:57:47]RAPDU: 90 00 [22:57:47]wFMCommunicate OK [22:57:47]SAM_PROTO_ClearQueue done [22:57:47]KKMCreateOFDPacket [22:57:47]OFDProtocolAddRootSTLVToBuf [22:57:47]FM_MakeSignedData [22:57:47]FM_MakeSignedData [22:57:47]SAM_PROTO_SignData [22:57:47]wFMCommunicate request_size=4 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 0D 01 02 [22:57:47]Write to MH i2c: E2 08 00 38 60 80 0D 01 02 00 00 00 00 11 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 03 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 03 00 38 60 00 90 00 0C [22:57:47]RAPDU: 90 00 [22:57:47]wFMCommunicate OK [22:57:47]wFMCommunicate request_size=255 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 F1 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [22:57:47]Write to MH i2c: E2 02 01 39 60 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 F1 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 E8 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 03 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 03 00 39 60 00 90 00 0D [22:57:47]RAPDU: 90 00 [22:57:47]wFMCommunicate OK [22:57:47]wFMCommunicate request_size=32 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 F8 20 02 00 35 04 06 00 90 2A 98 25 13 F4 [22:57:47]Write to MH i2c: E2 23 00 3A 60 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 F8 20 02 00 35 04 06 00 90 2A 98 25 13 F4 00 00 11 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 03 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 03 00 3A 60 00 90 00 0E [22:57:47]RAPDU: 90 00 [22:57:47]wFMCommunicate OK [22:57:47]wFMCommunicate request_size=4 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 0D 03 02 [22:57:47]Write to MH i2c: E2 08 00 3B 60 80 0D 03 02 00 00 00 00 16 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 0B 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 0B 00 3B 60 00 81 EF F6 DE 6B 03 89 E8 90 00 3A [22:57:47]RAPDU: 81 EF F6 DE 6B 03 89 E8 90 00 [22:57:47]wFMCommunicate OK [22:57:47]SAM_PROTO_SignData done [22:57:47]FM_MakeSignedData done [22:57:47]CreateOFDProtocolMessage [22:57:47]wFMCommunicate request_size=4 [22:57:47]MH_SAM_APDU [22:57:47]CAPDU: 80 11 00 00 [22:57:47]Write to MH i2c: E2 08 00 3C 60 80 11 00 00 00 00 00 00 16 [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:47]Read from MH i2c: E2 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 17 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: E2 17 00 3C 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 71 [22:57:47]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:57:47]wFMCommunicate OK [22:57:47]CreateOFDProtocolMessage done [22:57:47]OFDSenderStorePacket 139512 [22:57:47]StoreOFDPacket docnum=139512 [22:57:47]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 23 89 1D 01 26 BC 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 F1 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F8 20 02 00 35 04 06 00 90 2A 98 25 13 F4 81 EF F6 DE 6B 03 89 E8 [22:57:47]CheckFolder [22:57:47]dirname=/storage/ofd_packets [22:57:47]CheckFolder done [22:57:47]ProducePacketName [22:57:47]name=ofd_packets/00139512 [22:57:47]NVStorageSaveData ofd_packets/00139512 [22:57:47]File name is /storage/ofd_packets/00139512 [22:57:47]Write 323 bytes [22:57:47]NVStorageSaveData done [22:57:47]OFDSenderStorePacket done [22:57:47]KKMCreateOFDPacket done [22:57:47]NVStorageSaveData kkm_last_timestamp [22:57:47]File name is /storage/kkm_last_timestamp [22:57:47]Write 4 bytes [22:57:47]NVStorageSaveData done [22:57:47]ExternCall_PrintAddStr [22:57:47]wPrintStart [22:57:47]Write to MH i2c: 01 00 00 3D 60 9D [22:57:47]Write i2c OK [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: 01 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: 01 07 00 [22:57:47]MH_I2C_Read... [22:57:47]Read from MH i2c: 01 07 00 3D 60 00 00 00 00 00 FF 0F B2 [22:57:47]RasterBufferAndPrint [22:57:47]line Счет N : (3)335388 [22:57:47]line ИНН: 02508201610067 [22:57:47]line Контрольно-Кассовый Чек [22:57:47]line ПРОДАЖА [22:57:47]line Товар: 4700001060169 [22:57:47]line Коньяк Бишкек 0,2л [22:57:47]line 1.000 * 330.00 [22:57:47]line = 330.00 [22:57:47]line НДС 12% НСП 1% [22:57:47]line > о реализуемом товаре [22:57:47]line ИТОГО: 330.00 [22:57:47]line НСП 1% : 2.92 [22:57:47]line НДС 12% : 35.04 [22:57:47]line Наличными: 330.00 [22:57:47]line Безнал.: 0.00 [22:57:47]line Место: АЗС № 101 "Партнер Нефть" [22:57:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:57:47]line СНО: Общий режим [22:57:47]line Чек 196 30.10.2024 22:57 [22:57:47]line Смена: 556 ФФД: 1.0 [22:57:47]line ЗНМ: 0300000081 [22:57:47]line РНМ: 0000000000091631 [22:57:47]line Версия ККМ: 001 [22:57:47]line ФМ: 0000000000874669 [22:57:47]line ФД: 139512 [22:57:47]line ФПД: 158512615592948 [22:57:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225753&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139512&fm=158512615592948&tin=02508201610067®Number=0000000000091631&sum=33000 [22:57:47]OFD Sender: Processing packet 139512 [packets to send 34, broken 33] [22:57:47]ProducePacketName [22:57:47]name=ofd_packets/00139512 [22:57:47]OFD Sender: To server: pG, [22:57:47]CommunicateWithHost lk.salyk.kg:30040 [22:57:47]ConnectInit lk.salyk.kg [22:57:47]line 0 [22:57:47]written 0, free lines is 4095 [22:57:48]Write to MH i2c: 01 00 00 65 60 C5 [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: 01 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: 01 07 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: 01 07 00 65 60 00 00 00 00 00 14 0D ED [22:57:48]RasterBufferAndPrint [22:57:48]line [22:57:48]line [22:57:48]line [22:57:48]line [22:57:48]line [22:57:48]written 0, free lines is 3354 [22:57:48]MH_Cut [22:57:48]Write to MH i2c: D1 01 00 6C 60 01 9E [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: D1 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: D1 01 00 [22:57:48]MH_I2C_Read... [22:57:48]Read from MH i2c: D1 01 00 6C 60 00 9D [22:57:48]Write to MH i2c: 01 00 00 6D 60 CD [22:57:48]Write i2c OK [22:57:48]MH_I2C_Read... [22:57:49]*** Cut start [22:57:49]*** Partial cut [22:57:49]*** CUTSNS_PIN = 1 [22:57:49]*** CUTSNS_PIN = 0 [22:57:49]*** Brake cut motor [22:57:49]Read from MH i2c: 01 [22:57:49]MH_I2C_Read... [22:57:49]*** Stop cut motor [22:57:49]*** Cut end [22:57:49]Read from MH i2c: 01 07 00 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: 01 07 00 6D 60 00 00 00 00 00 FF 0F E2 [22:57:49]process_action close_receipt done [22:57:49]requested_data is exist [22:57:49]produce_requested_data [22:57:49]requested_item fm.sn is exist - process it [22:57:49]wFMCommunicate request_size=4 [22:57:49]MH_SAM_APDU [22:57:49]CAPDU: 80 11 00 00 [22:57:49]Write to MH i2c: E2 08 00 6E 60 80 11 00 00 00 00 00 00 48 [22:57:49]Write i2c OK [22:57:49]MH_I2C_Read... [22:57:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:57:49]Read from MH i2c: E2 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 17 00 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 17 00 6E 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A3 [22:57:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:57:49]wFMCommunicate OK [22:57:49]requested_item fd.num is exist - process it [22:57:49]SAM_PROTO_GetFieldsCounters [22:57:49]wFMCommunicate request_size=4 [22:57:49]MH_SAM_APDU [22:57:49]CAPDU: 80 13 00 00 [22:57:49]Write to MH i2c: E2 08 00 6F 60 80 13 00 00 00 00 00 00 4B [22:57:49]Write i2c OK [22:57:49]MH_I2C_Read... [22:57:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:57:49]Read from MH i2c: E2 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 62 00 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 62 00 6F 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F8 20 02 00 0E 04 04 00 2C 02 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 03 [22:57:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F8 20 02 00 0E 04 04 00 2C 02 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 [22:57:49]wFMCommunicate OK [22:57:49]SAM_PROTO_GetFieldsCounters done [22:57:49]requested_item shift.num is exist - process it [22:57:49]requested_item shift.opened is exist - process it [22:57:49]req_shift_opened [22:57:49]FM_GetShiftState [22:57:49]SAM_PROTO_GetShiftState [22:57:49]wFMCommunicate request_size=4 [22:57:49]MH_SAM_APDU [22:57:49]CAPDU: 80 13 01 00 [22:57:49]Write to MH i2c: E2 08 00 70 60 80 13 01 00 00 00 00 00 4D [22:57:49]Write i2c OK [22:57:49]MH_I2C_Read... [22:57:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:57:49]Read from MH i2c: E2 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 0E 00 [22:57:49]MH_I2C_Read... [22:57:49]Read from MH i2c: E2 0E 00 70 60 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DD [22:57:49]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:57:49]wFMCommunicate OK [22:57:49]SAM_PROTO_GetShiftState done [22:57:49]FM_GetShiftState done [22:57:49]req_shift_opened done [22:57:49]requested_item shift.open_date is exist - process it [22:57:49]req_shift_open_date [22:57:49]req_shift_open_date done [22:57:49]produce_requested_data done [22:57:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139512,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [22:57:49]process_action_free close_receipt [22:57:49]json_value_free [22:57:49]json_value_free done [22:57:49]process_json_proto returns [22:57:49]Send response to host [22:57:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139512,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [22:57:49]free response buf [22:57:49]execute_script done [22:57:49]execute_script returns [22:57:49]free content buf [22:57:49]Sock 8.Close socket [22:57:49]Sock 8.Thread stoped [22:58:04]accept exits with 9 [22:58:04]New connection [22:58:04]New thread 3067284836 created [22:58:04]Thread 3067141476 joined [22:58:04]Waiting for new connection... [22:58:04] Sock 9.Parse request [22:58:04]Sock 9.Check first char [22:58:04]Sock 9.First char is OK [22:58:04]request: POST /json_proto HTTP/1.0 [22:58:04]Method: POST [22:58:04]URL: /json_proto [22:58:04]Method is POST - this is cgi request [22:58:04]url: /json_proto [22:58:04]query_string will be loaded in cgi processing [22:58:04]execute_cgi json_proto POST (null) [22:58:04]execute_cgi path=json_proto method=POST [22:58:04]POST find Content-Length [22:58:04]Host: 172.17.50.196:8080 [22:58:04]Content-Length: 933 [22:58:04]Content-Type: application/json [22:58:04] [22:58:04]POST finish read [22:58:04]Found Content-Length = 933 [22:58:04]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335389", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 223.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:04]execute_script... [22:58: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 : (3)335389", "tax_sys" : 0, "items" : [ { "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 223.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [22:58:04]POST & json_proto [22:58:04]process_json_proto [22:58:04]json parsed OK: [22:58:04]protocol is kg_v1.0 [22:58:04]action value=close_receipt [22:58:04]process_action close_receipt [22:58:04]cmd_close_receipt [22:58:04]MH_GetDate [22:58:04]Write to MH i2c: F0 00 00 71 60 C0 [22:58:04]Write i2c OK [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: F0 [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: F0 09 00 [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: F0 09 00 71 60 00 03 BA 22 67 72 0D 1C 67 11 [22:58:04]GetLastDocTimeStamp 1730329073 [22:58:04]current date 1730329091 [22:58:04]FM_GetShiftState [22:58:04]SAM_PROTO_GetShiftState [22:58:04]wFMCommunicate request_size=4 [22:58:04]MH_SAM_APDU [22:58:04]CAPDU: 80 13 01 00 [22:58:04]Write to MH i2c: E2 08 00 72 60 80 13 01 00 00 00 00 00 4F [22:58:04]Write i2c OK [22:58:04]MH_I2C_Read... [22:58:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:04]Read from MH i2c: E2 [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: E2 0E 00 [22:58:04]MH_I2C_Read... [22:58:04]Read from MH i2c: E2 0E 00 72 60 00 09 00 01 86 76 21 67 00 00 00 00 90 00 DF [22:58:04]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:58:04]wFMCommunicate OK [22:58:04]SAM_PROTO_GetShiftState done [22:58:04]FM_GetShiftState done [22:58:04]opened in 1730246278 [22:58:04]opened+sec_in_day 1730332678 [22:58:04]quantity*price = 9300 [22:58:04]sum+1 = 9301 [22:58:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 223.00 НСП 1% : 1.97 НДС 12% : 23.68 Наличными: 223.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 197 30.10.2024 22:58 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139513 ФПД: 7090134533450 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225811&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139513&fm=7090134533450&tin=02508201610067®Number=0000000000091631&sum=22300 0 [22:58:05]StoreToDocumentArchive [22:58:05]shift 556 fd 139513 [22:58:05]save to /storage/0556/doc_00139513 [22:58:05]save last doc name /storage/0556/doc_00139513 to /storage/kkm_last_doc_name [22:58:05]save OK [22:58:05]Clear old archive folders... [22:58:05]ProcessDocumentItem done err = 0, tmpTLVsize=401 [22:58:05]tlvbuf is 01272960 [22:58:05]SAM_PROTO_ClearQueue [22:58:05]wFMCommunicate request_size=4 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 09 00 00 [22:58:05]Write to MH i2c: E2 08 00 7F 60 80 09 00 00 00 00 00 00 51 [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 7F 60 00 90 00 53 [22:58:05]RAPDU: 90 00 [22:58:05]wFMCommunicate OK [22:58:05]SAM_PROTO_ClearQueue done [22:58:05]KKMCreateOFDPacket [22:58:05]OFDProtocolAddRootSTLVToBuf [22:58:05]FM_MakeSignedData [22:58:05]FM_MakeSignedData [22:58:05]SAM_PROTO_SignData [22:58:05]wFMCommunicate request_size=4 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 0D 01 02 [22:58:05]Write to MH i2c: E2 08 00 80 60 80 0D 01 02 00 00 00 00 59 [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 80 60 00 90 00 54 [22:58:05]RAPDU: 90 00 [22:58:05]wFMCommunicate OK [22:58:05]wFMCommunicate request_size=255 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 0D 02 02 FA 03 00 91 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 [22:58:05]Write to MH i2c: E2 02 01 81 60 80 0D 02 02 FA 00 03 00 91 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 00 00 A1 [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 81 60 00 90 00 55 [22:58:05]RAPDU: 90 00 [22:58:05]wFMCommunicate OK [22:58:05]wFMCommunicate request_size=160 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 0D 02 02 9B EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 57 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 03 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F9 20 02 00 35 04 06 00 06 72 CC F3 45 4A [22:58:05]Write to MH i2c: E2 A3 00 82 60 80 0D 02 02 9B 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 57 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 03 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F9 20 02 00 35 04 06 00 06 72 CC F3 45 4A 00 00 6D [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 03 00 82 60 00 90 00 56 [22:58:05]RAPDU: 90 00 [22:58:05]wFMCommunicate OK [22:58:05]wFMCommunicate request_size=4 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 0D 03 02 [22:58:05]Write to MH i2c: E2 08 00 83 60 80 0D 03 02 00 00 00 00 5E [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 0B 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 0B 00 83 60 00 FA 34 65 2D BD 73 F5 08 90 00 4C [22:58:05]RAPDU: FA 34 65 2D BD 73 F5 08 90 00 [22:58:05]wFMCommunicate OK [22:58:05]SAM_PROTO_SignData done [22:58:05]FM_MakeSignedData done [22:58:05]CreateOFDProtocolMessage [22:58:05]wFMCommunicate request_size=4 [22:58:05]MH_SAM_APDU [22:58:05]CAPDU: 80 11 00 00 [22:58:05]Write to MH i2c: E2 08 00 84 60 80 11 00 00 00 00 00 00 5E [22:58:05]Write i2c OK [22:58:05]MH_I2C_Read... [22:58:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:05]Read from MH i2c: E2 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 17 00 [22:58:05]MH_I2C_Read... [22:58:05]Read from MH i2c: E2 17 00 84 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B9 [22:58:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:58:05]wFMCommunicate OK [22:58:05]CreateOFDProtocolMessage done [22:58:05]OFDSenderStorePacket 139513 [22:58:05]StoreOFDPacket docnum=139513 [22:58:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A5 01 00 00 71 DF 9D 01 BE 2A 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 57 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 03 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F9 20 02 00 35 04 06 00 06 72 CC F3 45 4A FA 34 65 2D BD 73 F5 08 [22:58:05]CheckFolder [22:58:05]dirname=/storage/ofd_packets [22:58:05]CheckFolder done [22:58:05]ProducePacketName [22:58:06]name=ofd_packets/00139513 [22:58:06]NVStorageSaveData ofd_packets/00139513 [22:58:06]File name is /storage/ofd_packets/00139513 [22:58:06]Write 451 bytes [22:58:06]NVStorageSaveData done [22:58:06]OFDSenderStorePacket done [22:58:06]KKMCreateOFDPacket done [22:58:06]NVStorageSaveData kkm_last_timestamp [22:58:06]File name is /storage/kkm_last_timestamp [22:58:06]Write 4 bytes [22:58:06]NVStorageSaveData done [22:58:06]ExternCall_PrintAddStr [22:58:06]wPrintStart [22:58:06]Write to MH i2c: 01 00 00 85 60 E5 [22:58:06]Write i2c OK [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: 01 [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: 01 07 00 [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: 01 07 00 85 60 00 00 00 00 00 FF 0F FA [22:58:06]RasterBufferAndPrint [22:58:06]line Счет N : (3)335389 [22:58:06]line ИНН: 02508201610067 [22:58:06]line Контрольно-Кассовый Чек [22:58:06]line ПРОДАЖА [22:58:06]line Товар: 4603290004862 [22:58:06]line Печ.сах.FORSITE Сэнд.шок-ор.вк [22:58:06]line 1.000 * 93.00 [22:58:06]line = 93.00 [22:58:06]line НДС 12% НСП 1% [22:58:06]line > о реализуемом товаре [22:58:06]line Товар: 2000036220012 [22:58:06]line Кофе Капучино XL(GABB TRADE) [22:58:06]line 1.000 * 130.00 [22:58:06]line = 130.00 [22:58:06]line НДС 12% НСП 1% [22:58:06]line > о реализуемом товаре [22:58:06]line ИТОГО: 223.00 [22:58:06]line НСП 1% : 1.97 [22:58:06]line НДС 12% : 23.68 [22:58:06]line Наличными: 223.00 [22:58:06]line Безнал.: 0.00 [22:58:06]line Место: АЗС № 101 "Партнер Нефть" [22:58:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [22:58:06]line СНО: Общий режим [22:58:06]line Чек 197 30.10.2024 22:58 [22:58:06]line Смена: 556 ФФД: 1.0 [22:58:06]line ЗНМ: 0300000081 [22:58:06]line РНМ: 0000000000091631 [22:58:06]line Версия ККМ: 001 [22:58:06]line ФМ: 0000000000874669 [22:58:06]line ФД: 139513 [22:58:06]line ФПД: 7090134533450 [22:58:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T225811&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139513&fm=7090134533450&tin=02508201610067®Number=0000000000091631&sum=22300 [22:58:06]line 0 [22:58:06]written 0, free lines is 4095 [22:58:06]Write to MH i2c: 01 00 00 B5 60 15 [22:58:06]Write i2c OK [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: 01 [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: 01 07 00 [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: 01 07 00 B5 60 00 00 00 00 00 9A 0C C2 [22:58:06]RasterBufferAndPrint [22:58:06]line [22:58:06]line [22:58:06]line [22:58:06]line [22:58:06]line [22:58:06]written 0, free lines is 3233 [22:58:06]MH_Cut [22:58:06]Write to MH i2c: D1 01 00 BC 60 01 EE [22:58:06]Write i2c OK [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: D1 [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: D1 01 00 [22:58:06]MH_I2C_Read... [22:58:06]Read from MH i2c: D1 01 00 BC 60 00 ED [22:58:06]Write to MH i2c: 01 00 00 BD 60 1D [22:58:06]Write i2c OK [22:58:06]MH_I2C_Read... [22:58:07]*** Cut start [22:58:07]*** Partial cut [22:58:07]*** CUTSNS_PIN = 1 [22:58:07]*** CUTSNS_PIN = 0 [22:58:07]*** Brake cut motor [22:58:08]Read from MH i2c: 01 [22:58:08]MH_I2C_Read... [22:58:08]*** Stop cut motor [22:58:08]*** Cut end [22:58:08]Read from MH i2c: 01 07 00 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: 01 07 00 BD 60 00 00 00 00 00 FF 0F 32 [22:58:08]process_action close_receipt done [22:58:08]requested_data is exist [22:58:08]produce_requested_data [22:58:08]requested_item fm.sn is exist - process it [22:58:08]wFMCommunicate request_size=4 [22:58:08]MH_SAM_APDU [22:58:08]CAPDU: 80 11 00 00 [22:58:08]Write to MH i2c: E2 08 00 BE 60 80 11 00 00 00 00 00 00 98 [22:58:08]Write i2c OK [22:58:08]MH_I2C_Read... [22:58:08]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [22:58:08]Read from MH i2c: E2 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 17 00 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 17 00 BE 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F3 [22:58:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [22:58:08]wFMCommunicate OK [22:58:08]requested_item fd.num is exist - process it [22:58:08]SAM_PROTO_GetFieldsCounters [22:58:08]wFMCommunicate request_size=4 [22:58:08]MH_SAM_APDU [22:58:08]CAPDU: 80 13 00 00 [22:58:08]Write to MH i2c: E2 08 00 BF 60 80 13 00 00 00 00 00 00 9B [22:58:08]Write i2c OK [22:58:08]MH_I2C_Read... [22:58:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [22:58:08]Read from MH i2c: E2 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 62 00 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 62 00 BF 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F9 20 02 00 0E 04 04 00 2C 02 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 57 [22:58:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 F9 20 02 00 0E 04 04 00 2C 02 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 [22:58:08]wFMCommunicate OK [22:58:08]SAM_PROTO_GetFieldsCounters done [22:58:08]requested_item shift.num is exist - process it [22:58:08]requested_item shift.opened is exist - process it [22:58:08]req_shift_opened [22:58:08]FM_GetShiftState [22:58:08]SAM_PROTO_GetShiftState [22:58:08]wFMCommunicate request_size=4 [22:58:08]MH_SAM_APDU [22:58:08]CAPDU: 80 13 01 00 [22:58:08]Write to MH i2c: E2 08 00 C0 60 80 13 01 00 00 00 00 00 9D [22:58:08]Write i2c OK [22:58:08]MH_I2C_Read... [22:58:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [22:58:08]Read from MH i2c: E2 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 0E 00 [22:58:08]MH_I2C_Read... [22:58:08]Read from MH i2c: E2 0E 00 C0 60 00 09 00 01 86 76 21 67 00 00 00 00 90 00 2D [22:58:08]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [22:58:08]wFMCommunicate OK [22:58:08]SAM_PROTO_GetShiftState done [22:58:08]FM_GetShiftState done [22:58:08]req_shift_opened done [22:58:08]requested_item shift.open_date is exist - process it [22:58:08]req_shift_open_date [22:58:08]req_shift_open_date done [22:58:08]produce_requested_data done [22:58:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139513,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [22:58:08]process_action_free close_receipt [22:58:08]json_value_free [22:58:08]json_value_free done [22:58:08]process_json_proto returns [22:58:08]Send response to host [22:58:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139513,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [22:58:08]free response buf [22:58:08]execute_script done [22:58:08]execute_script returns [22:58:08]free content buf [22:58:08]Sock 9.Close socket [22:58:08]Sock 9.Thread stoped [22:59:58]ConnectInit Can't connect to host [22:59:58]CommunicateWithHost connect error [22:59:58]CommunicateWithHost err = -1 [22:59:58]OFD Sender: Server communicate error [22:59:58]OFD Sender: Processing packet 139512 [packets to send 35, broken 33] [22:59:58]ProducePacketName [22:59:58]name=ofd_packets/00139512 [22:59:58]OFD Sender: To server: pG, [22:59:58]CommunicateWithHost lk.salyk.kg:30040 [22:59:58]ConnectInit lk.salyk.kg [22:59:58]Connected sock=9 [22:59:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 23 89 1D 01 26 BC 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 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 F1 B9 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F8 20 02 00 35 04 06 00 90 2A 98 25 13 F4 81 EF F6 DE 6B 03 89 E8 [22:59:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 00 FB 47 00 F8 73 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F8 20 02 00 F4 03 04 00 23 66 22 67 B6 04 01 00 00 57 F2 D9 67 D3 36 89 D4 [22:59:58]CommunicateWithHost err = 0 [22:59:58]CheckOFDResponse [22:59:58]1017 (14) - 77093643461234 [22:59:58]1041 (16) - 0000000000874669 [22:59:58]1040 (4) - 139512 [22:59:58]1012 (4) - 30.10.2024 17:00 [22:59:58]1206 (1) - 0 [22:59:58]OFD Sender: Remove packet 139512 [22:59:58]ProducePacketName [22:59:58]name=ofd_packets/00139512 [22:59:58]NVStorageDeleteData [22:59:59]OFD Sender: Processing packet 139513 [packets to send 34, broken 33] [22:59:59]ProducePacketName [22:59:59]name=ofd_packets/00139513 [22:59:59]OFD Sender: To server: pG, [22:59:59]CommunicateWithHost lk.salyk.kg:30040 [22:59:59]ConnectInit lk.salyk.kg [22:59:59]Connected sock=9 [22:59:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 A5 01 00 00 71 DF 9D 01 BE 2A 5A 03 01 00 03 00 91 01 1E 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 57 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 C5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 40 09 00 00 00 00 07 04 06 00 1C 57 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 03 BA 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F9 20 02 00 35 04 06 00 06 72 CC F3 45 4A FA 34 65 2D BD 73 F5 08 [22:59:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 46 05 47 00 C4 8D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 F9 20 02 00 F4 03 04 00 23 66 22 67 B6 04 01 00 00 F4 DD 60 19 05 AC FB A1 [22:59:59]CommunicateWithHost err = 0 [22:59:59]CheckOFDResponse [22:59:59]1017 (14) - 77093643461234 [22:59:59]1041 (16) - 0000000000874669 [22:59:59]1040 (4) - 139513 [22:59:59]1012 (4) - 30.10.2024 17:00 [22:59:59]1206 (1) - 0 [22:59:59]OFD Sender: Remove packet 139513 [22:59:59]ProducePacketName [22:59:59]name=ofd_packets/00139513 [22:59:59]NVStorageDeleteData [22:59:59]OFD Sender: No OFD packet to send [23:00:04]OFD Sender: No OFD packet to send [23:00:09]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:10]OFD Sender: No OFD packet to send [23:03:15]OFD Sender: No OFD packet to send [23:03:20]OFD Sender: No OFD packet to send [23:03:25]OFD Sender: No OFD packet to send [23:03:30]OFD Sender: No OFD packet to send [23:03:35]OFD Sender: No OFD packet to send [23:03:40]OFD Sender: No OFD packet to send [23:03:45]OFD Sender: No OFD packet to send [23:03:50]OFD Sender: No OFD packet to send [23:03:55]OFD Sender: No OFD packet to send [23:04:00]OFD Sender: No OFD packet to send [23:04:05]OFD Sender: No OFD packet to send [23:04:10]OFD Sender: No OFD packet to send [23:04:15]OFD Sender: No OFD packet to send [23:04:20]OFD Sender: No OFD packet to send [23:04:25]OFD Sender: No OFD packet to send [23:04:30]OFD Sender: No OFD packet to send [23:04:35]OFD Sender: No OFD packet to send [23:04:40]OFD Sender: No OFD packet to send [23:04:45]OFD Sender: No OFD packet to send [23:04:50]OFD Sender: No OFD packet to send [23:04:55]OFD Sender: No OFD packet to send [23:05:00]OFD Sender: No OFD packet to send [23:05:05]OFD Sender: No OFD packet to send [23:05:10]OFD Sender: No OFD packet to send [23:05:15]OFD Sender: No OFD packet to send [23:05:20]OFD Sender: No OFD packet to send [23:05:25]OFD Sender: No OFD packet to send [23:05:30]OFD Sender: No OFD packet to send [23:05:35]OFD Sender: No OFD packet to send [23:05:40]OFD Sender: No OFD packet to send [23:05:45]OFD Sender: No OFD packet to send [23:05:50]OFD Sender: No OFD packet to send [23:05:55]OFD Sender: No OFD packet to send [23:06:00]OFD Sender: No OFD packet to send [23:06:05]OFD Sender: No OFD packet to send [23:06:10]OFD Sender: No OFD packet to send [23:06:15]OFD Sender: No OFD packet to send [23:06:20]OFD Sender: No OFD packet to send [23:06:25]OFD Sender: No OFD packet to send [23:06:30]OFD Sender: No OFD packet to send [23:06:35]OFD Sender: No OFD packet to send [23:06:40]OFD Sender: No OFD packet to send [23:06:45]OFD Sender: No OFD packet to send [23:06:50]OFD Sender: No OFD packet to send [23:06:55]OFD Sender: No OFD packet to send [23:07:00]OFD Sender: No OFD packet to send [23:07:05]OFD Sender: No OFD packet to send [23:07:10]OFD Sender: No OFD packet to send [23:07:15]OFD Sender: No OFD packet to send [23:07:20]OFD Sender: No OFD packet to send [23:07:25]OFD Sender: No OFD packet to send [23:07:30]OFD Sender: No OFD packet to send [23:07:35]OFD Sender: No OFD packet to send [23:07:40]OFD Sender: No OFD packet to send [23:07:45]OFD Sender: No OFD packet to send [23:07:50]OFD Sender: No OFD packet to send [23:07:55]OFD Sender: No OFD packet to send [23:08:00]OFD Sender: No OFD packet to send [23:08:05]OFD Sender: No OFD packet to send [23:08:10]OFD Sender: No OFD packet to send [23:08:15]OFD Sender: No OFD packet to send [23:08:20]OFD Sender: No OFD packet to send [23:08:25]OFD Sender: No OFD packet to send [23:08:30]OFD Sender: No OFD packet to send [23:08:35]OFD Sender: No OFD packet to send [23:08:40]OFD Sender: No OFD packet to send [23:08:45]OFD Sender: No OFD packet to send [23:08:50]OFD Sender: No OFD packet to send [23:08:55]OFD Sender: No OFD packet to send [23:09:00]OFD Sender: No OFD packet to send [23:09:05]OFD Sender: No OFD packet to send [23:09:10]OFD Sender: No OFD packet to send [23:09:15]OFD Sender: No OFD packet to send [23:09:20]OFD Sender: No OFD packet to send [23:09:25]OFD Sender: No OFD packet to send [23:09:30]OFD Sender: No OFD packet to send [23:09:35]OFD Sender: No OFD packet to send [23:09:40]OFD Sender: No OFD packet to send [23:09:45]OFD Sender: No OFD packet to send [23:09:50]OFD Sender: No OFD packet to send [23:09:55]OFD Sender: No OFD packet to send [23:10:00]OFD Sender: No OFD packet to send [23:10:05]OFD Sender: No OFD packet to send [23:10:10]OFD Sender: No OFD packet to send [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:46]int [23:10:46]Write to MH i2c: 01 00 00 C1 60 21 [23:10:46]*** FLAG_PRN_PAP1 set [23:10:46]Write i2c OK [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 C1 60 00 01 00 00 00 FF 0F 37 [23:10:46]state=0 [23:10:46]No paper [23:10:46]int [23:10:46]Write to MH i2c: 01 00 00 C2 60 22 [23:10:46]*** FLAG_PRN_PAP2 set [23:10:46]Write i2c OK [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 C2 60 00 03 00 00 00 FF 0F 3A [23:10:46]state=0 [23:10:46]No paper [23:10:46]Cover opened [23:10:46]int [23:10:46]Write to MH i2c: 01 00 00 C3 60 23 [23:10:46]*** FLAG_PRN_PAP2 reset [23:10:46]Write i2c OK [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 C3 60 00 01 00 00 00 FF 0F 39 [23:10:46]state=3 [23:10:46]No paper [23:10:46]Cover closed [23:10:46]int [23:10:46]Write to MH i2c: 01 00 00 C4 60 24 [23:10:46]*** FLAG_PRN_PAP2 set [23:10:46]Write i2c OK [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 C4 60 00 03 00 00 00 FF 0F 3C [23:10:46]state=0 [23:10:46]No paper [23:10:46]Cover opened [23:10:46]int [23:10:46]Write to MH i2c: 01 00 00 C5 60 25 [23:10:46]*** FLAG_PRN_PAP2 reset [23:10:46]Write i2c OK [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 [23:10:46]MH_I2C_Read... [23:10:46]Read from MH i2c: 01 07 00 C5 60 00 01 00 00 00 FF 0F 3B [23:10:46]state=3 [23:10:46]No paper [23:10:46]Cover closed [23:10:47]int [23:10:47]Write to MH i2c: 01 00 00 C6 60 26 [23:10:47]*** FLAG_PRN_PAP2 set [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 C6 60 00 03 00 00 00 FF 0F 3E [23:10:47]state=0 [23:10:47]No paper [23:10:47]Cover opened [23:10:47]int [23:10:47]Write to MH i2c: 01 00 00 C7 60 27 [23:10:47]*** FLAG_PRN_PAP2 reset [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 C7 60 00 01 00 00 00 FF 0F 3D [23:10:47]state=3 [23:10:47]No paper [23:10:47]Cover closed [23:10:47]int [23:10:47]Write to MH i2c: 01 00 00 C8 60 28 [23:10:47]*** FLAG_PRN_PAP2 set [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 C8 60 00 03 00 00 00 FF 0F 40 [23:10:47]state=0 [23:10:47]No paper [23:10:47]Cover opened [23:10:47]int [23:10:47]Write to MH i2c: 01 00 00 C9 60 29 [23:10:47]*** FLAG_PRN_PAP2 reset [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 C9 60 00 01 00 00 00 FF 0F 3F [23:10:47]state=3 [23:10:47]No paper [23:10:47]Cover closed [23:10:47]int [23:10:47]Write to MH i2c: 01 00 00 CA 60 2A [23:10:47]*** FLAG_PRN_PAP2 set [23:10:47]Write i2c OK [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 [23:10:47]MH_I2C_Read... [23:10:47]Read from MH i2c: 01 07 00 CA 60 00 03 00 00 00 FF 0F 42 [23:10:47]state=0 [23:10:47]No paper [23:10:47]Cover opened [23:10:49]int [23:10:49]Write to MH i2c: 01 00 00 CB 60 2B [23:10:49]*** FLAG_PRN_PAP2 reset [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 07 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 07 00 CB 60 00 01 00 00 00 FF 0F 41 [23:10:49]state=3 [23:10:49]No paper [23:10:49]Cover closed [23:10:49]int [23:10:49]Write to MH i2c: 01 00 00 CC 60 2C [23:10:49]*** FLAG_PRN_PAP2 set [23:10:49]Write i2c OK [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 07 00 [23:10:49]MH_I2C_Read... [23:10:49]Read from MH i2c: 01 07 00 CC 60 00 03 00 00 00 FF 0F 44 [23:10:49]state=0 [23:10:49]No paper [23:10:49]Cover opened [23:10:50]OFD Sender: No OFD packet to send [23:10:54]Write to MH i2c: 01 00 00 CD 60 2D [23:10:54]Write i2c OK [23:10:54]MH_I2C_Read... [23:10:54]Read from MH i2c: 01 [23:10:54]MH_I2C_Read... [23:10:54]Read from MH i2c: 01 07 00 [23:10:54]MH_I2C_Read... [23:10:54]Read from MH i2c: 01 07 00 CD 60 00 03 00 00 00 FF 0F 45 [23:10:54]state=3 [23:10:54]No paper [23:10:54]Cover opened [23:10:55]OFD Sender: No OFD packet to send [23:10:56]int [23:10:56]Write to MH i2c: 01 00 00 CE 60 2E [23:10:56]*** FLAG_PRN_PAP2 reset [23:10:56]Write i2c OK [23:10:56]MH_I2C_Read... [23:10:56]Read from MH i2c: 01 [23:10:56]MH_I2C_Read... [23:10:56]Read from MH i2c: 01 07 00 [23:10:56]MH_I2C_Read... [23:10:56]Read from MH i2c: 01 07 00 CE 60 00 01 00 00 00 FF 0F 44 [23:10:56]state=3 [23:10:56]No paper [23:10:56]Cover closed [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:16]accept exits with 8 [23:11:16]New connection [23:11:16]New thread 3067141476 created [23:11:16]Thread 3067284836 joined [23:11:16]Waiting for new connection... [23:11:16] Sock 8.Parse request [23:11:16]Sock 8.Check first char [23:11:16]Sock 8.First char is OK [23:11:16]request: POST /json_proto HTTP/1.0 [23:11:16]Method: POST [23:11:16]URL: /json_proto [23:11:16]Method is POST - this is cgi request [23:11:16]url: /json_proto [23:11:16]query_string will be loaded in cgi processing [23:11:16]execute_cgi json_proto POST (null) [23:11:16]execute_cgi path=json_proto method=POST [23:11:16]POST find Content-Length [23:11:16]Host: 172.17.50.196:8080 [23:11:16]Content-Length: 656 [23:11:16]Content-Type: application/json [23:11:16] [23:11:16]POST finish read [23:11:16]Found Content-Length = 656 [23:11:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335390", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:16]execute_script... [23:11: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 : (3)335390", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:16]POST & json_proto [23:11:16]process_json_proto [23:11:16]json parsed OK: [23:11:16]protocol is kg_v1.0 [23:11:16]action value=close_receipt [23:11:16]process_action close_receipt [23:11:16]cmd_close_receipt [23:11:16]MH_GetDate [23:11:16]Write to MH i2c: F0 00 00 CF 60 1E [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: F0 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: F0 09 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: F0 09 00 CF 60 00 1B BD 22 67 72 0D 1C 67 8A [23:11:16]GetLastDocTimeStamp 1730329091 [23:11:16]current date 1730329883 [23:11:16]FM_GetShiftState [23:11:16]SAM_PROTO_GetShiftState [23:11:16]wFMCommunicate request_size=4 [23:11:16]MH_SAM_APDU [23:11:16]CAPDU: 80 13 01 00 [23:11:16]Write to MH i2c: E2 08 00 D0 60 80 13 01 00 00 00 00 00 AD [23:11:16]Write i2c OK [23:11:16]MH_I2C_Read... [23:11:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:16]Read from MH i2c: E2 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 0E 00 [23:11:16]MH_I2C_Read... [23:11:16]Read from MH i2c: E2 0E 00 D0 60 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3D [23:11:16]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:11:16]wFMCommunicate OK [23:11:16]SAM_PROTO_GetShiftState done [23:11:16]FM_GetShiftState done [23:11:16]opened in 1730246278 [23:11:16]opened+sec_in_day 1730332678 [23:11:16]quantity*price = 400 [23:11:16]sum+1 = 401 [23:11:16]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 198 30.10.2024 23:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139514 ФПД: 79669151849234 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231123&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139514&fm=79669151849234&tin=02508201610067®Number=0000000000091631&sum=400 0 [23:11:17]StoreToDocumentArchive [23:11:17]shift 556 fd 139514 [23:11:17]save to /storage/0556/doc_00139514 [23:11:17]save last doc name /storage/0556/doc_00139514 to /storage/kkm_last_doc_name [23:11:17]save OK [23:11:17]Clear old archive folders... [23:11:17]ProcessDocumentItem done err = 0, tmpTLVsize=278 [23:11:17]tlvbuf is 011FBF90 [23:11:17]SAM_PROTO_ClearQueue [23:11:17]wFMCommunicate request_size=4 [23:11:17]MH_SAM_APDU [23:11:17]CAPDU: 80 09 00 00 [23:11:17]Write to MH i2c: E2 08 00 DD 60 80 09 00 00 00 00 00 00 AF [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:17]Read from MH i2c: E2 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 03 00 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 03 00 DD 60 00 90 00 B1 [23:11:17]RAPDU: 90 00 [23:11:17]wFMCommunicate OK [23:11:17]SAM_PROTO_ClearQueue done [23:11:17]KKMCreateOFDPacket [23:11:17]OFDProtocolAddRootSTLVToBuf [23:11:17]FM_MakeSignedData [23:11:17]FM_MakeSignedData [23:11:17]SAM_PROTO_SignData [23:11:17]wFMCommunicate request_size=4 [23:11:17]MH_SAM_APDU [23:11:17]CAPDU: 80 0D 01 02 [23:11:17]Write to MH i2c: E2 08 00 DE 60 80 0D 01 02 00 00 00 00 B7 [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:17]Read from MH i2c: E2 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 03 00 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 03 00 DE 60 00 90 00 B2 [23:11:17]RAPDU: 90 00 [23:11:17]wFMCommunicate OK [23:11:17]wFMCommunicate request_size=255 [23:11:17]MH_SAM_APDU [23:11:17]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 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 1B BD 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [23:11:17]Write to MH i2c: E2 02 01 DF 60 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 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 1B BD 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 44 [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:17]Read from MH i2c: E2 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 03 00 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 03 00 DF 60 00 90 00 B3 [23:11:17]RAPDU: 90 00 [23:11:17]wFMCommunicate OK [23:11:17]wFMCommunicate request_size=37 [23:11:17]MH_SAM_APDU [23:11:17]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 20 02 00 35 04 06 00 48 75 6B 7E DB 12 [23:11:17]Write to MH i2c: E2 28 00 E0 60 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 20 02 00 35 04 06 00 48 75 6B 7E DB 12 00 00 C8 [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:17]Read from MH i2c: E2 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 03 00 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 03 00 E0 60 00 90 00 B4 [23:11:17]RAPDU: 90 00 [23:11:17]wFMCommunicate OK [23:11:17]wFMCommunicate request_size=4 [23:11:17]MH_SAM_APDU [23:11:17]CAPDU: 80 0D 03 02 [23:11:17]Write to MH i2c: E2 08 00 E1 60 80 0D 03 02 00 00 00 00 BC [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:17]Read from MH i2c: E2 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 0B 00 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 0B 00 E1 60 00 43 D6 E2 96 EF 67 9C F6 90 00 36 [23:11:17]RAPDU: 43 D6 E2 96 EF 67 9C F6 90 00 [23:11:17]wFMCommunicate OK [23:11:17]SAM_PROTO_SignData done [23:11:17]FM_MakeSignedData done [23:11:17]CreateOFDProtocolMessage [23:11:17]wFMCommunicate request_size=4 [23:11:17]MH_SAM_APDU [23:11:17]CAPDU: 80 11 00 00 [23:11:17]Write to MH i2c: E2 08 00 E2 60 80 11 00 00 00 00 00 00 BC [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:17]Read from MH i2c: E2 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 17 00 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: E2 17 00 E2 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 17 [23:11:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:11:17]wFMCommunicate OK [23:11:17]CreateOFDProtocolMessage done [23:11:17]OFDSenderStorePacket 139514 [23:11:17]StoreOFDPacket docnum=139514 [23:11:17]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 94 EF 22 01 F8 4C 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 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 1B BD 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 20 02 00 35 04 06 00 48 75 6B 7E DB 12 43 D6 E2 96 EF 67 9C F6 [23:11:17]CheckFolder [23:11:17]dirname=/storage/ofd_packets [23:11:17]CheckFolder done [23:11:17]ProducePacketName [23:11:17]name=ofd_packets/00139514 [23:11:17]NVStorageSaveData ofd_packets/00139514 [23:11:17]File name is /storage/ofd_packets/00139514 [23:11:17]Write 328 bytes [23:11:17]NVStorageSaveData done [23:11:17]OFDSenderStorePacket done [23:11:17]KKMCreateOFDPacket done [23:11:17]NVStorageSaveData kkm_last_timestamp [23:11:17]File name is /storage/kkm_last_timestamp [23:11:17]Write 4 bytes [23:11:17]NVStorageSaveData done [23:11:17]ExternCall_PrintAddStr [23:11:17]wPrintStart [23:11:17]Write to MH i2c: 01 00 00 E3 60 43 [23:11:17]Write i2c OK [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: 01 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: 01 07 00 [23:11:17]MH_I2C_Read... [23:11:17]Read from MH i2c: 01 07 00 E3 60 00 01 00 00 00 FF 0F 59 [23:11:17]RasterBufferAndPrint [23:11:17]line Счет N : (3)335390 [23:11:17]line ИНН: 02508201610067 [23:11:17]line Контрольно-Кассовый Чек [23:11:17]line ПРОДАЖА [23:11:17]line Товар: 2000031750019 [23:11:17]line Пакет Партнер Нефть [23:11:17]line 1.000 * 4.00 [23:11:17]line = 4.00 [23:11:17]line НДС 12% НСП 1% [23:11:17]line > о реализуемом товаре [23:11:17]line ИТОГО: 4.00 [23:11:17]line НСП 1% : 0.03 [23:11:17]line НДС 12% : 0.42 [23:11:17]line Наличными: 4.00 [23:11:17]line Безнал.: 0.00 [23:11:17]line Место: АЗС № 101 "Партнер Нефть" [23:11:17]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:11:17]line СНО: Общий режим [23:11:17]line Чек 198 30.10.2024 23:11 [23:11:17]line Смена: 556 ФФД: 1.0 [23:11:17]line ЗНМ: 0300000081 [23:11:17]line РНМ: 0000000000091631 [23:11:17]line Версия ККМ: 001 [23:11:17]line ФМ: 0000000000874669 [23:11:17]line ФД: 139514 [23:11:17]line ФПД: 79669151849234 [23:11:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231123&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139514&fm=79669151849234&tin=02508201610067®Number=0000000000091631&sum=400 [23:11:18]OFD Sender: Processing packet 139514 [packets to send 34, broken 33] [23:11:18]ProducePacketName [23:11:18]name=ofd_packets/00139514 [23:11:18]OFD Sender: To server: pG, [23:11:18]CommunicateWithHost lk.salyk.kg:30040 [23:11:18]ConnectInit lk.salyk.kg [23:11:18]line 0 [23:11:18]written 0, free lines is 4095 [23:11:18]Error from MH - 05 [23:11:18]process_action_free close_receipt [23:11:18]json_value_free [23:11:18]json_value_free done [23:11:18]process_json_proto returns [23:11:18]Send response to host [23:11:18]{"protocol":"kg_v1.0","response":{"error":1033,"error_desc":"No paper"}} [23:11:18]free response buf [23:11:18]execute_script done [23:11:18]execute_script returns [23:11:18]free content buf [23:11:18]Sock 8.Close socket [23:11:18]Sock 8.Thread stoped [23:11:18]Connected sock=10 [23:11:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 94 EF 22 01 F8 4C 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 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 1B BD 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 20 02 00 35 04 06 00 48 75 6B 7E DB 12 43 D6 E2 96 EF 67 9C F6 [23:11:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 B4 F8 47 00 F4 5B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FA 20 02 00 F4 03 04 00 CA 68 22 67 B6 04 01 00 00 5D D8 FD 5E EE 5E ED 83 [23:11:18]CommunicateWithHost err = 0 [23:11:18]CheckOFDResponse [23:11:18]1017 (14) - 77093643461234 [23:11:18]1041 (16) - 0000000000874669 [23:11:18]1040 (4) - 139514 [23:11:18]1012 (4) - 30.10.2024 17:11 [23:11:18]1206 (1) - 0 [23:11:18]OFD Sender: Remove packet 139514 [23:11:18]ProducePacketName [23:11:18]name=ofd_packets/00139514 [23:11:18]NVStorageDeleteData [23:11:18]OFD Sender: No OFD packet to send [23:11:20]int [23:11:20]Write to MH i2c: 01 00 00 E6 60 46 [23:11:20]*** FLAG_PRN_PAP2 set [23:11:20]Write i2c OK [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: 01 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: 01 07 00 [23:11:20]MH_I2C_Read... [23:11:20]Read from MH i2c: 01 07 00 E6 60 00 03 00 00 00 FF 0F 5E [23:11:20]state=0 [23:11:20]No paper [23:11:20]Cover opened [23:11:23]int [23:11:23]Write to MH i2c: 01 00 00 E7 60 47 [23:11:23]*** FLAG_PRN_PAP2 reset [23:11:23]Write i2c OK [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 E7 60 00 01 00 00 00 FF 0F 5D [23:11:23]state=3 [23:11:23]No paper [23:11:23]Cover closed [23:11:23]int line is 0 - check status [23:11:23]Write to MH i2c: 01 00 00 E8 60 48 [23:11:23]*** FLAG_PRN_PAP1 reset [23:11:23]Write i2c OK [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 E8 60 00 00 00 00 00 FF 0F 5D [23:11:23]state=0 [23:11:23]int [23:11:23]Write to MH i2c: 01 00 00 E9 60 49 [23:11:23]Write i2c OK [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 [23:11:23]MH_I2C_Read... [23:11:23]Read from MH i2c: 01 07 00 E9 60 00 00 00 00 00 FF 0F 5E [23:11:23]state=0 [23:11:23]OFD Sender: No OFD packet to send [23:11:28]OFD Sender: No OFD packet to send [23:11:29]accept exits with 9 [23:11:29]New connection [23:11:29]New thread 3067284836 created [23:11:29]Thread 3067141476 joined [23:11:29]Waiting for new connection... [23:11:29] Sock 9.Parse request [23:11:29]Sock 9.Check first char [23:11:29]Sock 9.First char is OK [23:11:29]request: POST /json_proto HTTP/1.0 [23:11:29]Method: POST [23:11:29]URL: /json_proto [23:11:29]Method is POST - this is cgi request [23:11:29]url: /json_proto [23:11:29]query_string will be loaded in cgi processing [23:11:29]execute_cgi json_proto POST (null) [23:11:29]execute_cgi path=json_proto method=POST [23:11:29]POST find Content-Length [23:11:29]Host: 172.17.50.196:8080 [23:11:29]Content-Length: 215 [23:11:29]Content-Type: application/json [23:11:29] [23:11:29]POST finish read [23:11:29]Found Content-Length = 215 [23:11:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:29]execute_script... [23:11:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:29]POST & json_proto [23:11:29]process_json_proto [23:11:29]json parsed OK: [23:11:29]protocol is kg_v1.0 [23:11:29]action value=get_value [23:11:29]process_action get_value [23:11:29]cmd_get_value [23:11:29]process_action get_value done [23:11:29]requested_data is exist [23:11:29]produce_requested_data [23:11:29]requested_item kkm.sn is exist - process it [23:11:29]requested_item kkm.ver is exist - process it [23:11:29]requested_item fm.sn is exist - process it [23:11:29]wFMCommunicate request_size=4 [23:11:29]MH_SAM_APDU [23:11:29]CAPDU: 80 11 00 00 [23:11:29]Write to MH i2c: E2 08 00 EA 60 80 11 00 00 00 00 00 00 C4 [23:11:29]Write i2c OK [23:11:29]MH_I2C_Read... [23:11:29]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:29]Read from MH i2c: E2 [23:11:29]MH_I2C_Read... [23:11:29]Read from MH i2c: E2 17 00 [23:11:29]MH_I2C_Read... [23:11:29]Read from MH i2c: E2 17 00 EA 60 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1F [23:11:29]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:11:29]wFMCommunicate OK [23:11:29]requested_item fd.num is exist - process it [23:11:29]SAM_PROTO_GetFieldsCounters [23:11:29]wFMCommunicate request_size=4 [23:11:29]MH_SAM_APDU [23:11:29]CAPDU: 80 13 00 00 [23:11:29]Write to MH i2c: E2 08 00 EB 60 80 13 00 00 00 00 00 00 C7 [23:11:29]Write i2c OK [23:11:29]MH_I2C_Read... [23:11:29]Read from MH i2c: E2 [23:11:29]MH_I2C_Read... [23:11:29]Read from MH i2c: E2 62 00 [23:11:29]MH_I2C_Read... [23:11:29]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:29]Read from MH i2c: E2 62 00 EB 60 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FA 20 02 00 0E 04 04 00 2C 02 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 87 [23:11:29]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FA 20 02 00 0E 04 04 00 2C 02 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 [23:11:29]wFMCommunicate OK [23:11:29]SAM_PROTO_GetFieldsCounters done [23:11:29]requested_item shift.num is exist - process it [23:11:29]requested_item shift.opened is exist - process it [23:11:29]req_shift_opened [23:11:29]FM_GetShiftState [23:11:29]SAM_PROTO_GetShiftState [23:11:29]wFMCommunicate request_size=4 [23:11:29]MH_SAM_APDU [23:11:29]CAPDU: 80 13 01 00 [23:11:29]Write to MH i2c: E2 08 00 EC 60 80 13 01 00 00 00 00 00 C9 [23:11:29]Write i2c OK [23:11:29]MH_I2C_Read... [23:11:29]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:29]Read from MH i2c: E2 [23:11:29]MH_I2C_Read... [23:11:29]Read from MH i2c: E2 0E 00 [23:11:29]MH_I2C_Read... [23:11:29]Read from MH i2c: E2 0E 00 EC 60 00 09 00 01 86 76 21 67 00 00 00 00 90 00 59 [23:11:29]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:11:29]wFMCommunicate OK [23:11:29]SAM_PROTO_GetShiftState done [23:11:29]FM_GetShiftState done [23:11:29]req_shift_opened done [23:11:29]requested_item shift.open_date is exist - process it [23:11:29]req_shift_open_date [23:11:29]req_shift_open_date done [23:11:29]produce_requested_data done [23:11:29]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139514,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:11:29]process_action_free get_value [23:11:29]json_value_free [23:11:29]json_value_free done [23:11:29]process_json_proto returns [23:11:29]Send response to host [23:11:29]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139514,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:11:29]free response buf [23:11:29]execute_script done [23:11:29]execute_script returns [23:11:29]free content buf [23:11:29]Sock 9.Close socket [23:11:29]Sock 9.Thread stoped [23:11:29]accept exits with 10 [23:11:29]New connection [23:11:29]New thread 3067141476 created [23:11:29]Thread 3067284836 joined [23:11:29]Waiting for new connection... [23:11:29] Sock 10.Parse request [23:11:29]Sock 10.Check first char [23:11:29]Sock 10.First char is OK [23:11:29]request: POST /json_proto HTTP/1.0 [23:11:29]Method: POST [23:11:29]URL: /json_proto [23:11:29]Method is POST - this is cgi request [23:11:29]url: /json_proto [23:11:29]query_string will be loaded in cgi processing [23:11:29]execute_cgi json_proto POST (null) [23:11:29]execute_cgi path=json_proto method=POST [23:11:29]POST find Content-Length [23:11:29]Host: 172.17.50.196:8080 [23:11:29]Content-Length: 331 [23:11:29]Content-Type: application/json [23:11:29] [23:11:29]POST finish read [23:11:29]Found Content-Length = 331 [23:11:29]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:11:29]execute_script... [23:11:29]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:11:29]POST & json_proto [23:11:29]process_json_proto [23:11:29]json parsed OK: [23:11:29]protocol is kg_v1.0 [23:11:29]action value=get_value [23:11:29]process_action get_value [23:11:29]cmd_get_value [23:11:29]process_action get_value done [23:11:29]requested_data is exist [23:11:29]produce_requested_data [23:11:29]requested_item fm.sale.total is exist - process it [23:11:29]SAM_PROTO_GetFMData [23:11:29]wFMCommunicate request_size=4 [23:11:29]MH_SAM_APDU [23:11:29]CAPDU: 80 13 03 00 [23:11:29]Write to MH i2c: E2 08 00 ED 60 80 13 03 00 00 00 00 00 CC [23:11:29]Write i2c OK [23:11:29]MH_I2C_Read... [23:11:30]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:11:30]Read from MH i2c: E2 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 FD 00 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 FD 00 ED 60 00 C7 04 85 04 C3 04 6E 04 04 00 A2 1C 02 00 69 04 A3 00 6F 04 04 00 57 1A 02 00 B1 04 05 00 A5 20 8C 52 01 70 04 05 00 0C D6 2D 03 01 72 04 04 00 99 4A 5E 4F 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 80 6B F4 23 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 43 C6 FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 ED [23:11:30]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A2 1C 02 00 69 04 A3 00 6F 04 04 00 57 1A 02 00 B1 04 05 00 A5 20 8C 52 01 70 04 05 00 0C D6 2D 03 01 72 04 04 00 99 4A 5E 4F 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 80 6B F4 23 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 43 C6 FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:11:30]wFMCommunicate OK [23:11:30]wFMCommunicate request_size=4 [23:11:30]MH_SAM_APDU [23:11:30]CAPDU: 80 17 00 00 [23:11:30]Write to MH i2c: E2 08 00 EE 60 80 17 00 00 00 00 00 00 CE [23:11:30]Write i2c OK [23:11:30]MH_I2C_Read... [23:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:11:30]Read from MH i2c: E2 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 FD 00 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 FD 00 EE 60 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [23:11:30]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:11:30]wFMCommunicate OK [23:11:30]wFMCommunicate request_size=4 [23:11:30]MH_SAM_APDU [23:11:30]CAPDU: 80 17 00 00 [23:11:30]Write to MH i2c: E2 08 00 EF 60 80 17 00 00 00 00 00 00 CF [23:11:30]Write i2c OK [23:11:30]MH_I2C_Read... [23:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:11:30]Read from MH i2c: E2 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 FD 00 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 FD 00 EF 60 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A7 [23:11:30]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:11:30]wFMCommunicate OK [23:11:30]wFMCommunicate request_size=4 [23:11:30]MH_SAM_APDU [23:11:30]CAPDU: 80 17 00 00 [23:11:30]Write to MH i2c: E2 08 00 F0 60 80 17 00 00 00 00 00 00 D0 [23:11:30]Write i2c OK [23:11:30]MH_I2C_Read... [23:11:30]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:11:30]Read from MH i2c: E2 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 FD 00 [23:11:30]MH_I2C_Read... [23:11:30]Read from MH i2c: E2 FD 00 F0 60 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 4B [23:11:30]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:11:31]wFMCommunicate OK [23:11:31]wFMCommunicate request_size=4 [23:11:31]MH_SAM_APDU [23:11:31]CAPDU: 80 17 00 00 [23:11:31]Write to MH i2c: E2 08 00 F1 60 80 17 00 00 00 00 00 00 D1 [23:11:31]Write i2c OK [23:11:31]MH_I2C_Read... [23:11:31]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:11:31]Read from MH i2c: E2 [23:11:31]MH_I2C_Read... [23:11:31]Read from MH i2c: E2 E4 00 [23:11:31]MH_I2C_Read... [23:11:31]Read from MH i2c: E2 E4 00 F1 60 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B1 [23:11:31]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:11:31]wFMCommunicate OK [23:11:31]SAM_PROTO_GetFMData done [23:11:31]requested_item fm.sale_refund.total is exist - process it [23:11:31]requested_item fm.buy.total is exist - process it [23:11:31]requested_item shift.sale.total is exist - process it [23:11:31]SAM_PROTO_GetShiftData [23:11:31]wFMCommunicate request_size=4 [23:11:31]MH_SAM_APDU [23:11:31]CAPDU: 80 13 02 00 [23:11:31]Write to MH i2c: E2 08 00 F2 60 80 13 02 00 00 00 00 00 D0 [23:11:31]Write i2c OK [23:11:31]MH_I2C_Read... [23:11:31]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:11:31]Read from MH i2c: E2 [23:11:31]MH_I2C_Read... [23:11:31]Read from MH i2c: E2 FD 00 [23:11:31]MH_I2C_Read... [23:11:31]Read from MH i2c: E2 FD 00 F2 60 00 AF 04 AA 04 AB 04 6E 04 04 00 C6 00 00 00 69 04 9C 00 6F 04 04 00 C6 00 00 00 B1 04 03 00 35 48 8B 70 04 03 00 E0 A5 4C 72 04 03 00 55 A2 3E 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 C3 CA 0E 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 85 3B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 96 [23:11:31]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 C6 00 00 00 69 04 9C 00 6F 04 04 00 C6 00 00 00 B1 04 03 00 35 48 8B 70 04 03 00 E0 A5 4C 72 04 03 00 55 A2 3E 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 C3 CA 0E 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 85 3B 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:11:31]wFMCommunicate OK [23:11:31]wFMCommunicate request_size=4 [23:11:31]MH_SAM_APDU [23:11:31]CAPDU: 80 17 00 00 [23:11:31]Write to MH i2c: E2 08 00 F3 60 80 17 00 00 00 00 00 00 D3 [23:11:31]Write i2c OK [23:11:31]MH_I2C_Read... [23:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:11:32]Read from MH i2c: E2 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 FD 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 FD 00 F3 60 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 EC [23:11:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:11:32]wFMCommunicate OK [23:11:32]wFMCommunicate request_size=4 [23:11:32]MH_SAM_APDU [23:11:32]CAPDU: 80 17 00 00 [23:11:32]Write to MH i2c: E2 08 00 F4 60 80 17 00 00 00 00 00 00 D4 [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:11:32]Read from MH i2c: E2 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 FD 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 FD 00 F4 60 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 88 [23:11:32]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:11:32]wFMCommunicate OK [23:11:32]wFMCommunicate request_size=4 [23:11:32]MH_SAM_APDU [23:11:32]CAPDU: 80 17 00 00 [23:11:32]Write to MH i2c: E2 08 00 F5 60 80 17 00 00 00 00 00 00 D5 [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:11:32]Read from MH i2c: E2 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 FD 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 FD 00 F5 60 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 53 [23:11:32]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:11:32]wFMCommunicate OK [23:11:32]wFMCommunicate request_size=4 [23:11:32]MH_SAM_APDU [23:11:32]CAPDU: 80 17 00 00 [23:11:32]Write to MH i2c: E2 08 00 F6 60 80 17 00 00 00 00 00 00 D6 [23:11:32]Write i2c OK [23:11:32]MH_I2C_Read... [23:11:32]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:11:32]Read from MH i2c: E2 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 CC 00 [23:11:32]MH_I2C_Read... [23:11:32]Read from MH i2c: E2 CC 00 F6 60 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 B7 [23:11:32]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:11:33]wFMCommunicate OK [23:11:33]SAM_PROTO_GetShiftData done [23:11:33]requested_item shift.sale.total_cash is exist - process it [23:11:33]requested_item shift.sale_refund.total is exist - process it [23:11:33]requested_item shift.sale_refund.total_cash is exist - process it [23:11:33]requested_item shift.buy.total is exist - process it [23:11:33]requested_item shift.buy.total_cash is exist - process it [23:11:33]produce_requested_data done [23:11:33]produce_requested_data return {"fm.sale.total":56798824.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":91279.89,"shift.sale.total_cash":50232.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} [23:11:33]process_action_free get_value [23:11:33]json_value_free [23:11:33]json_value_free done [23:11:33]process_json_proto returns [23:11:33]Send response to host [23:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56798824.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":91279.89,"shift.sale.total_cash":50232.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}}} [23:11:33]free response buf [23:11:33]execute_script done [23:11:33]execute_script returns [23:11:33]free content buf [23:11:33]Sock 10.Close socket [23:11:33]Sock 10.Thread stoped [23:11:33]OFD Sender: No OFD packet to send [23:11:38]OFD Sender: No OFD packet to send [23:11:43]OFD Sender: No OFD packet to send [23:11:48]OFD Sender: No OFD packet to send [23:11:51]accept exits with 8 [23:11:51]New connection [23:11:51]New thread 3067284836 created [23:11:51]Thread 3067141476 joined [23:11:51]Waiting for new connection... [23:11:51] Sock 8.Parse request [23:11:51]Sock 8.Check first char [23:11:51]Sock 8.First char is OK [23:11:51]request: POST /json_proto HTTP/1.0 [23:11:51]Method: POST [23:11:51]URL: /json_proto [23:11:51]Method is POST - this is cgi request [23:11:51]url: /json_proto [23:11:51]query_string will be loaded in cgi processing [23:11:51]execute_cgi json_proto POST (null) [23:11:51]execute_cgi path=json_proto method=POST [23:11:51]POST find Content-Length [23:11:51]Host: 172.17.50.196:8080 [23:11:51]Content-Length: 656 [23:11:51]Content-Type: application/json [23:11:51] [23:11:51]POST finish read [23:11:51]Found Content-Length = 656 [23:11:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335392", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:51]execute_script... [23:11: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 : (3)335392", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:11:51]POST & json_proto [23:11:51]process_json_proto [23:11:51]json parsed OK: [23:11:51]protocol is kg_v1.0 [23:11:51]action value=close_receipt [23:11:51]process_action close_receipt [23:11:51]cmd_close_receipt [23:11:51]MH_GetDate [23:11:51]Write to MH i2c: F0 00 00 F7 60 46 [23:11:51]Write i2c OK [23:11:51]MH_I2C_Read... [23:11:51]Read from MH i2c: F0 [23:11:51]MH_I2C_Read... [23:11:51]Read from MH i2c: F0 09 00 [23:11:51]MH_I2C_Read... [23:11:51]Read from MH i2c: F0 09 00 F7 60 00 3F BD 22 67 72 0D 1C 67 D6 [23:11:51]GetLastDocTimeStamp 1730329883 [23:11:51]current date 1730329919 [23:11:51]FM_GetShiftState [23:11:51]SAM_PROTO_GetShiftState [23:11:51]wFMCommunicate request_size=4 [23:11:51]MH_SAM_APDU [23:11:51]CAPDU: 80 13 01 00 [23:11:51]Write to MH i2c: E2 08 00 F8 60 80 13 01 00 00 00 00 00 D5 [23:11:51]Write i2c OK [23:11:51]MH_I2C_Read... [23:11:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:51]Read from MH i2c: E2 [23:11:51]MH_I2C_Read... [23:11:51]Read from MH i2c: E2 0E 00 [23:11:51]MH_I2C_Read... [23:11:51]Read from MH i2c: E2 0E 00 F8 60 00 09 00 01 86 76 21 67 00 00 00 00 90 00 65 [23:11:51]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:11:51]wFMCommunicate OK [23:11:51]SAM_PROTO_GetShiftState done [23:11:51]FM_GetShiftState done [23:11:51]opened in 1730246278 [23:11:51]opened+sec_in_day 1730332678 [23:11:51]quantity*price = 400 [23:11:51]sum+1 = 401 [23:11:51]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 199 30.10.2024 23:11 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139515 ФПД: 3894100081473 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231159&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139515&fm=3894100081473&tin=02508201610067®Number=0000000000091631&sum=400 0 [23:11:53]StoreToDocumentArchive [23:11:53]shift 556 fd 139515 [23:11:53]save to /storage/0556/doc_00139515 [23:11:53]save last doc name /storage/0556/doc_00139515 to /storage/kkm_last_doc_name [23:11:53]save OK [23:11:53]Clear old archive folders... [23:11:53]ProcessDocumentItem done err = 0, tmpTLVsize=278 [23:11:53]tlvbuf is 0115AF20 [23:11:53]SAM_PROTO_ClearQueue [23:11:53]wFMCommunicate request_size=4 [23:11:53]MH_SAM_APDU [23:11:53]CAPDU: 80 09 00 00 [23:11:53]Write to MH i2c: E2 08 00 05 61 80 09 00 00 00 00 00 00 D8 [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:11:53]Read from MH i2c: E2 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 03 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 03 00 05 61 00 90 00 DA [23:11:53]RAPDU: 90 00 [23:11:53]wFMCommunicate OK [23:11:53]SAM_PROTO_ClearQueue done [23:11:53]KKMCreateOFDPacket [23:11:53]OFDProtocolAddRootSTLVToBuf [23:11:53]FM_MakeSignedData [23:11:53]FM_MakeSignedData [23:11:53]SAM_PROTO_SignData [23:11:53]wFMCommunicate request_size=4 [23:11:53]MH_SAM_APDU [23:11:53]CAPDU: 80 0D 01 02 [23:11:53]Write to MH i2c: E2 08 00 06 61 80 0D 01 02 00 00 00 00 E0 [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:11:53]Read from MH i2c: E2 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 03 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 03 00 06 61 00 90 00 DB [23:11:53]RAPDU: 90 00 [23:11:53]wFMCommunicate OK [23:11:53]wFMCommunicate request_size=255 [23:11:53]MH_SAM_APDU [23:11:53]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 00 00 00 F4 03 04 00 3F BD 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [23:11:53]Write to MH i2c: E2 02 01 07 61 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 00 00 00 F4 03 04 00 3F BD 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 92 [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:53]Read from MH i2c: E2 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 03 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 03 00 07 61 00 90 00 DC [23:11:53]RAPDU: 90 00 [23:11:53]wFMCommunicate OK [23:11:53]wFMCommunicate request_size=37 [23:11:53]MH_SAM_APDU [23:11:53]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 20 02 00 35 04 06 00 03 8A AA 73 BB 41 [23:11:53]Write to MH i2c: E2 28 00 08 61 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 20 02 00 35 04 06 00 03 8A AA 73 BB 41 00 00 05 [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:11:53]Read from MH i2c: E2 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 03 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 03 00 08 61 00 90 00 DD [23:11:53]RAPDU: 90 00 [23:11:53]wFMCommunicate OK [23:11:53]wFMCommunicate request_size=4 [23:11:53]MH_SAM_APDU [23:11:53]CAPDU: 80 0D 03 02 [23:11:53]Write to MH i2c: E2 08 00 09 61 80 0D 03 02 00 00 00 00 E5 [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:11:53]Read from MH i2c: E2 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 0B 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 0B 00 09 61 00 0E 57 21 52 A4 BE A3 27 90 00 EA [23:11:53]RAPDU: 0E 57 21 52 A4 BE A3 27 90 00 [23:11:53]wFMCommunicate OK [23:11:53]SAM_PROTO_SignData done [23:11:53]FM_MakeSignedData done [23:11:53]CreateOFDProtocolMessage [23:11:53]wFMCommunicate request_size=4 [23:11:53]MH_SAM_APDU [23:11:53]CAPDU: 80 11 00 00 [23:11:53]Write to MH i2c: E2 08 00 0A 61 80 11 00 00 00 00 00 00 E5 [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:53]Read from MH i2c: E2 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 17 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: E2 17 00 0A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 40 [23:11:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:11:53]wFMCommunicate OK [23:11:53]CreateOFDProtocolMessage done [23:11:53]OFDSenderStorePacket 139515 [23:11:53]StoreOFDPacket docnum=139515 [23:11:53]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 C8 6E 22 01 EB CC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 00 00 00 F4 03 04 00 3F BD 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 20 02 00 35 04 06 00 03 8A AA 73 BB 41 0E 57 21 52 A4 BE A3 27 [23:11:53]CheckFolder [23:11:53]dirname=/storage/ofd_packets [23:11:53]CheckFolder done [23:11:53]ProducePacketName [23:11:53]name=ofd_packets/00139515 [23:11:53]NVStorageSaveData ofd_packets/00139515 [23:11:53]File name is /storage/ofd_packets/00139515 [23:11:53]Write 328 bytes [23:11:53]NVStorageSaveData done [23:11:53]OFDSenderStorePacket done [23:11:53]KKMCreateOFDPacket done [23:11:53]NVStorageSaveData kkm_last_timestamp [23:11:53]File name is /storage/kkm_last_timestamp [23:11:53]Write 4 bytes [23:11:53]NVStorageSaveData done [23:11:53]ExternCall_PrintAddStr [23:11:53]wPrintStart [23:11:53]Write to MH i2c: 01 00 00 0B 61 6C [23:11:53]Write i2c OK [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: 01 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: 01 07 00 [23:11:53]MH_I2C_Read... [23:11:53]Read from MH i2c: 01 07 00 0B 61 00 00 00 00 00 FF 0F 81 [23:11:53]RasterBufferAndPrint [23:11:53]line Счет N : (3)335392 [23:11:53]line ИНН: 02508201610067 [23:11:53]line Контрольно-Кассовый Чек [23:11:53]line ПРОДАЖА [23:11:53]line Товар: 2000031750019 [23:11:53]line Пакет Партнер Нефть [23:11:53]line 1.000 * 4.00 [23:11:53]line = 4.00 [23:11:53]line НДС 12% НСП 1% [23:11:53]line > о реализуемом товаре [23:11:53]line ИТОГО: 4.00 [23:11:53]line НСП 1% : 0.03 [23:11:53]line НДС 12% : 0.42 [23:11:53]line Наличными: 4.00 [23:11:53]line Безнал.: 0.00 [23:11:53]line Место: АЗС № 101 "Партнер Нефть" [23:11:53]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:11:53]line СНО: Общий режим [23:11:53]line Чек 199 30.10.2024 23:11 [23:11:53]line Смена: 556 ФФД: 1.0 [23:11:53]line ЗНМ: 0300000081 [23:11:53]line РНМ: 0000000000091631 [23:11:53]line Версия ККМ: 001 [23:11:53]line ФМ: 0000000000874669 [23:11:53]line ФД: 139515 [23:11:53]line ФПД: 3894100081473 [23:11:53]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231159&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139515&fm=3894100081473&tin=02508201610067®Number=0000000000091631&sum=400 [23:11:53]line 0 [23:11:53]OFD Sender: Processing packet 139515 [packets to send 34, broken 33] [23:11:53]ProducePacketName [23:11:53]name=ofd_packets/00139515 [23:11:53]OFD Sender: To server: pG, [23:11:53]CommunicateWithHost lk.salyk.kg:30040 [23:11:53]ConnectInit lk.salyk.kg [23:11:53]written 0, free lines is 4095 [23:11:53]Connected sock=10 [23:11:53]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 C8 6E 22 01 EB CC 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 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 00 00 00 F4 03 04 00 3F BD 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 20 02 00 35 04 06 00 03 8A AA 73 BB 41 0E 57 21 52 A4 BE A3 27 [23:11:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D2 C7 47 00 C4 81 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FB 20 02 00 F4 03 04 00 EE 68 22 67 B6 04 01 00 00 87 33 90 A7 67 4B DC 90 [23:11:54]CommunicateWithHost err = 0 [23:11:54]CheckOFDResponse [23:11:54]1017 (14) - 77093643461234 [23:11:54]1041 (16) - 0000000000874669 [23:11:54]1040 (4) - 139515 [23:11:54]1012 (4) - 30.10.2024 17:12 [23:11:54]1206 (1) - 0 [23:11:54]OFD Sender: Remove packet 139515 [23:11:54]ProducePacketName [23:11:54]name=ofd_packets/00139515 [23:11:54]NVStorageDeleteData [23:11:54]Write to MH i2c: 01 00 00 33 61 94 [23:11:54]Write i2c OK [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: 01 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: 01 07 00 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: 01 07 00 33 61 00 00 00 00 00 02 0D AA [23:11:54]RasterBufferAndPrint [23:11:54]line [23:11:54]line [23:11:54]line [23:11:54]line [23:11:54]line [23:11:54]written 0, free lines is 3336 [23:11:54]MH_Cut [23:11:54]Write to MH i2c: D1 01 00 3A 61 01 6D [23:11:54]Write i2c OK [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: D1 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: D1 01 00 [23:11:54]MH_I2C_Read... [23:11:54]Read from MH i2c: D1 01 00 3A 61 00 6C [23:11:54]Write to MH i2c: 01 00 00 3B 61 9C [23:11:54]Write i2c OK [23:11:54]MH_I2C_Read... [23:11:54]OFD Sender: No OFD packet to send [23:11:54]*** Cut start [23:11:54]*** Partial cut [23:11:54]*** CUTSNS_PIN = 1 [23:11:55]*** CUTSNS_PIN = 0 [23:11:55]*** Brake cut motor [23:11:55]Read from MH i2c: 01 [23:11:55]MH_I2C_Read... [23:11:55]*** Stop cut motor [23:11:55]*** Cut end [23:11:55]Read from MH i2c: 01 07 00 [23:11:55]MH_I2C_Read... [23:11:55]Read from MH i2c: 01 07 00 3B 61 00 00 00 00 00 FF 0F B1 [23:11:55]process_action close_receipt done [23:11:55]requested_data is exist [23:11:55]produce_requested_data [23:11:55]requested_item fm.sn is exist - process it [23:11:55]wFMCommunicate request_size=4 [23:11:55]MH_SAM_APDU [23:11:55]CAPDU: 80 11 00 00 [23:11:55]Write to MH i2c: E2 08 00 3C 61 80 11 00 00 00 00 00 00 17 [23:11:55]Write i2c OK [23:11:55]MH_I2C_Read... [23:11:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:11:55]Read from MH i2c: E2 [23:11:55]MH_I2C_Read... [23:11:55]Read from MH i2c: E2 17 00 [23:11:55]MH_I2C_Read... [23:11:55]Read from MH i2c: E2 17 00 3C 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 72 [23:11:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:11:55]wFMCommunicate OK [23:11:55]requested_item fd.num is exist - process it [23:11:55]SAM_PROTO_GetFieldsCounters [23:11:55]wFMCommunicate request_size=4 [23:11:55]MH_SAM_APDU [23:11:55]CAPDU: 80 13 00 00 [23:11:55]Write to MH i2c: E2 08 00 3D 61 80 13 00 00 00 00 00 00 1A [23:11:55]Write i2c OK [23:11:55]MH_I2C_Read... [23:11:55]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:11:55]Read from MH i2c: E2 [23:11:55]MH_I2C_Read... [23:11:55]Read from MH i2c: E2 62 00 [23:11:55]MH_I2C_Read... [23:11:55]Read from MH i2c: E2 62 00 3D 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FB 20 02 00 0E 04 04 00 2C 02 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 DE [23:11:55]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FB 20 02 00 0E 04 04 00 2C 02 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 [23:11:55]wFMCommunicate OK [23:11:55]SAM_PROTO_GetFieldsCounters done [23:11:55]requested_item shift.num is exist - process it [23:11:55]requested_item shift.opened is exist - process it [23:11:55]req_shift_opened [23:11:55]FM_GetShiftState [23:11:55]SAM_PROTO_GetShiftState [23:11:55]wFMCommunicate request_size=4 [23:11:55]MH_SAM_APDU [23:11:55]CAPDU: 80 13 01 00 [23:11:55]Write to MH i2c: E2 08 00 3E 61 80 13 01 00 00 00 00 00 1C [23:11:55]Write i2c OK [23:11:55]MH_I2C_Read... [23:11:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:11:55]Read from MH i2c: E2 [23:11:55]MH_I2C_Read... [23:11:55]Read from MH i2c: E2 0E 00 [23:11:55]MH_I2C_Read... [23:11:55]Read from MH i2c: E2 0E 00 3E 61 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AC [23:11:55]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:11:55]wFMCommunicate OK [23:11:55]SAM_PROTO_GetShiftState done [23:11:55]FM_GetShiftState done [23:11:55]req_shift_opened done [23:11:55]requested_item shift.open_date is exist - process it [23:11:55]req_shift_open_date [23:11:55]req_shift_open_date done [23:11:55]produce_requested_data done [23:11:55]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139515,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:11:55]process_action_free close_receipt [23:11:55]json_value_free [23:11:55]json_value_free done [23:11:55]process_json_proto returns [23:11:55]Send response to host [23:11:55]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139515,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:11:55]free response buf [23:11:55]execute_script done [23:11:55]execute_script returns [23:11:55]free content buf [23:11:55]Sock 8.Close socket [23:11:55]Sock 8.Thread stoped [23:11:59]OFD Sender: No OFD packet to send [23:12:04]OFD Sender: No OFD packet to send [23:12:09]OFD Sender: No OFD packet to send [23:12:14]OFD Sender: No OFD packet to send [23:12:19]OFD Sender: No OFD packet to send [23:12:24]OFD Sender: No OFD packet to send [23:12:29]OFD Sender: No OFD packet to send [23:12:34]OFD Sender: No OFD packet to send [23:12:39]OFD Sender: No OFD packet to send [23:12:44]OFD Sender: No OFD packet to send [23:12:49]OFD Sender: No OFD packet to send [23:12:54]OFD Sender: No OFD packet to send [23:12:59]OFD Sender: No OFD packet to send [23:13:04]OFD Sender: No OFD packet to send [23:13:09]OFD Sender: No OFD packet to send [23:13:14]OFD Sender: No OFD packet to send [23:13:19]OFD Sender: No OFD packet to send [23:13:24]OFD Sender: No OFD packet to send [23:13:29]OFD Sender: No OFD packet to send [23:13:34]OFD Sender: No OFD packet to send [23:13:39]OFD Sender: No OFD packet to send [23:13:44]OFD Sender: No OFD packet to send [23:13:49]OFD Sender: No OFD packet to send [23:13:54]OFD Sender: No OFD packet to send [23:13:59]OFD Sender: No OFD packet to send [23:14:04]OFD Sender: No OFD packet to send [23:14:09]OFD Sender: No OFD packet to send [23:14:14]OFD Sender: No OFD packet to send [23:14:19]OFD Sender: No OFD packet to send [23:14:24]OFD Sender: No OFD packet to send [23:14:29]OFD Sender: No OFD packet to send [23:14:34]OFD Sender: No OFD packet to send [23:14:39]OFD Sender: No OFD packet to send [23:14:44]OFD Sender: No OFD packet to send [23:14:49]OFD Sender: No OFD packet to send [23:14:54]OFD Sender: No OFD packet to send [23:14:59]OFD Sender: No OFD packet to send [23:15:04]OFD Sender: No OFD packet to send [23:15:09]OFD Sender: No OFD packet to send [23:15:14]OFD Sender: No OFD packet to send [23:15:19]OFD Sender: No OFD packet to send [23:15:24]OFD Sender: No OFD packet to send [23:15:29]OFD Sender: No OFD packet to send [23:15:34]OFD Sender: No OFD packet to send [23:15:39]OFD Sender: No OFD packet to send [23:15:44]OFD Sender: No OFD packet to send [23:15:49]OFD Sender: No OFD packet to send [23:15:54]OFD Sender: No OFD packet to send [23:15:59]OFD Sender: No OFD packet to send [23:16:04]OFD Sender: No OFD packet to send [23:16:09]OFD Sender: No OFD packet to send [23:16:14]OFD Sender: No OFD packet to send [23:16:19]OFD Sender: No OFD packet to send [23:16:24]OFD Sender: No OFD packet to send [23:16:29]OFD Sender: No OFD packet to send [23:16:34]OFD Sender: No OFD packet to send [23:16:39]OFD Sender: No OFD packet to send [23:16:44]OFD Sender: No OFD packet to send [23:16:49]OFD Sender: No OFD packet to send [23:16:54]OFD Sender: No OFD packet to send [23:16:59]OFD Sender: No OFD packet to send [23:17:04]OFD Sender: No OFD packet to send [23:17:09]OFD Sender: No OFD packet to send [23:17:14]OFD Sender: No OFD packet to send [23:17:19]OFD Sender: No OFD packet to send [23:17:24]accept exits with 9 [23:17:24]New connection [23:17:24]New thread 3067141476 created [23:17:24]Thread 3067284836 joined [23:17:24]Waiting for new connection... [23:17:24] Sock 9.Parse request [23:17:24]Sock 9.Check first char [23:17:24]Sock 9.First char is OK [23:17:24]request: POST /json_proto HTTP/1.0 [23:17:24]Method: POST [23:17:24]URL: /json_proto [23:17:24]Method is POST - this is cgi request [23:17:24]url: /json_proto [23:17:24]query_string will be loaded in cgi processing [23:17:24]execute_cgi json_proto POST (null) [23:17:24]execute_cgi path=json_proto method=POST [23:17:24]POST find Content-Length [23:17:24]Host: 172.17.50.196:8080 [23:17:24]Content-Length: 630 [23:17:24]Content-Type: application/json [23:17:24] [23:17:24]POST finish read [23:17:24]Found Content-Length = 630 [23:17:24]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335393", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 8.000, "sum" : 1040.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1040.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:24]execute_script... [23:17: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 : (3)335393", "tax_sys" : 0, "items" : [ { "code": "2000036230011", "name": "\u041A\u043E\u0444\u0435 \u041B\u0430\u0442\u0442\u0435 XL(GABB TRADE)", "price" : 130.00, "quantity" : 8.000, "sum" : 1040.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 1040.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:17:24]POST & json_proto [23:17:24]process_json_proto [23:17:24]json parsed OK: [23:17:24]protocol is kg_v1.0 [23:17:24]action value=close_receipt [23:17:24]process_action close_receipt [23:17:24]cmd_close_receipt [23:17:24]MH_GetDate [23:17:24]Write to MH i2c: F0 00 00 3F 61 8F [23:17:24]Write i2c OK [23:17:24]MH_I2C_Read... [23:17:24]Read from MH i2c: F0 [23:17:24]MH_I2C_Read... [23:17:24]Read from MH i2c: F0 09 00 [23:17:24]MH_I2C_Read... [23:17:24]Read from MH i2c: F0 09 00 3F 61 00 8C BE 22 67 72 0D 1C 67 6D [23:17:24]GetLastDocTimeStamp 1730329919 [23:17:24]current date 1730330252 [23:17:24]FM_GetShiftState [23:17:24]SAM_PROTO_GetShiftState [23:17:24]wFMCommunicate request_size=4 [23:17:24]MH_SAM_APDU [23:17:24]CAPDU: 80 13 01 00 [23:17:24]Write to MH i2c: E2 08 00 40 61 80 13 01 00 00 00 00 00 1E [23:17:24]Write i2c OK [23:17:24]MH_I2C_Read... [23:17:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:24]Read from MH i2c: E2 [23:17:24]MH_I2C_Read... [23:17:24]Read from MH i2c: E2 0E 00 [23:17:24]MH_I2C_Read... [23:17:24]Read from MH i2c: E2 0E 00 40 61 00 09 00 01 86 76 21 67 00 00 00 00 90 00 AE [23:17:24]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:17:24]wFMCommunicate OK [23:17:24]SAM_PROTO_GetShiftState done [23:17:24]FM_GetShiftState done [23:17:24]opened in 1730246278 [23:17:24]opened+sec_in_day 1730332678 [23:17:24]quantity*price = 104000 [23:17:24]sum+1 = 104001 [23:17:24]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 1040.00 НСП 1% : 9.20 НДС 12% : 110.44 Наличными: 1040.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 200 30.10.2024 23:17 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139516 ФПД: 2802341917710 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231732&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139516&fm=2802341917710&tin=02508201610067®Number=0000000000091631&sum=104000 0 [23:17:25]StoreToDocumentArchive [23:17:25]shift 556 fd 139516 [23:17:25]save to /storage/0556/doc_00139516 [23:17:25]save last doc name /storage/0556/doc_00139516 to /storage/kkm_last_doc_name [23:17:25]save OK [23:17:25]Clear old archive folders... [23:17:25]ProcessDocumentItem done err = 0, tmpTLVsize=276 [23:17:25]tlvbuf is 012BB720 [23:17:25]SAM_PROTO_ClearQueue [23:17:25]wFMCommunicate request_size=4 [23:17:25]MH_SAM_APDU [23:17:25]CAPDU: 80 09 00 00 [23:17:25]Write to MH i2c: E2 08 00 4D 61 80 09 00 00 00 00 00 00 20 [23:17:25]Write i2c OK [23:17:25]MH_I2C_Read... [23:17:25]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:17:25]Read from MH i2c: E2 [23:17:25]MH_I2C_Read... [23:17:25]Read from MH i2c: E2 03 00 [23:17:25]MH_I2C_Read... [23:17:25]Read from MH i2c: E2 03 00 4D 61 00 90 00 22 [23:17:25]RAPDU: 90 00 [23:17:25]wFMCommunicate OK [23:17:25]SAM_PROTO_ClearQueue done [23:17:25]KKMCreateOFDPacket [23:17:25]OFDProtocolAddRootSTLVToBuf [23:17:25]FM_MakeSignedData [23:17:25]FM_MakeSignedData [23:17:25]SAM_PROTO_SignData [23:17:25]wFMCommunicate request_size=4 [23:17:25]MH_SAM_APDU [23:17:25]CAPDU: 80 0D 01 02 [23:17:25]Write to MH i2c: E2 08 00 4E 61 80 0D 01 02 00 00 00 00 28 [23:17:25]Write i2c OK [23:17:25]MH_I2C_Read... [23:17:26]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:17:26]Read from MH i2c: E2 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 03 00 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 03 00 4E 61 00 90 00 23 [23:17:26]RAPDU: 90 00 [23:17:26]wFMCommunicate OK [23:17:26]wFMCommunicate request_size=255 [23:17:26]MH_SAM_APDU [23:17:26]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 40 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 2B 00 00 00 00 07 04 06 00 40 96 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 00 00 00 F4 03 04 00 8C BE 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [23:17:26]Write to MH i2c: E2 02 01 4F 61 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 40 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 2B 00 00 00 00 07 04 06 00 40 96 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 00 00 00 F4 03 04 00 8C BE 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 20 [23:17:26]Write i2c OK [23:17:26]MH_I2C_Read... [23:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:26]Read from MH i2c: E2 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 03 00 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 03 00 4F 61 00 90 00 24 [23:17:26]RAPDU: 90 00 [23:17:26]wFMCommunicate OK [23:17:26]wFMCommunicate request_size=35 [23:17:26]MH_SAM_APDU [23:17:26]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FC 20 02 00 35 04 06 00 02 8C 78 98 34 0E [23:17:26]Write to MH i2c: E2 26 00 50 61 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FC 20 02 00 35 04 06 00 02 8C 78 98 34 0E 00 00 24 [23:17:26]Write i2c OK [23:17:26]MH_I2C_Read... [23:17:26]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:17:26]Read from MH i2c: E2 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 03 00 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 03 00 50 61 00 90 00 25 [23:17:26]RAPDU: 90 00 [23:17:26]wFMCommunicate OK [23:17:26]wFMCommunicate request_size=4 [23:17:26]MH_SAM_APDU [23:17:26]CAPDU: 80 0D 03 02 [23:17:26]Write to MH i2c: E2 08 00 51 61 80 0D 03 02 00 00 00 00 2D [23:17:26]Write i2c OK [23:17:26]MH_I2C_Read... [23:17:26]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:17:26]Read from MH i2c: E2 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 0B 00 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 0B 00 51 61 00 3D 11 50 61 96 99 5C C1 90 00 79 [23:17:26]RAPDU: 3D 11 50 61 96 99 5C C1 90 00 [23:17:26]wFMCommunicate OK [23:17:26]SAM_PROTO_SignData done [23:17:26]FM_MakeSignedData done [23:17:26]CreateOFDProtocolMessage [23:17:26]wFMCommunicate request_size=4 [23:17:26]MH_SAM_APDU [23:17:26]CAPDU: 80 11 00 00 [23:17:26]Write to MH i2c: E2 08 00 52 61 80 11 00 00 00 00 00 00 2D [23:17:26]Write i2c OK [23:17:26]MH_I2C_Read... [23:17:26]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:26]Read from MH i2c: E2 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 17 00 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: E2 17 00 52 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 88 [23:17:26]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:17:26]wFMCommunicate OK [23:17:26]CreateOFDProtocolMessage done [23:17:26]OFDSenderStorePacket 139516 [23:17:26]StoreOFDPacket docnum=139516 [23:17:26]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 88 97 20 01 1C 52 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 40 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 2B 00 00 00 00 07 04 06 00 40 96 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 00 00 00 F4 03 04 00 8C BE 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FC 20 02 00 35 04 06 00 02 8C 78 98 34 0E 3D 11 50 61 96 99 5C C1 [23:17:26]CheckFolder [23:17:26]dirname=/storage/ofd_packets [23:17:26]CheckFolder done [23:17:26]ProducePacketName [23:17:26]name=ofd_packets/00139516 [23:17:26]NVStorageSaveData ofd_packets/00139516 [23:17:26]File name is /storage/ofd_packets/00139516 [23:17:26]Write 326 bytes [23:17:26]NVStorageSaveData done [23:17:26]OFDSenderStorePacket done [23:17:26]KKMCreateOFDPacket done [23:17:26]NVStorageSaveData kkm_last_timestamp [23:17:26]File name is /storage/kkm_last_timestamp [23:17:26]Write 4 bytes [23:17:26]NVStorageSaveData done [23:17:26]ExternCall_PrintAddStr [23:17:26]wPrintStart [23:17:26]Write to MH i2c: 01 00 00 53 61 B4 [23:17:26]Write i2c OK [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: 01 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: 01 07 00 [23:17:26]MH_I2C_Read... [23:17:26]Read from MH i2c: 01 07 00 53 61 00 00 00 00 00 FF 0F C9 [23:17:26]RasterBufferAndPrint [23:17:26]line Счет N : (3)335393 [23:17:26]line ИНН: 02508201610067 [23:17:26]line Контрольно-Кассовый Чек [23:17:26]line ПРОДАЖА [23:17:26]line Товар: 2000036230011 [23:17:26]line Кофе Латте XL(GABB TRADE) [23:17:26]line 8.000 * 130.00 [23:17:26]line = 1040.00 [23:17:26]line НДС 12% НСП 1% [23:17:26]line > о реализуемом товаре [23:17:26]line ИТОГО: 1040.00 [23:17:26]line НСП 1% : 9.20 [23:17:26]line НДС 12% : 110.44 [23:17:26]line Наличными: 1040.00 [23:17:26]line Безнал.: 0.00 [23:17:26]line Место: АЗС № 101 "Партнер Нефть" [23:17:26]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:17:26]line СНО: Общий режим [23:17:26]line Чек 200 30.10.2024 23:17 [23:17:26]line Смена: 556 ФФД: 1.0 [23:17:26]line ЗНМ: 0300000081 [23:17:26]line РНМ: 0000000000091631 [23:17:26]line Версия ККМ: 001 [23:17:26]line ФМ: 0000000000874669 [23:17:26]line ФД: 139516 [23:17:26]line ФПД: 2802341917710 [23:17:26]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231732&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139516&fm=2802341917710&tin=02508201610067®Number=0000000000091631&sum=104000 [23:17:26]line 0 [23:17:26]OFD Sender: Processing packet 139516 [packets to send 34, broken 33] [23:17:26]ProducePacketName [23:17:26]name=ofd_packets/00139516 [23:17:26]OFD Sender: To server: pG, [23:17:26]CommunicateWithHost lk.salyk.kg:30040 [23:17:26]ConnectInit lk.salyk.kg [23:17:26]written 0, free lines is 4095 [23:17:26]Connected sock=10 [23:17:26]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 88 97 20 01 1C 52 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 0D 00 32 30 30 30 30 33 36 32 33 30 30 31 31 06 04 22 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9B D0 B0 D1 82 D1 82 D0 B5 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 40 1F 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 40 96 01 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 96 01 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 98 03 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 24 2B 00 00 00 00 07 04 06 00 40 96 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 00 00 00 F4 03 04 00 8C BE 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FC 20 02 00 35 04 06 00 02 8C 78 98 34 0E 3D 11 50 61 96 99 5C C1 [23:17:27]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 05 85 47 00 31 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 38 37 34 36 36 39 10 04 04 00 FC 20 02 00 F4 03 04 00 3B 6A 22 67 B6 04 01 00 00 39 4D 1B 14 97 B8 F2 46 [23:17:27]CommunicateWithHost err = 0 [23:17:27]CheckOFDResponse [23:17:27]1017 (14) - 77093643461234 [23:17:27]1041 (16) - 0000000000874669 [23:17:27]1040 (4) - 139516 [23:17:27]1012 (4) - 30.10.2024 17:17 [23:17:27]1206 (1) - 0 [23:17:27]OFD Sender: Remove packet 139516 [23:17:27]ProducePacketName [23:17:27]name=ofd_packets/00139516 [23:17:27]NVStorageDeleteData [23:17:27]Write to MH i2c: 01 00 00 7B 61 DC [23:17:27]Write i2c OK [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: 01 [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: 01 07 00 [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: 01 07 00 7B 61 00 00 00 00 00 15 0D 05 [23:17:27]RasterBufferAndPrint [23:17:27]line [23:17:27]line [23:17:27]line [23:17:27]line [23:17:27]line [23:17:27]written 0, free lines is 3357 [23:17:27]MH_Cut [23:17:27]Write to MH i2c: D1 01 00 82 61 01 B5 [23:17:27]Write i2c OK [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: D1 [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: D1 01 00 [23:17:27]MH_I2C_Read... [23:17:27]Read from MH i2c: D1 01 00 82 61 00 B4 [23:17:27]Write to MH i2c: 01 00 00 83 61 E4 [23:17:27]Write i2c OK [23:17:27]MH_I2C_Read... [23:17:27]OFD Sender: No OFD packet to send [23:17:27]*** Cut start [23:17:27]*** Partial cut [23:17:27]*** CUTSNS_PIN = 1 [23:17:27]*** CUTSNS_PIN = 0 [23:17:28]*** Brake cut motor [23:17:28]Read from MH i2c: 01 [23:17:28]MH_I2C_Read... [23:17:28]*** Stop cut motor [23:17:28]*** Cut end [23:17:28]Read from MH i2c: 01 07 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: 01 07 00 83 61 00 00 00 00 00 FF 0F F9 [23:17:28]process_action close_receipt done [23:17:28]requested_data is exist [23:17:28]produce_requested_data [23:17:28]requested_item fm.sn is exist - process it [23:17:28]wFMCommunicate request_size=4 [23:17:28]MH_SAM_APDU [23:17:28]CAPDU: 80 11 00 00 [23:17:28]Write to MH i2c: E2 08 00 84 61 80 11 00 00 00 00 00 00 5F [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 [23:17:28]MH_I2C_Read... [23:17:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:17:28]Read from MH i2c: E2 17 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 17 00 84 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [23:17:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:17:28]wFMCommunicate OK [23:17:28]requested_item fd.num is exist - process it [23:17:28]SAM_PROTO_GetFieldsCounters [23:17:28]wFMCommunicate request_size=4 [23:17:28]MH_SAM_APDU [23:17:28]CAPDU: 80 13 00 00 [23:17:28]Write to MH i2c: E2 08 00 85 61 80 13 00 00 00 00 00 00 62 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:17:28]Read from MH i2c: E2 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 62 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 62 00 85 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FC 20 02 00 0E 04 04 00 2C 02 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 2A [23:17:28]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FC 20 02 00 0E 04 04 00 2C 02 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 [23:17:28]wFMCommunicate OK [23:17:28]SAM_PROTO_GetFieldsCounters done [23:17:28]requested_item shift.num is exist - process it [23:17:28]requested_item shift.opened is exist - process it [23:17:28]req_shift_opened [23:17:28]FM_GetShiftState [23:17:28]SAM_PROTO_GetShiftState [23:17:28]wFMCommunicate request_size=4 [23:17:28]MH_SAM_APDU [23:17:28]CAPDU: 80 13 01 00 [23:17:28]Write to MH i2c: E2 08 00 86 61 80 13 01 00 00 00 00 00 64 [23:17:28]Write i2c OK [23:17:28]MH_I2C_Read... [23:17:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:17:28]Read from MH i2c: E2 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 0E 00 [23:17:28]MH_I2C_Read... [23:17:28]Read from MH i2c: E2 0E 00 86 61 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F4 [23:17:28]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:17:28]wFMCommunicate OK [23:17:28]SAM_PROTO_GetShiftState done [23:17:28]FM_GetShiftState done [23:17:28]req_shift_opened done [23:17:28]requested_item shift.open_date is exist - process it [23:17:28]req_shift_open_date [23:17:28]req_shift_open_date done [23:17:28]produce_requested_data done [23:17:28]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139516,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:17:28]process_action_free close_receipt [23:17:28]json_value_free [23:17:28]json_value_free done [23:17:28]process_json_proto returns [23:17:28]Send response to host [23:17:28]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139516,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:17:28]free response buf [23:17:28]execute_script done [23:17:28]execute_script returns [23:17:28]free content buf [23:17:28]Sock 9.Close socket [23:17:28]Sock 9.Thread stoped [23:17:32]OFD Sender: No OFD packet to send [23:17:37]OFD Sender: No OFD packet to send [23:17:42]OFD Sender: No OFD packet to send [23:17:47]OFD Sender: No OFD packet to send [23:17:52]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:42]OFD Sender: No OFD packet to send [23:18:47]OFD Sender: No OFD packet to send [23:18:52]OFD Sender: No OFD packet to send [23:18:57]OFD Sender: No OFD packet to send [23:19:02]OFD Sender: No OFD packet to send [23:19:07]OFD Sender: No OFD packet to send [23:19:12]OFD Sender: No OFD packet to send [23:19:17]OFD Sender: No OFD packet to send [23:19:21]accept exits with 8 [23:19:21]New connection [23:19:21]New thread 3067284836 created [23:19:21]Thread 3067141476 joined [23:19:21]Waiting for new connection... [23:19:21] Sock 8.Parse request [23:19:21]Sock 8.Check first char [23:19:21]Sock 8.First char is OK [23:19:21]request: POST /json_proto HTTP/1.0 [23:19:21]Method: POST [23:19:21]URL: /json_proto [23:19:21]Method is POST - this is cgi request [23:19:21]url: /json_proto [23:19:21]query_string will be loaded in cgi processing [23:19:21]execute_cgi json_proto POST (null) [23:19:21]execute_cgi path=json_proto method=POST [23:19:21]POST find Content-Length [23:19:21]Host: 172.17.50.196:8080 [23:19:21]Content-Length: 728 [23:19:21]Content-Type: application/json [23:19:21] [23:19:21]POST finish read [23:19:21]Found Content-Length = 728 [23:19:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335396", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:21]execute_script... [23:19: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 : (3)335396", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 60.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:19:21]POST & json_proto [23:19:21]process_json_proto [23:19:21]json parsed OK: [23:19:21]protocol is kg_v1.0 [23:19:21]action value=close_receipt [23:19:21]process_action close_receipt [23:19:21]cmd_close_receipt [23:19:21]MH_GetDate [23:19:21]Write to MH i2c: F0 00 00 87 61 D7 [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: F0 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: F0 09 00 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: F0 09 00 87 61 00 01 BF 22 67 72 0D 1C 67 2B [23:19:21]GetLastDocTimeStamp 1730330252 [23:19:21]current date 1730330369 [23:19:21]FM_GetShiftState [23:19:21]SAM_PROTO_GetShiftState [23:19:21]wFMCommunicate request_size=4 [23:19:21]MH_SAM_APDU [23:19:21]CAPDU: 80 13 01 00 [23:19:21]Write to MH i2c: E2 08 00 88 61 80 13 01 00 00 00 00 00 66 [23:19:21]Write i2c OK [23:19:21]MH_I2C_Read... [23:19:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:21]Read from MH i2c: E2 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: E2 0E 00 [23:19:21]MH_I2C_Read... [23:19:21]Read from MH i2c: E2 0E 00 88 61 00 09 00 01 86 76 21 67 00 00 00 00 90 00 F6 [23:19:21]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:19:21]wFMCommunicate OK [23:19:21]SAM_PROTO_GetShiftState done [23:19:21]FM_GetShiftState done [23:19:21]opened in 1730246278 [23:19:21]opened+sec_in_day 1730332678 [23:19:21]quantity*price = 6000 [23:19:21]sum+1 = 6001 [23:19:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 60.00 НСП 1% : 0.53 НДС 12% : 6.37 Наличными: 60.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 201 30.10.2024 23:19 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139517 ФПД: 242810339081501 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231929&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139517&fm=242810339081501&tin=02508201610067®Number=0000000000091631&sum=6000 0 [23:19:22]StoreToDocumentArchive [23:19:22]shift 556 fd 139517 [23:19:22]save to /storage/0556/doc_00139517 [23:19:22]save last doc name /storage/0556/doc_00139517 to /storage/kkm_last_doc_name [23:19:22]save OK [23:19:22]Clear old archive folders... [23:19:22]ProcessDocumentItem done err = 0, tmpTLVsize=303 [23:19:22]tlvbuf is 01110CA0 [23:19:22]SAM_PROTO_ClearQueue [23:19:22]wFMCommunicate request_size=4 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 09 00 00 [23:19:22]Write to MH i2c: E2 08 00 95 61 80 09 00 00 00 00 00 00 68 [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:19:22]Read from MH i2c: E2 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 95 61 00 90 00 6A [23:19:22]RAPDU: 90 00 [23:19:22]wFMCommunicate OK [23:19:22]SAM_PROTO_ClearQueue done [23:19:22]KKMCreateOFDPacket [23:19:22]OFDProtocolAddRootSTLVToBuf [23:19:22]FM_MakeSignedData [23:19:22]FM_MakeSignedData [23:19:22]SAM_PROTO_SignData [23:19:22]wFMCommunicate request_size=4 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 0D 01 02 [23:19:22]Write to MH i2c: E2 08 00 96 61 80 0D 01 02 00 00 00 00 70 [23:19:22]Write i2c OK [23:19:22]MH_I2C_Read... [23:19:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:19:22]Read from MH i2c: E2 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 [23:19:22]MH_I2C_Read... [23:19:22]Read from MH i2c: E2 03 00 96 61 00 90 00 6B [23:19:22]RAPDU: 90 00 [23:19:22]wFMCommunicate OK [23:19:22]wFMCommunicate request_size=255 [23:19:22]MH_SAM_APDU [23:19:22]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 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 01 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D [23:19:23]Write to MH i2c: E2 02 01 97 61 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 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 01 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 00 00 90 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 97 61 00 90 00 6C [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=62 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 20 02 00 35 04 06 00 DC D5 B0 02 3D 1D [23:19:23]Write to MH i2c: E2 41 00 98 61 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 20 02 00 35 04 06 00 DC D5 B0 02 3D 1D 00 00 8D [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 03 00 98 61 00 90 00 6D [23:19:23]RAPDU: 90 00 [23:19:23]wFMCommunicate OK [23:19:23]wFMCommunicate request_size=4 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 0D 03 02 [23:19:23]Write to MH i2c: E2 08 00 99 61 80 0D 03 02 00 00 00 00 75 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 0B 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 0B 00 99 61 00 D2 C8 A4 7A 3A 5B 79 89 90 00 C5 [23:19:23]RAPDU: D2 C8 A4 7A 3A 5B 79 89 90 00 [23:19:23]wFMCommunicate OK [23:19:23]SAM_PROTO_SignData done [23:19:23]FM_MakeSignedData done [23:19:23]CreateOFDProtocolMessage [23:19:23]wFMCommunicate request_size=4 [23:19:23]MH_SAM_APDU [23:19:23]CAPDU: 80 11 00 00 [23:19:23]Write to MH i2c: E2 08 00 9A 61 80 11 00 00 00 00 00 00 75 [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:23]Read from MH i2c: E2 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 17 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: E2 17 00 9A 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [23:19:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:19:23]wFMCommunicate OK [23:19:23]CreateOFDProtocolMessage done [23:19:23]OFDSenderStorePacket 139517 [23:19:23]StoreOFDPacket docnum=139517 [23:19:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 8A F7 3B 01 96 CB 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 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 01 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 20 02 00 35 04 06 00 DC D5 B0 02 3D 1D D2 C8 A4 7A 3A 5B 79 89 [23:19:23]CheckFolder [23:19:23]dirname=/storage/ofd_packets [23:19:23]CheckFolder done [23:19:23]ProducePacketName [23:19:23]name=ofd_packets/00139517 [23:19:23]NVStorageSaveData ofd_packets/00139517 [23:19:23]File name is /storage/ofd_packets/00139517 [23:19:23]Write 353 bytes [23:19:23]NVStorageSaveData done [23:19:23]OFDSenderStorePacket done [23:19:23]KKMCreateOFDPacket done [23:19:23]NVStorageSaveData kkm_last_timestamp [23:19:23]File name is /storage/kkm_last_timestamp [23:19:23]Write 4 bytes [23:19:23]NVStorageSaveData done [23:19:23]ExternCall_PrintAddStr [23:19:23]wPrintStart [23:19:23]Write to MH i2c: 01 00 00 9B 61 FC [23:19:23]Write i2c OK [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 07 00 [23:19:23]MH_I2C_Read... [23:19:23]Read from MH i2c: 01 07 00 9B 61 00 00 00 00 00 FF 0F 11 [23:19:23]RasterBufferAndPrint [23:19:23]line Счет N : (3)335396 [23:19:23]line ИНН: 02508201610067 [23:19:23]line Контрольно-Кассовый Чек [23:19:23]line ПРОДАЖА [23:19:23]line Товар: 4700000160792 [23:19:23]line Снек Курут классический (круглый) [23:19:23]line 1.000 * 60.00 [23:19:23]line = 60.00 [23:19:23]line НДС 12% НСП 1% [23:19:23]line > о реализуемом товаре [23:19:23]line ИТОГО: 60.00 [23:19:23]line НСП 1% : 0.53 [23:19:23]line НДС 12% : 6.37 [23:19:23]line Наличными: 60.00 [23:19:23]line Безнал.: 0.00 [23:19:23]line Место: АЗС № 101 "Партнер Нефть" [23:19:23]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:19:23]line СНО: Общий режим [23:19:23]line Чек 201 30.10.2024 23:19 [23:19:23]line Смена: 556 ФФД: 1.0 [23:19:23]line ЗНМ: 0300000081 [23:19:23]line РНМ: 0000000000091631 [23:19:23]line Версия ККМ: 001 [23:19:23]line ФМ: 0000000000874669 [23:19:23]line ФД: 139517 [23:19:23]line ФПД: 242810339081501 [23:19:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T231929&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139517&fm=242810339081501&tin=02508201610067®Number=0000000000091631&sum=6000 [23:19:23]line 0 [23:19:23]OFD Sender: Processing packet 139517 [packets to send 34, broken 33] [23:19:23]ProducePacketName [23:19:23]name=ofd_packets/00139517 [23:19:23]OFD Sender: To server: pG, [23:19:23]CommunicateWithHost lk.salyk.kg:30040 [23:19:23]ConnectInit lk.salyk.kg [23:19:23]written 0, free lines is 4095 [23:19:23]Connected sock=10 [23:19:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 8A F7 3B 01 96 CB 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7D 02 00 00 00 00 07 04 06 00 70 17 00 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 01 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 20 02 00 35 04 06 00 DC D5 B0 02 3D 1D D2 C8 A4 7A 3A 5B 79 89 [23:19:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D1 DC 47 00 C7 3D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FD 20 02 00 F4 03 04 00 B0 6A 22 67 B6 04 01 00 00 B5 42 3F DA 22 01 D5 FC [23:19:24]CommunicateWithHost err = 0 [23:19:24]CheckOFDResponse [23:19:24]1017 (14) - 77093643461234 [23:19:24]1041 (16) - 0000000000874669 [23:19:24]1040 (4) - 139517 [23:19:24]1012 (4) - 30.10.2024 17:19 [23:19:24]1206 (1) - 0 [23:19:24]OFD Sender: Remove packet 139517 [23:19:24]ProducePacketName [23:19:24]name=ofd_packets/00139517 [23:19:24]NVStorageDeleteData [23:19:24]Write to MH i2c: 01 00 00 C4 61 25 [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: 01 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: 01 07 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: 01 07 00 C4 61 00 00 00 00 00 2C 0D 65 [23:19:24]RasterBufferAndPrint [23:19:24]line [23:19:24]line [23:19:24]line [23:19:24]line [23:19:24]line [23:19:24]written 0, free lines is 3379 [23:19:24]MH_Cut [23:19:24]Write to MH i2c: D1 01 00 CB 61 01 FE [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: D1 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: D1 01 00 [23:19:24]MH_I2C_Read... [23:19:24]Read from MH i2c: D1 01 00 CB 61 00 FD [23:19:24]Write to MH i2c: 01 00 00 CC 61 2D [23:19:24]Write i2c OK [23:19:24]MH_I2C_Read... [23:19:24]OFD Sender: No OFD packet to send [23:19:24]*** Cut start [23:19:24]*** Partial cut [23:19:24]*** CUTSNS_PIN = 1 [23:19:24]*** CUTSNS_PIN = 0 [23:19:25]*** Brake cut motor [23:19:25]Read from MH i2c: 01 [23:19:25]MH_I2C_Read... [23:19:25]*** Stop cut motor [23:19:25]*** Cut end [23:19:25]Read from MH i2c: 01 07 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: 01 07 00 CC 61 00 00 00 00 00 FF 0F 42 [23:19:25]process_action close_receipt done [23:19:25]requested_data is exist [23:19:25]produce_requested_data [23:19:25]requested_item fm.sn is exist - process it [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 11 00 00 [23:19:25]Write to MH i2c: E2 08 00 CD 61 80 11 00 00 00 00 00 00 A8 [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 17 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 17 00 CD 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 03 [23:19:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:19:25]wFMCommunicate OK [23:19:25]requested_item fd.num is exist - process it [23:19:25]SAM_PROTO_GetFieldsCounters [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 13 00 00 [23:19:25]Write to MH i2c: E2 08 00 CE 61 80 13 00 00 00 00 00 00 AB [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 62 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 62 00 CE 61 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FD 20 02 00 0E 04 04 00 2C 02 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 77 [23:19:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FD 20 02 00 0E 04 04 00 2C 02 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 [23:19:25]wFMCommunicate OK [23:19:25]SAM_PROTO_GetFieldsCounters done [23:19:25]requested_item shift.num is exist - process it [23:19:25]requested_item shift.opened is exist - process it [23:19:25]req_shift_opened [23:19:25]FM_GetShiftState [23:19:25]SAM_PROTO_GetShiftState [23:19:25]wFMCommunicate request_size=4 [23:19:25]MH_SAM_APDU [23:19:25]CAPDU: 80 13 01 00 [23:19:25]Write to MH i2c: E2 08 00 CF 61 80 13 01 00 00 00 00 00 AD [23:19:25]Write i2c OK [23:19:25]MH_I2C_Read... [23:19:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:19:25]Read from MH i2c: E2 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 0E 00 [23:19:25]MH_I2C_Read... [23:19:25]Read from MH i2c: E2 0E 00 CF 61 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3D [23:19:25]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:19:25]wFMCommunicate OK [23:19:25]SAM_PROTO_GetShiftState done [23:19:25]FM_GetShiftState done [23:19:25]req_shift_opened done [23:19:25]requested_item shift.open_date is exist - process it [23:19:25]req_shift_open_date [23:19:25]req_shift_open_date done [23:19:25]produce_requested_data done [23:19:25]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139517,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:19:25]process_action_free close_receipt [23:19:25]json_value_free [23:19:25]json_value_free done [23:19:25]process_json_proto returns [23:19:25]Send response to host [23:19:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139517,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:19:25]free response buf [23:19:25]execute_script done [23:19:25]execute_script returns [23:19:25]free content buf [23:19:25]Sock 8.Close socket [23:19:25]Sock 8.Thread stoped [23:19:29]OFD Sender: No OFD packet to send [23:19:34]OFD Sender: No OFD packet to send [23:19:39]OFD Sender: No OFD packet to send [23:19:44]OFD Sender: No OFD packet to send [23:19:49]OFD Sender: No OFD packet to send [23:19:54]OFD Sender: No OFD packet to send [23:19:59]OFD Sender: No OFD packet to send [23:20:04]OFD Sender: No OFD packet to send [23:20:09]OFD Sender: No OFD packet to send [23:20:14]OFD Sender: No OFD packet to send [23:20:19]OFD Sender: No OFD packet to send [23:20:24]OFD Sender: No OFD packet to send [23:20:29]OFD Sender: No OFD packet to send [23:20:34]OFD Sender: No OFD packet to send [23:20:39]OFD Sender: No OFD packet to send [23:20:44]OFD Sender: No OFD packet to send [23:20:47]accept exits with 9 [23:20:47]New connection [23:20:47]New thread 3067141476 created [23:20:47]Thread 3067284836 joined [23:20:47]Waiting for new connection... [23:20:47] Sock 9.Parse request [23:20:47]Sock 9.Check first char [23:20:47]Sock 9.First char is OK [23:20:47]request: POST /json_proto HTTP/1.0 [23:20:47]Method: POST [23:20:47]URL: /json_proto [23:20:47]Method is POST - this is cgi request [23:20:47]url: /json_proto [23:20:47]query_string will be loaded in cgi processing [23:20:47]execute_cgi json_proto POST (null) [23:20:47]execute_cgi path=json_proto method=POST [23:20:47]POST find Content-Length [23:20:47]Host: 172.17.50.196:8080 [23:20:47]Content-Length: 666 [23:20:47]Content-Type: application/json [23:20:47] [23:20:47]POST finish read [23:20:47]Found Content-Length = 666 [23:20:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335397", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:47]execute_script... [23: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 : (3)335397", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:20:47]POST & json_proto [23:20:47]process_json_proto [23:20:47]json parsed OK: [23:20:47]protocol is kg_v1.0 [23:20:47]action value=close_receipt [23:20:47]process_action close_receipt [23:20:47]cmd_close_receipt [23:20:47]MH_GetDate [23:20:47]Write to MH i2c: F0 00 00 D0 61 20 [23:20:47]Write i2c OK [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: F0 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: F0 09 00 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: F0 09 00 D0 61 00 57 BF 22 67 72 0D 1C 67 CA [23:20:47]GetLastDocTimeStamp 1730330369 [23:20:47]current date 1730330455 [23:20:47]FM_GetShiftState [23:20:47]SAM_PROTO_GetShiftState [23:20:47]wFMCommunicate request_size=4 [23:20:47]MH_SAM_APDU [23:20:47]CAPDU: 80 13 01 00 [23:20:47]Write to MH i2c: E2 08 00 D1 61 80 13 01 00 00 00 00 00 AF [23:20:47]Write i2c OK [23:20:47]MH_I2C_Read... [23:20:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:47]Read from MH i2c: E2 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: E2 0E 00 [23:20:47]MH_I2C_Read... [23:20:47]Read from MH i2c: E2 0E 00 D1 61 00 09 00 01 86 76 21 67 00 00 00 00 90 00 3F [23:20:47]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:20:47]wFMCommunicate OK [23:20:47]SAM_PROTO_GetShiftState done [23:20:47]FM_GetShiftState done [23:20:47]opened in 1730246278 [23:20:47]opened+sec_in_day 1730332678 [23:20:47]quantity*price = 9900 [23:20:47]sum+1 = 9901 [23:20:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 202 30.10.2024 23:20 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139518 ФПД: 81803553832896 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T232055&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139518&fm=81803553832896&tin=02508201610067®Number=0000000000091631&sum=9900 0 [23:20:48]StoreToDocumentArchive [23:20:48]shift 556 fd 139518 [23:20:48]save to /storage/0556/doc_00139518 [23:20:48]save last doc name /storage/0556/doc_00139518 to /storage/kkm_last_doc_name [23:20:48]save OK [23:20:48]Clear old archive folders... [23:20:49]ProcessDocumentItem done err = 0, tmpTLVsize=293 [23:20:49]tlvbuf is 01193E20 [23:20:49]SAM_PROTO_ClearQueue [23:20:49]wFMCommunicate request_size=4 [23:20:49]MH_SAM_APDU [23:20:49]CAPDU: 80 09 00 00 [23:20:49]Write to MH i2c: E2 08 00 DE 61 80 09 00 00 00 00 00 00 B1 [23:20:49]Write i2c OK [23:20:49]MH_I2C_Read... [23:20:49]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:20:49]Read from MH i2c: E2 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 03 00 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 03 00 DE 61 00 90 00 B3 [23:20:49]RAPDU: 90 00 [23:20:49]wFMCommunicate OK [23:20:49]SAM_PROTO_ClearQueue done [23:20:49]KKMCreateOFDPacket [23:20:49]OFDProtocolAddRootSTLVToBuf [23:20:49]FM_MakeSignedData [23:20:49]FM_MakeSignedData [23:20:49]SAM_PROTO_SignData [23:20:49]wFMCommunicate request_size=4 [23:20:49]MH_SAM_APDU [23:20:49]CAPDU: 80 0D 01 02 [23:20:49]Write to MH i2c: E2 08 00 DF 61 80 0D 01 02 00 00 00 00 B9 [23:20:49]Write i2c OK [23:20:49]MH_I2C_Read... [23:20:49]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:20:49]Read from MH i2c: E2 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 03 00 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 03 00 DF 61 00 90 00 B4 [23:20:49]RAPDU: 90 00 [23:20:49]wFMCommunicate OK [23:20:49]wFMCommunicate request_size=255 [23:20:49]MH_SAM_APDU [23:20:49]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 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 57 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [23:20:49]Write to MH i2c: E2 02 01 E0 61 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 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 57 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 AC [23:20:49]Write i2c OK [23:20:49]MH_I2C_Read... [23:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:49]Read from MH i2c: E2 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 03 00 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 03 00 E0 61 00 90 00 B5 [23:20:49]RAPDU: 90 00 [23:20:49]wFMCommunicate OK [23:20:49]wFMCommunicate request_size=52 [23:20:49]MH_SAM_APDU [23:20:49]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FE 20 02 00 35 04 06 00 4A 66 5F C4 7F C0 [23:20:49]Write to MH i2c: E2 37 00 E1 61 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FE 20 02 00 35 04 06 00 4A 66 5F C4 7F C0 00 00 B4 [23:20:49]Write i2c OK [23:20:49]MH_I2C_Read... [23:20:49]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:20:49]Read from MH i2c: E2 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 03 00 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 03 00 E1 61 00 90 00 B6 [23:20:49]RAPDU: 90 00 [23:20:49]wFMCommunicate OK [23:20:49]wFMCommunicate request_size=4 [23:20:49]MH_SAM_APDU [23:20:49]CAPDU: 80 0D 03 02 [23:20:49]Write to MH i2c: E2 08 00 E2 61 80 0D 03 02 00 00 00 00 BE [23:20:49]Write i2c OK [23:20:49]MH_I2C_Read... [23:20:49]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:20:49]Read from MH i2c: E2 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 0B 00 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 0B 00 E2 61 00 F3 5B 97 42 F6 CD BF 81 90 00 E9 [23:20:49]RAPDU: F3 5B 97 42 F6 CD BF 81 90 00 [23:20:49]wFMCommunicate OK [23:20:49]SAM_PROTO_SignData done [23:20:49]FM_MakeSignedData done [23:20:49]CreateOFDProtocolMessage [23:20:49]wFMCommunicate request_size=4 [23:20:49]MH_SAM_APDU [23:20:49]CAPDU: 80 11 00 00 [23:20:49]Write to MH i2c: E2 08 00 E3 61 80 11 00 00 00 00 00 00 BE [23:20:49]Write i2c OK [23:20:49]MH_I2C_Read... [23:20:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:49]Read from MH i2c: E2 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 17 00 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: E2 17 00 E3 61 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 19 [23:20:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:20:49]wFMCommunicate OK [23:20:49]CreateOFDProtocolMessage done [23:20:49]OFDSenderStorePacket 139518 [23:20:49]StoreOFDPacket docnum=139518 [23:20:49]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 F1 BD 31 01 5F D6 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 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 57 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FE 20 02 00 35 04 06 00 4A 66 5F C4 7F C0 F3 5B 97 42 F6 CD BF 81 [23:20:49]CheckFolder [23:20:49]dirname=/storage/ofd_packets [23:20:49]CheckFolder done [23:20:49]ProducePacketName [23:20:49]name=ofd_packets/00139518 [23:20:49]NVStorageSaveData ofd_packets/00139518 [23:20:49]File name is /storage/ofd_packets/00139518 [23:20:49]Write 343 bytes [23:20:49]NVStorageSaveData done [23:20:49]OFDSenderStorePacket done [23:20:49]KKMCreateOFDPacket done [23:20:49]NVStorageSaveData kkm_last_timestamp [23:20:49]File name is /storage/kkm_last_timestamp [23:20:49]Write 4 bytes [23:20:49]NVStorageSaveData done [23:20:49]ExternCall_PrintAddStr [23:20:49]wPrintStart [23:20:49]Write to MH i2c: 01 00 00 E4 61 45 [23:20:49]Write i2c OK [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: 01 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: 01 07 00 [23:20:49]MH_I2C_Read... [23:20:49]Read from MH i2c: 01 07 00 E4 61 00 00 00 00 00 FF 0F 5A [23:20:49]RasterBufferAndPrint [23:20:49]line Счет N : (3)335397 [23:20:49]line ИНН: 02508201610067 [23:20:49]line Контрольно-Кассовый Чек [23:20:49]line ПРОДАЖА [23:20:49]line Товар: 4870022003305 [23:20:49]line Напиток Gorilla эн нат ж/б 0,5/0,45л [23:20:49]line 1.000 * 99.00 [23:20:49]line = 99.00 [23:20:49]line НДС 12% НСП 1% [23:20:49]line > о реализуемом товаре [23:20:49]line ИТОГО: 99.00 [23:20:49]line НСП 1% : 0.88 [23:20:49]line НДС 12% : 10.51 [23:20:49]line Наличными: 99.00 [23:20:49]line Безнал.: 0.00 [23:20:49]line Место: АЗС № 101 "Партнер Нефть" [23:20:49]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:20:49]line СНО: Общий режим [23:20:49]line Чек 202 30.10.2024 23:20 [23:20:49]line Смена: 556 ФФД: 1.0 [23:20:49]line ЗНМ: 0300000081 [23:20:49]line РНМ: 0000000000091631 [23:20:49]line Версия ККМ: 001 [23:20:49]line ФМ: 0000000000874669 [23:20:49]line ФД: 139518 [23:20:49]line ФПД: 81803553832896 [23:20:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T232055&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139518&fm=81803553832896&tin=02508201610067®Number=0000000000091631&sum=9900 [23:20:49]OFD Sender: Processing packet 139518 [packets to send 34, broken 33] [23:20:49]ProducePacketName [23:20:49]name=ofd_packets/00139518 [23:20:49]OFD Sender: To server: pG, [23:20:49]CommunicateWithHost lk.salyk.kg:30040 [23:20:49]ConnectInit lk.salyk.kg [23:20:49]line 0 [23:20:49]written 0, free lines is 4095 [23:20:50]Connected sock=10 [23:20:50]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 F1 BD 31 01 5F D6 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 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 57 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FE 20 02 00 35 04 06 00 4A 66 5F C4 7F C0 F3 5B 97 42 F6 CD BF 81 [23:20:50]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F8 1D 47 00 95 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 38 37 34 36 36 39 10 04 04 00 FE 20 02 00 F4 03 04 00 06 6B 22 67 B6 04 01 00 00 09 74 F2 43 8D CB 38 D4 [23:20:50]CommunicateWithHost err = 0 [23:20:50]CheckOFDResponse [23:20:50]1017 (14) - 77093643461234 [23:20:50]1041 (16) - 0000000000874669 [23:20:50]1040 (4) - 139518 [23:20:50]1012 (4) - 30.10.2024 17:21 [23:20:50]1206 (1) - 0 [23:20:50]OFD Sender: Remove packet 139518 [23:20:50]ProducePacketName [23:20:50]name=ofd_packets/00139518 [23:20:50]NVStorageDeleteData [23:20:50]Write to MH i2c: 01 00 00 0D 62 6F [23:20:50]Write i2c OK [23:20:50]MH_I2C_Read... [23:20:50]Read from MH i2c: 01 [23:20:50]MH_I2C_Read... [23:20:50]Read from MH i2c: 01 07 00 [23:20:50]MH_I2C_Read... [23:20:50]Read from MH i2c: 01 07 00 0D 62 00 00 00 00 00 09 0D 8C [23:20:50]RasterBufferAndPrint [23:20:50]line [23:20:50]line [23:20:50]line [23:20:50]line [23:20:50]line [23:20:50]written 0, free lines is 3346 [23:20:50]MH_Cut [23:20:50]Write to MH i2c: D1 01 00 14 62 01 48 [23:20:50]Write i2c OK [23:20:50]MH_I2C_Read... [23:20:50]Read from MH i2c: D1 [23:20:50]MH_I2C_Read... [23:20:50]Read from MH i2c: D1 01 00 [23:20:50]MH_I2C_Read... [23:20:50]Read from MH i2c: D1 01 00 14 62 00 47 [23:20:50]Write to MH i2c: 01 00 00 15 62 77 [23:20:50]Write i2c OK [23:20:50]MH_I2C_Read... [23:20:50]OFD Sender: No OFD packet to send [23:20:51]*** Cut start [23:20:51]*** Partial cut [23:20:51]*** CUTSNS_PIN = 1 [23:20:51]*** CUTSNS_PIN = 0 [23:20:51]*** Brake cut motor [23:20:51]Read from MH i2c: 01 [23:20:51]MH_I2C_Read... [23:20:51]*** Stop cut motor [23:20:51]*** Cut end [23:20:51]Read from MH i2c: 01 07 00 [23:20:51]MH_I2C_Read... [23:20:51]Read from MH i2c: 01 07 00 15 62 00 00 00 00 00 FF 0F 8C [23:20:51]process_action close_receipt done [23:20:51]requested_data is exist [23:20:51]produce_requested_data [23:20:51]requested_item fm.sn is exist - process it [23:20:51]wFMCommunicate request_size=4 [23:20:51]MH_SAM_APDU [23:20:51]CAPDU: 80 11 00 00 [23:20:51]Write to MH i2c: E2 08 00 16 62 80 11 00 00 00 00 00 00 F2 [23:20:51]Write i2c OK [23:20:51]MH_I2C_Read... [23:20:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:20:51]Read from MH i2c: E2 [23:20:51]MH_I2C_Read... [23:20:51]Read from MH i2c: E2 17 00 [23:20:51]MH_I2C_Read... [23:20:51]Read from MH i2c: E2 17 00 16 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4D [23:20:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:20:51]wFMCommunicate OK [23:20:51]requested_item fd.num is exist - process it [23:20:51]SAM_PROTO_GetFieldsCounters [23:20:51]wFMCommunicate request_size=4 [23:20:51]MH_SAM_APDU [23:20:51]CAPDU: 80 13 00 00 [23:20:51]Write to MH i2c: E2 08 00 17 62 80 13 00 00 00 00 00 00 F5 [23:20:51]Write i2c OK [23:20:51]MH_I2C_Read... [23:20:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:20:51]Read from MH i2c: E2 [23:20:51]MH_I2C_Read... [23:20:51]Read from MH i2c: E2 62 00 [23:20:51]MH_I2C_Read... [23:20:51]Read from MH i2c: E2 62 00 17 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FE 20 02 00 0E 04 04 00 2C 02 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 C5 [23:20:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FE 20 02 00 0E 04 04 00 2C 02 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 [23:20:51]wFMCommunicate OK [23:20:51]SAM_PROTO_GetFieldsCounters done [23:20:51]requested_item shift.num is exist - process it [23:20:51]requested_item shift.opened is exist - process it [23:20:51]req_shift_opened [23:20:51]FM_GetShiftState [23:20:51]SAM_PROTO_GetShiftState [23:20:51]wFMCommunicate request_size=4 [23:20:51]MH_SAM_APDU [23:20:51]CAPDU: 80 13 01 00 [23:20:51]Write to MH i2c: E2 08 00 18 62 80 13 01 00 00 00 00 00 F7 [23:20:51]Write i2c OK [23:20:51]MH_I2C_Read... [23:20:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:20:51]Read from MH i2c: E2 [23:20:51]MH_I2C_Read... [23:20:51]Read from MH i2c: E2 0E 00 [23:20:51]MH_I2C_Read... [23:20:51]Read from MH i2c: E2 0E 00 18 62 00 09 00 01 86 76 21 67 00 00 00 00 90 00 87 [23:20:51]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:20:51]wFMCommunicate OK [23:20:51]SAM_PROTO_GetShiftState done [23:20:51]FM_GetShiftState done [23:20:51]req_shift_opened done [23:20:51]requested_item shift.open_date is exist - process it [23:20:51]req_shift_open_date [23:20:51]req_shift_open_date done [23:20:51]produce_requested_data done [23:20:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139518,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:20:51]process_action_free close_receipt [23:20:51]json_value_free [23:20:51]json_value_free done [23:20:51]process_json_proto returns [23:20:51]Send response to host [23:20:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139518,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:20:51]free response buf [23:20:51]execute_script done [23:20:51]execute_script returns [23:20:51]free content buf [23:20:51]Sock 9.Close socket [23:20:51]Sock 9.Thread stoped [23:20:55]OFD Sender: No OFD packet to send [23:21:00]OFD Sender: No OFD packet to send [23:21:05]OFD Sender: No OFD packet to send [23:21:10]OFD Sender: No OFD packet to send [23:21:15]OFD Sender: No OFD packet to send [23:21:20]OFD Sender: No OFD packet to send [23:21:25]OFD Sender: No OFD packet to send [23:21:30]OFD Sender: No OFD packet to send [23:21:35]OFD Sender: No OFD packet to send [23:21:40]OFD Sender: No OFD packet to send [23:21:45]OFD Sender: No OFD packet to send [23:21:50]OFD Sender: No OFD packet to send [23:21:55]OFD Sender: No OFD packet to send [23:22:00]OFD Sender: No OFD packet to send [23:22:05]OFD Sender: No OFD packet to send [23:22:10]OFD Sender: No OFD packet to send [23:22:15]OFD Sender: No OFD packet to send [23:22:20]OFD Sender: No OFD packet to send [23:22:25]OFD Sender: No OFD packet to send [23:22:30]OFD Sender: No OFD packet to send [23:22:35]OFD Sender: No OFD packet to send [23:22:40]OFD Sender: No OFD packet to send [23:22:45]OFD Sender: No OFD packet to send [23:22:50]OFD Sender: No OFD packet to send [23:22:55]OFD Sender: No OFD packet to send [23:23:00]OFD Sender: No OFD packet to send [23:23:05]OFD Sender: No OFD packet to send [23:23:10]accept exits with 8 [23:23:10]New connection [23:23:10]New thread 3067284836 created [23:23:10]Thread 3067141476 joined [23:23:10]Waiting for new connection... [23:23:10] Sock 8.Parse request [23:23:10]Sock 8.Check first char [23:23:10]Sock 8.First char is OK [23:23:10]request: POST /json_proto HTTP/1.0 [23:23:10]Method: POST [23:23:10]URL: /json_proto [23:23:10]Method is POST - this is cgi request [23:23:10]url: /json_proto [23:23:10]query_string will be loaded in cgi processing [23:23:10]execute_cgi json_proto POST (null) [23:23:10]execute_cgi path=json_proto method=POST [23:23:10]POST find Content-Length [23:23:10]Host: 172.17.50.196:8080 [23:23:10]Content-Length: 623 [23:23:10]Content-Type: application/json [23:23:10] [23:23:10]POST finish read [23:23:10]Found Content-Length = 623 [23:23:10]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335399", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:10]execute_script... [23:23: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 : (3)335399", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:23:10]POST & json_proto [23:23:10]process_json_proto [23:23:10]json parsed OK: [23:23:10]protocol is kg_v1.0 [23:23:10]action value=close_receipt [23:23:10]process_action close_receipt [23:23:10]cmd_close_receipt [23:23:10]MH_GetDate [23:23:10]Write to MH i2c: F0 00 00 19 62 6A [23:23:10]Write i2c OK [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: F0 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: F0 09 00 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: F0 09 00 19 62 00 E6 BF 22 67 72 0D 1C 67 A3 [23:23:10]GetLastDocTimeStamp 1730330455 [23:23:10]current date 1730330598 [23:23:10]FM_GetShiftState [23:23:10]SAM_PROTO_GetShiftState [23:23:10]wFMCommunicate request_size=4 [23:23:10]MH_SAM_APDU [23:23:10]CAPDU: 80 13 01 00 [23:23:10]Write to MH i2c: E2 08 00 1A 62 80 13 01 00 00 00 00 00 F9 [23:23:10]Write i2c OK [23:23:10]MH_I2C_Read... [23:23:10]OFD Sender: No OFD packet to send [23:23:10]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:10]Read from MH i2c: E2 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: E2 0E 00 [23:23:10]MH_I2C_Read... [23:23:10]Read from MH i2c: E2 0E 00 1A 62 00 09 00 01 86 76 21 67 00 00 00 00 90 00 89 [23:23:10]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:23:10]wFMCommunicate OK [23:23:10]SAM_PROTO_GetShiftState done [23:23:10]FM_GetShiftState done [23:23:10]opened in 1730246278 [23:23:10]opened+sec_in_day 1730332678 [23:23:10]quantity*price = 14400 [23:23:10]sum+1 = 14401 [23:23:10]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 144.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 203 30.10.2024 23:23 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139519 ФПД: 149789052349408 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T232318&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139519&fm=149789052349408&tin=02508201610067®Number=0000000000091631&sum=14400 0 [23:23:11]StoreToDocumentArchive [23:23:11]shift 556 fd 139519 [23:23:11]save to /storage/0556/doc_00139519 [23:23:11]save last doc name /storage/0556/doc_00139519 to /storage/kkm_last_doc_name [23:23:11]save OK [23:23:11]Clear old archive folders... [23:23:11]ProcessDocumentItem done err = 0, tmpTLVsize=275 [23:23:11]tlvbuf is 01193CF0 [23:23:11]SAM_PROTO_ClearQueue [23:23:11]wFMCommunicate request_size=4 [23:23:11]MH_SAM_APDU [23:23:11]CAPDU: 80 09 00 00 [23:23:11]Write to MH i2c: E2 08 00 27 62 80 09 00 00 00 00 00 00 FB [23:23:11]Write i2c OK [23:23:11]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 03 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 03 00 27 62 00 90 00 FD [23:23:12]RAPDU: 90 00 [23:23:12]wFMCommunicate OK [23:23:12]SAM_PROTO_ClearQueue done [23:23:12]KKMCreateOFDPacket [23:23:12]OFDProtocolAddRootSTLVToBuf [23:23:12]FM_MakeSignedData [23:23:12]FM_MakeSignedData [23:23:12]SAM_PROTO_SignData [23:23:12]wFMCommunicate request_size=4 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 0D 01 02 [23:23:12]Write to MH i2c: E2 08 00 28 62 80 0D 01 02 00 00 00 00 03 [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 03 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 03 00 28 62 00 90 00 FE [23:23:12]RAPDU: 90 00 [23:23:12]wFMCommunicate OK [23:23:12]wFMCommunicate request_size=255 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 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 E6 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [23:23:12]Write to MH i2c: E2 02 01 29 62 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 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 E6 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 00 00 2A [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 03 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 03 00 29 62 00 90 00 FF [23:23:12]RAPDU: 90 00 [23:23:12]wFMCommunicate OK [23:23:12]wFMCommunicate request_size=34 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 20 02 00 35 04 06 00 88 3B 7B 41 AB E0 [23:23:12]Write to MH i2c: E2 25 00 2A 62 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 20 02 00 35 04 06 00 88 3B 7B 41 AB E0 00 00 FA [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 03 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 03 00 2A 62 00 90 00 00 [23:23:12]RAPDU: 90 00 [23:23:12]wFMCommunicate OK [23:23:12]wFMCommunicate request_size=4 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 0D 03 02 [23:23:12]Write to MH i2c: E2 08 00 2B 62 80 0D 03 02 00 00 00 00 08 [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 0B 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 0B 00 2B 62 00 A8 40 05 08 C5 FE 26 DD 90 00 C4 [23:23:12]RAPDU: A8 40 05 08 C5 FE 26 DD 90 00 [23:23:12]wFMCommunicate OK [23:23:12]SAM_PROTO_SignData done [23:23:12]FM_MakeSignedData done [23:23:12]CreateOFDProtocolMessage [23:23:12]wFMCommunicate request_size=4 [23:23:12]MH_SAM_APDU [23:23:12]CAPDU: 80 11 00 00 [23:23:12]Write to MH i2c: E2 08 00 2C 62 80 11 00 00 00 00 00 00 08 [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:12]Read from MH i2c: E2 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 17 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: E2 17 00 2C 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 63 [23:23:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:23:12]wFMCommunicate OK [23:23:12]CreateOFDProtocolMessage done [23:23:12]OFDSenderStorePacket 139519 [23:23:12]StoreOFDPacket docnum=139519 [23:23:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 A7 7D 1F 01 D3 A7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 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 E6 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 20 02 00 35 04 06 00 88 3B 7B 41 AB E0 A8 40 05 08 C5 FE 26 DD [23:23:12]CheckFolder [23:23:12]dirname=/storage/ofd_packets [23:23:12]CheckFolder done [23:23:12]ProducePacketName [23:23:12]name=ofd_packets/00139519 [23:23:12]NVStorageSaveData ofd_packets/00139519 [23:23:12]File name is /storage/ofd_packets/00139519 [23:23:12]Write 325 bytes [23:23:12]NVStorageSaveData done [23:23:12]OFDSenderStorePacket done [23:23:12]KKMCreateOFDPacket done [23:23:12]NVStorageSaveData kkm_last_timestamp [23:23:12]File name is /storage/kkm_last_timestamp [23:23:12]Write 4 bytes [23:23:12]NVStorageSaveData done [23:23:12]ExternCall_PrintAddStr [23:23:12]wPrintStart [23:23:12]Write to MH i2c: 01 00 00 2D 62 8F [23:23:12]Write i2c OK [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: 01 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: 01 07 00 [23:23:12]MH_I2C_Read... [23:23:12]Read from MH i2c: 01 07 00 2D 62 00 00 00 00 00 FF 0F A4 [23:23:12]RasterBufferAndPrint [23:23:12]line Счет N : (3)335399 [23:23:12]line ИНН: 02508201610067 [23:23:12]line Контрольно-Кассовый Чек [23:23:12]line ПРОДАЖА [23:23:12]line Товар: 48743587 [23:23:12]line Сигареты Winston XStyle Silver [23:23:12]line 1.000 * 144.00 [23:23:12]line = 144.00 [23:23:12]line НДС 12% НСП 1% [23:23:12]line > о реализуемом товаре [23:23:12]line ИТОГО: 144.00 [23:23:12]line НСП 1% : 1.27 [23:23:12]line НДС 12% : 15.29 [23:23:12]line Наличными: 144.00 [23:23:12]line Безнал.: 0.00 [23:23:12]line Место: АЗС № 101 "Партнер Нефть" [23:23:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:23:12]line СНО: Общий режим [23:23:12]line Чек 203 30.10.2024 23:23 [23:23:12]line Смена: 556 ФФД: 1.0 [23:23:12]line ЗНМ: 0300000081 [23:23:12]line РНМ: 0000000000091631 [23:23:12]line Версия ККМ: 001 [23:23:12]line ФМ: 0000000000874669 [23:23:12]line ФД: 139519 [23:23:12]line ФПД: 149789052349408 [23:23:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T232318&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139519&fm=149789052349408&tin=02508201610067®Number=0000000000091631&sum=14400 [23:23:12]OFD Sender: Processing packet 139519 [packets to send 34, broken 33] [23:23:12]ProducePacketName [23:23:12]name=ofd_packets/00139519 [23:23:12]OFD Sender: To server: pG, [23:23:12]CommunicateWithHost lk.salyk.kg:30040 [23:23:12]ConnectInit lk.salyk.kg [23:23:12]line 0 [23:23:12]written 0, free lines is 4095 [23:23:13]Connected sock=10 [23:23:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 A7 7D 1F 01 D3 A7 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 40 38 00 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 E6 BF 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 20 02 00 35 04 06 00 88 3B 7B 41 AB E0 A8 40 05 08 C5 FE 26 DD [23:23:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 80 82 47 00 6C 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 FF 20 02 00 F4 03 04 00 95 6B 22 67 B6 04 01 00 00 F1 8F E9 9B F4 DD 5A 7C [23:23:13]CommunicateWithHost err = 0 [23:23:13]CheckOFDResponse [23:23:13]1017 (14) - 77093643461234 [23:23:13]1041 (16) - 0000000000874669 [23:23:13]1040 (4) - 139519 [23:23:13]1012 (4) - 30.10.2024 17:23 [23:23:13]1206 (1) - 0 [23:23:13]OFD Sender: Remove packet 139519 [23:23:13]ProducePacketName [23:23:13]name=ofd_packets/00139519 [23:23:13]NVStorageDeleteData [23:23:13]Write to MH i2c: 01 00 00 56 62 B8 [23:23:13]Write i2c OK [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: 01 [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: 01 07 00 [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: 01 07 00 56 62 00 00 00 00 00 04 0D D0 [23:23:13]RasterBufferAndPrint [23:23:13]line [23:23:13]line [23:23:13]line [23:23:13]line [23:23:13]line [23:23:13]written 0, free lines is 3341 [23:23:13]MH_Cut [23:23:13]Write to MH i2c: D1 01 00 5D 62 01 91 [23:23:13]Write i2c OK [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: D1 [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: D1 01 00 [23:23:13]MH_I2C_Read... [23:23:13]Read from MH i2c: D1 01 00 5D 62 00 90 [23:23:13]Write to MH i2c: 01 00 00 5E 62 C0 [23:23:13]Write i2c OK [23:23:13]MH_I2C_Read... [23:23:13]OFD Sender: No OFD packet to send [23:23:13]*** Cut start [23:23:13]*** Partial cut [23:23:13]*** CUTSNS_PIN = 1 [23:23:14]*** CUTSNS_PIN = 0 [23:23:14]*** Brake cut motor [23:23:14]Read from MH i2c: 01 [23:23:14]MH_I2C_Read... [23:23:14]*** Stop cut motor [23:23:14]*** Cut end [23:23:14]Read from MH i2c: 01 07 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: 01 07 00 5E 62 00 00 00 00 00 FF 0F D5 [23:23:14]process_action close_receipt done [23:23:14]requested_data is exist [23:23:14]produce_requested_data [23:23:14]requested_item fm.sn is exist - process it [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 11 00 00 [23:23:14]Write to MH i2c: E2 08 00 5F 62 80 11 00 00 00 00 00 00 3B [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 17 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 17 00 5F 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 96 [23:23:14]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:23:14]wFMCommunicate OK [23:23:14]requested_item fd.num is exist - process it [23:23:14]SAM_PROTO_GetFieldsCounters [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 13 00 00 [23:23:14]Write to MH i2c: E2 08 00 60 62 80 13 00 00 00 00 00 00 3E [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 62 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 62 00 60 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FF 20 02 00 0E 04 04 00 2C 02 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 12 [23:23:14]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 FF 20 02 00 0E 04 04 00 2C 02 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 [23:23:14]wFMCommunicate OK [23:23:14]SAM_PROTO_GetFieldsCounters done [23:23:14]requested_item shift.num is exist - process it [23:23:14]requested_item shift.opened is exist - process it [23:23:14]req_shift_opened [23:23:14]FM_GetShiftState [23:23:14]SAM_PROTO_GetShiftState [23:23:14]wFMCommunicate request_size=4 [23:23:14]MH_SAM_APDU [23:23:14]CAPDU: 80 13 01 00 [23:23:14]Write to MH i2c: E2 08 00 61 62 80 13 01 00 00 00 00 00 40 [23:23:14]Write i2c OK [23:23:14]MH_I2C_Read... [23:23:14]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:23:14]Read from MH i2c: E2 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 0E 00 [23:23:14]MH_I2C_Read... [23:23:14]Read from MH i2c: E2 0E 00 61 62 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D0 [23:23:14]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:23:14]wFMCommunicate OK [23:23:14]SAM_PROTO_GetShiftState done [23:23:14]FM_GetShiftState done [23:23:14]req_shift_opened done [23:23:14]requested_item shift.open_date is exist - process it [23:23:14]req_shift_open_date [23:23:14]req_shift_open_date done [23:23:14]produce_requested_data done [23:23:14]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139519,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:23:14]process_action_free close_receipt [23:23:14]json_value_free [23:23:14]json_value_free done [23:23:14]process_json_proto returns [23:23:14]Send response to host [23:23:14]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139519,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:23:14]free response buf [23:23:14]execute_script done [23:23:14]execute_script returns [23:23:14]free content buf [23:23:14]Sock 8.Close socket [23:23:14]Sock 8.Thread stoped [23:23:18]OFD Sender: No OFD packet to send [23:23:23]OFD Sender: No OFD packet to send [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:03]OFD Sender: No OFD packet to send [23:27:08]OFD Sender: No OFD packet to send [23:27:13]OFD Sender: No OFD packet to send [23:27:18]OFD Sender: No OFD packet to send [23:27:23]OFD Sender: No OFD packet to send [23:27:28]OFD Sender: No OFD packet to send [23:27:33]OFD Sender: No OFD packet to send [23:27:38]OFD Sender: No OFD packet to send [23:27:43]OFD Sender: No OFD packet to send [23:27:48]OFD Sender: No OFD packet to send [23:27:53]OFD Sender: No OFD packet to send [23:27:58]OFD Sender: No OFD packet to send [23:28:03]OFD Sender: No OFD packet to send [23:28:08]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:54]OFD Sender: No OFD packet to send [23:30:59]OFD Sender: No OFD packet to send [23:31:04]OFD Sender: No OFD packet to send [23:31:09]OFD Sender: No OFD packet to send [23:31:14]OFD Sender: No OFD packet to send [23:31:19]OFD Sender: No OFD packet to send [23:31:24]OFD Sender: No OFD packet to send [23:31:26]accept exits with 9 [23:31:26]New connection [23:31:26]New thread 3067141476 created [23:31:26]Thread 3067284836 joined [23:31:26]Waiting for new connection... [23:31:26] Sock 9.Parse request [23:31:26]Sock 9.Check first char [23:31:26]Sock 9.First char is OK [23:31:26]request: POST /json_proto HTTP/1.0 [23:31:26]Method: POST [23:31:26]URL: /json_proto [23:31:26]Method is POST - this is cgi request [23:31:26]url: /json_proto [23:31:26]query_string will be loaded in cgi processing [23:31:26]execute_cgi json_proto POST (null) [23:31:26]execute_cgi path=json_proto method=POST [23:31:26]POST find Content-Length [23:31:26]Host: 172.17.50.196:8080 [23:31:26]Content-Length: 761 [23:31:26]Content-Type: application/json [23:31:26] [23:31:26]POST finish read [23:31:26]Found Content-Length = 761 [23:31:26]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30080289", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:26]execute_script... [23:31: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)1094828", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 11", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "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\u041A \u0413\u041F\u041D\u0410 Online\u000A30080289", "payments": [ { "type": 1, "sum" : 0.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:31:26]POST & json_proto [23:31:26]process_json_proto [23:31:26]json parsed OK: [23:31:26]protocol is kg_v1.0 [23:31:26]action value=close_receipt [23:31:26]process_action close_receipt [23:31:26]cmd_close_receipt [23:31:26]MH_GetDate [23:31:26]Write to MH i2c: F0 00 00 62 62 B3 [23:31:26]Write i2c OK [23:31:26]MH_I2C_Read... [23:31:26]Read from MH i2c: F0 [23:31:26]MH_I2C_Read... [23:31:26]Read from MH i2c: F0 09 00 [23:31:26]MH_I2C_Read... [23:31:26]Read from MH i2c: F0 09 00 62 62 00 D6 C1 22 67 72 0D 1C 67 DE [23:31:26]GetLastDocTimeStamp 1730330598 [23:31:26]current date 1730331094 [23:31:26]FM_GetShiftState [23:31:26]SAM_PROTO_GetShiftState [23:31:26]wFMCommunicate request_size=4 [23:31:26]MH_SAM_APDU [23:31:26]CAPDU: 80 13 01 00 [23:31:26]Write to MH i2c: E2 08 00 63 62 80 13 01 00 00 00 00 00 42 [23:31:26]Write i2c OK [23:31:26]MH_I2C_Read... [23:31:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:26]Read from MH i2c: E2 [23:31:26]MH_I2C_Read... [23:31:26]Read from MH i2c: E2 0E 00 [23:31:26]MH_I2C_Read... [23:31:26]Read from MH i2c: E2 0E 00 63 62 00 09 00 01 86 76 21 67 00 00 00 00 90 00 D2 [23:31:26]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:31:26]wFMCommunicate OK [23:31:26]SAM_PROTO_GetShiftState done [23:31:26]FM_GetShiftState done [23:31:26]opened in 1730246278 [23:31:26]opened+sec_in_day 1730332678 [23:31:26]quantity*price = 0 [23:31:26]sum+1 = 1 [23:31:26]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 0.00 НСП 1% : 0.00 НДС 12% : 0.00 Наличными: 0.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 204 30.10.2024 23:31 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Талоны: ТК ГПНА Online 30080289 ФМ: 0000000000874669 ФД: 139520 ФПД: 247352888981233 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T233134&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139520&fm=247352888981233&tin=02508201610067®Number=0000000000091631&sum=0 [23:31:27]StoreToDocumentArchive [23:31:27]shift 556 fd 139520 [23:31:27]save to /storage/0556/doc_00139520 [23:31:27]save last doc name /storage/0556/doc_00139520 to /storage/kkm_last_doc_name [23:31:27]save OK [23:31:27]Clear old archive folders... [23:31:27]ProcessDocumentItem done err = 0, tmpTLVsize=252 [23:31:27]tlvbuf is 01286E90 [23:31:27]SAM_PROTO_ClearQueue [23:31:27]wFMCommunicate request_size=4 [23:31:27]MH_SAM_APDU [23:31:27]CAPDU: 80 09 00 00 [23:31:27]Write to MH i2c: E2 08 00 70 62 80 09 00 00 00 00 00 00 44 [23:31:27]Write i2c OK [23:31:27]MH_I2C_Read... [23:31:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:31:28]Read from MH i2c: E2 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 03 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 03 00 70 62 00 90 00 46 [23:31:28]RAPDU: 90 00 [23:31:28]wFMCommunicate OK [23:31:28]SAM_PROTO_ClearQueue done [23:31:28]KKMCreateOFDPacket [23:31:28]OFDProtocolAddRootSTLVToBuf [23:31:28]FM_MakeSignedData [23:31:28]FM_MakeSignedData [23:31:28]SAM_PROTO_SignData [23:31:28]wFMCommunicate request_size=4 [23:31:28]MH_SAM_APDU [23:31:28]CAPDU: 80 0D 01 02 [23:31:28]Write to MH i2c: E2 08 00 71 62 80 0D 01 02 00 00 00 00 4C [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:31:28]Read from MH i2c: E2 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 03 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 03 00 71 62 00 90 00 47 [23:31:28]RAPDU: 90 00 [23:31:28]wFMCommunicate OK [23:31:28]wFMCommunicate request_size=255 [23:31:28]MH_SAM_APDU [23:31:28]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 CC 00 00 00 F4 03 04 00 D6 C1 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 00 21 02 00 35 04 06 00 [23:31:28]Write to MH i2c: E2 02 01 72 62 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 CC 00 00 00 F4 03 04 00 D6 C1 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 00 21 02 00 35 04 06 00 00 00 F5 [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:28]Read from MH i2c: E2 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 03 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 03 00 72 62 00 90 00 48 [23:31:28]RAPDU: 90 00 [23:31:28]wFMCommunicate OK [23:31:28]wFMCommunicate request_size=11 [23:31:28]MH_SAM_APDU [23:31:28]CAPDU: 80 0D 02 02 06 E0 F7 55 14 F6 F1 [23:31:28]Write to MH i2c: E2 0E 00 73 62 80 0D 02 02 06 00 E0 F7 55 14 F6 F1 00 00 82 [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:31:28]Read from MH i2c: E2 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 03 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 03 00 73 62 00 90 00 49 [23:31:28]RAPDU: 90 00 [23:31:28]wFMCommunicate OK [23:31:28]wFMCommunicate request_size=4 [23:31:28]MH_SAM_APDU [23:31:28]CAPDU: 80 0D 03 02 [23:31:28]Write to MH i2c: E2 08 00 74 62 80 0D 03 02 00 00 00 00 51 [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:31:28]Read from MH i2c: E2 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 0B 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 0B 00 74 62 00 20 50 CE 59 C8 6E 84 D6 90 00 79 [23:31:28]RAPDU: 20 50 CE 59 C8 6E 84 D6 90 00 [23:31:28]wFMCommunicate OK [23:31:28]SAM_PROTO_SignData done [23:31:28]FM_MakeSignedData done [23:31:28]CreateOFDProtocolMessage [23:31:28]wFMCommunicate request_size=4 [23:31:28]MH_SAM_APDU [23:31:28]CAPDU: 80 11 00 00 [23:31:28]Write to MH i2c: E2 08 00 75 62 80 11 00 00 00 00 00 00 51 [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:28]Read from MH i2c: E2 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 17 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: E2 17 00 75 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AC [23:31:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:31:28]wFMCommunicate OK [23:31:28]CreateOFDProtocolMessage done [23:31:28]OFDSenderStorePacket 139520 [23:31:28]StoreOFDPacket docnum=139520 [23:31:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 7D 42 08 01 4E FD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 CC 00 00 00 F4 03 04 00 D6 C1 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 00 21 02 00 35 04 06 00 E0 F7 55 14 F6 F1 20 50 CE 59 C8 6E 84 D6 [23:31:28]CheckFolder [23:31:28]dirname=/storage/ofd_packets [23:31:28]CheckFolder done [23:31:28]ProducePacketName [23:31:28]name=ofd_packets/00139520 [23:31:28]NVStorageSaveData ofd_packets/00139520 [23:31:28]File name is /storage/ofd_packets/00139520 [23:31:28]Write 302 bytes [23:31:28]NVStorageSaveData done [23:31:28]OFDSenderStorePacket done [23:31:28]KKMCreateOFDPacket done [23:31:28]NVStorageSaveData kkm_last_timestamp [23:31:28]File name is /storage/kkm_last_timestamp [23:31:28]Write 4 bytes [23:31:28]NVStorageSaveData done [23:31:28]ExternCall_PrintAddStr [23:31:28]wPrintStart [23:31:28]Write to MH i2c: 01 00 00 76 62 D8 [23:31:28]Write i2c OK [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: 01 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: 01 07 00 [23:31:28]MH_I2C_Read... [23:31:28]Read from MH i2c: 01 07 00 76 62 00 00 00 00 00 FF 0F ED [23:31:28]RasterBufferAndPrint [23:31:28]line Счет N : (1)1094828 [23:31:28]line ИНН: 02508201610067 [23:31:28]line Контрольно-Кассовый Чек [23:31:28]line ПРОДАЖА [23:31:28]line ТРК (МРК, ГНК) : 11 [23:31:28]line Товар: 2710194210 [23:31:28]line ДТ(л)-К-2 [23:31:28]line 100.000 * 0.00 [23:31:28]line = 0.00 [23:31:28]line НДС 12% НСП 1% [23:31:28]line > о реализуемом товаре [23:31:28]line ИТОГО: 0.00 [23:31:28]line НСП 1% : 0.00 [23:31:28]line НДС 12% : 0.00 [23:31:28]line Наличными: 0.00 [23:31:28]line Безнал.: 0.00 [23:31:28]line Место: АЗС № 101 "Партнер Нефть" [23:31:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:31:28]line СНО: Общий режим [23:31:28]line Чек 204 30.10.2024 23:31 [23:31:28]line Смена: 556 ФФД: 1.0 [23:31:28]line ЗНМ: 0300000081 [23:31:28]line РНМ: 0000000000091631 [23:31:28]line Версия ККМ: 001 [23:31:28]line Талоны: ТК ГПНА Online [23:31:28]line 30080289 [23:31:28]line ФМ: 0000000000874669 [23:31:28]line ФД: 139520 [23:31:28]line ФПД: 247352888981233 [23:31:28]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T233134&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139520&fm=247352888981233&tin=02508201610067®Number=0000000000091631&sum=0 [23:31:28]written 0, free lines is 4095 [23:31:28]OFD Sender: Processing packet 139520 [packets to send 34, broken 33] [23:31:28]ProducePacketName [23:31:28]name=ofd_packets/00139520 [23:31:28]OFD Sender: To server: pG, [23:31:28]CommunicateWithHost lk.salyk.kg:30040 [23:31:28]ConnectInit lk.salyk.kg [23:31:28]Connected sock=10 [23:31:28]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 7D 42 08 01 4E FD 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 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 CC 00 00 00 F4 03 04 00 D6 C1 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 00 21 02 00 35 04 06 00 E0 F7 55 14 F6 F1 20 50 CE 59 C8 6E 84 D6 [23:31:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 74 49 47 00 D6 D9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 00 21 02 00 F4 03 04 00 85 6D 22 67 B6 04 01 00 00 34 D4 CD F7 FF 2B 46 76 [23:31:29]CommunicateWithHost err = 0 [23:31:29]CheckOFDResponse [23:31:29]1017 (14) - 77093643461234 [23:31:29]1041 (16) - 0000000000874669 [23:31:29]1040 (4) - 139520 [23:31:29]1012 (4) - 30.10.2024 17:31 [23:31:29]1206 (1) - 0 [23:31:29]OFD Sender: Remove packet 139520 [23:31:29]ProducePacketName [23:31:29]name=ofd_packets/00139520 [23:31:29]NVStorageDeleteData [23:31:29]Write to MH i2c: 01 00 00 A0 62 02 [23:31:29]Write i2c OK [23:31:29]MH_I2C_Read... [23:31:29]Read from MH i2c: 01 [23:31:29]MH_I2C_Read... [23:31:29]Read from MH i2c: 01 07 00 [23:31:29]MH_I2C_Read... [23:31:29]Read from MH i2c: 01 07 00 A0 62 00 00 00 00 00 F9 0C 0E [23:31:29]RasterBufferAndPrint [23:31:29]line [23:31:29]line [23:31:29]line [23:31:29]line [23:31:29]line [23:31:29]written 0, free lines is 3327 [23:31:29]MH_Cut [23:31:29]Write to MH i2c: D1 01 00 A7 62 01 DB [23:31:29]Write i2c OK [23:31:29]MH_I2C_Read... [23:31:29]Read from MH i2c: D1 [23:31:29]MH_I2C_Read... [23:31:29]Read from MH i2c: D1 01 00 [23:31:29]MH_I2C_Read... [23:31:29]Read from MH i2c: D1 01 00 A7 62 00 DA [23:31:29]Write to MH i2c: 01 00 00 A8 62 0A [23:31:29]Write i2c OK [23:31:29]MH_I2C_Read... [23:31:29]OFD Sender: No OFD packet to send [23:31:29]*** Cut start [23:31:29]*** Partial cut [23:31:29]*** CUTSNS_PIN = 1 [23:31:30]*** CUTSNS_PIN = 0 [23:31:30]*** Brake cut motor [23:31:30]Read from MH i2c: 01 [23:31:30]MH_I2C_Read... [23:31:30]*** Stop cut motor [23:31:30]*** Cut end [23:31:30]Read from MH i2c: 01 07 00 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: 01 07 00 A8 62 00 00 00 00 00 FF 0F 1F [23:31:30]process_action close_receipt done [23:31:30]requested_data is exist [23:31:30]produce_requested_data [23:31:30]requested_item fm.sn is exist - process it [23:31:30]wFMCommunicate request_size=4 [23:31:30]MH_SAM_APDU [23:31:30]CAPDU: 80 11 00 00 [23:31:30]Write to MH i2c: E2 08 00 A9 62 80 11 00 00 00 00 00 00 85 [23:31:30]Write i2c OK [23:31:30]MH_I2C_Read... [23:31:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:31:30]Read from MH i2c: E2 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 17 00 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 17 00 A9 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E0 [23:31:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:31:30]wFMCommunicate OK [23:31:30]requested_item fd.num is exist - process it [23:31:30]SAM_PROTO_GetFieldsCounters [23:31:30]wFMCommunicate request_size=4 [23:31:30]MH_SAM_APDU [23:31:30]CAPDU: 80 13 00 00 [23:31:30]Write to MH i2c: E2 08 00 AA 62 80 13 00 00 00 00 00 00 88 [23:31:30]Write i2c OK [23:31:30]MH_I2C_Read... [23:31:30]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:31:30]Read from MH i2c: E2 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 62 00 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 62 00 AA 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 00 21 02 00 0E 04 04 00 2C 02 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 61 [23:31:30]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 00 21 02 00 0E 04 04 00 2C 02 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 [23:31:30]wFMCommunicate OK [23:31:30]SAM_PROTO_GetFieldsCounters done [23:31:30]requested_item shift.num is exist - process it [23:31:30]requested_item shift.opened is exist - process it [23:31:30]req_shift_opened [23:31:30]FM_GetShiftState [23:31:30]SAM_PROTO_GetShiftState [23:31:30]wFMCommunicate request_size=4 [23:31:30]MH_SAM_APDU [23:31:30]CAPDU: 80 13 01 00 [23:31:30]Write to MH i2c: E2 08 00 AB 62 80 13 01 00 00 00 00 00 8A [23:31:30]Write i2c OK [23:31:30]MH_I2C_Read... [23:31:30]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:31:30]Read from MH i2c: E2 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 0E 00 [23:31:30]MH_I2C_Read... [23:31:30]Read from MH i2c: E2 0E 00 AB 62 00 09 00 01 86 76 21 67 00 00 00 00 90 00 1A [23:31:30]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:31:30]wFMCommunicate OK [23:31:30]SAM_PROTO_GetShiftState done [23:31:30]FM_GetShiftState done [23:31:30]req_shift_opened done [23:31:30]requested_item shift.open_date is exist - process it [23:31:30]req_shift_open_date [23:31:30]req_shift_open_date done [23:31:30]produce_requested_data done [23:31:30]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139520,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:31:30]process_action_free close_receipt [23:31:30]json_value_free [23:31:30]json_value_free done [23:31:30]process_json_proto returns [23:31:30]Send response to host [23:31:30]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139520,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:31:30]free response buf [23:31:30]execute_script done [23:31:30]execute_script returns [23:31:30]free content buf [23:31:30]Sock 9.Close socket [23:31:30]Sock 9.Thread stoped [23:31:34]OFD Sender: No OFD packet to send [23:31:39]OFD Sender: No OFD packet to send [23:31:44]OFD Sender: No OFD packet to send [23:31:49]OFD Sender: No OFD packet to send [23:31:54]OFD Sender: No OFD packet to send [23:31:59]OFD Sender: No OFD packet to send [23:32:04]OFD Sender: No OFD packet to send [23:32:09]OFD Sender: No OFD packet to send [23:32:14]OFD Sender: No OFD packet to send [23:32:19]OFD Sender: No OFD packet to send [23:32:24]OFD Sender: No OFD packet to send [23:32:29]OFD Sender: No OFD packet to send [23:32:34]OFD Sender: No OFD packet to send [23:32:39]OFD Sender: No OFD packet to send [23:32:44]OFD Sender: No OFD packet to send [23:32:49]OFD Sender: No OFD packet to send [23:32:54]OFD Sender: No OFD packet to send [23:32:59]OFD Sender: No OFD packet to send [23:33:04]OFD Sender: No OFD packet to send [23:33:09]OFD Sender: No OFD packet to send [23:33:14]OFD Sender: No OFD packet to send [23:33:19]OFD Sender: No OFD packet to send [23:33:24]OFD Sender: No OFD packet to send [23:33:29]OFD Sender: No OFD packet to send [23:33:34]OFD Sender: No OFD packet to send [23:33:39]OFD Sender: No OFD packet to send [23:33:44]OFD Sender: No OFD packet to send [23:33:49]OFD Sender: No OFD packet to send [23:33:54]OFD Sender: No OFD packet to send [23:33:59]OFD Sender: No OFD packet to send [23:34:04]OFD Sender: No OFD packet to send [23:34:09]OFD Sender: No OFD packet to send [23:34:14]OFD Sender: No OFD packet to send [23:34:19]OFD Sender: No OFD packet to send [23:34:24]OFD Sender: No OFD packet to send [23:34:29]OFD Sender: No OFD packet to send [23:34:34]OFD Sender: No OFD packet to send [23:34:39]OFD Sender: No OFD packet to send [23:34:44]OFD Sender: No OFD packet to send [23:34:49]OFD Sender: No OFD packet to send [23:34:54]OFD Sender: No OFD packet to send [23:34:59]OFD Sender: No OFD packet to send [23:35:04]OFD Sender: No OFD packet to send [23:35:09]OFD Sender: No OFD packet to send [23:35:14]OFD Sender: No OFD packet to send [23:35:19]OFD Sender: No OFD packet to send [23:35:24]OFD Sender: No OFD packet to send [23:35:29]OFD Sender: No OFD packet to send [23:35:34]OFD Sender: No OFD packet to send [23:35:39]OFD Sender: No OFD packet to send [23:35:44]OFD Sender: No OFD packet to send [23:35:49]OFD Sender: No OFD packet to send [23:35:54]OFD Sender: No OFD packet to send [23:35:59]OFD Sender: No OFD packet to send [23:36:03]accept exits with 8 [23:36:03]New connection [23:36:03]New thread 3067284836 created [23:36:03]Thread 3067141476 joined [23:36:03]Waiting for new connection... [23:36:03] Sock 8.Parse request [23:36:03]Sock 8.Check first char [23:36:03]Sock 8.First char is OK [23:36:03]request: POST /json_proto HTTP/1.0 [23:36:03]Method: POST [23:36:03]URL: /json_proto [23:36:03]Method is POST - this is cgi request [23:36:03]url: /json_proto [23:36:03]query_string will be loaded in cgi processing [23:36:03]execute_cgi json_proto POST (null) [23:36:03]execute_cgi path=json_proto method=POST [23:36:03]POST find Content-Length [23:36:03]Host: 172.17.50.196:8080 [23:36:03]Content-Length: 890 [23:36:03]Content-Type: application/json [23:36:03] [23:36:03]POST finish read [23:36:03]Found Content-Length = 890 [23:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335400", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:03]execute_script... [23:36: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 : (3)335400", "tax_sys" : 0, "items" : [ { "code": "4603290004848", "name": "\u041F\u0435\u0447.\u0437\u0430\u0442.TONDI \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u0441\u043B.\u0432\u043A", "price" : 86.00, "quantity" : 1.000, "sum" : 86.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870112003925", "name": "\u041A\u043E\u043D\u0434 ULKER-Albeni 40gr (6*24)", "price" : 44.00, "quantity" : 1.000, "sum" : 44.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 130.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:36:03]POST & json_proto [23:36:03]process_json_proto [23:36:03]json parsed OK: [23:36:03]protocol is kg_v1.0 [23:36:03]action value=close_receipt [23:36:03]process_action close_receipt [23:36:03]cmd_close_receipt [23:36:03]MH_GetDate [23:36:03]Write to MH i2c: F0 00 00 AC 62 FD [23:36:03]Write i2c OK [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: F0 [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: F0 09 00 [23:36:03]MH_I2C_Read... [23:36:03]Read from MH i2c: F0 09 00 AC 62 00 EB C2 22 67 72 0D 1C 67 3E [23:36:03]GetLastDocTimeStamp 1730331094 [23:36:03]current date 1730331371 [23:36:03]FM_GetShiftState [23:36:03]SAM_PROTO_GetShiftState [23:36:03]wFMCommunicate request_size=4 [23:36:03]MH_SAM_APDU [23:36:03]CAPDU: 80 13 01 00 [23:36:03]Write to MH i2c: E2 08 00 AD 62 80 13 01 00 00 00 00 00 8C [23:36:03]Write i2c OK [23:36:03]MH_I2C_Read... [23:36:04]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:04]Read from MH i2c: E2 [23:36:04]MH_I2C_Read... [23:36:04]Read from MH i2c: E2 0E 00 [23:36:04]MH_I2C_Read... [23:36:04]Read from MH i2c: E2 0E 00 AD 62 00 09 00 01 86 76 21 67 00 00 00 00 90 00 1C [23:36:04]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:36:04]wFMCommunicate OK [23:36:04]SAM_PROTO_GetShiftState done [23:36:04]FM_GetShiftState done [23:36:04]opened in 1730246278 [23:36:04]opened+sec_in_day 1730332678 [23:36:04]quantity*price = 8600 [23:36:04]sum+1 = 8601 [23:36:04]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870112003925 Конд ULKER-Albeni 40gr (6*24) 1.000 * 44.00 = 44.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 130.00 НСП 1% : 1.15 НДС 12% : 13.80 Наличными: 130.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 205 30.10.2024 23:36 Смена: 556 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139521 ФПД: 162387726000170 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T233611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139521&fm=162387726000170&tin=02508201610067®Number=0000000000091631&sum=13000 0 [23:36:05]StoreToDocumentArchive [23:36:05]shift 556 fd 139521 [23:36:05]save to /storage/0556/doc_00139521 [23:36:05]save last doc name /storage/0556/doc_00139521 to /storage/kkm_last_doc_name [23:36:05]save OK [23:36:05]Clear old archive folders... [23:36:05]ProcessDocumentItem done err = 0, tmpTLVsize=392 [23:36:05]tlvbuf is B6FA6190 [23:36:05]SAM_PROTO_ClearQueue [23:36:05]wFMCommunicate request_size=4 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 09 00 00 [23:36:05]Write to MH i2c: E2 08 00 BA 62 80 09 00 00 00 00 00 00 8E [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 03 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 03 00 BA 62 00 90 00 90 [23:36:05]RAPDU: 90 00 [23:36:05]wFMCommunicate OK [23:36:05]SAM_PROTO_ClearQueue done [23:36:05]KKMCreateOFDPacket [23:36:05]OFDProtocolAddRootSTLVToBuf [23:36:05]FM_MakeSignedData [23:36:05]FM_MakeSignedData [23:36:05]SAM_PROTO_SignData [23:36:05]wFMCommunicate request_size=4 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 0D 01 02 [23:36:05]Write to MH i2c: E2 08 00 BB 62 80 0D 01 02 00 00 00 00 96 [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 03 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 03 00 BB 62 00 90 00 91 [23:36:05]RAPDU: 90 00 [23:36:05]wFMCommunicate OK [23:36:05]wFMCommunicate request_size=255 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 0D 02 02 FA 03 00 88 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 [23:36:05]Write to MH i2c: E2 02 01 BC 62 80 0D 02 02 FA 00 03 00 88 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 00 00 60 [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 03 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 03 00 BC 62 00 90 00 92 [23:36:05]RAPDU: 90 00 [23:36:05]wFMCommunicate OK [23:36:05]wFMCommunicate request_size=151 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 0D 02 02 92 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 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 EB C2 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 21 02 00 35 04 06 00 93 B0 D6 B9 60 2A [23:36:05]Write to MH i2c: E2 9A 00 BD 62 80 0D 02 02 92 00 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 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 EB C2 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 21 02 00 35 04 06 00 93 B0 D6 B9 60 2A 00 00 79 [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 03 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 03 00 BD 62 00 90 00 93 [23:36:05]RAPDU: 90 00 [23:36:05]wFMCommunicate OK [23:36:05]wFMCommunicate request_size=4 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 0D 03 02 [23:36:05]Write to MH i2c: E2 08 00 BE 62 80 0D 03 02 00 00 00 00 9B [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 0B 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 0B 00 BE 62 00 D1 83 38 93 6B 43 6F 00 90 00 D8 [23:36:05]RAPDU: D1 83 38 93 6B 43 6F 00 90 00 [23:36:05]wFMCommunicate OK [23:36:05]SAM_PROTO_SignData done [23:36:05]FM_MakeSignedData done [23:36:05]CreateOFDProtocolMessage [23:36:05]wFMCommunicate request_size=4 [23:36:05]MH_SAM_APDU [23:36:05]CAPDU: 80 11 00 00 [23:36:05]Write to MH i2c: E2 08 00 BF 62 80 11 00 00 00 00 00 00 9B [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:05]Read from MH i2c: E2 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 17 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: E2 17 00 BF 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F6 [23:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:36:05]wFMCommunicate OK [23:36:05]CreateOFDProtocolMessage done [23:36:05]OFDSenderStorePacket 139521 [23:36:05]StoreOFDPacket docnum=139521 [23:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9C 01 00 00 90 2A 94 01 0D 52 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 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 EB C2 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 21 02 00 35 04 06 00 93 B0 D6 B9 60 2A D1 83 38 93 6B 43 6F 00 [23:36:05]CheckFolder [23:36:05]dirname=/storage/ofd_packets [23:36:05]CheckFolder done [23:36:05]ProducePacketName [23:36:05]name=ofd_packets/00139521 [23:36:05]NVStorageSaveData ofd_packets/00139521 [23:36:05]File name is /storage/ofd_packets/00139521 [23:36:05]Write 442 bytes [23:36:05]NVStorageSaveData done [23:36:05]OFDSenderStorePacket done [23:36:05]KKMCreateOFDPacket done [23:36:05]NVStorageSaveData kkm_last_timestamp [23:36:05]File name is /storage/kkm_last_timestamp [23:36:05]Write 4 bytes [23:36:05]NVStorageSaveData done [23:36:05]ExternCall_PrintAddStr [23:36:05]wPrintStart [23:36:05]Write to MH i2c: 01 00 00 C0 62 22 [23:36:05]Write i2c OK [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: 01 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: 01 07 00 [23:36:05]MH_I2C_Read... [23:36:05]Read from MH i2c: 01 07 00 C0 62 00 00 00 00 00 FF 0F 37 [23:36:05]RasterBufferAndPrint [23:36:05]line Счет N : (3)335400 [23:36:05]line ИНН: 02508201610067 [23:36:05]line Контрольно-Кассовый Чек [23:36:05]line ПРОДАЖА [23:36:05]line Товар: 4603290004848 [23:36:06]line Печ.зат.TONDI Сэнд.шок-сл.вк [23:36:06]line 1.000 * 86.00 [23:36:06]line = 86.00 [23:36:06]line НДС 12% НСП 1% [23:36:06]line > о реализуемом товаре [23:36:06]line Товар: 4870112003925 [23:36:06]line Конд ULKER-Albeni 40gr (6*24) [23:36:06]line 1.000 * 44.00 [23:36:06]line = 44.00 [23:36:06]line НДС 12% НСП 1% [23:36:06]line > о реализуемом товаре [23:36:06]line ИТОГО: 130.00 [23:36:06]line НСП 1% : 1.15 [23:36:06]line НДС 12% : 13.80 [23:36:06]line Наличными: 130.00 [23:36:06]line Безнал.: 0.00 [23:36:06]line Место: АЗС № 101 "Партнер Нефть" [23:36:06]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:36:06]line СНО: Общий режим [23:36:06]line Чек 205 30.10.2024 23:36 [23:36:06]line Смена: 556 ФФД: 1.0 [23:36:06]line ЗНМ: 0300000081 [23:36:06]line РНМ: 0000000000091631 [23:36:06]line Версия ККМ: 001 [23:36:06]line ФМ: 0000000000874669 [23:36:06]line ФД: 139521 [23:36:06]line ФПД: 162387726000170 [23:36:06]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241030T233611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139521&fm=162387726000170&tin=02508201610067®Number=0000000000091631&sum=13000 [23:36:06]OFD Sender: Processing packet 139521 [packets to send 34, broken 33] [23:36:06]ProducePacketName [23:36:06]name=ofd_packets/00139521 [23:36:06]OFD Sender: To server: pG, [23:36:06]CommunicateWithHost lk.salyk.kg:30040 [23:36:06]ConnectInit lk.salyk.kg [23:36:06]line 0 [23:36:06]written 0, free lines is 4095 [23:36:06]Connected sock=10 [23:36:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9C 01 00 00 90 2A 94 01 0D 52 5A 03 01 00 03 00 88 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 34 38 06 04 2D 00 D0 9F D0 B5 D1 87 2E D0 B7 D0 B0 D1 82 2E 54 4F 4E 44 49 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D1 81 D0 BB 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 98 21 00 00 00 00 13 04 06 00 98 21 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 65 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 33 39 32 35 06 04 21 00 D0 9A D0 BE D0 BD D0 B4 20 55 4C 4B 45 52 2D 41 6C 62 65 6E 69 20 34 30 67 72 20 28 36 2A 32 34 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 30 11 00 00 00 00 13 04 06 00 30 11 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 C8 32 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 73 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 64 05 00 00 00 00 07 04 06 00 C8 32 00 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 EB C2 22 67 0E 04 04 00 2C 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 21 02 00 35 04 06 00 93 B0 D6 B9 60 2A D1 83 38 93 6B 43 6F 00 [23:36:06]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 06 4F 47 00 F5 B5 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 01 21 02 00 F4 03 04 00 9A 6E 22 67 B6 04 01 00 00 E4 9F 34 B3 17 D4 15 04 [23:36:06]CommunicateWithHost err = 0 [23:36:06]CheckOFDResponse [23:36:06]1017 (14) - 77093643461234 [23:36:06]1041 (16) - 0000000000874669 [23:36:06]1040 (4) - 139521 [23:36:06]1012 (4) - 30.10.2024 17:36 [23:36:06]1206 (1) - 0 [23:36:06]OFD Sender: Remove packet 139521 [23:36:06]ProducePacketName [23:36:06]name=ofd_packets/00139521 [23:36:06]NVStorageDeleteData [23:36:06]Write to MH i2c: 01 00 00 EE 62 50 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: 01 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: 01 07 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: 01 07 00 EE 62 00 00 00 00 00 CB 0C 2E [23:36:06]RasterBufferAndPrint [23:36:06]line [23:36:06]line [23:36:06]line [23:36:06]line [23:36:06]line [23:36:06]written 0, free lines is 3284 [23:36:06]MH_Cut [23:36:06]Write to MH i2c: D1 01 00 F5 62 01 29 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: D1 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: D1 01 00 [23:36:06]MH_I2C_Read... [23:36:06]Read from MH i2c: D1 01 00 F5 62 00 28 [23:36:06]Write to MH i2c: 01 00 00 F6 62 58 [23:36:06]Write i2c OK [23:36:06]MH_I2C_Read... [23:36:06]OFD Sender: No OFD packet to send [23:36:07]*** Cut start [23:36:07]*** Partial cut [23:36:07]*** CUTSNS_PIN = 1 [23:36:07]*** CUTSNS_PIN = 0 [23:36:07]*** Brake cut motor [23:36:07]Read from MH i2c: 01 [23:36:07]MH_I2C_Read... [23:36:07]*** Stop cut motor [23:36:07]*** Cut end [23:36:07]Read from MH i2c: 01 07 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: 01 07 00 F6 62 00 00 00 00 00 FF 0F 6D [23:36:07]process_action close_receipt done [23:36:07]requested_data is exist [23:36:07]produce_requested_data [23:36:07]requested_item fm.sn is exist - process it [23:36:07]wFMCommunicate request_size=4 [23:36:07]MH_SAM_APDU [23:36:07]CAPDU: 80 11 00 00 [23:36:07]Write to MH i2c: E2 08 00 F7 62 80 11 00 00 00 00 00 00 D3 [23:36:07]Write i2c OK [23:36:07]MH_I2C_Read... [23:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:36:07]Read from MH i2c: E2 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 17 00 [23:36:07]MH_I2C_Read... [23:36:07]Read from MH i2c: E2 17 00 F7 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2E [23:36:08]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:36:08]wFMCommunicate OK [23:36:08]requested_item fd.num is exist - process it [23:36:08]SAM_PROTO_GetFieldsCounters [23:36:08]wFMCommunicate request_size=4 [23:36:08]MH_SAM_APDU [23:36:08]CAPDU: 80 13 00 00 [23:36:08]Write to MH i2c: E2 08 00 F8 62 80 13 00 00 00 00 00 00 D6 [23:36:08]Write i2c OK [23:36:08]MH_I2C_Read... [23:36:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:36:08]Read from MH i2c: E2 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 62 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 62 00 F8 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 B3 [23:36:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 [23:36:08]wFMCommunicate OK [23:36:08]SAM_PROTO_GetFieldsCounters done [23:36:08]requested_item shift.num is exist - process it [23:36:08]requested_item shift.opened is exist - process it [23:36:08]req_shift_opened [23:36:08]FM_GetShiftState [23:36:08]SAM_PROTO_GetShiftState [23:36:08]wFMCommunicate request_size=4 [23:36:08]MH_SAM_APDU [23:36:08]CAPDU: 80 13 01 00 [23:36:08]Write to MH i2c: E2 08 00 F9 62 80 13 01 00 00 00 00 00 D8 [23:36:08]Write i2c OK [23:36:08]MH_I2C_Read... [23:36:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:36:08]Read from MH i2c: E2 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 0E 00 [23:36:08]MH_I2C_Read... [23:36:08]Read from MH i2c: E2 0E 00 F9 62 00 09 00 01 86 76 21 67 00 00 00 00 90 00 68 [23:36:08]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:36:08]wFMCommunicate OK [23:36:08]SAM_PROTO_GetShiftState done [23:36:08]FM_GetShiftState done [23:36:08]req_shift_opened done [23:36:08]requested_item shift.open_date is exist - process it [23:36:08]req_shift_open_date [23:36:08]req_shift_open_date done [23:36:08]produce_requested_data done [23:36:08]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139521,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:36:08]process_action_free close_receipt [23:36:08]json_value_free [23:36:08]json_value_free done [23:36:08]process_json_proto returns [23:36:08]Send response to host [23:36:08]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139521,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:36:08]free response buf [23:36:08]execute_script done [23:36:08]execute_script returns [23:36:08]free content buf [23:36:08]Sock 8.Close socket [23:36:08]Sock 8.Thread stoped [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:02]OFD Sender: No OFD packet to send [23:38:07]OFD Sender: No OFD packet to send [23:38:12]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:02]OFD Sender: No OFD packet to send [23:42:07]OFD Sender: No OFD packet to send [23:42:12]OFD Sender: No OFD packet to send [23:42:17]OFD Sender: No OFD packet to send [23:42:22]OFD Sender: No OFD packet to send [23:42:27]OFD Sender: No OFD packet to send [23:42:32]OFD Sender: No OFD packet to send [23:42:37]OFD Sender: No OFD packet to send [23:42:42]OFD Sender: No OFD packet to send [23:42:47]OFD Sender: No OFD packet to send [23:42:52]OFD Sender: No OFD packet to send [23:42:57]OFD Sender: No OFD packet to send [23:43:02]OFD Sender: No OFD packet to send [23:43:07]OFD Sender: No OFD packet to send [23:43:12]OFD Sender: No OFD packet to send [23:43:17]OFD Sender: No OFD packet to send [23:43:22]OFD Sender: No OFD packet to send [23:43:27]OFD Sender: No OFD packet to send [23:43:32]OFD Sender: No OFD packet to send [23:43:37]OFD Sender: No OFD packet to send [23:43:42]OFD Sender: No OFD packet to send [23:43:47]OFD Sender: No OFD packet to send [23:43:52]OFD Sender: No OFD packet to send [23:43:57]OFD Sender: No OFD packet to send [23:44:02]OFD Sender: No OFD packet to send [23:44:07]OFD Sender: No OFD packet to send [23:44:12]OFD Sender: No OFD packet to send [23:44:17]OFD Sender: No OFD packet to send [23:44:22]OFD Sender: No OFD packet to send [23:44:27]OFD Sender: No OFD packet to send [23:44:32]OFD Sender: No OFD packet to send [23:44:37]OFD Sender: No OFD packet to send [23:44:42]OFD Sender: No OFD packet to send [23:44:47]OFD Sender: No OFD packet to send [23:44:52]OFD Sender: No OFD packet to send [23:44:57]OFD Sender: No OFD packet to send [23:45:02]OFD Sender: No OFD packet to send [23:45:07]OFD Sender: No OFD packet to send [23:45:12]OFD Sender: No OFD packet to send [23:45:17]OFD Sender: No OFD packet to send [23:45:22]OFD Sender: No OFD packet to send [23:45:27]OFD Sender: No OFD packet to send [23:45:32]OFD Sender: No OFD packet to send [23:45:37]OFD Sender: No OFD packet to send [23:45:42]OFD Sender: No OFD packet to send [23:45:47]OFD Sender: No OFD packet to send [23:45:52]OFD Sender: No OFD packet to send [23:45:57]OFD Sender: No OFD packet to send [23:46:02]OFD Sender: No OFD packet to send [23:46:07]OFD Sender: No OFD packet to send [23:46:12]OFD Sender: No OFD packet to send [23:46:17]OFD Sender: No OFD packet to send [23:46:22]OFD Sender: No OFD packet to send [23:46:27]OFD Sender: No OFD packet to send [23:46:32]OFD Sender: No OFD packet to send [23:46:37]OFD Sender: No OFD packet to send [23:46:42]OFD Sender: No OFD packet to send [23:46:47]OFD Sender: No OFD packet to send [23:46:52]OFD Sender: No OFD packet to send [23:46:57]OFD Sender: No OFD packet to send [23:47:02]OFD Sender: No OFD packet to send [23:47:07]OFD Sender: No OFD packet to send [23:47:12]OFD Sender: No OFD packet to send [23:47:17]OFD Sender: No OFD packet to send [23:47:22]OFD Sender: No OFD packet to send [23:47:27]OFD Sender: No OFD packet to send [23:47:32]OFD Sender: No OFD packet to send [23:47:37]OFD Sender: No OFD packet to send [23:47:42]OFD Sender: No OFD packet to send [23:47:47]OFD Sender: No OFD packet to send [23:47:52]OFD Sender: No OFD packet to send [23:47:57]OFD Sender: No OFD packet to send [23:48:02]OFD Sender: No OFD packet to send [23:48:07]OFD Sender: No OFD packet to send [23:48:12]OFD Sender: No OFD packet to send [23:48:17]OFD Sender: No OFD packet to send [23:48:22]OFD Sender: No OFD packet to send [23:48:27]OFD Sender: No OFD packet to send [23:48:32]OFD Sender: No OFD packet to send [23:48:37]OFD Sender: No OFD packet to send [23:48:42]OFD Sender: No OFD packet to send [23:48:47]OFD Sender: No OFD packet to send [23:48:52]OFD Sender: No OFD packet to send [23:48:57]OFD Sender: No OFD packet to send [23:49:02]OFD Sender: No OFD packet to send [23:49:07]OFD Sender: No OFD packet to send [23:49:12]OFD Sender: No OFD packet to send [23:49:17]OFD Sender: No OFD packet to send [23:49:22]OFD Sender: No OFD packet to send [23:49:27]OFD Sender: No OFD packet to send [23:49:32]OFD Sender: No OFD packet to send [23:49:37]OFD Sender: No OFD packet to send [23:49:42]OFD Sender: No OFD packet to send [23:49:47]OFD Sender: No OFD packet to send [23:49:52]OFD Sender: No OFD packet to send [23:49:57]OFD Sender: No OFD packet to send [23:50:02]OFD Sender: No OFD packet to send [23:50:07]OFD Sender: No OFD packet to send [23:50:12]OFD Sender: No OFD packet to send [23:50:17]OFD Sender: No OFD packet to send [23:50:22]OFD Sender: No OFD packet to send [23:50:27]OFD Sender: No OFD packet to send [23:50:32]OFD Sender: No OFD packet to send [23:50:37]OFD Sender: No OFD packet to send [23:50:42]OFD Sender: No OFD packet to send [23:50:47]OFD Sender: No OFD packet to send [23:50:52]OFD Sender: No OFD packet to send [23:50:57]OFD Sender: No OFD packet to send [23:51:02]OFD Sender: No OFD packet to send [23:51:07]OFD Sender: No OFD packet to send [23:51:12]OFD Sender: No OFD packet to send [23:51:17]OFD Sender: No OFD packet to send [23:51:22]OFD Sender: No OFD packet to send [23:51:27]OFD Sender: No OFD packet to send [23:51:32]OFD Sender: No OFD packet to send [23:51:37]OFD Sender: No OFD packet to send [23:51:42]OFD Sender: No OFD packet to send [23:51:47]OFD Sender: No OFD packet to send [23:51:52]OFD Sender: No OFD packet to send [23:51:57]OFD Sender: No OFD packet to send [23:52:02]OFD Sender: No OFD packet to send [23:52:07]OFD Sender: No OFD packet to send [23:52:12]OFD Sender: No OFD packet to send [23:52:17]OFD Sender: No OFD packet to send [23:52:22]OFD Sender: No OFD packet to send [23:52:27]OFD Sender: No OFD packet to send [23:52:32]OFD Sender: No OFD packet to send [23:52:37]OFD Sender: No OFD packet to send [23:52:42]OFD Sender: No OFD packet to send [23:52:47]OFD Sender: No OFD packet to send [23:52:52]OFD Sender: No OFD packet to send [23:52:57]OFD Sender: No OFD packet to send [23:53:02]OFD Sender: No OFD packet to send [23:53:07]OFD Sender: No OFD packet to send [23:53:12]OFD Sender: No OFD packet to send [23:53:17]OFD Sender: No OFD packet to send [23:53:22]OFD Sender: No OFD packet to send [23:53:27]OFD Sender: No OFD packet to send [23:53:32]OFD Sender: No OFD packet to send [23:53:37]OFD Sender: No OFD packet to send [23:53:42]OFD Sender: No OFD packet to send [23:53:47]OFD Sender: No OFD packet to send [23:53:52]OFD Sender: No OFD packet to send [23:53:53]accept exits with 9 [23:53:53]New connection [23:53:53]New thread 3067141476 created [23:53:53]Thread 3067284836 joined [23:53:53]Waiting for new connection... [23:53:53] Sock 9.Parse request [23:53:53]Sock 9.Check first char [23:53:53]Sock 9.First char is OK [23:53:53]request: POST /json_proto HTTP/1.0 [23:53:53]Method: POST [23:53:53]URL: /json_proto [23:53:53]Method is POST - this is cgi request [23:53:53]url: /json_proto [23:53:53]query_string will be loaded in cgi processing [23:53:53]execute_cgi json_proto POST (null) [23:53:53]execute_cgi path=json_proto method=POST [23:53:53]POST find Content-Length [23:53:53]Host: 172.17.50.196:8080 [23:53:53]Content-Length: 215 [23:53:53]Content-Type: application/json [23:53:53] [23:53:53]POST finish read [23:53:53]Found Content-Length = 215 [23:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:53]execute_script... [23:53:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:53:53]POST & json_proto [23:53:53]process_json_proto [23:53:53]json parsed OK: [23:53:53]protocol is kg_v1.0 [23:53:53]action value=get_value [23:53:53]process_action get_value [23:53:53]cmd_get_value [23:53:53]process_action get_value done [23:53:53]requested_data is exist [23:53:53]produce_requested_data [23:53:53]requested_item kkm.sn is exist - process it [23:53:53]requested_item kkm.ver is exist - process it [23:53:53]requested_item fm.sn is exist - process it [23:53:53]wFMCommunicate request_size=4 [23:53:53]MH_SAM_APDU [23:53:53]CAPDU: 80 11 00 00 [23:53:53]Write to MH i2c: E2 08 00 FA 62 80 11 00 00 00 00 00 00 D6 [23:53:53]Write i2c OK [23:53:53]MH_I2C_Read... [23:53:53]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:53:53]Read from MH i2c: E2 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 17 00 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 17 00 FA 62 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 31 [23:53:53]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:53:53]wFMCommunicate OK [23:53:53]requested_item fd.num is exist - process it [23:53:53]SAM_PROTO_GetFieldsCounters [23:53:53]wFMCommunicate request_size=4 [23:53:53]MH_SAM_APDU [23:53:53]CAPDU: 80 13 00 00 [23:53:53]Write to MH i2c: E2 08 00 FB 62 80 13 00 00 00 00 00 00 D9 [23:53:53]Write i2c OK [23:53:53]MH_I2C_Read... [23:53:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:53:53]Read from MH i2c: E2 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 62 00 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 62 00 FB 62 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 B6 [23:53:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 [23:53:53]wFMCommunicate OK [23:53:53]SAM_PROTO_GetFieldsCounters done [23:53:53]requested_item shift.num is exist - process it [23:53:53]requested_item shift.opened is exist - process it [23:53:53]req_shift_opened [23:53:53]FM_GetShiftState [23:53:53]SAM_PROTO_GetShiftState [23:53:53]wFMCommunicate request_size=4 [23:53:53]MH_SAM_APDU [23:53:53]CAPDU: 80 13 01 00 [23:53:53]Write to MH i2c: E2 08 00 FC 62 80 13 01 00 00 00 00 00 DB [23:53:53]Write i2c OK [23:53:53]MH_I2C_Read... [23:53:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:53:53]Read from MH i2c: E2 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 0E 00 [23:53:53]MH_I2C_Read... [23:53:53]Read from MH i2c: E2 0E 00 FC 62 00 09 00 01 86 76 21 67 00 00 00 00 90 00 6B [23:53:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:53:53]wFMCommunicate OK [23:53:53]SAM_PROTO_GetShiftState done [23:53:53]FM_GetShiftState done [23:53:53]req_shift_opened done [23:53:53]requested_item shift.open_date is exist - process it [23:53:53]req_shift_open_date [23:53:53]req_shift_open_date done [23:53:53]produce_requested_data done [23:53:53]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139521,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:53:53]process_action_free get_value [23:53:53]json_value_free [23:53:53]json_value_free done [23:53:53]process_json_proto returns [23:53:53]Send response to host [23:53:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139521,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:53:53]free response buf [23:53:53]execute_script done [23:53:53]execute_script returns [23:53:53]free content buf [23:53:53]Sock 9.Close socket [23:53:53]Sock 9.Thread stoped [23:53:53]accept exits with 8 [23:53:53]New connection [23:53:53]New thread 3067284836 created [23:53:53]Thread 3067141476 joined [23:53:53]Waiting for new connection... [23:53:53] Sock 8.Parse request [23:53:53]Sock 8.Check first char [23:53:53]Sock 8.First char is OK [23:53:53]request: POST /json_proto HTTP/1.0 [23:53:53]Method: POST [23:53:53]URL: /json_proto [23:53:53]Method is POST - this is cgi request [23:53:53]url: /json_proto [23:53:53]query_string will be loaded in cgi processing [23:53:53]execute_cgi json_proto POST (null) [23:53:53]execute_cgi path=json_proto method=POST [23:53:53]POST find Content-Length [23:53:53]Host: 172.17.50.196:8080 [23:53:53]Content-Length: 331 [23:53:53]Content-Type: application/json [23:53:53] [23:53:53]POST finish read [23:53:53]Found Content-Length = 331 [23:53:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:53]execute_script... [23:53:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:53:53]POST & json_proto [23:53:53]process_json_proto [23:53:53]json parsed OK: [23:53:53]protocol is kg_v1.0 [23:53:53]action value=get_value [23:53:53]process_action get_value [23:53:53]cmd_get_value [23:53:53]process_action get_value done [23:53:53]requested_data is exist [23:53:53]produce_requested_data [23:53:53]requested_item fm.sale.total is exist - process it [23:53:53]SAM_PROTO_GetFMData [23:53:53]wFMCommunicate request_size=4 [23:53:53]MH_SAM_APDU [23:53:53]CAPDU: 80 13 03 00 [23:53:53]Write to MH i2c: E2 08 00 FD 62 80 13 03 00 00 00 00 00 DE [23:53:53]Write i2c OK [23:53:53]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 FD 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 FD 00 FD 62 00 C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 1B [23:53:54]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:53:54]wFMCommunicate OK [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 17 00 00 [23:53:54]Write to MH i2c: E2 08 00 FE 62 80 17 00 00 00 00 00 00 E0 [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 FD 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 FD 00 FE 62 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 F7 [23:53:54]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:54]wFMCommunicate OK [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 17 00 00 [23:53:54]Write to MH i2c: E2 08 00 FF 62 80 17 00 00 00 00 00 00 E1 [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 FD 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 FD 00 FF 62 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B9 [23:53:54]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:54]wFMCommunicate OK [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 17 00 00 [23:53:54]Write to MH i2c: E2 08 00 00 63 80 17 00 00 00 00 00 00 E3 [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:54]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:54]Read from MH i2c: E2 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 FD 00 [23:53:54]MH_I2C_Read... [23:53:54]Read from MH i2c: E2 FD 00 00 63 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 5E [23:53:54]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:54]wFMCommunicate OK [23:53:54]wFMCommunicate request_size=4 [23:53:54]MH_SAM_APDU [23:53:54]CAPDU: 80 17 00 00 [23:53:54]Write to MH i2c: E2 08 00 01 63 80 17 00 00 00 00 00 00 E4 [23:53:54]Write i2c OK [23:53:54]MH_I2C_Read... [23:53:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:53:55]Read from MH i2c: E2 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 E4 00 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 E4 00 01 63 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 C4 [23:53:55]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:53:55]wFMCommunicate OK [23:53:55]SAM_PROTO_GetFMData done [23:53:55]requested_item fm.sale_refund.total is exist - process it [23:53:55]requested_item fm.buy.total is exist - process it [23:53:55]requested_item shift.sale.total is exist - process it [23:53:55]SAM_PROTO_GetShiftData [23:53:55]wFMCommunicate request_size=4 [23:53:55]MH_SAM_APDU [23:53:55]CAPDU: 80 13 02 00 [23:53:55]Write to MH i2c: E2 08 00 02 63 80 13 02 00 00 00 00 00 E3 [23:53:55]Write i2c OK [23:53:55]MH_I2C_Read... [23:53:55]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:55]Read from MH i2c: E2 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 02 63 00 AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 C6 [23:53:55]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:53:55]wFMCommunicate OK [23:53:55]wFMCommunicate request_size=4 [23:53:55]MH_SAM_APDU [23:53:55]CAPDU: 80 17 00 00 [23:53:55]Write to MH i2c: E2 08 00 03 63 80 17 00 00 00 00 00 00 E6 [23:53:55]Write i2c OK [23:53:55]MH_I2C_Read... [23:53:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:55]Read from MH i2c: E2 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 [23:53:55]MH_I2C_Read... [23:53:55]Read from MH i2c: E2 FD 00 03 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 FF [23:53:55]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:53:55]wFMCommunicate OK [23:53:55]wFMCommunicate request_size=4 [23:53:55]MH_SAM_APDU [23:53:55]CAPDU: 80 17 00 00 [23:53:55]Write to MH i2c: E2 08 00 04 63 80 17 00 00 00 00 00 00 E7 [23:53:55]Write i2c OK [23:53:55]MH_I2C_Read... [23:53:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:56]Read from MH i2c: E2 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 FD 00 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 FD 00 04 63 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 9B [23:53:56]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:53:56]wFMCommunicate OK [23:53:56]wFMCommunicate request_size=4 [23:53:56]MH_SAM_APDU [23:53:56]CAPDU: 80 17 00 00 [23:53:56]Write to MH i2c: E2 08 00 05 63 80 17 00 00 00 00 00 00 E8 [23:53:56]Write i2c OK [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 [23:53:56]MH_I2C_Read... [23:53:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:56]Read from MH i2c: E2 FD 00 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 FD 00 05 63 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 66 [23:53:56]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:53:56]wFMCommunicate OK [23:53:56]wFMCommunicate request_size=4 [23:53:56]MH_SAM_APDU [23:53:56]CAPDU: 80 17 00 00 [23:53:56]Write to MH i2c: E2 08 00 06 63 80 17 00 00 00 00 00 00 E9 [23:53:56]Write i2c OK [23:53:56]MH_I2C_Read... [23:53:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:53:56]Read from MH i2c: E2 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 CC 00 [23:53:56]MH_I2C_Read... [23:53:56]Read from MH i2c: E2 CC 00 06 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CA [23:53:56]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:53:56]wFMCommunicate OK [23:53:56]SAM_PROTO_GetShiftData done [23:53:56]requested_item shift.sale.total_cash is exist - process it [23:53:56]requested_item shift.sale_refund.total is exist - process it [23:53:56]requested_item shift.sale_refund.total_cash is exist - process it [23:53:56]requested_item shift.buy.total is exist - process it [23:53:56]requested_item shift.buy.total_cash is exist - process it [23:53:56]produce_requested_data done [23:53:56]produce_requested_data return {"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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} [23:53:56]process_action_free get_value [23:53:56]json_value_free [23:53:56]json_value_free done [23:53:56]process_json_proto returns [23:53:56]Send response to host [23:53:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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}}} [23:53:56]free response buf [23:53:56]execute_script done [23:53:56]execute_script returns [23:53:56]free content buf [23:53:56]Sock 8.Close socket [23:53:56]Sock 8.Thread stoped [23:53:56]accept exits with 9 [23:53:56]New connection [23:53:56]New thread 3067141476 created [23:53:56]Thread 3067284836 joined [23:53:56]Waiting for new connection... [23:53:56] Sock 9.Parse request [23:53:56]Sock 9.Check first char [23:53:56]Sock 9.First char is OK [23:53:56]request: POST /json_proto HTTP/1.0 [23:53:56]Method: POST [23:53:56]URL: /json_proto [23:53:56]Method is POST - this is cgi request [23:53:56]url: /json_proto [23:53:56]query_string will be loaded in cgi processing [23:53:56]execute_cgi json_proto POST (null) [23:53:56]execute_cgi path=json_proto method=POST [23:53:56]POST find Content-Length [23:53:56]Host: 172.17.50.196:8080 [23:53:56]Content-Length: 331 [23:53:56]Content-Type: application/json [23:53:56] [23:53:56]POST finish read [23:53:56]Found Content-Length = 331 [23:53:56]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" ] } } [23:53:56]execute_script... [23:53:56]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" ] } } [23:53:56]POST & json_proto [23:53:56]process_json_proto [23:53:56]json parsed OK: [23:53:56]protocol is kg_v1.0 [23:53:56]action value=get_value [23:53:56]process_action get_value [23:53:56]cmd_get_value [23:53:56]process_action get_value done [23:53:56]requested_data is exist [23:53:56]produce_requested_data [23:53:56]requested_item fm.sale.total is exist - process it [23:53:56]SAM_PROTO_GetFMData [23:53:56]wFMCommunicate request_size=4 [23:53:56]MH_SAM_APDU [23:53:56]CAPDU: 80 13 03 00 [23:53:56]Write to MH i2c: E2 08 00 07 63 80 13 03 00 00 00 00 00 E9 [23:53:56]Write i2c OK [23:53:56]MH_I2C_Read... [23:53:57]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:53:57]Read from MH i2c: E2 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 FD 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 FD 00 07 63 00 C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 26 [23:53:57]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:53:57]wFMCommunicate OK [23:53:57]wFMCommunicate request_size=4 [23:53:57]MH_SAM_APDU [23:53:57]CAPDU: 80 17 00 00 [23:53:57]Write to MH i2c: E2 08 00 08 63 80 17 00 00 00 00 00 00 EB [23:53:57]Write i2c OK [23:53:57]MH_I2C_Read... [23:53:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:57]Read from MH i2c: E2 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 FD 00 [23:53:57]MH_I2C_Read... [23:53:57]Read from MH i2c: E2 FD 00 08 63 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 02 [23:53:57]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:57]wFMCommunicate OK [23:53:57]wFMCommunicate request_size=4 [23:53:57]MH_SAM_APDU [23:53:57]CAPDU: 80 17 00 00 [23:53:57]Write to MH i2c: E2 08 00 09 63 80 17 00 00 00 00 00 00 EC [23:53:57]Write i2c OK [23:53:57]MH_I2C_Read... [23:53:57]OFD Sender: No OFD packet to send [23:53:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:58]Read from MH i2c: E2 [23:53:58]MH_I2C_Read... [23:53:58]Read from MH i2c: E2 FD 00 [23:53:58]MH_I2C_Read... [23:53:58]Read from MH i2c: E2 FD 00 09 63 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C4 [23:53:58]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:58]wFMCommunicate OK [23:53:58]wFMCommunicate request_size=4 [23:53:58]MH_SAM_APDU [23:53:58]CAPDU: 80 17 00 00 [23:53:58]Write to MH i2c: E2 08 00 0A 63 80 17 00 00 00 00 00 00 ED [23:53:58]Write i2c OK [23:53:58]MH_I2C_Read... [23:53:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:58]Read from MH i2c: E2 [23:53:58]MH_I2C_Read... [23:53:58]Read from MH i2c: E2 FD 00 [23:53:58]MH_I2C_Read... [23:53:58]Read from MH i2c: E2 FD 00 0A 63 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 68 [23:53:58]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:53:58]wFMCommunicate OK [23:53:58]wFMCommunicate request_size=4 [23:53:58]MH_SAM_APDU [23:53:58]CAPDU: 80 17 00 00 [23:53:58]Write to MH i2c: E2 08 00 0B 63 80 17 00 00 00 00 00 00 EE [23:53:58]Write i2c OK [23:53:58]MH_I2C_Read... [23:53:58]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:53:58]Read from MH i2c: E2 [23:53:58]MH_I2C_Read... [23:53:58]Read from MH i2c: E2 E4 00 [23:53:58]MH_I2C_Read... [23:53:58]Read from MH i2c: E2 E4 00 0B 63 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 CE [23:53:58]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:53:58]wFMCommunicate OK [23:53:58]SAM_PROTO_GetFMData done [23:53:58]requested_item fm.sale_refund.total is exist - process it [23:53:58]requested_item fm.buy.total is exist - process it [23:53:58]requested_item shift.sale.total is exist - process it [23:53:58]SAM_PROTO_GetShiftData [23:53:58]wFMCommunicate request_size=4 [23:53:58]MH_SAM_APDU [23:53:58]CAPDU: 80 13 02 00 [23:53:58]Write to MH i2c: E2 08 00 0C 63 80 13 02 00 00 00 00 00 ED [23:53:58]Write i2c OK [23:53:58]MH_I2C_Read... [23:53:59]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:53:59]Read from MH i2c: E2 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 FD 00 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 FD 00 0C 63 00 AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 D0 [23:53:59]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:53:59]wFMCommunicate OK [23:53:59]wFMCommunicate request_size=4 [23:53:59]MH_SAM_APDU [23:53:59]CAPDU: 80 17 00 00 [23:53:59]Write to MH i2c: E2 08 00 0D 63 80 17 00 00 00 00 00 00 F0 [23:53:59]Write i2c OK [23:53:59]MH_I2C_Read... [23:53:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:53:59]Read from MH i2c: E2 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 FD 00 [23:53:59]MH_I2C_Read... [23:53:59]Read from MH i2c: E2 FD 00 0D 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 09 [23:53:59]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:53:59]wFMCommunicate OK [23:53:59]wFMCommunicate request_size=4 [23:53:59]MH_SAM_APDU [23:53:59]CAPDU: 80 17 00 00 [23:53:59]Write to MH i2c: E2 08 00 0E 63 80 17 00 00 00 00 00 00 F1 [23:53:59]Write i2c OK [23:53:59]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 0E 63 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 A5 [23:54:00]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:54:00]wFMCommunicate OK [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 17 00 00 [23:54:00]Write to MH i2c: E2 08 00 0F 63 80 17 00 00 00 00 00 00 F2 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:00]Read from MH i2c: E2 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 [23:54:00]MH_I2C_Read... [23:54:00]Read from MH i2c: E2 FD 00 0F 63 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 70 [23:54:00]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:54:00]wFMCommunicate OK [23:54:00]wFMCommunicate request_size=4 [23:54:00]MH_SAM_APDU [23:54:00]CAPDU: 80 17 00 00 [23:54:00]Write to MH i2c: E2 08 00 10 63 80 17 00 00 00 00 00 00 F3 [23:54:00]Write i2c OK [23:54:00]MH_I2C_Read... [23:54:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:01]Read from MH i2c: E2 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 CC 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 CC 00 10 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D4 [23:54:01]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:01]wFMCommunicate OK [23:54:01]SAM_PROTO_GetShiftData done [23:54:01]requested_item shift.sale.total_cash is exist - process it [23:54:01]requested_item shift.sale_refund.total is exist - process it [23:54:01]requested_item shift.sale_refund.total_cash is exist - process it [23:54:01]requested_item shift.buy.total is exist - process it [23:54:01]requested_item shift.buy.total_cash is exist - process it [23:54:01]produce_requested_data done [23:54:01]produce_requested_data return {"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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} [23:54:01]process_action_free get_value [23:54:01]json_value_free [23:54:01]json_value_free done [23:54:01]process_json_proto returns [23:54:01]Send response to host [23:54:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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}}} [23:54:01]free response buf [23:54:01]execute_script done [23:54:01]execute_script returns [23:54:01]free content buf [23:54:01]Sock 9.Close socket [23:54:01]Sock 9.Thread stoped [23:54:01]accept exits with 8 [23:54:01]New connection [23:54:01]New thread 3067284836 created [23:54:01]Thread 3067141476 joined [23:54:01]Waiting for new connection... [23:54:01] Sock 8.Parse request [23:54:01]Sock 8.Check first char [23:54:01]Sock 8.First char is OK [23:54:01]request: POST /json_proto HTTP/1.0 [23:54:01]Method: POST [23:54:01]URL: /json_proto [23:54:01]Method is POST - this is cgi request [23:54:01]url: /json_proto [23:54:01]query_string will be loaded in cgi processing [23:54:01]execute_cgi json_proto POST (null) [23:54:01]execute_cgi path=json_proto method=POST [23:54:01]POST find Content-Length [23:54:01]Host: 172.17.50.196:8080 [23:54:01]Content-Length: 275 [23:54:01]Content-Type: application/json [23:54:01] [23:54:01]POST finish read [23:54:01]Found Content-Length = 275 [23:54:01]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0435\u043A\u043D\u0430\u0437\u0430\u0440\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:01]execute_script... [23:54:01]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "x_report", "params" : { "operator" : "\u0411\u0435\u043A\u043D\u0430\u0437\u0430\u0440\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:01]POST & json_proto [23:54:01]process_json_proto [23:54:01]json parsed OK: [23:54:01]protocol is kg_v1.0 [23:54:01]action value=x_report [23:54:01]process_action x_report [23:54:01]cmd_x_report [23:54:01]MH_GetDate [23:54:01]Write to MH i2c: F0 00 00 11 63 63 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: F0 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: F0 09 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: F0 09 00 11 63 00 20 C7 22 67 72 0D 1C 67 DE [23:54:01]GetLastDocTimeStamp 1730331371 [23:54:01]current date 1730332448 [23:54:01]FM_GetShiftState [23:54:01]SAM_PROTO_GetShiftState [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 13 01 00 [23:54:01]Write to MH i2c: E2 08 00 12 63 80 13 01 00 00 00 00 00 F2 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 *** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:01] [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 0E 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 0E 00 12 63 00 09 00 01 86 76 21 67 00 00 00 00 90 00 82 [23:54:01]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:54:01]wFMCommunicate OK [23:54:01]SAM_PROTO_GetShiftState done [23:54:01]FM_GetShiftState done [23:54:01]KKMCreateXReportDocument [23:54:01]Load OK [23:54:01]Malloc new data [23:54:01]MH_GetDate [23:54:01]Write to MH i2c: F0 00 00 13 63 65 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: F0 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: F0 09 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: F0 09 00 13 63 00 20 C7 22 67 72 0D 1C 67 E0 [23:54:01]Malloc new data [23:54:01]Malloc new data [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 11 00 00 [23:54:01]Write to MH i2c: E2 08 00 14 63 80 11 00 00 00 00 00 00 F1 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:01]Read from MH i2c: E2 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 17 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 17 00 14 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [23:54:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:54:01]wFMCommunicate OK [23:54:01]SAM_PROTO_GetFieldsCounters [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 13 00 00 [23:54:01]Write to MH i2c: E2 08 00 15 63 80 13 00 00 00 00 00 00 F4 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:01]Read from MH i2c: E2 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 62 00 [23:54:01]MH_I2C_Read... [23:54:01]Read from MH i2c: E2 62 00 15 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 D1 [23:54:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 [23:54:01]wFMCommunicate OK [23:54:01]SAM_PROTO_GetFieldsCounters done [23:54:01]Malloc new data [23:54:01]Malloc new data [23:54:01]Malloc new data [23:54:01]KKMCreateXReportDocument OK [23:54:01]KKMSetXReportData OK [23:54:01]KKMPrepareXReportFMData [23:54:01]SAM_PROTO_GetShiftData [23:54:01]wFMCommunicate request_size=4 [23:54:01]MH_SAM_APDU [23:54:01]CAPDU: 80 13 02 00 [23:54:01]Write to MH i2c: E2 08 00 16 63 80 13 02 00 00 00 00 00 F7 [23:54:01]Write i2c OK [23:54:01]MH_I2C_Read... [23:54:02]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:02]Read from MH i2c: E2 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 16 63 00 AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 DA [23:54:02]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:54:02]wFMCommunicate OK [23:54:02]wFMCommunicate request_size=4 [23:54:02]MH_SAM_APDU [23:54:02]CAPDU: 80 17 00 00 [23:54:02]Write to MH i2c: E2 08 00 17 63 80 17 00 00 00 00 00 00 FA [23:54:02]Write i2c OK [23:54:02]MH_I2C_Read... [23:54:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:02]Read from MH i2c: E2 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 [23:54:02]MH_I2C_Read... [23:54:02]Read from MH i2c: E2 FD 00 17 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 13 [23:54:02]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:54:02]wFMCommunicate OK [23:54:02]wFMCommunicate request_size=4 [23:54:02]MH_SAM_APDU [23:54:02]CAPDU: 80 17 00 00 [23:54:02]Write to MH i2c: E2 08 00 18 63 80 17 00 00 00 00 00 00 FB [23:54:02]Write i2c OK [23:54:02]MH_I2C_Read... [23:54:02]OFD Sender: No OFD packet to send [23:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 18 63 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 AF [23:54:03]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:54:03]wFMCommunicate OK [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 17 00 00 [23:54:03]Write to MH i2c: E2 08 00 19 63 80 17 00 00 00 00 00 00 FC [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 FD 00 19 63 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 7A [23:54:03]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:54:03]wFMCommunicate OK [23:54:03]wFMCommunicate request_size=4 [23:54:03]MH_SAM_APDU [23:54:03]CAPDU: 80 17 00 00 [23:54:03]Write to MH i2c: E2 08 00 1A 63 80 17 00 00 00 00 00 00 FD [23:54:03]Write i2c OK [23:54:03]MH_I2C_Read... [23:54:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:03]Read from MH i2c: E2 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 CC 00 [23:54:03]MH_I2C_Read... [23:54:03]Read from MH i2c: E2 CC 00 1A 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 DE [23:54:04]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:04]wFMCommunicate OK [23:54:04]SAM_PROTO_GetShiftData done [23:54:04]1194 (1195) - счетчики итогов смены [23:54:04] 1134 (4) - 205 - количество чеков со всеми признаками расчетов [23:54:04] 1129 (156) - счетчики операций «приход» [23:54:04] 1135 (4) - 205 - количество чеков по признаку расчетов [23:54:04] 1201 (3) - 92756.89 - общая итоговая сумма в чеках [23:54:04] 1136 (3) - 51709.00 - итоговая сумма в чеках наличными [23:54:04] 1138 (3) - 41047.89 - итоговая сумма в чеках безналичными [23:54:04] 1024 (123) - суммы налогов [23:54:04] 1006 (9) - суммы НДС [23:54:04] 1010 (1) - 0% - код ставки НДС [23:54:04] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:04] 1006 (12) - суммы НДС [23:54:04] 1010 (1) - 12% - код ставки НДС [23:54:04] 1011 (3) - 9850.94 - сумма НДС по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 0% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (12) - суммы НСП [23:54:04] 1014 (1) - 1% - код ставки НСП [23:54:04] 1015 (3) - 820.79 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 2% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 3% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 5% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 0,50% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 1,50% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1130 (141) - счетчики операций «возврат прихода» [23:54:04] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:04] 1024 (117) - суммы налогов [23:54:04] 1006 (9) - суммы НДС [23:54:04] 1010 (1) - 0% - код ставки НДС [23:54:04] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:04] 1006 (9) - суммы НДС [23:54:04] 1010 (1) - 12% - код ставки НДС [23:54:04] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 0% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 1% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 2% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 3% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 5% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 0,50% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 1,50% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1131 (141) - счетчики операций «расход» [23:54:04] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:04] 1024 (117) - суммы налогов [23:54:04] 1006 (9) - суммы НДС [23:54:04] 1010 (1) - 0% - код ставки НДС [23:54:04] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:04] 1006 (9) - суммы НДС [23:54:04] 1010 (1) - 12% - код ставки НДС [23:54:04] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 0% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 1% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 2% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 3% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 5% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 0,50% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 1,50% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1132 (141) - счетчики операций «возврат расхода» [23:54:04] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:04] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:04] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:04] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:04] 1024 (117) - суммы налогов [23:54:04] 1006 (9) - суммы НДС [23:54:04] 1010 (1) - 0% - код ставки НДС [23:54:04] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:04] 1006 (9) - суммы НДС [23:54:04] 1010 (1) - 12% - код ставки НДС [23:54:04] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 0% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 1% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 2% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 3% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 5% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 0,50% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1007 (9) - суммы НСП [23:54:04] 1014 (1) - 1,50% - код ставки НСП [23:54:04] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:04] 1133 (588) - - счетчики коррекции - не используются [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1194 (04AA) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1134 (046E) [23:54:04]Malloc new data [23:54:04]Processing tag 1129 (0469) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1135 (046F) [23:54:04]Malloc new data [23:54:04]Processing tag 1201 (04B1) [23:54:04]Malloc new data [23:54:04]Processing tag 1136 (0470) [23:54:04]Malloc new data [23:54:04]Processing tag 1138 (0472) [23:54:04]Malloc new data [23:54:04]Processing tag 1024 (0400) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1006 (03EE) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1010 (03F2) [23:54:04]Malloc new data [23:54:04]Processing tag 1011 (03F3) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1006 (03EE) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1010 (03F2) [23:54:04]Malloc new data [23:54:04]Processing tag 1011 (03F3) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]SetTLVBufToDocument err=0 [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1130 (046A) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1135 (046F) [23:54:04]Malloc new data [23:54:04]Processing tag 1201 (04B1) [23:54:04]Malloc new data [23:54:04]Processing tag 1136 (0470) [23:54:04]Malloc new data [23:54:04]Processing tag 1138 (0472) [23:54:04]Malloc new data [23:54:04]Processing tag 1024 (0400) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1006 (03EE) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1010 (03F2) [23:54:04]Malloc new data [23:54:04]Processing tag 1011 (03F3) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1006 (03EE) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1010 (03F2) [23:54:04]Malloc new data [23:54:04]Processing tag 1011 (03F3) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]SetTLVBufToDocument err=0 [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1131 (046B) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1135 (046F) [23:54:04]Malloc new data [23:54:04]Processing tag 1201 (04B1) [23:54:04]Malloc new data [23:54:04]Processing tag 1136 (0470) [23:54:04]Malloc new data [23:54:04]Processing tag 1138 (0472) [23:54:04]Malloc new data [23:54:04]Processing tag 1024 (0400) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1006 (03EE) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1010 (03F2) [23:54:04]Malloc new data [23:54:04]Processing tag 1011 (03F3) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1006 (03EE) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1010 (03F2) [23:54:04]Malloc new data [23:54:04]Processing tag 1011 (03F3) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1007 (03EF) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1014 (03F6) [23:54:04]Malloc new data [23:54:04]Processing tag 1015 (03F7) [23:54:04]Malloc new data [23:54:04]SetTLVBufToDocument err=0 [23:54:04]SetTLVBufToDocument err=0 [23:54:04]SetTLVBufToDocument err=0 [23:54:04]Processing tag 1132 (046C) [23:54:04]Load OK [23:54:04]SetTLVBufToDocument [23:54:04]Processing tag 1135 (046F) [23:54:04]Malloc new data [23:54:05]Processing tag 1201 (04B1) [23:54:05]Malloc new data [23:54:05]Processing tag 1136 (0470) [23:54:05]Malloc new data [23:54:05]Processing tag 1138 (0472) [23:54:05]Malloc new data [23:54:05]Processing tag 1024 (0400) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1006 (03EE) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1010 (03F2) [23:54:05]Malloc new data [23:54:05]Processing tag 1011 (03F3) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1006 (03EE) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1010 (03F2) [23:54:05]Malloc new data [23:54:05]Processing tag 1011 (03F3) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1007 (03EF) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1014 (03F6) [23:54:05]Malloc new data [23:54:05]Processing tag 1015 (03F7) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1007 (03EF) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1014 (03F6) [23:54:05]Malloc new data [23:54:05]Processing tag 1015 (03F7) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1007 (03EF) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1014 (03F6) [23:54:05]Malloc new data [23:54:05]Processing tag 1015 (03F7) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1007 (03EF) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1014 (03F6) [23:54:05]Malloc new data [23:54:05]Processing tag 1015 (03F7) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1007 (03EF) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1014 (03F6) [23:54:05]Malloc new data [23:54:05]Processing tag 1015 (03F7) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1007 (03EF) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1014 (03F6) [23:54:05]Malloc new data [23:54:05]Processing tag 1015 (03F7) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1007 (03EF) [23:54:05]Load OK [23:54:05]SetTLVBufToDocument [23:54:05]Processing tag 1014 (03F6) [23:54:05]Malloc new data [23:54:05]Processing tag 1015 (03F7) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]SetTLVBufToDocument err=0 [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Processing tag 1133 (046D) [23:54:05]Malloc new data [23:54:05]SetTLVBufToDocument err=0 [23:54:05]SetTLVBufToDocument err=0 [23:54:05]Malloc new data [23:54:05]SAM_PROTO_GetFMData [23:54:05]wFMCommunicate request_size=4 [23:54:05]MH_SAM_APDU [23:54:05]CAPDU: 80 13 03 00 [23:54:05]Write to MH i2c: E2 08 00 1B 63 80 13 03 00 00 00 00 00 FD [23:54:05]Write i2c OK [23:54:05]MH_I2C_Read... [23:54:05]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:05]Read from MH i2c: E2 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 [23:54:05]MH_I2C_Read... [23:54:05]Read from MH i2c: E2 FD 00 1B 63 00 C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 3A [23:54:05]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:54:05]wFMCommunicate OK [23:54:05]wFMCommunicate request_size=4 [23:54:05]MH_SAM_APDU [23:54:05]CAPDU: 80 17 00 00 [23:54:06]Write to MH i2c: E2 08 00 1C 63 80 17 00 00 00 00 00 00 FF [23:54:06]Write i2c OK [23:54:06]MH_I2C_Read... [23:54:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:06]Read from MH i2c: E2 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 1C 63 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 16 [23:54:06]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:06]wFMCommunicate OK [23:54:06]wFMCommunicate request_size=4 [23:54:06]MH_SAM_APDU [23:54:06]CAPDU: 80 17 00 00 [23:54:06]Write to MH i2c: E2 08 00 1D 63 80 17 00 00 00 00 00 00 00 [23:54:06]Write i2c OK [23:54:06]MH_I2C_Read... [23:54:06]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:06]Read from MH i2c: E2 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 [23:54:06]MH_I2C_Read... [23:54:06]Read from MH i2c: E2 FD 00 1D 63 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D8 [23:54:06]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 17 00 00 [23:54:07]Write to MH i2c: E2 08 00 1E 63 80 17 00 00 00 00 00 00 01 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 FD 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 FD 00 1E 63 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [23:54:07]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:07]wFMCommunicate OK [23:54:07]wFMCommunicate request_size=4 [23:54:07]MH_SAM_APDU [23:54:07]CAPDU: 80 17 00 00 [23:54:07]Write to MH i2c: E2 08 00 1F 63 80 17 00 00 00 00 00 00 02 [23:54:07]Write i2c OK [23:54:07]MH_I2C_Read... [23:54:07]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:54:07]Read from MH i2c: E2 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 E4 00 [23:54:07]MH_I2C_Read... [23:54:07]Read from MH i2c: E2 E4 00 1F 63 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E2 [23:54:07]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:54:08]wFMCommunicate OK [23:54:08]SAM_PROTO_GetFMData done [23:54:08]FM_GetFMData:85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 OFD Sender: No OFD packet to send [23:54:08]F7 03 00 00 EF 03 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 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:54:08]oper:6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 [23:54:08]total:99 61 8E 52 01 [23:54:08]Malloc new data [23:54:08]oper:6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 [23:54:08]total:20 31 05 09 [23:54:09]Malloc new data [23:54:09]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 [23:54:09]total: [23:54:09]Malloc new data [23:54:09]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 [23:54:09]total: [23:54:09]Malloc new data [23:54:09]KKMPrepareXReportFMData err=0 [23:54:09]Х отчет ИНН: 02508201610067 Кассир: Бекназарова Д. 30.10.2024 23:54 Смена: 522 РНМ: 0000000000091631 ЗНМ: 0300000081 СНО: Общий режим Всего чеков: 205 ИТОГИ ПРИХОД Чеков: 205 Общий итог: 92756.89 Итого наличными: 51709.00 Итого безнал.: 41047.89 НДС 0% : 0.00 НДС 12% : 9850.94 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 820.79 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 51709.00 НС Приход: 56800301.05 НС Возвр.Прихода: 1513352.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФМ: 0000000000874669 [23:54:09]StoreToDocumentArchive [23:54:09]MH_GetDate [23:54:09]Write to MH i2c: F0 00 00 20 63 72 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 09 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: F0 09 00 20 63 00 28 C7 22 67 72 0D 1C 67 F5 [23:54:09]shift 522 fd 1730332456 [23:54:09]Create dir for shift 0522 [23:54:09]save to /storage/0522/doc_1730332456 [23:54:09]save last doc name /storage/0522/doc_1730332456 to /storage/kkm_last_doc_name [23:54:09]save OK [23:54:09]Clear old archive folders... [23:54:09]NVStorageSaveData kkm_last_timestamp [23:54:09]File name is /storage/kkm_last_timestamp [23:54:09]Write 4 bytes [23:54:09]NVStorageSaveData done [23:54:09]ExternCall_PrintAddStr [23:54:09]wPrintStart [23:54:09]Write to MH i2c: 01 00 00 21 63 84 [23:54:09]Write i2c OK [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: 01 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: 01 07 00 [23:54:09]MH_I2C_Read... [23:54:09]Read from MH i2c: 01 07 00 21 63 00 00 00 00 00 FF 0F 99 [23:54:09]RasterBufferAndPrint [23:54:09]line Х отчет [23:54:09]line ИНН: 02508201610067 [23:54:09]line Кассир: Бекназарова Д. [23:54:09]line 30.10.2024 23:54 [23:54:09]line Смена: 522 [23:54:09]line РНМ: 0000000000091631 [23:54:09]line ЗНМ: 0300000081 [23:54:09]line СНО: Общий режим [23:54:09]line Всего чеков: 205 [23:54:09]line ИТОГИ ПРИХОД [23:54:09]line Чеков: 205 [23:54:09]line Общий итог: 92756.89 [23:54:09]line Итого наличными: 51709.00 [23:54:09]line Итого безнал.: 41047.89 [23:54:09]line НДС 0% : 0.00 [23:54:09]line НДС 12% : 9850.94 [23:54:09]line НСП 0% : 0.00 [23:54:09]line НСП 1,50% : 0.00 [23:54:09]line НСП 0,50% : 0.00 [23:54:09]line НСП 5% : 0.00 [23:54:09]line НСП 3% : 0.00 [23:54:09]line НСП 2% : 0.00 [23:54:09]line НСП 1% : 820.79 [23:54:09]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:54:09]line Чеков: 0 [23:54:09]line Общий итог: 0.00 [23:54:09]line Итого наличными: 0.00 [23:54:09]line Итого безнал.: 0.00 [23:54:09]line НДС 0% : 0.00 [23:54:09]line НДС 12% : 0.00 [23:54:09]line НСП 0% : 0.00 [23:54:09]line НСП 1,50% : 0.00 [23:54:09]line НСП 0,50% : 0.00 [23:54:09]line НСП 5% : 0.00 [23:54:09]line НСП 3% : 0.00 [23:54:09]line НСП 2% : 0.00 [23:54:09]line НСП 1% : 0.00 [23:54:09]line ИТОГИ РАСХОД [23:54:09]line Чеков: 0 [23:54:09]line Общий итог: 0.00 [23:54:09]line Итого наличными: 0.00 [23:54:09]line Итого безнал.: 0.00 [23:54:09]line НДС 0% : 0.00 [23:54:09]line НДС 12% : 0.00 [23:54:09]line НСП 0% : 0.00 [23:54:09]line НСП 1,50% : 0.00 [23:54:09]line НСП 0,50% : 0.00 [23:54:09]line НСП 5% : 0.00 [23:54:09]line НСП 3% : 0.00 [23:54:09]line НСП 2% : 0.00 [23:54:09]line НСП 1% : 0.00 [23:54:09]line ИТОГИ ВОЗВРАТ РАСХОДА [23:54:09]line Чеков: 0 [23:54:09]line Общий итог: 0.00 [23:54:09]line Итого наличными: 0.00 [23:54:09]line Итого безнал.: 0.00 [23:54:09]line НДС 0% : 0.00 [23:54:09]line НДС 12% : 0.00 [23:54:09]line НСП 0% : 0.00 [23:54:09]line НСП 1,50% : 0.00 [23:54:09]line НСП 0,50% : 0.00 [23:54:09]line НСП 5% : 0.00 [23:54:09]line НСП 3% : 0.00 [23:54:09]line НСП 2% : 0.00 [23:54:09]line НСП 1% : 0.00 [23:54:09]line Сумма внесений: 0.00 [23:54:09]line Сумма выплат: 0.00 [23:54:09]line Нал. в кассе: 51709.00 [23:54:09]line НС Приход: 56800301.05 [23:54:09]line НС Возвр.Прихода: 1513352.00 [23:54:09]line НС Расход: 0.00 [23:54:09]line НС Возвр.Расхода: 0.00 [23:54:09]line ФМ: 0000000000874669 [23:54:09]written 0, free lines is 4095 [23:54:10]Write to MH i2c: 01 00 00 6C 63 CF [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 07 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: 01 07 00 6C 63 00 00 00 00 00 18 0B F9 [23:54:10]RasterBufferAndPrint [23:54:10]line [23:54:10]line [23:54:10]line [23:54:10]line [23:54:10]line [23:54:10]written 0, free lines is 2879 [23:54:10]MH_Cut [23:54:10]Write to MH i2c: D1 01 00 73 63 01 A8 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: D1 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: D1 01 00 [23:54:10]MH_I2C_Read... [23:54:10]Read from MH i2c: D1 01 00 73 63 00 A7 [23:54:10]Write to MH i2c: 01 00 00 74 63 D7 [23:54:10]Write i2c OK [23:54:10]MH_I2C_Read... [23:54:11]*** Cut start [23:54:11]*** Partial cut [23:54:11]*** CUTSNS_PIN = 1 [23:54:11]*** CUTSNS_PIN = 0 [23:54:11]*** Brake cut motor [23:54:11]Read from MH i2c: 01 [23:54:11]MH_I2C_Read... [23:54:11]*** Stop cut motor [23:54:11]*** Cut end [23:54:11]Read from MH i2c: 01 07 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: 01 07 00 74 63 00 00 00 00 00 FF 0F EC [23:54:11]process_action x_report done [23:54:11]requested_data is exist [23:54:11]produce_requested_data [23:54:11]requested_item fd.num is exist - process it [23:54:11]SAM_PROTO_GetFieldsCounters [23:54:11]wFMCommunicate request_size=4 [23:54:11]MH_SAM_APDU [23:54:11]CAPDU: 80 13 00 00 [23:54:11]Write to MH i2c: E2 08 00 75 63 80 13 00 00 00 00 00 00 54 [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:11]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:11]Read from MH i2c: E2 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 62 00 [23:54:11]MH_I2C_Read... [23:54:11]Read from MH i2c: E2 62 00 75 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 31 [23:54:11]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 [23:54:11]wFMCommunicate OK [23:54:11]SAM_PROTO_GetFieldsCounters done [23:54:11]requested_item shift.num is exist - process it [23:54:11]requested_item shift.opened is exist - process it [23:54:11]req_shift_opened [23:54:11]FM_GetShiftState [23:54:11]SAM_PROTO_GetShiftState [23:54:11]wFMCommunicate request_size=4 [23:54:11]MH_SAM_APDU [23:54:11]CAPDU: 80 13 01 00 [23:54:11]Write to MH i2c: E2 08 00 76 63 80 13 01 00 00 00 00 00 56 [23:54:11]Write i2c OK [23:54:11]MH_I2C_Read... [23:54:12]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:12]Read from MH i2c: E2 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 0E 00 [23:54:12]MH_I2C_Read... [23:54:12]Read from MH i2c: E2 0E 00 76 63 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E6 [23:54:12]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:54:12]wFMCommunicate OK [23:54:12]SAM_PROTO_GetShiftState done [23:54:12]FM_GetShiftState done [23:54:12]req_shift_opened done [23:54:12]requested_item shift.open_date is exist - process it [23:54:12]req_shift_open_date [23:54:12]req_shift_open_date done [23:54:12]produce_requested_data done [23:54:12]produce_requested_data return {"fd.num":139521,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:54:12]process_action_free x_report [23:54:12]json_value_free [23:54:12]json_value_free done [23:54:12]process_json_proto returns [23:54:12]Send response to host [23:54:12]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139521,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:54:12]free response buf [23:54:12]execute_script done [23:54:12]execute_script returns [23:54:12]free content buf [23:54:12]Sock 8.Close socket [23:54:12]Sock 8.Thread stoped [23:54:13]OFD Sender: No OFD packet to send [23:54:18]OFD Sender: No OFD packet to send [23:54:23]OFD Sender: No OFD packet to send [23:54:28]OFD Sender: No OFD packet to send [23:54:33]OFD Sender: No OFD packet to send [23:54:38]OFD Sender: No OFD packet to send [23:54:43]OFD Sender: No OFD packet to send [23:54:44]accept exits with 9 [23:54:44]New connection [23:54:44]New thread 3067141476 created [23:54:44]Thread 3067284836 joined [23:54:44]Waiting for new connection... [23:54:44] Sock 9.Parse request [23:54:44]Sock 9.Check first char [23:54:44]Sock 9.First char is OK [23:54:44]request: POST /json_proto HTTP/1.0 [23:54:44]Method: POST [23:54:44]URL: /json_proto [23:54:44]Method is POST - this is cgi request [23:54:44]url: /json_proto [23:54:44]query_string will be loaded in cgi processing [23:54:44]execute_cgi json_proto POST (null) [23:54:44]execute_cgi path=json_proto method=POST [23:54:44]POST find Content-Length [23:54:44]Host: 172.17.50.196:8080 [23:54:44]Content-Length: 215 [23:54:44]Content-Type: application/json [23:54:44] [23:54:44]POST finish read [23:54:44]Found Content-Length = 215 [23:54:44]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" ] } } [23:54:44]execute_script... [23:54:44]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" ] } } [23:54:44]POST & json_proto [23:54:44]process_json_proto [23:54:44]json parsed OK: [23:54:44]protocol is kg_v1.0 [23:54:44]action value=get_value [23:54:44]process_action get_value [23:54:44]cmd_get_value [23:54:44]process_action get_value done [23:54:44]requested_data is exist [23:54:44]produce_requested_data [23:54:44]requested_item kkm.sn is exist - process it [23:54:44]requested_item kkm.ver is exist - process it [23:54:44]requested_item fm.sn is exist - process it [23:54:44]wFMCommunicate request_size=4 [23:54:44]MH_SAM_APDU [23:54:44]CAPDU: 80 11 00 00 [23:54:44]Write to MH i2c: E2 08 00 77 63 80 11 00 00 00 00 00 00 54 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:44]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:54:44]Read from MH i2c: E2 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 17 00 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 17 00 77 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AF [23:54:44]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:54:44]wFMCommunicate OK [23:54:44]requested_item fd.num is exist - process it [23:54:44]SAM_PROTO_GetFieldsCounters [23:54:44]wFMCommunicate request_size=4 [23:54:44]MH_SAM_APDU [23:54:44]CAPDU: 80 13 00 00 [23:54:44]Write to MH i2c: E2 08 00 78 63 80 13 00 00 00 00 00 00 57 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:44]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:54:44]Read from MH i2c: E2 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 62 00 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 62 00 78 63 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 34 [23:54:44]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 01 21 02 00 0E 04 04 00 2C 02 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 [23:54:44]wFMCommunicate OK [23:54:44]SAM_PROTO_GetFieldsCounters done [23:54:44]requested_item shift.num is exist - process it [23:54:44]requested_item shift.opened is exist - process it [23:54:44]req_shift_opened [23:54:44]FM_GetShiftState [23:54:44]SAM_PROTO_GetShiftState [23:54:44]wFMCommunicate request_size=4 [23:54:44]MH_SAM_APDU [23:54:44]CAPDU: 80 13 01 00 [23:54:44]Write to MH i2c: E2 08 00 79 63 80 13 01 00 00 00 00 00 59 [23:54:44]Write i2c OK [23:54:44]MH_I2C_Read... [23:54:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:44]Read from MH i2c: E2 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 0E 00 [23:54:44]MH_I2C_Read... [23:54:44]Read from MH i2c: E2 0E 00 79 63 00 09 00 01 86 76 21 67 00 00 00 00 90 00 E9 [23:54:44]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:54:44]wFMCommunicate OK [23:54:44]SAM_PROTO_GetShiftState done [23:54:44]FM_GetShiftState done [23:54:44]req_shift_opened done [23:54:44]requested_item shift.open_date is exist - process it [23:54:44]req_shift_open_date [23:54:44]req_shift_open_date done [23:54:44]produce_requested_data done [23:54:44]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139521,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278} [23:54:44]process_action_free get_value [23:54:44]json_value_free [23:54:44]json_value_free done [23:54:44]process_json_proto returns [23:54:44]Send response to host [23:54:44]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139521,"shift.num":556,"shift.opened":1,"shift.open_date":1730246278}}} [23:54:44]free response buf [23:54:44]execute_script done [23:54:44]execute_script returns [23:54:44]free content buf [23:54:44]Sock 9.Close socket [23:54:44]Sock 9.Thread stoped [23:54:44]accept exits with 8 [23:54:44]New connection [23:54:44]New thread 3067284836 created [23:54:44]Thread 3067141476 joined [23:54:44]Waiting for new connection... [23:54:44] Sock 8.Parse request [23:54:44]Sock 8.Check first char [23:54:44]Sock 8.First char is OK [23:54:44]request: POST /json_proto HTTP/1.0 [23:54:44]Method: POST [23:54:44]URL: /json_proto [23:54:44]Method is POST - this is cgi request [23:54:44]url: /json_proto [23:54:44]query_string will be loaded in cgi processing [23:54:44]execute_cgi json_proto POST (null) [23:54:44]execute_cgi path=json_proto method=POST [23:54:44]POST find Content-Length [23:54:44]Host: 172.17.50.196:8080 [23:54:44]Content-Length: 331 [23:54:44]Content-Type: application/json [23:54:44] [23:54:44]POST finish read [23:54:44]Found Content-Length = 331 [23:54: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" ] } } [23:54:44]execute_script... [23:54: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" ] } } [23:54:44]POST & json_proto [23:54:44]process_json_proto [23:54:44]json parsed OK: [23:54:44]protocol is kg_v1.0 [23:54:44]action value=get_value [23:54:45]process_action get_value [23:54:45]cmd_get_value [23:54:45]process_action get_value done [23:54:45]requested_data is exist [23:54:45]produce_requested_data [23:54:45]requested_item fm.sale.total is exist - process it [23:54:45]SAM_PROTO_GetFMData [23:54:45]wFMCommunicate request_size=4 [23:54:45]MH_SAM_APDU [23:54:45]CAPDU: 80 13 03 00 [23:54:45]Write to MH i2c: E2 08 00 7A 63 80 13 03 00 00 00 00 00 5C [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:45]Read from MH i2c: E2 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 FD 00 [23:54:45]MH_I2C_Read... [23:54:45]Read from MH i2c: E2 FD 00 7A 63 00 C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 99 [23:54:45]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:54:45]wFMCommunicate OK [23:54:45]wFMCommunicate request_size=4 [23:54:45]MH_SAM_APDU [23:54:45]CAPDU: 80 17 00 00 [23:54:45]Write to MH i2c: E2 08 00 7B 63 80 17 00 00 00 00 00 00 5E [23:54:45]Write i2c OK [23:54:45]MH_I2C_Read... [23:54:45]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:46]Read from MH i2c: E2 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 FD 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 FD 00 7B 63 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 75 [23:54:46]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:46]wFMCommunicate OK [23:54:46]wFMCommunicate request_size=4 [23:54:46]MH_SAM_APDU [23:54:46]CAPDU: 80 17 00 00 [23:54:46]Write to MH i2c: E2 08 00 7C 63 80 17 00 00 00 00 00 00 5F [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:46]Read from MH i2c: E2 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 FD 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 FD 00 7C 63 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 37 [23:54:46]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:46]wFMCommunicate OK [23:54:46]wFMCommunicate request_size=4 [23:54:46]MH_SAM_APDU [23:54:46]CAPDU: 80 17 00 00 [23:54:46]Write to MH i2c: E2 08 00 7D 63 80 17 00 00 00 00 00 00 60 [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:46]Read from MH i2c: E2 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 FD 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 FD 00 7D 63 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 DB [23:54:46]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:46]wFMCommunicate OK [23:54:46]wFMCommunicate request_size=4 [23:54:46]MH_SAM_APDU [23:54:46]CAPDU: 80 17 00 00 [23:54:46]Write to MH i2c: E2 08 00 7E 63 80 17 00 00 00 00 00 00 61 [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:46]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:54:46]Read from MH i2c: E2 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 E4 00 [23:54:46]MH_I2C_Read... [23:54:46]Read from MH i2c: E2 E4 00 7E 63 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 41 [23:54:46]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:54:46]wFMCommunicate OK [23:54:46]SAM_PROTO_GetFMData done [23:54:46]requested_item fm.sale_refund.total is exist - process it [23:54:46]requested_item fm.buy.total is exist - process it [23:54:46]requested_item shift.sale.total is exist - process it [23:54:46]SAM_PROTO_GetShiftData [23:54:46]wFMCommunicate request_size=4 [23:54:46]MH_SAM_APDU [23:54:46]CAPDU: 80 13 02 00 [23:54:46]Write to MH i2c: E2 08 00 7F 63 80 13 02 00 00 00 00 00 60 [23:54:46]Write i2c OK [23:54:46]MH_I2C_Read... [23:54:47]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:47]Read from MH i2c: E2 [23:54:47]MH_I2C_Read... [23:54:47]Read from MH i2c: E2 FD 00 [23:54:47]MH_I2C_Read... [23:54:47]Read from MH i2c: E2 FD 00 7F 63 00 AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 43 [23:54:47]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:54:47]wFMCommunicate OK [23:54:47]wFMCommunicate request_size=4 [23:54:47]MH_SAM_APDU [23:54:47]CAPDU: 80 17 00 00 [23:54:47]Write to MH i2c: E2 08 00 80 63 80 17 00 00 00 00 00 00 63 [23:54:47]Write i2c OK [23:54:47]MH_I2C_Read... [23:54:47]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:47]Read from MH i2c: E2 [23:54:47]MH_I2C_Read... [23:54:47]Read from MH i2c: E2 FD 00 [23:54:47]MH_I2C_Read... [23:54:47]Read from MH i2c: E2 FD 00 80 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 7C [23:54:47]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:54:47]wFMCommunicate OK [23:54:47]wFMCommunicate request_size=4 [23:54:47]MH_SAM_APDU [23:54:47]CAPDU: 80 17 00 00 [23:54:47]Write to MH i2c: E2 08 00 81 63 80 17 00 00 00 00 00 00 64 [23:54:47]Write i2c OK [23:54:47]MH_I2C_Read... [23:54:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:48]Read from MH i2c: E2 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 FD 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 FD 00 81 63 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 18 [23:54:48]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:54:48]wFMCommunicate OK [23:54:48]wFMCommunicate request_size=4 [23:54:48]MH_SAM_APDU [23:54:48]CAPDU: 80 17 00 00 [23:54:48]Write to MH i2c: E2 08 00 82 63 80 17 00 00 00 00 00 00 65 [23:54:48]Write i2c OK [23:54:48]MH_I2C_Read... [23:54:48]OFD Sender: No OFD packet to send [23:54:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:48]Read from MH i2c: E2 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 FD 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 FD 00 82 63 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 E3 [23:54:48]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:54:48]wFMCommunicate OK [23:54:48]wFMCommunicate request_size=4 [23:54:48]MH_SAM_APDU [23:54:48]CAPDU: 80 17 00 00 [23:54:48]Write to MH i2c: E2 08 00 83 63 80 17 00 00 00 00 00 00 66 [23:54:48]Write i2c OK [23:54:48]MH_I2C_Read... [23:54:48]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:48]Read from MH i2c: E2 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 CC 00 [23:54:48]MH_I2C_Read... [23:54:48]Read from MH i2c: E2 CC 00 83 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 47 [23:54:48]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:48]wFMCommunicate OK [23:54:48]SAM_PROTO_GetShiftData done [23:54:48]requested_item shift.sale.total_cash is exist - process it [23:54:48]requested_item shift.sale_refund.total is exist - process it [23:54:48]requested_item shift.sale_refund.total_cash is exist - process it [23:54:48]requested_item shift.buy.total is exist - process it [23:54:48]requested_item shift.buy.total_cash is exist - process it [23:54:48]produce_requested_data done [23:54:48]produce_requested_data return {"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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} [23:54:48]process_action_free get_value [23:54:48]json_value_free [23:54:48]json_value_free done [23:54:48]process_json_proto returns [23:54:48]Send response to host [23:54:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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}}} [23:54:48]free response buf [23:54:48]execute_script done [23:54:48]execute_script returns [23:54:48]free content buf [23:54:48]Sock 8.Close socket [23:54:48]Sock 8.Thread stoped [23:54:48]accept exits with 9 [23:54:48]New connection [23:54:48]New thread 3067141476 created [23:54:48]Thread 3067284836 joined [23:54:48]Waiting for new connection... [23:54:48] Sock 9.Parse request [23:54:48]Sock 9.Check first char [23:54:48]Sock 9.First char is OK [23:54:48]request: POST /json_proto HTTP/1.0 [23:54:48]Method: POST [23:54:48]URL: /json_proto [23:54:48]Method is POST - this is cgi request [23:54:48]url: /json_proto [23:54:48]query_string will be loaded in cgi processing [23:54:48]execute_cgi json_proto POST (null) [23:54:48]execute_cgi path=json_proto method=POST [23:54:48]POST find Content-Length [23:54:48]Host: 172.17.50.196:8080 [23:54:48]Content-Length: 331 [23:54:48]Content-Type: application/json [23:54:48] [23:54:48]POST finish read [23:54:48]Found Content-Length = 331 [23:54:48]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" ] } } [23:54:48]execute_script... [23:54:48]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" ] } } [23:54:48]POST & json_proto [23:54:48]process_json_proto [23:54:48]json parsed OK: [23:54:48]protocol is kg_v1.0 [23:54:48]action value=get_value [23:54:48]process_action get_value [23:54:48]cmd_get_value [23:54:48]process_action get_value done [23:54:48]requested_data is exist [23:54:48]produce_requested_data [23:54:48]requested_item fm.sale.total is exist - process it [23:54:48]SAM_PROTO_GetFMData [23:54:48]wFMCommunicate request_size=4 [23:54:48]MH_SAM_APDU [23:54:48]CAPDU: 80 13 03 00 [23:54:48]Write to MH i2c: E2 08 00 84 63 80 13 03 00 00 00 00 00 66 [23:54:48]Write i2c OK [23:54:48]MH_I2C_Read... [23:54:49]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:49]Read from MH i2c: E2 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 FD 00 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 FD 00 84 63 00 C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 A3 [23:54:49]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:54:49]wFMCommunicate OK [23:54:49]wFMCommunicate request_size=4 [23:54:49]MH_SAM_APDU [23:54:49]CAPDU: 80 17 00 00 [23:54:49]Write to MH i2c: E2 08 00 85 63 80 17 00 00 00 00 00 00 68 [23:54:49]Write i2c OK [23:54:49]MH_I2C_Read... [23:54:49]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:49]Read from MH i2c: E2 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 FD 00 [23:54:49]MH_I2C_Read... [23:54:49]Read from MH i2c: E2 FD 00 85 63 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7F [23:54:49]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:49]wFMCommunicate OK [23:54:49]wFMCommunicate request_size=4 [23:54:49]MH_SAM_APDU [23:54:49]CAPDU: 80 17 00 00 [23:54:49]Write to MH i2c: E2 08 00 86 63 80 17 00 00 00 00 00 00 69 [23:54:49]Write i2c OK [23:54:49]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 FD 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 FD 00 86 63 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 41 [23:54:50]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:50]wFMCommunicate OK [23:54:50]wFMCommunicate request_size=4 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 17 00 00 [23:54:50]Write to MH i2c: E2 08 00 87 63 80 17 00 00 00 00 00 00 6A [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 FD 00 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 FD 00 87 63 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 E5 [23:54:50]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:50]wFMCommunicate OK [23:54:50]wFMCommunicate request_size=4 [23:54:50]MH_SAM_APDU [23:54:50]CAPDU: 80 17 00 00 [23:54:50]Write to MH i2c: E2 08 00 88 63 80 17 00 00 00 00 00 00 6B [23:54:50]Write i2c OK [23:54:50]MH_I2C_Read... [23:54:50]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:54:50]Read from MH i2c: E2 [23:54:50]MH_I2C_Read... [23:54:50]Read from MH i2c: E2 E4 00 [23:54:50]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 E4 00 88 63 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 4B [23:54:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:54:51]wFMCommunicate OK [23:54:51]SAM_PROTO_GetFMData done [23:54:51]requested_item fm.sale_refund.total is exist - process it [23:54:51]requested_item fm.buy.total is exist - process it [23:54:51]requested_item shift.sale.total is exist - process it [23:54:51]SAM_PROTO_GetShiftData [23:54:51]wFMCommunicate request_size=4 [23:54:51]MH_SAM_APDU [23:54:51]CAPDU: 80 13 02 00 [23:54:51]Write to MH i2c: E2 08 00 89 63 80 13 02 00 00 00 00 00 6A [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:51]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:54:51]Read from MH i2c: E2 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 FD 00 [23:54:51]MH_I2C_Read... [23:54:51]Read from MH i2c: E2 FD 00 89 63 00 AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 4D [23:54:51]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:54:51]wFMCommunicate OK [23:54:51]wFMCommunicate request_size=4 [23:54:51]MH_SAM_APDU [23:54:51]CAPDU: 80 17 00 00 [23:54:51]Write to MH i2c: E2 08 00 8A 63 80 17 00 00 00 00 00 00 6D [23:54:51]Write i2c OK [23:54:51]MH_I2C_Read... [23:54:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:52]Read from MH i2c: E2 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 FD 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 FD 00 8A 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 86 [23:54:52]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:54:52]wFMCommunicate OK [23:54:52]wFMCommunicate request_size=4 [23:54:52]MH_SAM_APDU [23:54:52]CAPDU: 80 17 00 00 [23:54:52]Write to MH i2c: E2 08 00 8B 63 80 17 00 00 00 00 00 00 6E [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:52]Read from MH i2c: E2 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 FD 00 [23:54:52]MH_I2C_Read... [23:54:52]Read from MH i2c: E2 FD 00 8B 63 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 22 [23:54:52]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:54:52]wFMCommunicate OK [23:54:52]wFMCommunicate request_size=4 [23:54:52]MH_SAM_APDU [23:54:52]CAPDU: 80 17 00 00 [23:54:52]Write to MH i2c: E2 08 00 8C 63 80 17 00 00 00 00 00 00 6F [23:54:52]Write i2c OK [23:54:52]MH_I2C_Read... [23:54:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 FD 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 FD 00 8C 63 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 ED [23:54:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:54:53]wFMCommunicate OK [23:54:53]wFMCommunicate request_size=4 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 17 00 00 [23:54:53]Write to MH i2c: E2 08 00 8D 63 80 17 00 00 00 00 00 00 70 [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]OFD Sender: No OFD packet to send [23:54:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 CC 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 CC 00 8D 63 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 51 [23:54:53]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:54:53]wFMCommunicate OK [23:54:53]SAM_PROTO_GetShiftData done [23:54:53]requested_item shift.sale.total_cash is exist - process it [23:54:53]requested_item shift.sale_refund.total is exist - process it [23:54:53]requested_item shift.sale_refund.total_cash is exist - process it [23:54:53]requested_item shift.buy.total is exist - process it [23:54:53]requested_item shift.buy.total_cash is exist - process it [23:54:53]produce_requested_data done [23:54:53]produce_requested_data return {"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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} [23:54:53]process_action_free get_value [23:54:53]json_value_free [23:54:53]json_value_free done [23:54:53]process_json_proto returns [23:54:53]Send response to host [23:54:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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}}} [23:54:53]free response buf [23:54:53]execute_script done [23:54:53]execute_script returns [23:54:53]free content buf [23:54:53]Sock 9.Close socket [23:54:53]Sock 9.Thread stoped [23:54:53]accept exits with 8 [23:54:53]New connection [23:54:53]New thread 3067284836 created [23:54:53]Thread 3067141476 joined [23:54:53]Waiting for new connection... [23:54:53] Sock 8.Parse request [23:54:53]Sock 8.Check first char [23:54:53]Sock 8.First char is OK [23:54:53]request: POST /json_proto HTTP/1.0 [23:54:53]Method: POST [23:54:53]URL: /json_proto [23:54:53]Method is POST - this is cgi request [23:54:53]url: /json_proto [23:54:53]query_string will be loaded in cgi processing [23:54:53]execute_cgi json_proto POST (null) [23:54:53]execute_cgi path=json_proto method=POST [23:54:53]POST find Content-Length [23:54:53]Host: 172.17.50.196:8080 [23:54:53]Content-Length: 278 [23:54:53]Content-Type: application/json [23:54:53] [23:54:53]POST finish read [23:54:53]Found Content-Length = 278 [23:54:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0435\u043A\u043D\u0430\u0437\u0430\u0440\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:53]execute_script... [23:54:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_shift", "params" : { "operator" : "\u0411\u0435\u043A\u043D\u0430\u0437\u0430\u0440\u043E\u0432\u0430 \u0414. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:54:53]POST & json_proto [23:54:53]process_json_proto [23:54:53]json parsed OK: [23:54:53]protocol is kg_v1.0 [23:54:53]action value=close_shift [23:54:53]process_action close_shift [23:54:53]cmd_close_shift [23:54:53]MH_GetDate [23:54:53]Write to MH i2c: F0 00 00 8E 63 E0 [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: F0 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: F0 09 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: F0 09 00 8E 63 00 55 C7 22 67 72 0D 1C 67 90 [23:54:53]GetLastDocTimeStamp 1730332448 [23:54:53]current date 1730332501 [23:54:53]FM_GetShiftState [23:54:53]SAM_PROTO_GetShiftState [23:54:53]wFMCommunicate request_size=4 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 13 01 00 [23:54:53]Write to MH i2c: E2 08 00 8F 63 80 13 01 00 00 00 00 00 6F [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 0E 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 0E 00 8F 63 00 09 00 01 86 76 21 67 00 00 00 00 90 00 FF [23:54:53]RAPDU: 09 00 01 86 76 21 67 00 00 00 00 90 00 [23:54:53]wFMCommunicate OK [23:54:53]SAM_PROTO_GetShiftState done [23:54:53]FM_GetShiftState done [23:54:53]KKMCreateCloseShiftDocument [23:54:53]Load OK [23:54:53]Malloc new data [23:54:53]MH_GetDate [23:54:53]Write to MH i2c: F0 00 00 90 63 E2 [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: F0 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: F0 09 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: F0 09 00 90 63 00 55 C7 22 67 72 0D 1C 67 92 [23:54:53]Malloc new data [23:54:53]Malloc new data [23:54:53]Malloc new data [23:54:53]Malloc new data [23:54:53]KKMCreateCloseShiftDocument OK [23:54:53]KKMSetCloseShiftData OK [23:54:53]ProcessDocumentItem done err = 0, tmpTLVsize=77 [23:54:53]tlvbuf is 013B4090 [23:54:53]KKMLoadAndSignCloseShiftData [23:54:53]SAM_PROTO_ProcessDocument [23:54:53]wFMCommunicate request_size=9 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 15 01 00 04 05 00 4D 00 [23:54:53]Write to MH i2c: E2 0C 00 91 63 80 15 01 00 04 00 05 00 4D 00 00 00 CD [23:54:53]Write i2c OK [23:54:53]MH_I2C_Read... [23:54:53]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:54:53]Read from MH i2c: E2 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 03 00 [23:54:53]MH_I2C_Read... [23:54:53]Read from MH i2c: E2 03 00 91 63 00 90 00 68 [23:54:53]RAPDU: 90 00 [23:54:53]wFMCommunicate OK [23:54:53]wFMCommunicate request_size=23 [23:54:53]MH_SAM_APDU [23:54:53]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:54:53]Write to MH i2c: E2 1A 00 92 63 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 6A [23:54:53]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 03 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 03 00 92 63 00 90 00 69 [23:54:54]RAPDU: 90 00 [23:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=36 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 15 02 00 1F FD 03 1B 00 D0 91 D0 B5 D0 BA D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 D0 B0 20 D0 94 2E 20 [23:54:54]Write to MH i2c: E2 27 00 93 63 80 15 02 00 1F 00 FD 03 1B 00 D0 91 D0 B5 D0 BA D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 D0 B0 20 D0 94 2E 20 00 00 06 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 03 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 03 00 93 63 00 90 00 6A [23:54:54]RAPDU: 90 00 [23:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=13 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 15 02 00 08 F4 03 04 00 55 C7 22 67 [23:54:54]Write to MH i2c: E2 10 00 94 63 80 15 02 00 08 00 F4 03 04 00 55 C7 22 67 00 00 27 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 03 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 03 00 94 63 00 90 00 6B [23:54:54]RAPDU: 90 00 [23:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=25 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [23:54:54]Write to MH i2c: E2 1C 00 95 63 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 D5 [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 03 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 03 00 95 63 00 90 00 6C [23:54:54]RAPDU: 90 00 [23:54:54]wFMCommunicate OK [23:54:54]wFMCommunicate request_size=4 [23:54:54]MH_SAM_APDU [23:54:54]CAPDU: 80 15 03 00 [23:54:54]Write to MH i2c: E2 08 00 96 63 80 15 03 00 00 00 00 00 7A [23:54:54]Write i2c OK [23:54:54]MH_I2C_Read... [23:54:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 250! [23:54:54]Read from MH i2c: E2 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 [23:54:54]MH_I2C_Read... [23:54:54]Read from MH i2c: E2 FD 00 96 63 00 F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 02 21 02 00 0E 04 04 00 2C 02 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 EA [23:54:55]RAPDU: F2 04 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 02 21 02 00 0E 04 04 00 2C 02 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 90 00 [23:54:55]wFMCommunicate OK [23:54:55]SAM_PROTO_ProcessDocument answer len = 1266 [23:54:55]SAM_PROTO_ProcessDocument remain to read = 1018 [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 17 00 00 [23:54:55]Write to MH i2c: E2 08 00 97 63 80 17 00 00 00 00 00 00 7A [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 97 63 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 C0 [23:54:55]RAPDU: 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 90 00 [23:54:55]wFMCommunicate OK [23:54:55]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:54:55]SAM_PROTO_ProcessDocument remain to read = 768 [23:54:55]wFMCommunicate request_size=4 [23:54:55]MH_SAM_APDU [23:54:55]CAPDU: 80 17 00 00 [23:54:55]Write to MH i2c: E2 08 00 98 63 80 17 00 00 00 00 00 00 7B [23:54:55]Write i2c OK [23:54:55]MH_I2C_Read... [23:54:55]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:55]Read from MH i2c: E2 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 [23:54:55]MH_I2C_Read... [23:54:55]Read from MH i2c: E2 FD 00 98 63 00 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 DD [23:54:56]RAPDU: 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 90 00 [23:54:56]wFMCommunicate OK [23:54:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:54:56]SAM_PROTO_ProcessDocument remain to read = 518 [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 17 00 00 [23:54:56]Write to MH i2c: E2 08 00 99 63 80 17 00 00 00 00 00 00 7C [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:56]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:56]Read from MH i2c: E2 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 [23:54:56]MH_I2C_Read... [23:54:56]Read from MH i2c: E2 FD 00 99 63 00 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 90 00 17 [23:54:56]RAPDU: 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 90 00 [23:54:56]wFMCommunicate OK [23:54:56]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:54:56]SAM_PROTO_ProcessDocument remain to read = 268 [23:54:56]wFMCommunicate request_size=4 [23:54:56]MH_SAM_APDU [23:54:56]CAPDU: 80 17 00 00 [23:54:56]Write to MH i2c: E2 08 00 9A 63 80 17 00 00 00 00 00 00 7D [23:54:56]Write i2c OK [23:54:56]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 FD 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 FD 00 9A 63 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 34 [23:54:57]RAPDU: F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 90 00 [23:54:57]wFMCommunicate OK [23:54:57]SAM_PROTO_ProcessDocument received (without SW) 250 bytes [23:54:57]SAM_PROTO_ProcessDocument remain to read = 18 [23:54:57]wFMCommunicate request_size=4 [23:54:57]MH_SAM_APDU [23:54:57]CAPDU: 80 17 00 00 [23:54:57]Write to MH i2c: E2 08 00 9B 63 80 17 00 00 00 00 00 00 7E [23:54:57]Write i2c OK [23:54:57]MH_I2C_Read... [23:54:57]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 18! [23:54:57]Read from MH i2c: E2 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 15 00 [23:54:57]MH_I2C_Read... [23:54:57]Read from MH i2c: E2 15 00 9B 63 00 03 01 00 06 F7 03 00 00 35 04 06 00 6D 20 29 C3 E4 59 90 00 7D [23:54:57]RAPDU: 03 01 00 06 F7 03 00 00 35 04 06 00 6D 20 29 C3 E4 59 90 00 [23:54:57]wFMCommunicate OK [23:54:57]SAM_PROTO_ProcessDocument received (without SW) 18 bytes [23:54:57]SAM_PROTO_ProcessDocument done [23:54:57]1209 (1) - 1.0 - номер версии ФФД [23:54:57]1041 (16) - 0000000000874669 - номер ФМ [23:54:57]1040 (4) - 139522 - номер ФД [23:54:57]1038 (4) - 556 - номер смены [23:54:57]1118 (4) - 205 - количество кассовых чеков за смену [23:54:57]1111 (4) - 207 - общее количество ФД за смену [23:54:57]1194 (1195) - счетчики итогов смены [23:54:57] 1134 (4) - 205 - количество чеков со всеми признаками расчетов [23:54:57] 1129 (156) - счетчики операций «приход» [23:54:57] 1135 (4) - 205 - количество чеков по признаку расчетов [23:54:57] 1201 (3) - 92756.89 - общая итоговая сумма в чеках [23:54:57] 1136 (3) - 51709.00 - итоговая сумма в чеках наличными [23:54:57] 1138 (3) - 41047.89 - итоговая сумма в чеках безналичными [23:54:57] 1024 (123) - суммы налогов [23:54:57] 1006 (9) - суммы НДС [23:54:57] 1010 (1) - 0% - код ставки НДС [23:54:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:57] 1006 (12) - суммы НДС [23:54:57] 1010 (1) - 12% - код ставки НДС [23:54:57] 1011 (3) - 9850.94 - сумма НДС по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (12) - суммы НСП [23:54:57] 1014 (1) - 1% - код ставки НСП [23:54:57] 1015 (3) - 820.79 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 2% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 3% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 5% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0,50% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 1,50% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1130 (141) - счетчики операций «возврат прихода» [23:54:57] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:57] 1024 (117) - суммы налогов [23:54:57] 1006 (9) - суммы НДС [23:54:57] 1010 (1) - 0% - код ставки НДС [23:54:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:57] 1006 (9) - суммы НДС [23:54:57] 1010 (1) - 12% - код ставки НДС [23:54:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 1% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 2% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 3% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 5% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0,50% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 1,50% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1131 (141) - счетчики операций «расход» [23:54:57] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:57] 1024 (117) - суммы налогов [23:54:57] 1006 (9) - суммы НДС [23:54:57] 1010 (1) - 0% - код ставки НДС [23:54:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:57] 1006 (9) - суммы НДС [23:54:57] 1010 (1) - 12% - код ставки НДС [23:54:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 1% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 2% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 3% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 5% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0,50% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 1,50% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1132 (141) - счетчики операций «возврат расхода» [23:54:57] 1135 (4) - 0 - количество чеков по признаку расчетов [23:54:57] 1201 (0) - 0.00 - общая итоговая сумма в чеках [23:54:57] 1136 (0) - 0.00 - итоговая сумма в чеках наличными [23:54:57] 1138 (0) - 0.00 - итоговая сумма в чеках безналичными [23:54:57] 1024 (117) - суммы налогов [23:54:57] 1006 (9) - суммы НДС [23:54:57] 1010 (1) - 0% - код ставки НДС [23:54:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:57] 1006 (9) - суммы НДС [23:54:57] 1010 (1) - 12% - код ставки НДС [23:54:57] 1011 (0) - 0.00 - сумма НДС по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 1% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 2% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 3% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 5% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 0,50% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1007 (9) - суммы НСП [23:54:57] 1014 (1) - 1,50% - код ставки НСП [23:54:57] 1015 (0) - 0.00 - сумма НСП по ставке [23:54:57] 1133 (588) - - счетчики коррекции - не используются [23:54:57]1077 (6) - 119984907084889 - ФПД [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1209 (04B9) [23:54:57]Malloc new data [23:54:57]Processing tag 1041 (0411) [23:54:57]Processing tag 1040 (0410) [23:54:57]Malloc new data [23:54:57]Processing tag 1038 (040E) [23:54:57]Malloc new data [23:54:57]Processing tag 1118 (045E) [23:54:57]Malloc new data [23:54:57]Processing tag 1111 (0457) [23:54:57]Malloc new data [23:54:57]Processing tag 1194 (04AA) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1134 (046E) [23:54:57]Malloc new data [23:54:57]Processing tag 1129 (0469) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1135 (046F) [23:54:57]Malloc new data [23:54:57]Processing tag 1201 (04B1) [23:54:57]Malloc new data [23:54:57]Processing tag 1136 (0470) [23:54:57]Malloc new data [23:54:57]Processing tag 1138 (0472) [23:54:57]Malloc new data [23:54:57]Processing tag 1024 (0400) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1006 (03EE) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1010 (03F2) [23:54:57]Malloc new data [23:54:57]Processing tag 1011 (03F3) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]Processing tag 1006 (03EE) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1010 (03F2) [23:54:57]Malloc new data [23:54:57]Processing tag 1011 (03F3) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]Processing tag 1007 (03EF) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1014 (03F6) [23:54:57]Malloc new data [23:54:57]Processing tag 1015 (03F7) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]Processing tag 1007 (03EF) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1014 (03F6) [23:54:57]Malloc new data [23:54:57]Processing tag 1015 (03F7) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]Processing tag 1007 (03EF) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1014 (03F6) [23:54:57]Malloc new data [23:54:57]Processing tag 1015 (03F7) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]Processing tag 1007 (03EF) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1014 (03F6) [23:54:57]Malloc new data [23:54:57]Processing tag 1015 (03F7) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]Processing tag 1007 (03EF) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1014 (03F6) [23:54:57]Malloc new data [23:54:57]Processing tag 1015 (03F7) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]Processing tag 1007 (03EF) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1014 (03F6) [23:54:57]Malloc new data [23:54:57]Processing tag 1015 (03F7) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]Processing tag 1007 (03EF) [23:54:57]Load OK [23:54:57]SetTLVBufToDocument [23:54:57]Processing tag 1014 (03F6) [23:54:57]Malloc new data [23:54:57]Processing tag 1015 (03F7) [23:54:57]Malloc new data [23:54:57]SetTLVBufToDocument err=0 [23:54:57]SetTLVBufToDocument err=0 [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1130 (046A) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1135 (046F) [23:54:58]Malloc new data [23:54:58]Processing tag 1201 (04B1) [23:54:58]Malloc new data [23:54:58]Processing tag 1136 (0470) [23:54:58]Malloc new data [23:54:58]Processing tag 1138 (0472) [23:54:58]Malloc new data [23:54:58]Processing tag 1024 (0400) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1006 (03EE) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1010 (03F2) [23:54:58]Malloc new data [23:54:58]Processing tag 1011 (03F3) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1006 (03EE) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1010 (03F2) [23:54:58]Malloc new data [23:54:58]Processing tag 1011 (03F3) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]SetTLVBufToDocument err=0 [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1131 (046B) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1135 (046F) [23:54:58]Malloc new data [23:54:58]Processing tag 1201 (04B1) [23:54:58]Malloc new data [23:54:58]Processing tag 1136 (0470) [23:54:58]Malloc new data [23:54:58]Processing tag 1138 (0472) [23:54:58]Malloc new data [23:54:58]Processing tag 1024 (0400) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1006 (03EE) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1010 (03F2) [23:54:58]Malloc new data [23:54:58]Processing tag 1011 (03F3) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1006 (03EE) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1010 (03F2) [23:54:58]Malloc new data [23:54:58]Processing tag 1011 (03F3) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]SetTLVBufToDocument err=0 [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1132 (046C) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1135 (046F) [23:54:58]Malloc new data [23:54:58]Processing tag 1201 (04B1) [23:54:58]Malloc new data [23:54:58]Processing tag 1136 (0470) [23:54:58]Malloc new data [23:54:58]Processing tag 1138 (0472) [23:54:58]Malloc new data [23:54:58]Processing tag 1024 (0400) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1006 (03EE) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1010 (03F2) [23:54:58]Malloc new data [23:54:58]Processing tag 1011 (03F3) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1006 (03EE) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1010 (03F2) [23:54:58]Malloc new data [23:54:58]Processing tag 1011 (03F3) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1007 (03EF) [23:54:58]Load OK [23:54:58]SetTLVBufToDocument [23:54:58]Processing tag 1014 (03F6) [23:54:58]Malloc new data [23:54:58]Processing tag 1015 (03F7) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]SetTLVBufToDocument err=0 [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1133 (046D) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Processing tag 1077 (0435) [23:54:58]Malloc new data [23:54:58]SetTLVBufToDocument err=0 [23:54:58]Malloc new data [23:54:58]SAM_PROTO_GetFMData [23:54:58]wFMCommunicate request_size=4 [23:54:58]MH_SAM_APDU [23:54:58]CAPDU: 80 13 03 00 [23:54:58]Write to MH i2c: E2 08 00 9C 63 80 13 03 00 00 00 00 00 7E [23:54:58]OFD Sender: No OFD packet to send [23:54:58]Write i2c OK [23:54:58]MH_I2C_Read... [23:54:58]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:54:58]Read from MH i2c: E2 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 FD 00 [23:54:58]MH_I2C_Read... [23:54:58]Read from MH i2c: E2 FD 00 9C 63 00 C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 BB [23:54:59]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:54:59]wFMCommunicate OK [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 17 00 00 [23:54:59]Write to MH i2c: E2 08 00 9D 63 80 17 00 00 00 00 00 00 80 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:54:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:54:59]Read from MH i2c: E2 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 FD 00 [23:54:59]MH_I2C_Read... [23:54:59]Read from MH i2c: E2 FD 00 9D 63 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 97 [23:54:59]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:54:59]wFMCommunicate OK [23:54:59]wFMCommunicate request_size=4 [23:54:59]MH_SAM_APDU [23:54:59]CAPDU: 80 17 00 00 [23:54:59]Write to MH i2c: E2 08 00 9E 63 80 17 00 00 00 00 00 00 81 [23:54:59]Write i2c OK [23:54:59]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 9E 63 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 59 [23:55:00]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:00]wFMCommunicate OK [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 17 00 00 [23:55:00]Write to MH i2c: E2 08 00 9F 63 80 17 00 00 00 00 00 00 82 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:55:00]Read from MH i2c: E2 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 [23:55:00]MH_I2C_Read... [23:55:00]Read from MH i2c: E2 FD 00 9F 63 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 FD [23:55:00]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:55:00]wFMCommunicate OK [23:55:00]wFMCommunicate request_size=4 [23:55:00]MH_SAM_APDU [23:55:00]CAPDU: 80 17 00 00 [23:55:00]Write to MH i2c: E2 08 00 A0 63 80 17 00 00 00 00 00 00 83 [23:55:00]Write i2c OK [23:55:00]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 E4 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 E4 00 A0 63 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 63 [23:55:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:55:01]wFMCommunicate OK [23:55:01]SAM_PROTO_GetFMData done [23:55:01]Malloc new data [23:55:01]Malloc new data [23:55:01]Malloc new data [23:55:01]Malloc new data [23:55:01]KKMLoadAndSignCloseShiftData err=0 [23:55:01]Отчет о закрытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Бекназарова Д. 30.10.2024 23:55 Смена: 556 РНМ: 0000000000091631 ЗНМ: 0300000081 СНО: Общий режим Чеков за смену: 205 ФД за смену: 207 Всего чеков: 205 ИТОГИ ПРИХОД Чеков: 205 Общий итог: 92756.89 Итого наличными: 51709.00 Итого безнал.: 41047.89 НДС 0% : 0.00 НДС 12% : 9850.94 НСП 0% : 0.00 НСП 1,50% : 0.00 НСП 0,50% : 0.00 НСП 5% : 0.00 НСП 3% : 0.00 НСП 2% : 0.00 НСП 1% : 820.79 ИТОГИ ВОЗВРАТ ПРИХОДА Чеков: 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 Нал. в кассе: 51709.00 НС Приход: 56800301.05 НС Возвр.Прихода: 1513352.00 НС Расход: 0.00 НС Возвр.Расхода: 0.00 ФД: 139522 ФМ: 0000000000874669 ФПД: 119984907084889 [23:55:01]StoreToDocumentArchive [23:55:01]shift 556 fd 139522 [23:55:01]save to /storage/0556/doc_00139522 [23:55:01]save last doc name /storage/0556/doc_00139522 to /storage/kkm_last_doc_name [23:55:01]save OK [23:55:01]Clear old archive folders... [23:55:01]Remove dir /storage/0522 [23:55:01]opendir ok [23:55:01]file . [23:55:01]file .. [23:55:01]file doc_1730332456 [23:55:01]remove file /storage/0522/doc_1730332456 [23:55:01]remove dir /storage/0522 [23:55:01]NVStorageSaveData kkm_registers [23:55:01]File name is /storage/kkm_registers [23:55:01]Write 24 bytes [23:55:01]NVStorageSaveData done [23:55:01]NVStorageSaveData kkm_registers [23:55:01]File name is /storage/kkm_registers [23:55:01]Write 24 bytes [23:55:01]NVStorageSaveData done [23:55:01]ProcessDocumentItem done err = 0, tmpTLVsize=1386 [23:55:01]tlvbuf is 012730B0 [23:55:01]SAM_PROTO_ClearQueue [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 09 00 00 [23:55:01]Write to MH i2c: E2 08 00 A1 63 80 09 00 00 00 00 00 00 76 [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 03 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 03 00 A1 63 00 90 00 78 [23:55:01]RAPDU: 90 00 [23:55:01]wFMCommunicate OK [23:55:01]SAM_PROTO_ClearQueue done [23:55:01]KKMCreateOFDPacket [23:55:01]OFDProtocolAddRootSTLVToBuf [23:55:01]FM_MakeSignedData [23:55:01]FM_MakeSignedData [23:55:01]SAM_PROTO_SignData [23:55:01]wFMCommunicate request_size=4 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 0D 01 02 [23:55:01]Write to MH i2c: E2 08 00 A2 63 80 0D 01 02 00 00 00 00 7E [23:55:01]Write i2c OK [23:55:01]MH_I2C_Read... [23:55:01]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:55:01]Read from MH i2c: E2 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 03 00 [23:55:01]MH_I2C_Read... [23:55:01]Read from MH i2c: E2 03 00 A2 63 00 90 00 79 [23:55:01]RAPDU: 90 00 [23:55:01]wFMCommunicate OK [23:55:01]wFMCommunicate request_size=255 [23:55:01]MH_SAM_APDU [23:55:01]CAPDU: 80 0D 02 02 FA 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 BA D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 55 C7 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 AA 04 D6 04 6E 04 04 00 CD 00 00 00 69 04 A3 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 [23:55:01]Write to MH i2c: E2 02 01 A3 63 80 0D 02 02 FA 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 BA D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 55 C7 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 AA 04 D6 04 6E 04 04 00 CD 00 00 00 69 04 A3 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 00 00 C5 [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 A3 63 00 90 00 7A [23:55:02]RAPDU: 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=255 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 0D 02 02 FA 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9F 40 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 [23:55:02]Write to MH i2c: E2 02 01 A4 63 80 0D 02 02 FA 00 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0C 00 F6 03 01 00 01 F7 03 03 00 9F 40 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 00 00 DD [23:55:02]Write i2c OK [23:55:02]MH_I2C_Read... [23:55:02]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:02]Read from MH i2c: E2 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 [23:55:02]MH_I2C_Read... [23:55:02]Read from MH i2c: E2 03 00 A4 63 00 90 00 7B [23:55:02]RAPDU: 90 00 [23:55:02]wFMCommunicate OK [23:55:02]wFMCommunicate request_size=255 [23:55:02]MH_SAM_APDU [23:55:02]CAPDU: 80 0D 02 02 FA 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 [23:55:03]Write to MH i2c: E2 02 01 A5 63 80 0D 02 02 FA 00 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 00 00 45 [23:55:03]Write i2c OK [23:55:03]MH_I2C_Read... [23:55:03]OFD Sender: No OFD packet to send [23:55:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:03]Read from MH i2c: E2 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 03 00 [23:55:03]MH_I2C_Read... [23:55:03]Read from MH i2c: E2 03 00 A5 63 00 90 00 7C [23:55:03]RAPDU: 90 00 [23:55:03]wFMCommunicate OK [23:55:03]wFMCommunicate request_size=255 [23:55:03]MH_SAM_APDU [23:55:03]CAPDU: 80 0D 02 02 FA 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 [23:55:03]Write to MH i2c: E2 02 01 A6 63 80 0D 02 02 FA 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 00 48 [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:04]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:04]Read from MH i2c: E2 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 03 00 [23:55:04]MH_I2C_Read... [23:55:04]Read from MH i2c: E2 03 00 A6 63 00 90 00 7D [23:55:04]RAPDU: 90 00 [23:55:04]wFMCommunicate OK [23:55:04]wFMCommunicate request_size=255 [23:55:04]MH_SAM_APDU [23:55:04]CAPDU: 80 0D 02 02 FA 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 [23:55:04]Write to MH i2c: E2 02 01 A7 63 80 0D 02 02 FA 00 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 00 00 0A [23:55:04]Write i2c OK [23:55:04]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 03 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 03 00 A7 63 00 90 00 7E [23:55:05]RAPDU: 90 00 [23:55:05]wFMCommunicate OK [23:55:05]wFMCommunicate request_size=145 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 0D 02 02 8C 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 6D 20 29 C3 E4 59 [23:55:05]Write to MH i2c: E2 94 00 A8 63 80 0D 02 02 8C 00 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 02 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 6D 20 29 C3 E4 59 00 00 B0 [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 03 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 03 00 A8 63 00 90 00 7F [23:55:05]RAPDU: 90 00 [23:55:05]wFMCommunicate OK [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 0D 03 02 [23:55:05]Write to MH i2c: E2 08 00 A9 63 80 0D 03 02 00 00 00 00 87 [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 0B 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 0B 00 A9 63 00 E9 33 FC 8C D9 1F 7E 11 90 00 B3 [23:55:05]RAPDU: E9 33 FC 8C D9 1F 7E 11 90 00 [23:55:05]wFMCommunicate OK [23:55:05]SAM_PROTO_SignData done [23:55:05]FM_MakeSignedData done [23:55:05]CreateOFDProtocolMessage [23:55:05]wFMCommunicate request_size=4 [23:55:05]MH_SAM_APDU [23:55:05]CAPDU: 80 11 00 00 [23:55:05]Write to MH i2c: E2 08 00 AA 63 80 11 00 00 00 00 00 00 87 [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:55:05]Read from MH i2c: E2 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 17 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: E2 17 00 AA 63 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E2 [23:55:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:55:05]wFMCommunicate OK [23:55:05]CreateOFDProtocolMessage done [23:55:05]OFDSenderStorePacket 139522 [23:55:05]StoreOFDPacket docnum=139522 [23:55:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 7E 05 00 00 BF 38 76 05 FF 38 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 BA D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 55 C7 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 AA 04 D6 04 6E 04 04 00 CD 00 00 00 69 04 A3 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 9F 40 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 10 04 04 00 02 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 6D 20 29 C3 E4 59 E9 33 FC 8C D9 1F 7E 11 [23:55:05]CheckFolder [23:55:05]dirname=/storage/ofd_packets [23:55:05]CheckFolder done [23:55:05]ProducePacketName [23:55:05]name=ofd_packets/00139522 [23:55:05]NVStorageSaveData ofd_packets/00139522 [23:55:05]File name is /storage/ofd_packets/00139522 [23:55:05]Write 1436 bytes [23:55:05]NVStorageSaveData done [23:55:05]OFDSenderStorePacket done [23:55:05]KKMCreateOFDPacket done [23:55:05]NVStorageSaveData kkm_last_timestamp [23:55:05]File name is /storage/kkm_last_timestamp [23:55:05]Write 4 bytes [23:55:05]NVStorageSaveData done [23:55:05]ExternCall_PrintAddStr [23:55:05]wPrintStart [23:55:05]Write to MH i2c: 01 00 00 AB 63 0E [23:55:05]Write i2c OK [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: 01 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: 01 07 00 [23:55:05]MH_I2C_Read... [23:55:05]Read from MH i2c: 01 07 00 AB 63 00 00 00 00 00 FF 0F 23 [23:55:05]RasterBufferAndPrint [23:55:05]line Отчет о закрытии смены [23:55:05]line ФФД: 1.0 [23:55:05]line ИНН: 02508201610067 [23:55:05]line Кассир: Бекназарова Д. [23:55:05]line 30.10.2024 23:55 [23:55:05]line Смена: 556 [23:55:05]line РНМ: 0000000000091631 [23:55:05]line ЗНМ: 0300000081 [23:55:05]line СНО: Общий режим [23:55:05]line Чеков за смену: 205 [23:55:05]line ФД за смену: 207 [23:55:05]line Всего чеков: 205 [23:55:05]line ИТОГИ ПРИХОД [23:55:05]line Чеков: 205 [23:55:05]line Общий итог: 92756.89 [23:55:05]line Итого наличными: 51709.00 [23:55:05]line Итого безнал.: 41047.89 [23:55:05]line НДС 0% : 0.00 [23:55:05]line НДС 12% : 9850.94 [23:55:05]line НСП 0% : 0.00 [23:55:05]line НСП 1,50% : 0.00 [23:55:05]line НСП 0,50% : 0.00 [23:55:05]line НСП 5% : 0.00 [23:55:06]line НСП 3% : 0.00 [23:55:06]line НСП 2% : 0.00 [23:55:06]line НСП 1% : 820.79 [23:55:06]line ИТОГИ ВОЗВРАТ ПРИХОДА [23:55:06]line Чеков: 0 [23:55:06]line Общий итог: 0.00 [23:55:06]line Итого наличными: 0.00 [23:55:06]line Итого безнал.: 0.00 [23:55:06]line НДС 0% : 0.00 [23:55:06]line НДС 12% : 0.00 [23:55:06]line НСП 0% : 0.00 [23:55:06]line НСП 1,50% : 0.00 [23:55:06]line НСП 0,50% : 0.00 [23:55:06]line НСП 5% : 0.00 [23:55:06]line НСП 3% : 0.00 [23:55:06]line НСП 2% : 0.00 [23:55:06]line НСП 1% : 0.00 [23:55:06]line ИТОГИ РАСХОД [23:55:06]line Чеков: 0 [23:55:06]line Общий итог: 0.00 [23:55:06]line Итого наличными: 0.00 [23:55:06]line Итого безнал.: 0.00 [23:55:06]line НДС 0% : 0.00 [23:55:06]line НДС 12% : 0.00 [23:55:06]line НСП 0% : 0.00 [23:55:06]line НСП 1,50% : 0.00 [23:55:06]line НСП 0,50% : 0.00 [23:55:06]line НСП 5% : 0.00 [23:55:06]line НСП 3% : 0.00 [23:55:06]line НСП 2% : 0.00 [23:55:06]line НСП 1% : 0.00 [23:55:06]line ИТОГИ ВОЗВРАТ РАСХОДА [23:55:06]line Чеков: 0 [23:55:06]line Общий итог: 0.00 [23:55:06]line Итого наличными: 0.00 [23:55:06]line Итого безнал.: 0.00 [23:55:06]line НДС 0% : 0.00 [23:55:06]line НДС 12% : 0.00 [23:55:06]line НСП 0% : 0.00 [23:55:06]line НСП 1,50% : 0.00 [23:55:06]line НСП 0,50% : 0.00 [23:55:06]line НСП 5% : 0.00 [23:55:06]line НСП 3% : 0.00 [23:55:06]line НСП 2% : 0.00 [23:55:06]line НСП 1% : 0.00 [23:55:06]line Сумма внесений: 0.00 [23:55:06]line Сумма выплат: 0.00 [23:55:06]line Нал. в кассе: 51709.00 [23:55:06]line НС Приход: 56800301.05 [23:55:06]line НС Возвр.Прихода: 1513352.00 [23:55:06]line НС Расход: 0.00 [23:55:06]line НС Возвр.Расхода: 0.00 [23:55:06]line ФД: 139522 [23:55:06]line ФМ: 0000000000874669 [23:55:06]line ФПД: 119984907084889 [23:55:06]OFD Sender: Processing packet 139522 [packets to send 34, broken 33] [23:55:06]ProducePacketName [23:55:06]name=ofd_packets/00139522 [23:55:06]OFD Sender: To server: pG, [23:55:06]CommunicateWithHost lk.salyk.kg:30040 [23:55:06]ConnectInit lk.salyk.kg [23:55:06]written 0, free lines is 4095 [23:55:06]Connected sock=10 [23:55:06]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 7E 05 00 00 BF 38 76 05 FF 38 5A 05 01 00 05 00 6A 05 B9 04 01 00 01 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 FD 03 1B 00 D0 91 D0 B5 D0 BA D0 BD D0 B0 D0 B7 D0 B0 D1 80 D0 BE D0 B2 D0 B0 20 D0 94 2E 20 F4 03 04 00 55 C7 22 67 0E 04 04 00 2C 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 AA 04 D6 04 6E 04 04 00 CD 00 00 00 69 04 A3 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 9F 40 01 6A 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6B 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6C 04 99 00 6F 04 04 00 00 00 00 00 B1 04 01 00 00 70 04 01 00 00 72 04 01 00 00 00 04 7E 00 EE 03 0A 00 F2 03 01 00 00 F3 03 01 00 00 EE 03 0A 00 F2 03 01 00 01 F3 03 01 00 00 EF 03 0A 00 F6 03 01 00 00 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 06 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 05 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 04 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 03 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 02 F7 03 01 00 00 EF 03 0A 00 F6 03 01 00 01 F7 03 01 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 Write to MH i2c: F6 01 03 00 01 00 00 FB 01 63 F7 5E 03 [23:55:07]00 00 Write i2c OK [23:55:07]EF MH_I2C_Read... [23:55:07]03 Read from MH i2c: 09 01 00 [23:55:07]F6 MH_I2C_Read... [23:55:07]03 01 00 02 F7 03 00 Read from MH i2c: 00 01 EF 07 03 09 00 F6 03 01 00 03 F7 00 03 [23:55:07]00 MH_I2C_Read... [23:55:07]00 EF 03 09 00 F6 03 01 00 Read from MH i2c: 04 01 F7 07 03 00 00 FB 00 63 EF 00 03 00 09 00 00 00 00 72 0D E4 [23:55:07]RasterBufferAndPrint [23:55:07]line [23:55:07]line [23:55:07]line [23:55:07]line [23:55:07]line [23:55:07]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 written 0, free lines is 3552 [23:55:07]04 00 00 00 04 75 00 EE 03 09 00 F2 03 MH_Cut [23:55:07]01 Write to MH i2c: 00 D1 00 01 F3 00 03 02 00 64 00 01 EE 38 03 [23:55:07]09 00 F2 03 Write i2c OK [23:55:07]01 MH_I2C_Read... [23:55:07]00 01 F3 03 00 00 EF 03 09 Read from MH i2c: 00 D1 F6 [23:55:07]03 MH_I2C_Read... [23:55:07]01 Read from MH i2c: 00 D1 01 00 00 F7 [23:55:07]03 MH_I2C_Read... [23:55:07]00 Read from MH i2c: 00 D1 EF 01 03 00 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 02 00 64 F6 00 03 37 01 [23:55:07]00 Write to MH i2c: 02 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 00 03 00 00 03 00 64 EF 67 03 [23:55:07]09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 Write i2c OK [23:55:07]01 MH_I2C_Read... [23:55:07]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 02 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 6D 20 29 C3 E4 59 E9 33 FC 8C D9 1F 7E 11 [23:55:07]*** Cut start [23:55:07]*** Partial cut [23:55:07]*** CUTSNS_PIN = 1 [23:55:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 *** CUTSNS_PIN = 0 [23:55:08]36 36 39 4F 00 00 00 7F 14 47 00 F5 83 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 02 21 02 00 F4 03 04 00 10 73 22 67 B6 04 01 00 00 E9 C0 94 22 FA 2C 45 BF *** Brake cut motor [23:55:08] [23:55:08]CommunicateWithHost err = 0 [23:55:08]CheckOFDResponse [23:55:08]1017 (14) - 77093643461234 [23:55:08]1041 (16) - 0000000000874669 [23:55:08]1040 (4) - 139522 [23:55:08]1012 (4) - 30.10.2024 17:55 [23:55:08]1206 (1) - 0 [23:55:08]OFD Sender: Remove packet 139522 [23:55:08]ProducePacketName [23:55:08]name=ofd_packets/00139522 [23:55:08]NVStorageDeleteData [23:55:08]Read from MH i2c: *** Stop cut motor [23:55:08]01 *** Cut end [23:55:08] [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: 01 07 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: 01 07 00 03 64 00 00 00 00 00 FF 0F 7C [23:55:08]process_action close_shift done [23:55:08]requested_data is exist [23:55:08]produce_requested_data [23:55:08]requested_item fd.num is exist - process it [23:55:08]SAM_PROTO_GetFieldsCounters [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 13 00 00 [23:55:08]Write to MH i2c: E2 08 00 04 64 80 13 00 00 00 00 00 00 E4 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 62 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 62 00 04 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 02 21 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 CD 00 00 00 5E 04 OFD Sender: No OFD packet to send [23:55:08]04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 C3 [23:55:08]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 02 21 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:55:08]wFMCommunicate OK [23:55:08]SAM_PROTO_GetFieldsCounters done [23:55:08]requested_item shift.num is exist - process it [23:55:08]requested_item shift.opened is exist - process it [23:55:08]req_shift_opened [23:55:08]FM_GetShiftState [23:55:08]SAM_PROTO_GetShiftState [23:55:08]wFMCommunicate request_size=4 [23:55:08]MH_SAM_APDU [23:55:08]CAPDU: 80 13 01 00 [23:55:08]Write to MH i2c: E2 08 00 05 64 80 13 01 00 00 00 00 00 E6 [23:55:08]Write i2c OK [23:55:08]MH_I2C_Read... [23:55:08]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:08]Read from MH i2c: E2 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 0E 00 [23:55:08]MH_I2C_Read... [23:55:08]Read from MH i2c: E2 0E 00 05 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F1 [23:55:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_GetShiftState done [23:55:09]FM_GetShiftState done [23:55:09]req_shift_opened done [23:55:09]requested_item shift.open_date is exist - process it [23:55:09]req_shift_open_date [23:55:09]FM_GetShiftState [23:55:09]SAM_PROTO_GetShiftState [23:55:09]wFMCommunicate request_size=4 [23:55:09]MH_SAM_APDU [23:55:09]CAPDU: 80 13 01 00 [23:55:09]Write to MH i2c: E2 08 00 06 64 80 13 01 00 00 00 00 00 E7 [23:55:09]Write i2c OK [23:55:09]MH_I2C_Read... [23:55:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:55:09]Read from MH i2c: E2 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 0E 00 [23:55:09]MH_I2C_Read... [23:55:09]Read from MH i2c: E2 0E 00 06 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F2 [23:55:09]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:55:09]wFMCommunicate OK [23:55:09]SAM_PROTO_GetShiftState done [23:55:09]FM_GetShiftState done [23:55:09]req_shift_open_date done [23:55:09]produce_requested_data done [23:55:09]produce_requested_data return {"fd.num":139522,"shift.num":556,"shift.opened":0,"shift.open_date":0} [23:55:09]process_action_free close_shift [23:55:09]json_value_free [23:55:09]json_value_free done [23:55:09]process_json_proto returns [23:55:09]Send response to host [23:55:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139522,"shift.num":556,"shift.opened":0,"shift.open_date":0}}} [23:55:09]free response buf [23:55:09]execute_script done [23:55:09]execute_script returns [23:55:09]free content buf [23:55:09]Sock 8.Close socket [23:55:09]Sock 8.Thread stoped [23:55:13]OFD Sender: No OFD packet to send [23:55:18]OFD Sender: No OFD packet to send [23:55:23]OFD Sender: No OFD packet to send [23:55:28]OFD Sender: No OFD packet to send [23:55:33]OFD Sender: No OFD packet to send [23:55:38]OFD Sender: No OFD packet to send [23:55:43]OFD Sender: No OFD packet to send [23:55:48]OFD Sender: No OFD packet to send [23:55:53]OFD Sender: No OFD packet to send [23:55:58]OFD Sender: No OFD packet to send [23:56:03]OFD Sender: No OFD packet to send [23:56:08]OFD Sender: No OFD packet to send [23:56:13]OFD Sender: No OFD packet to send [23:56:18]OFD Sender: No OFD packet to send [23:56:23]OFD Sender: No OFD packet to send [23:56:28]OFD Sender: No OFD packet to send [23:56:33]OFD Sender: No OFD packet to send [23:56:38]OFD Sender: No OFD packet to send [23:56:43]OFD Sender: No OFD packet to send [23:56:48]OFD Sender: No OFD packet to send [23:56:49]accept exits with 9 [23:56:49]New connection [23:56:49]New thread 3067141476 created [23:56:49]Thread 3067284836 joined [23:56:49]Waiting for new connection... [23:56:49] Sock 9.Parse request [23:56:49]Sock 9.Check first char [23:56:49]Sock 9.First char is OK [23:56:49]request: POST /json_proto HTTP/1.0 [23:56:49]Method: POST [23:56:49]URL: /json_proto [23:56:49]Method is POST - this is cgi request [23:56:49]url: /json_proto [23:56:49]query_string will be loaded in cgi processing [23:56:49]execute_cgi json_proto POST (null) [23:56:49]execute_cgi path=json_proto method=POST [23:56:49]POST find Content-Length [23:56:49]Host: 172.17.50.196:8080 [23:56:49]Content-Length: 215 [23:56:49]Content-Type: application/json [23:56:49] [23:56:49]POST finish read [23:56:49]Found Content-Length = 215 [23:56:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:49]execute_script... [23:56:49]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "kkm.sn", "kkm.ver", "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:49]POST & json_proto [23:56:49]process_json_proto [23:56:49]json parsed OK: [23:56:49]protocol is kg_v1.0 [23:56:49]action value=get_value [23:56:49]process_action get_value [23:56:49]cmd_get_value [23:56:49]process_action get_value done [23:56:49]requested_data is exist [23:56:49]produce_requested_data [23:56:49]requested_item kkm.sn is exist - process it [23:56:49]requested_item kkm.ver is exist - process it [23:56:49]requested_item fm.sn is exist - process it [23:56:49]wFMCommunicate request_size=4 [23:56:49]MH_SAM_APDU [23:56:49]CAPDU: 80 11 00 00 [23:56:49]Write to MH i2c: E2 08 00 07 64 80 11 00 00 00 00 00 00 E5 [23:56:49]Write i2c OK [23:56:49]MH_I2C_Read... [23:56:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:49]Read from MH i2c: E2 [23:56:49]MH_I2C_Read... [23:56:49]Read from MH i2c: E2 17 00 [23:56:49]MH_I2C_Read... [23:56:49]Read from MH i2c: E2 17 00 07 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 40 [23:56:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:56:49]wFMCommunicate OK [23:56:49]requested_item fd.num is exist - process it [23:56:49]SAM_PROTO_GetFieldsCounters [23:56:49]wFMCommunicate request_size=4 [23:56:49]MH_SAM_APDU [23:56:49]CAPDU: 80 13 00 00 [23:56:49]Write to MH i2c: E2 08 00 08 64 80 13 00 00 00 00 00 00 E8 [23:56:49]Write i2c OK [23:56:49]MH_I2C_Read... [23:56:50]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:50]Read from MH i2c: E2 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 62 00 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 62 00 08 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 02 21 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 C7 [23:56:50]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 02 21 02 00 0E 04 04 00 2C 02 00 00 12 04 04 00 CD 00 00 00 5E 04 04 00 CD 00 00 00 57 04 04 00 CF 00 00 00 19 04 04 00 00 00 00 00 90 00 [23:56:50]wFMCommunicate OK [23:56:50]SAM_PROTO_GetFieldsCounters done [23:56:50]requested_item shift.num is exist - process it [23:56:50]requested_item shift.opened is exist - process it [23:56:50]req_shift_opened [23:56:50]FM_GetShiftState [23:56:50]SAM_PROTO_GetShiftState [23:56:50]wFMCommunicate request_size=4 [23:56:50]MH_SAM_APDU [23:56:50]CAPDU: 80 13 01 00 [23:56:50]Write to MH i2c: E2 08 00 09 64 80 13 01 00 00 00 00 00 EA [23:56:50]Write i2c OK [23:56:50]MH_I2C_Read... [23:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:50]Read from MH i2c: E2 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 0E 00 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 0E 00 09 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F5 [23:56:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:50]wFMCommunicate OK [23:56:50]SAM_PROTO_GetShiftState done [23:56:50]FM_GetShiftState done [23:56:50]req_shift_opened done [23:56:50]requested_item shift.open_date is exist - process it [23:56:50]req_shift_open_date [23:56:50]FM_GetShiftState [23:56:50]SAM_PROTO_GetShiftState [23:56:50]wFMCommunicate request_size=4 [23:56:50]MH_SAM_APDU [23:56:50]CAPDU: 80 13 01 00 [23:56:50]Write to MH i2c: E2 08 00 0A 64 80 13 01 00 00 00 00 00 EB [23:56:50]Write i2c OK [23:56:50]MH_I2C_Read... [23:56:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:50]Read from MH i2c: E2 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 0E 00 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 0E 00 0A 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 F6 [23:56:50]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:50]wFMCommunicate OK [23:56:50]SAM_PROTO_GetShiftState done [23:56:50]FM_GetShiftState done [23:56:50]req_shift_open_date done [23:56:50]produce_requested_data done [23:56:50]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139522,"shift.num":556,"shift.opened":0,"shift.open_date":0} [23:56:50]process_action_free get_value [23:56:50]json_value_free [23:56:50]json_value_free done [23:56:50]process_json_proto returns [23:56:50]Send response to host [23:56:50]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139522,"shift.num":556,"shift.opened":0,"shift.open_date":0}}} [23:56:50]free response buf [23:56:50]execute_script done [23:56:50]execute_script returns [23:56:50]free content buf [23:56:50]Sock 9.Close socket [23:56:50]Sock 9.Thread stoped [23:56:50]accept exits with 8 [23:56:50]New connection [23:56:50]New thread 3067284836 created [23:56:50]Thread 3067141476 joined [23:56:50]Waiting for new connection... [23:56:50] Sock 8.Parse request [23:56:50]Sock 8.Check first char [23:56:50]Sock 8.First char is OK [23:56:50]request: POST /json_proto HTTP/1.0 [23:56:50]Method: POST [23:56:50]URL: /json_proto [23:56:50]Method is POST - this is cgi request [23:56:50]url: /json_proto [23:56:50]query_string will be loaded in cgi processing [23:56:50]execute_cgi json_proto POST (null) [23:56:50]execute_cgi path=json_proto method=POST [23:56:50]POST find Content-Length [23:56:50]Host: 172.17.50.196:8080 [23:56:50]Content-Length: 331 [23:56:50]Content-Type: application/json [23:56:50] [23:56:50]POST finish read [23:56:50]Found Content-Length = 331 [23:56:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:50]execute_script... [23:56:50]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:50]POST & json_proto [23:56:50]process_json_proto [23:56:50]json parsed OK: [23:56:50]protocol is kg_v1.0 [23:56:50]action value=get_value [23:56:50]process_action get_value [23:56:50]cmd_get_value [23:56:50]process_action get_value done [23:56:50]requested_data is exist [23:56:50]produce_requested_data [23:56:50]requested_item fm.sale.total is exist - process it [23:56:50]SAM_PROTO_GetFMData [23:56:50]wFMCommunicate request_size=4 [23:56:50]MH_SAM_APDU [23:56:50]CAPDU: 80 13 03 00 [23:56:50]Write to MH i2c: E2 08 00 0B 64 80 13 03 00 00 00 00 00 EE [23:56:50]Write i2c OK [23:56:50]MH_I2C_Read... [23:56:50]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:50]Read from MH i2c: E2 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 FD 00 [23:56:50]MH_I2C_Read... [23:56:50]Read from MH i2c: E2 FD 00 0B 64 00 C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 2B [23:56:50]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:56:50]wFMCommunicate OK [23:56:50]wFMCommunicate request_size=4 [23:56:50]MH_SAM_APDU [23:56:50]CAPDU: 80 17 00 00 [23:56:50]Write to MH i2c: E2 08 00 0C 64 80 17 00 00 00 00 00 00 F0 [23:56:50]Write i2c OK [23:56:50]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 FD 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 FD 00 0C 64 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 07 [23:56:51]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=4 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 17 00 00 [23:56:51]Write to MH i2c: E2 08 00 0D 64 80 17 00 00 00 00 00 00 F1 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 FD 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 FD 00 0D 64 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C9 [23:56:51]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=4 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 17 00 00 [23:56:51]Write to MH i2c: E2 08 00 0E 64 80 17 00 00 00 00 00 00 F2 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 FD 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 FD 00 0E 64 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6D [23:56:51]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:51]wFMCommunicate OK [23:56:51]wFMCommunicate request_size=4 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 17 00 00 [23:56:51]Write to MH i2c: E2 08 00 0F 64 80 17 00 00 00 00 00 00 F3 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:51]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:56:51]Read from MH i2c: E2 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 E4 00 [23:56:51]MH_I2C_Read... [23:56:51]Read from MH i2c: E2 E4 00 0F 64 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 D3 [23:56:51]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:56:51]wFMCommunicate OK [23:56:51]SAM_PROTO_GetFMData done [23:56:51]requested_item fm.sale_refund.total is exist - process it [23:56:51]requested_item fm.buy.total is exist - process it [23:56:51]requested_item shift.sale.total is exist - process it [23:56:51]SAM_PROTO_GetShiftData [23:56:51]wFMCommunicate request_size=4 [23:56:51]MH_SAM_APDU [23:56:51]CAPDU: 80 13 02 00 [23:56:51]Write to MH i2c: E2 08 00 10 64 80 13 02 00 00 00 00 00 F2 [23:56:51]Write i2c OK [23:56:51]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 FD 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 FD 00 10 64 00 AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 D5 [23:56:52]RAPDU: AF 04 AA 04 AB 04 6E 04 04 00 CD 00 00 00 69 04 9C 00 6F 04 04 00 CD 00 00 00 B1 04 03 00 29 89 8D 70 04 03 00 D4 E6 4E 72 04 03 00 55 A2 3E 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 06 08 0F 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 40 01 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 90 00 [23:56:52]wFMCommunicate OK [23:56:52]wFMCommunicate request_size=4 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 17 00 00 [23:56:52]Write to MH i2c: E2 08 00 11 64 80 17 00 00 00 00 00 00 F5 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:52]Read from MH i2c: E2 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 FD 00 [23:56:52]MH_I2C_Read... [23:56:52]Read from MH i2c: E2 FD 00 11 64 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 0E [23:56:52]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6B 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6C 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 90 00 [23:56:52]wFMCommunicate OK [23:56:52]wFMCommunicate request_size=4 [23:56:52]MH_SAM_APDU [23:56:52]CAPDU: 80 17 00 00 [23:56:52]Write to MH i2c: E2 08 00 12 64 80 17 00 00 00 00 00 00 F6 [23:56:52]Write i2c OK [23:56:52]MH_I2C_Read... [23:56:52]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:53]Read from MH i2c: E2 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 FD 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 FD 00 12 64 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 AA [23:56:53]RAPDU: 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 6D 04 4C 02 78 04 04 00 00 00 00 00 79 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 90 00 [23:56:53]wFMCommunicate OK [23:56:53]wFMCommunicate request_size=4 [23:56:53]MH_SAM_APDU [23:56:53]CAPDU: 80 17 00 00 [23:56:53]Write to MH i2c: E2 08 00 13 64 80 17 00 00 00 00 00 00 F7 [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:53]Read from MH i2c: E2 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 FD 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 FD 00 13 64 00 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 75 [23:56:53]RAPDU: 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D0 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 7A 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 90 00 [23:56:53]wFMCommunicate OK [23:56:53]wFMCommunicate request_size=4 [23:56:53]MH_SAM_APDU [23:56:53]CAPDU: 80 17 00 00 [23:56:53]Write to MH i2c: E2 08 00 14 64 80 17 00 00 00 00 00 00 F8 [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 201! [23:56:53]Read from MH i2c: E2 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 CC 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 CC 00 14 64 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D9 [23:56:53]RAPDU: F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 [23:56:53]wFMCommunicate OK [23:56:53]SAM_PROTO_GetShiftData done [23:56:53]requested_item shift.sale.total_cash is exist - process it [23:56:53]requested_item shift.sale_refund.total is exist - process it [23:56:53]requested_item shift.sale_refund.total_cash is exist - process it [23:56:53]requested_item shift.buy.total is exist - process it [23:56:53]requested_item shift.buy.total_cash is exist - process it [23:56:53]produce_requested_data done [23:56:53]produce_requested_data return {"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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} [23:56:53]process_action_free get_value [23:56:53]json_value_free [23:56:53]json_value_free done [23:56:53]process_json_proto returns [23:56:53]Send response to host [23:56:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":92756.89,"shift.sale.total_cash":51709.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}}} [23:56:53]free response buf [23:56:53]execute_script done [23:56:53]execute_script returns [23:56:53]free content buf [23:56:53]Sock 8.Close socket [23:56:53]Sock 8.Thread stoped [23:56:53]accept exits with 9 [23:56:53]New connection [23:56:53]New thread 3067141476 created [23:56:53]Thread 3067284836 joined [23:56:53]Waiting for new connection... [23:56:53] Sock 9.Parse request [23:56:53]Sock 9.Check first char [23:56:53]Sock 9.First char is OK [23:56:53]request: POST /json_proto HTTP/1.0 [23:56:53]Method: POST [23:56:53]URL: /json_proto [23:56:53]Method is POST - this is cgi request [23:56:53]url: /json_proto [23:56:53]query_string will be loaded in cgi processing [23:56:53]execute_cgi json_proto POST (null) [23:56:53]execute_cgi path=json_proto method=POST [23:56:53]POST find Content-Length [23:56:53]Host: 172.17.50.196:8080 [23:56:53]Content-Length: 259 [23:56:53]Content-Type: application/json [23:56:53] [23:56:53]POST finish read [23:56:53]Found Content-Length = 259 [23:56:53]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043B\u043C\u0443\u0441\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:53]execute_script... [23:56:53]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "open_shift", "params" : { "operator" : "\u0410\u043B\u043C\u0443\u0441\u0430\u0435\u0432 \u0422. " } , "requested_data" : [ "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [23:56:53]POST & json_proto [23:56:53]process_json_proto [23:56:53]json parsed OK: [23:56:53]protocol is kg_v1.0 [23:56:53]action value=open_shift [23:56:53]process_action open_shift [23:56:53]cmd_open_shift [23:56:53]MH_GetDate [23:56:53]Write to MH i2c: F0 00 00 15 64 68 [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: F0 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: F0 09 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: F0 09 00 15 64 00 CD C7 22 67 72 0D 1C 67 90 [23:56:53]GetLastDocTimeStamp 1730332501 [23:56:53]current date 1730332621 [23:56:53]FM_GetShiftState [23:56:53]SAM_PROTO_GetShiftState [23:56:53]wFMCommunicate request_size=4 [23:56:53]MH_SAM_APDU [23:56:53]CAPDU: 80 13 01 00 [23:56:53]Write to MH i2c: E2 08 00 16 64 80 13 01 00 00 00 00 00 F7 [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:53]Read from MH i2c: E2 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 0E 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: E2 0E 00 16 64 00 09 00 00 00 00 00 00 00 00 00 00 90 00 02 [23:56:53]RAPDU: 09 00 00 00 00 00 00 00 00 00 00 90 00 [23:56:53]wFMCommunicate OK [23:56:53]SAM_PROTO_GetShiftState done [23:56:53]FM_GetShiftState done [23:56:53]KKMCreateOpenShiftDocument [23:56:53]Load OK [23:56:53]Malloc new data [23:56:53]MH_GetDate [23:56:53]Write to MH i2c: F0 00 00 17 64 6A [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: F0 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: F0 09 00 [23:56:53]MH_I2C_Read... [23:56:53]Read from MH i2c: F0 09 00 17 64 00 CD C7 22 67 72 0D 1C 67 92 [23:56:53]Malloc new data [23:56:53]KKMCreateOpenShiftDocument OK [23:56:53]KKMSetOpenShiftData OK [23:56:53]ProcessDocumentItem done err = 0, tmpTLVsize=196 [23:56:53]tlvbuf is 0134F0E0 [23:56:53]KKMLoadAndSignOpenShiftData [23:56:53]SAM_PROTO_ProcessDocument [23:56:53]wFMCommunicate request_size=9 [23:56:53]MH_SAM_APDU [23:56:53]CAPDU: 80 15 01 00 04 02 00 C4 00 [23:56:53]Write to MH i2c: E2 0C 00 18 64 80 15 01 00 04 00 02 00 C4 00 00 00 C9 [23:56:53]Write i2c OK [23:56:53]MH_I2C_Read... [23:56:54]OFD Sender: No OFD packet to send [23:56:54]*** iso7816_exchange 80 15 01 00... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 18 64 00 90 00 F0 [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=23 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 15 02 00 12 FA 03 0E 00 30 32 35 30 38 32 30 31 36 31 30 30 36 37 [23:56:54]Write to MH i2c: E2 1A 00 19 64 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 F2 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 19 64 00 90 00 F1 [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=30 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 15 02 00 19 FD 03 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 [23:56:54]Write to MH i2c: E2 21 00 1A 64 80 15 02 00 19 00 FD 03 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 00 00 C9 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 1A 64 00 90 00 F2 [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=84 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 15 02 00 4F F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 [23:56:54]Write to MH i2c: E2 57 00 1B 64 80 15 02 00 4F 00 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 00 00 A0 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 1B 64 00 90 00 F3 [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=51 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 15 02 00 2E A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 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 [23:56:54]Write to MH i2c: E2 36 00 1C 64 80 15 02 00 2E 00 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 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 A4 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 1C 64 00 90 00 F4 [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=13 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 15 02 00 08 F4 03 04 00 CD C7 22 67 [23:56:54]Write to MH i2c: E2 10 00 1D 64 80 15 02 00 08 00 F4 03 04 00 CD C7 22 67 00 00 29 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 1D 64 00 90 00 F5 [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=25 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 15 02 00 14 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 [23:56:54]Write to MH i2c: E2 1C 00 1E 64 80 15 02 00 14 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 00 00 5F [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 15 02 00... Resp OK rsp.len_out = 0! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 03 00 1E 64 00 90 00 F6 [23:56:54]RAPDU: 90 00 [23:56:54]wFMCommunicate OK [23:56:54]wFMCommunicate request_size=4 [23:56:54]MH_SAM_APDU [23:56:54]CAPDU: 80 15 03 00 [23:56:54]Write to MH i2c: E2 08 00 1F 64 80 15 03 00 00 00 00 00 04 [23:56:54]Write i2c OK [23:56:54]MH_I2C_Read... [23:56:54]*** iso7816_exchange 80 15 03 00... Resp OK rsp.len_out = 53! [23:56:54]Read from MH i2c: E2 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 38 00 [23:56:54]MH_I2C_Read... [23:56:54]Read from MH i2c: E2 38 00 1F 64 00 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 03 21 02 00 0E 04 04 00 2D 02 00 00 35 04 06 00 68 F3 DF 18 06 F6 90 00 7B [23:56:54]RAPDU: 33 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 03 21 02 00 0E 04 04 00 2D 02 00 00 35 04 06 00 68 F3 DF 18 06 F6 90 00 [23:56:54]wFMCommunicate OK [23:56:54]SAM_PROTO_ProcessDocument answer len = 51 [23:56:54]SAM_PROTO_ProcessDocument done [23:56:54]SetTLVBufToDocument [23:56:54]Processing tag 1209 (04B9) [23:56:54]Malloc new data [23:56:54]Processing tag 1041 (0411) [23:56:54]Processing tag 1040 (0410) [23:56:54]Malloc new data [23:56:54]Processing tag 1038 (040E) [23:56:54]Malloc new data [23:56:54]Processing tag 1077 (0435) [23:56:54]Malloc new data [23:56:54]SetTLVBufToDocument err=0 [23:56:54]KKMLoadAndSignOpenShiftData store KKM data [23:56:54]KKMLoadAndSignOpenShiftData err=0 [23:56:54]Отчет об открытии смены ФФД: 1.0 ИНН: 02508201610067 Кассир: Алмусаев Т. Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 Место: АЗС № 101 "Партнер Нефть" 30.10.2024 23:57 Смена: 557 РНМ: 0000000000091631 ЗНМ: 0300000081 ФД: 139523 ФМ: 0000000000874669 ФПД: 115396629235446 [23:56:54]StoreToDocumentArchive [23:56:54]shift 557 fd 139523 [23:56:54]Create dir for shift 0557 [23:56:54]save to /storage/0557/doc_00139523 [23:56:54]save last doc name /storage/0557/doc_00139523 to /storage/kkm_last_doc_name [23:56:54]save OK [23:56:54]Clear old archive folders... [23:56:54]Remove dir /storage/0556 [23:56:54]opendir ok [23:56:54]file . [23:56:54]file .. [23:56:54]file doc_00139316 [23:56:54]remove file /storage/0556/doc_00139316 [23:56:54]file doc_00139317 [23:56:54]remove file /storage/0556/doc_00139317 [23:56:54]file doc_00139318 [23:56:54]remove file /storage/0556/doc_00139318 [23:56:54]file doc_00139319 [23:56:54]remove file /storage/0556/doc_00139319 [23:56:54]file doc_00139320 [23:56:54]remove file /storage/0556/doc_00139320 [23:56:54]file doc_00139321 [23:56:54]remove file /storage/0556/doc_00139321 [23:56:54]file doc_00139322 [23:56:54]remove file /storage/0556/doc_00139322 [23:56:54]file doc_00139323 [23:56:54]remove file /storage/0556/doc_00139323 [23:56:54]file doc_00139324 [23:56:54]remove file /storage/0556/doc_00139324 [23:56:54]file doc_00139325 [23:56:54]remove file /storage/0556/doc_00139325 [23:56:54]file doc_00139326 [23:56:54]remove file /storage/0556/doc_00139326 [23:56:54]file doc_00139327 [23:56:54]remove file /storage/0556/doc_00139327 [23:56:54]file doc_00139328 [23:56:54]remove file /storage/0556/doc_00139328 [23:56:54]file doc_00139329 [23:56:54]remove file /storage/0556/doc_00139329 [23:56:54]file doc_00139330 [23:56:54]remove file /storage/0556/doc_00139330 [23:56:54]file doc_00139331 [23:56:54]remove file /storage/0556/doc_00139331 [23:56:54]file doc_00139332 [23:56:54]remove file /storage/0556/doc_00139332 [23:56:54]file doc_00139333 [23:56:54]remove file /storage/0556/doc_00139333 [23:56:54]file doc_00139334 [23:56:54]remove file /storage/0556/doc_00139334 [23:56:54]file doc_00139335 [23:56:54]remove file /storage/0556/doc_00139335 [23:56:54]file doc_00139336 [23:56:54]remove file /storage/0556/doc_00139336 [23:56:54]file doc_00139337 [23:56:54]remove file /storage/0556/doc_00139337 [23:56:54]file doc_00139338 [23:56:54]remove file /storage/0556/doc_00139338 [23:56:54]file doc_00139339 [23:56:54]remove file /storage/0556/doc_00139339 [23:56:54]file doc_00139340 [23:56:54]remove file /storage/0556/doc_00139340 [23:56:54]file doc_00139341 [23:56:54]remove file /storage/0556/doc_00139341 [23:56:54]file doc_00139342 [23:56:54]remove file /storage/0556/doc_00139342 [23:56:54]file doc_00139343 [23:56:54]remove file /storage/0556/doc_00139343 [23:56:54]file doc_00139344 [23:56:54]remove file /storage/0556/doc_00139344 [23:56:54]file doc_00139345 [23:56:54]remove file /storage/0556/doc_00139345 [23:56:54]file doc_00139346 [23:56:54]remove file /storage/0556/doc_00139346 [23:56:54]file doc_00139347 [23:56:54]remove file /storage/0556/doc_00139347 [23:56:54]file doc_00139348 [23:56:54]remove file /storage/0556/doc_00139348 [23:56:54]file doc_00139349 [23:56:54]remove file /storage/0556/doc_00139349 [23:56:54]file doc_00139350 [23:56:54]remove file /storage/0556/doc_00139350 [23:56:54]file doc_00139351 [23:56:54]remove file /storage/0556/doc_00139351 [23:56:54]file doc_00139352 [23:56:54]remove file /storage/0556/doc_00139352 [23:56:54]file doc_00139353 [23:56:54]remove file /storage/0556/doc_00139353 [23:56:54]file doc_00139354 [23:56:54]remove file /storage/0556/doc_00139354 [23:56:54]file doc_00139355 [23:56:54]remove file /storage/0556/doc_00139355 [23:56:54]file doc_00139356 [23:56:54]remove file /storage/0556/doc_00139356 [23:56:54]file doc_00139357 [23:56:54]remove file /storage/0556/doc_00139357 [23:56:54]file doc_00139358 [23:56:54]remove file /storage/0556/doc_00139358 [23:56:54]file doc_00139359 [23:56:54]remove file /storage/0556/doc_00139359 [23:56:54]file doc_00139360 [23:56:54]remove file /storage/0556/doc_00139360 [23:56:54]file doc_00139361 [23:56:54]remove file /storage/0556/doc_00139361 [23:56:54]file doc_00139362 [23:56:54]remove file /storage/0556/doc_00139362 [23:56:54]file doc_00139363 [23:56:54]remove file /storage/0556/doc_00139363 [23:56:54]file doc_00139364 [23:56:54]remove file /storage/0556/doc_00139364 [23:56:55]file doc_00139365 [23:56:55]remove file /storage/0556/doc_00139365 [23:56:55]file doc_00139366 [23:56:55]remove file /storage/0556/doc_00139366 [23:56:55]file doc_00139367 [23:56:55]remove file /storage/0556/doc_00139367 [23:56:55]file doc_00139368 [23:56:55]remove file /storage/0556/doc_00139368 [23:56:55]file doc_00139369 [23:56:55]remove file /storage/0556/doc_00139369 [23:56:55]file doc_00139370 [23:56:55]remove file /storage/0556/doc_00139370 [23:56:55]file doc_00139371 [23:56:55]remove file /storage/0556/doc_00139371 [23:56:55]file doc_00139372 [23:56:55]remove file /storage/0556/doc_00139372 [23:56:55]file doc_00139373 [23:56:55]remove file /storage/0556/doc_00139373 [23:56:55]file doc_00139374 [23:56:55]remove file /storage/0556/doc_00139374 [23:56:55]file doc_00139375 [23:56:55]remove file /storage/0556/doc_00139375 [23:56:55]file doc_00139376 [23:56:55]remove file /storage/0556/doc_00139376 [23:56:55]file doc_00139377 [23:56:55]remove file /storage/0556/doc_00139377 [23:56:55]file doc_00139378 [23:56:55]remove file /storage/0556/doc_00139378 [23:56:55]file doc_00139379 [23:56:55]remove file /storage/0556/doc_00139379 [23:56:55]file doc_00139380 [23:56:55]remove file /storage/0556/doc_00139380 [23:56:55]file doc_00139381 [23:56:55]remove file /storage/0556/doc_00139381 [23:56:55]file doc_00139382 [23:56:55]remove file /storage/0556/doc_00139382 [23:56:55]file doc_00139383 [23:56:55]remove file /storage/0556/doc_00139383 [23:56:55]file doc_00139384 [23:56:55]remove file /storage/0556/doc_00139384 [23:56:55]file doc_00139385 [23:56:55]remove file /storage/0556/doc_00139385 [23:56:55]file doc_00139386 [23:56:55]remove file /storage/0556/doc_00139386 [23:56:55]file doc_00139387 [23:56:55]remove file /storage/0556/doc_00139387 [23:56:55]file doc_00139388 [23:56:55]remove file /storage/0556/doc_00139388 [23:56:55]file doc_00139389 [23:56:55]remove file /storage/0556/doc_00139389 [23:56:55]file doc_00139390 [23:56:55]remove file /storage/0556/doc_00139390 [23:56:55]file doc_00139391 [23:56:55]remove file /storage/0556/doc_00139391 [23:56:55]file doc_00139392 [23:56:55]remove file /storage/0556/doc_00139392 [23:56:55]file doc_00139393 [23:56:55]remove file /storage/0556/doc_00139393 [23:56:55]file doc_00139394 [23:56:55]remove file /storage/0556/doc_00139394 [23:56:55]file doc_00139395 [23:56:55]remove file /storage/0556/doc_00139395 [23:56:55]file doc_00139396 [23:56:55]remove file /storage/0556/doc_00139396 [23:56:55]file doc_00139397 [23:56:55]remove file /storage/0556/doc_00139397 [23:56:55]file doc_00139398 [23:56:55]remove file /storage/0556/doc_00139398 [23:56:55]file doc_00139399 [23:56:55]remove file /storage/0556/doc_00139399 [23:56:55]file doc_00139400 [23:56:55]remove file /storage/0556/doc_00139400 [23:56:55]file doc_00139401 [23:56:55]remove file /storage/0556/doc_00139401 [23:56:55]file doc_00139402 [23:56:55]remove file /storage/0556/doc_00139402 [23:56:55]file doc_00139403 [23:56:55]remove file /storage/0556/doc_00139403 [23:56:55]file doc_00139404 [23:56:55]remove file /storage/0556/doc_00139404 [23:56:55]file doc_00139405 [23:56:55]remove file /storage/0556/doc_00139405 [23:56:55]file doc_00139406 [23:56:55]remove file /storage/0556/doc_00139406 [23:56:55]file doc_00139407 [23:56:55]remove file /storage/0556/doc_00139407 [23:56:55]file doc_00139408 [23:56:55]remove file /storage/0556/doc_00139408 [23:56:55]file doc_00139409 [23:56:55]remove file /storage/0556/doc_00139409 [23:56:55]file doc_00139410 [23:56:55]remove file /storage/0556/doc_00139410 [23:56:55]file doc_00139411 [23:56:55]remove file /storage/0556/doc_00139411 [23:56:55]file doc_00139412 [23:56:55]remove file /storage/0556/doc_00139412 [23:56:55]file doc_00139413 [23:56:55]remove file /storage/0556/doc_00139413 [23:56:55]file doc_00139414 [23:56:55]remove file /storage/0556/doc_00139414 [23:56:55]file doc_00139415 [23:56:55]remove file /storage/0556/doc_00139415 [23:56:55]file doc_00139416 [23:56:55]remove file /storage/0556/doc_00139416 [23:56:55]file doc_00139417 [23:56:55]remove file /storage/0556/doc_00139417 [23:56:55]file doc_00139418 [23:56:55]remove file /storage/0556/doc_00139418 [23:56:55]file doc_00139419 [23:56:55]remove file /storage/0556/doc_00139419 [23:56:55]file doc_00139420 [23:56:55]remove file /storage/0556/doc_00139420 [23:56:55]file doc_00139421 [23:56:55]remove file /storage/0556/doc_00139421 [23:56:55]file doc_00139422 [23:56:55]remove file /storage/0556/doc_00139422 [23:56:55]file doc_00139423 [23:56:55]remove file /storage/0556/doc_00139423 [23:56:55]file doc_00139424 [23:56:55]remove file /storage/0556/doc_00139424 [23:56:55]file doc_00139425 [23:56:55]remove file /storage/0556/doc_00139425 [23:56:55]file doc_00139426 [23:56:55]remove file /storage/0556/doc_00139426 [23:56:55]file doc_00139427 [23:56:55]remove file /storage/0556/doc_00139427 [23:56:55]file doc_00139428 [23:56:55]remove file /storage/0556/doc_00139428 [23:56:55]file doc_00139429 [23:56:55]remove file /storage/0556/doc_00139429 [23:56:55]file doc_00139430 [23:56:55]remove file /storage/0556/doc_00139430 [23:56:55]file doc_00139431 [23:56:55]remove file /storage/0556/doc_00139431 [23:56:55]file doc_00139432 [23:56:55]remove file /storage/0556/doc_00139432 [23:56:55]file doc_00139433 [23:56:55]remove file /storage/0556/doc_00139433 [23:56:55]file doc_00139434 [23:56:55]remove file /storage/0556/doc_00139434 [23:56:55]file doc_00139435 [23:56:55]remove file /storage/0556/doc_00139435 [23:56:55]file doc_00139436 [23:56:55]remove file /storage/0556/doc_00139436 [23:56:55]file doc_00139437 [23:56:55]remove file /storage/0556/doc_00139437 [23:56:55]file doc_00139438 [23:56:55]remove file /storage/0556/doc_00139438 [23:56:55]file doc_00139439 [23:56:55]remove file /storage/0556/doc_00139439 [23:56:55]file doc_00139440 [23:56:55]remove file /storage/0556/doc_00139440 [23:56:55]file doc_00139441 [23:56:55]remove file /storage/0556/doc_00139441 [23:56:55]file doc_00139442 [23:56:55]remove file /storage/0556/doc_00139442 [23:56:55]file doc_00139443 [23:56:55]remove file /storage/0556/doc_00139443 [23:56:55]file doc_00139444 [23:56:55]remove file /storage/0556/doc_00139444 [23:56:55]file doc_00139445 [23:56:55]remove file /storage/0556/doc_00139445 [23:56:55]file doc_00139446 [23:56:55]remove file /storage/0556/doc_00139446 [23:56:55]file doc_00139447 [23:56:55]remove file /storage/0556/doc_00139447 [23:56:55]file doc_00139448 [23:56:55]remove file /storage/0556/doc_00139448 [23:56:55]file doc_00139449 [23:56:55]remove file /storage/0556/doc_00139449 [23:56:55]file doc_00139450 [23:56:55]remove file /storage/0556/doc_00139450 [23:56:55]file doc_00139451 [23:56:55]remove file /storage/0556/doc_00139451 [23:56:55]file doc_00139452 [23:56:55]remove file /storage/0556/doc_00139452 [23:56:55]file doc_00139453 [23:56:55]remove file /storage/0556/doc_00139453 [23:56:55]file doc_00139454 [23:56:55]remove file /storage/0556/doc_00139454 [23:56:55]file doc_00139455 [23:56:55]remove file /storage/0556/doc_00139455 [23:56:55]file doc_00139456 [23:56:55]remove file /storage/0556/doc_00139456 [23:56:55]file doc_00139457 [23:56:55]remove file /storage/0556/doc_00139457 [23:56:55]file doc_00139458 [23:56:55]remove file /storage/0556/doc_00139458 [23:56:55]file doc_00139459 [23:56:55]remove file /storage/0556/doc_00139459 [23:56:55]file doc_00139460 [23:56:55]remove file /storage/0556/doc_00139460 [23:56:55]file doc_00139461 [23:56:55]remove file /storage/0556/doc_00139461 [23:56:55]file doc_00139462 [23:56:55]remove file /storage/0556/doc_00139462 [23:56:55]file doc_00139463 [23:56:55]remove file /storage/0556/doc_00139463 [23:56:55]file doc_00139464 [23:56:55]remove file /storage/0556/doc_00139464 [23:56:55]file doc_00139465 [23:56:55]remove file /storage/0556/doc_00139465 [23:56:55]file doc_00139466 [23:56:55]remove file /storage/0556/doc_00139466 [23:56:55]file doc_00139467 [23:56:55]remove file /storage/0556/doc_00139467 [23:56:55]file doc_00139468 [23:56:55]remove file /storage/0556/doc_00139468 [23:56:55]file doc_00139469 [23:56:55]remove file /storage/0556/doc_00139469 [23:56:55]file doc_00139470 [23:56:55]remove file /storage/0556/doc_00139470 [23:56:55]file doc_00139471 [23:56:55]remove file /storage/0556/doc_00139471 [23:56:55]file doc_00139472 [23:56:55]remove file /storage/0556/doc_00139472 [23:56:55]file doc_00139473 [23:56:55]remove file /storage/0556/doc_00139473 [23:56:55]file doc_00139474 [23:56:55]remove file /storage/0556/doc_00139474 [23:56:55]file doc_00139475 [23:56:55]remove file /storage/0556/doc_00139475 [23:56:55]file doc_00139476 [23:56:55]remove file /storage/0556/doc_00139476 [23:56:55]file doc_00139477 [23:56:55]remove file /storage/0556/doc_00139477 [23:56:55]file doc_00139478 [23:56:55]remove file /storage/0556/doc_00139478 [23:56:55]file doc_00139479 [23:56:55]remove file /storage/0556/doc_00139479 [23:56:55]file doc_00139480 [23:56:55]remove file /storage/0556/doc_00139480 [23:56:55]file doc_00139481 [23:56:55]remove file /storage/0556/doc_00139481 [23:56:55]file doc_00139482 [23:56:55]remove file /storage/0556/doc_00139482 [23:56:55]file doc_00139483 [23:56:55]remove file /storage/0556/doc_00139483 [23:56:55]file doc_00139484 [23:56:55]remove file /storage/0556/doc_00139484 [23:56:55]file doc_00139485 [23:56:55]remove file /storage/0556/doc_00139485 [23:56:55]file doc_00139486 [23:56:55]remove file /storage/0556/doc_00139486 [23:56:55]file doc_00139487 [23:56:55]remove file /storage/0556/doc_00139487 [23:56:55]file doc_00139488 [23:56:55]remove file /storage/0556/doc_00139488 [23:56:55]file doc_00139489 [23:56:55]remove file /storage/0556/doc_00139489 [23:56:55]file doc_00139490 [23:56:55]remove file /storage/0556/doc_00139490 [23:56:55]file doc_00139491 [23:56:55]remove file /storage/0556/doc_00139491 [23:56:55]file doc_00139492 [23:56:55]remove file /storage/0556/doc_00139492 [23:56:55]file doc_00139493 [23:56:55]remove file /storage/0556/doc_00139493 [23:56:55]file doc_00139494 [23:56:55]remove file /storage/0556/doc_00139494 [23:56:55]file doc_00139495 [23:56:55]remove file /storage/0556/doc_00139495 [23:56:55]file doc_00139496 [23:56:55]remove file /storage/0556/doc_00139496 [23:56:55]file doc_00139497 [23:56:55]remove file /storage/0556/doc_00139497 [23:56:55]file doc_00139498 [23:56:55]remove file /storage/0556/doc_00139498 [23:56:55]file doc_00139499 [23:56:55]remove file /storage/0556/doc_00139499 [23:56:55]file doc_00139500 [23:56:55]remove file /storage/0556/doc_00139500 [23:56:55]file doc_00139501 [23:56:55]remove file /storage/0556/doc_00139501 [23:56:55]file doc_00139502 [23:56:55]remove file /storage/0556/doc_00139502 [23:56:55]file doc_00139503 [23:56:55]remove file /storage/0556/doc_00139503 [23:56:55]file doc_00139504 [23:56:55]remove file /storage/0556/doc_00139504 [23:56:55]file doc_00139505 [23:56:55]remove file /storage/0556/doc_00139505 [23:56:55]file doc_00139506 [23:56:55]remove file /storage/0556/doc_00139506 [23:56:55]file doc_00139507 [23:56:55]remove file /storage/0556/doc_00139507 [23:56:55]file doc_00139508 [23:56:55]remove file /storage/0556/doc_00139508 [23:56:55]file doc_00139509 [23:56:55]remove file /storage/0556/doc_00139509 [23:56:55]file doc_00139510 [23:56:55]remove file /storage/0556/doc_00139510 [23:56:55]file doc_00139511 [23:56:55]remove file /storage/0556/doc_00139511 [23:56:55]file doc_00139512 [23:56:55]remove file /storage/0556/doc_00139512 [23:56:55]file doc_00139513 [23:56:55]remove file /storage/0556/doc_00139513 [23:56:55]file doc_00139514 [23:56:55]remove file /storage/0556/doc_00139514 [23:56:55]file doc_00139515 [23:56:55]remove file /storage/0556/doc_00139515 [23:56:55]file doc_00139516 [23:56:55]remove file /storage/0556/doc_00139516 [23:56:55]file doc_00139517 [23:56:55]remove file /storage/0556/doc_00139517 [23:56:55]file doc_00139518 [23:56:55]remove file /storage/0556/doc_00139518 [23:56:55]file doc_00139519 [23:56:55]remove file /storage/0556/doc_00139519 [23:56:55]file doc_00139520 [23:56:55]remove file /storage/0556/doc_00139520 [23:56:55]file doc_00139521 [23:56:55]remove file /storage/0556/doc_00139521 [23:56:55]file doc_00139522 [23:56:55]remove file /storage/0556/doc_00139522 [23:56:55]remove dir /storage/0556 [23:56:56]ProcessDocumentItem done err = 0, tmpTLVsize=247 [23:56:56]tlvbuf is 011942A0 [23:56:56]SAM_PROTO_ClearQueue [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 09 00 00 [23:56:56]Write to MH i2c: E2 08 00 20 64 80 09 00 00 00 00 00 00 F6 [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 03 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 03 00 20 64 00 90 00 F8 [23:56:56]RAPDU: 90 00 [23:56:56]wFMCommunicate OK [23:56:56]SAM_PROTO_ClearQueue done [23:56:56]KKMCreateOFDPacket [23:56:56]OFDProtocolAddRootSTLVToBuf [23:56:56]FM_MakeSignedData [23:56:56]FM_MakeSignedData [23:56:56]SAM_PROTO_SignData [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 0D 01 02 [23:56:56]Write to MH i2c: E2 08 00 21 64 80 0D 01 02 00 00 00 00 FE [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 03 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 03 00 21 64 00 90 00 F9 [23:56:56]RAPDU: 90 00 [23:56:56]wFMCommunicate OK [23:56:56]wFMCommunicate request_size=255 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 0D 02 02 FA 02 00 F7 00 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 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 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 CD C7 22 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 03 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 68 F3 DF 18 06 [23:56:56]Write to MH i2c: E2 02 01 22 64 80 0D 02 02 FA 00 02 00 F7 00 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 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 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 CD C7 22 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 03 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 68 F3 DF 18 06 00 00 16 [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 03 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 03 00 22 64 00 90 00 FA [23:56:56]RAPDU: 90 00 [23:56:56]wFMCommunicate OK [23:56:56]wFMCommunicate request_size=6 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 0D 02 02 01 F6 [23:56:56]Write to MH i2c: E2 09 00 23 64 80 0D 02 02 01 00 F6 00 00 F9 [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 03 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 03 00 23 64 00 90 00 FB [23:56:56]RAPDU: 90 00 [23:56:56]wFMCommunicate OK [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 0D 03 02 [23:56:56]Write to MH i2c: E2 08 00 24 64 80 0D 03 02 00 00 00 00 03 [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 0B 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 0B 00 24 64 00 7A 76 A4 09 95 A2 F8 C0 90 00 90 [23:56:56]RAPDU: 7A 76 A4 09 95 A2 F8 C0 90 00 [23:56:56]wFMCommunicate OK [23:56:56]SAM_PROTO_SignData done [23:56:56]FM_MakeSignedData done [23:56:56]CreateOFDProtocolMessage [23:56:56]wFMCommunicate request_size=4 [23:56:56]MH_SAM_APDU [23:56:56]CAPDU: 80 11 00 00 [23:56:56]Write to MH i2c: E2 08 00 25 64 80 11 00 00 00 00 00 00 03 [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [23:56:56]Read from MH i2c: E2 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 17 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: E2 17 00 25 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 5E [23:56:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [23:56:56]wFMCommunicate OK [23:56:56]CreateOFDProtocolMessage done [23:56:56]OFDSenderStorePacket 139523 [23:56:56]StoreOFDPacket docnum=139523 [23:56:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0B 01 00 00 B5 20 03 01 3F AA 5A 02 01 00 02 00 F7 00 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 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 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 CD C7 22 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 03 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 68 F3 DF 18 06 F6 7A 76 A4 09 95 A2 F8 C0 [23:56:56]CheckFolder [23:56:56]dirname=/storage/ofd_packets [23:56:56]CheckFolder done [23:56:56]ProducePacketName [23:56:56]name=ofd_packets/00139523 [23:56:56]NVStorageSaveData ofd_packets/00139523 [23:56:56]File name is /storage/ofd_packets/00139523 [23:56:56]Write 297 bytes [23:56:56]NVStorageSaveData done [23:56:56]OFDSenderStorePacket done [23:56:56]KKMCreateOFDPacket done [23:56:56]NVStorageSaveData kkm_last_timestamp [23:56:56]File name is /storage/kkm_last_timestamp [23:56:56]Write 4 bytes [23:56:56]NVStorageSaveData done [23:56:56]ExternCall_PrintAddStr [23:56:56]wPrintStart [23:56:56]Write to MH i2c: 01 00 00 26 64 8A [23:56:56]OFD Sender: Processing packet 139523 [packets to send 34, broken 33] [23:56:56]ProducePacketName [23:56:56]name=ofd_packets/00139523 [23:56:56]OFD Sender: To server: pG, [23:56:56]CommunicateWithHost lk.salyk.kg:30040 [23:56:56]ConnectInit lk.salyk.kg [23:56:56]Write i2c OK [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: 01 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: 01 07 00 [23:56:56]MH_I2C_Read... [23:56:56]Read from MH i2c: 01 07 00 26 64 00 00 00 00 00 FF 0F 9F [23:56:56]RasterBufferAndPrint [23:56:56]line Отчет об открытии смены [23:56:56]line ФФД: 1.0 [23:56:56]line ИНН: 02508201610067 [23:56:56]line Кассир: Алмусаев Т. [23:56:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [23:56:56]line Место: АЗС № 101 "Партнер Нефть" [23:56:56]line 30.10.2024 23:57 [23:56:56]line Смена: 557 [23:56:56]line РНМ: 0000000000091631 [23:56:56]line ЗНМ: 0300000081 [23:56:56]line ФД: 139523 [23:56:56]line ФМ: 0000000000874669 [23:56:56]line ФПД: 115396629235446 [23:56:56]written 0, free lines is 4095 [23:56:57]Connected sock=10 [23:56:57]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0B 01 00 00 B5 20 03 01 3F AA 5A 02 01 00 02 00 F7 00 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 15 00 D0 90 D0 BB D0 BC D1 83 D1 81 D0 B0 D0 B5 D0 B2 20 D0 A2 2E 20 F1 03 4B 00 37 32 30 30 30 31 2C 20 D0 B3 2E 20 D0 A2 D0 BE D0 BA D1 82 D0 BE D0 B3 D1 83 D0 BB 2C 20 D0 B0 2F D0 B4 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 2D D0 9E D1 88 2C 20 34 31 2E 38 37 37 30 36 35 2C 20 37 32 2E 39 35 33 38 30 36 A3 04 2A 00 D0 90 D0 97 D0 A1 20 E2 84 96 20 31 30 31 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 CD C7 22 67 0E 04 04 00 2D 02 00 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 03 21 02 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 35 04 06 00 68 F3 DF 18 06 F6 7A 76 A4 09 95 A2 F8 C0 [23:56:57]Write to MH i2c: 01 00 00 38 64 9C [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: 01 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: 01 07 00 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: 01 07 00 38 64 00 00 00 00 00 58 0E 09 [23:56:57]RasterBufferAndPrint [23:56:57]line [23:56:57]line [23:56:57]line [23:56:57]line [23:56:57]line [23:56:57]written 0, free lines is 3685 [23:56:57]MH_Cut [23:56:57]Write to MH i2c: D1 01 00 3F 64 01 75 [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: D1 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: D1 01 00 [23:56:57]MH_I2C_Read... [23:56:57]Read from MH i2c: D1 01 00 3F 64 00 74 [23:56:57]Write to MH i2c: 01 00 00 40 64 A4 [23:56:57]Write i2c OK [23:56:57]MH_I2C_Read... [23:56:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 51 18 47 00 57 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 38 37 34 36 36 39 10 04 04 00 03 21 02 00 F4 03 04 00 7D 73 22 67 B6 04 01 00 00 4E 53 C8 A2 50 00 B6 EE [23:56:57]CommunicateWithHost err = 0 [23:56:57]CheckOFDResponse [23:56:57]1017 (14) - 77093643461234 [23:56:57]1041 (16) - 0000000000874669 [23:56:57]1040 (4) - 139523 [23:56:57]1012 (4) - 30.10.2024 17:57 [23:56:57]1206 (1) - 0 [23:56:57]OFD Sender: Remove packet 139523 [23:56:57]ProducePacketName [23:56:57]name=ofd_packets/00139523 [23:56:57]NVStorageDeleteData [23:56:57]*** Cut start [23:56:57]*** Partial cut [23:56:57]*** CUTSNS_PIN = 1 [23:56:57]*** CUTSNS_PIN = 0 [23:56:57]OFD Sender: No OFD packet to send [23:56:57]*** Brake cut motor [23:56:58]Read from MH i2c: 01 [23:56:58]MH_I2C_Read... [23:56:58]*** Stop cut motor [23:56:58]*** Cut end [23:56:58]Read from MH i2c: 01 07 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: 01 07 00 40 64 00 00 00 00 00 FF 0F B9 [23:56:58]process_action open_shift done [23:56:58]requested_data is exist [23:56:58]produce_requested_data [23:56:58]requested_item fd.num is exist - process it [23:56:58]SAM_PROTO_GetFieldsCounters [23:56:58]wFMCommunicate request_size=4 [23:56:58]MH_SAM_APDU [23:56:58]CAPDU: 80 13 00 00 [23:56:58]Write to MH i2c: E2 08 00 41 64 80 13 00 00 00 00 00 00 21 [23:56:58]Write i2c OK [23:56:58]MH_I2C_Read... [23:56:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [23:56:58]Read from MH i2c: E2 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 62 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 62 00 41 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 03 21 02 00 0E 04 04 00 2D 02 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 9A [23:56:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 03 21 02 00 0E 04 04 00 2D 02 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 [23:56:58]wFMCommunicate OK [23:56:58]SAM_PROTO_GetFieldsCounters done [23:56:58]requested_item shift.num is exist - process it [23:56:58]requested_item shift.opened is exist - process it [23:56:58]req_shift_opened [23:56:58]FM_GetShiftState [23:56:58]SAM_PROTO_GetShiftState [23:56:58]wFMCommunicate request_size=4 [23:56:58]MH_SAM_APDU [23:56:58]CAPDU: 80 13 01 00 [23:56:58]Write to MH i2c: E2 08 00 42 64 80 13 01 00 00 00 00 00 23 [23:56:58]Write i2c OK [23:56:58]MH_I2C_Read... [23:56:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [23:56:58]Read from MH i2c: E2 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 0E 00 [23:56:58]MH_I2C_Read... [23:56:58]Read from MH i2c: E2 0E 00 42 64 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 4C [23:56:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [23:56:58]wFMCommunicate OK [23:56:58]SAM_PROTO_GetShiftState done [23:56:58]FM_GetShiftState done [23:56:58]req_shift_opened done [23:56:58]requested_item shift.open_date is exist - process it [23:56:58]req_shift_open_date [23:56:58]req_shift_open_date done [23:56:58]produce_requested_data done [23:56:58]produce_requested_data return {"fd.num":139523,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [23:56:58]process_action_free open_shift [23:56:58]json_value_free [23:56:58]json_value_free done [23:56:58]process_json_proto returns [23:56:58]Send response to host [23:56:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fd.num":139523,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [23:56:58]free response buf [23:56:58]execute_script done [23:56:58]execute_script returns [23:56:58]free content buf [23:56:58]Sock 9.Close socket [23:56:58]Sock 9.Thread stoped [23:56:58]accept exits with 8 [23:56:58]New connection [23:56:58]New thread 3067284836 created [23:56:58]Thread 3067141476 joined [23:56:58]Waiting for new connection... [23:56:58] Sock 8.Parse request [23:56:58]Sock 8.Check first char [23:56:58]Sock 8.First char is OK [23:56:58]request: POST /json_proto HTTP/1.0 [23:56:58]Method: POST [23:56:58]URL: /json_proto [23:56:58]Method is POST - this is cgi request [23:56:58]url: /json_proto [23:56:58]query_string will be loaded in cgi processing [23:56:58]execute_cgi json_proto POST (null) [23:56:58]execute_cgi path=json_proto method=POST [23:56:58]POST find Content-Length [23:56:58]Host: 172.17.50.196:8080 [23:56:58]Content-Length: 331 [23:56:58]Content-Type: application/json [23:56:58] [23:56:58]POST finish read [23:56:58]Found Content-Length = 331 [23:56:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:58]execute_script... [23:56:58]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "get_value", "params" : { } , "requested_data" : [ "fm.sale.total", "fm.sale_refund.total", "fm.buy.total", "shift.sale.total", "shift.sale.total_cash", "shift.sale_refund.total", "shift.sale_refund.total_cash", "shift.buy.total", "shift.buy.total_cash" ] } } [23:56:58]POST & json_proto [23:56:58]process_json_proto [23:56:58]json parsed OK: [23:56:58]protocol is kg_v1.0 [23:56:58]action value=get_value [23:56:58]process_action get_value [23:56:58]cmd_get_value [23:56:58]process_action get_value done [23:56:58]requested_data is exist [23:56:58]produce_requested_data [23:56:58]requested_item fm.sale.total is exist - process it [23:56:58]SAM_PROTO_GetFMData [23:56:58]wFMCommunicate request_size=4 [23:56:58]MH_SAM_APDU [23:56:58]CAPDU: 80 13 03 00 [23:56:58]Write to MH i2c: E2 08 00 43 64 80 13 03 00 00 00 00 00 26 [23:56:58]Write i2c OK [23:56:58]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 43 64 00 C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 63 [23:56:59]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 A9 1C 02 00 69 04 A3 00 6F 04 04 00 5E 1A 02 00 B1 04 05 00 99 61 8E 52 01 70 04 05 00 00 17 30 03 01 72 04 04 00 99 4A 5E 4F 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 C3 A8 F4 23 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 5D CB FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [23:56:59]wFMCommunicate OK [23:56:59]wFMCommunicate request_size=4 [23:56:59]MH_SAM_APDU [23:56:59]CAPDU: 80 17 00 00 [23:56:59]Write to MH i2c: E2 08 00 44 64 80 17 00 00 00 00 00 00 28 [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 44 64 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 3F [23:56:59]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:56:59]wFMCommunicate OK [23:56:59]wFMCommunicate request_size=4 [23:56:59]MH_SAM_APDU [23:56:59]CAPDU: 80 17 00 00 [23:56:59]Write to MH i2c: E2 08 00 45 64 80 17 00 00 00 00 00 00 29 [23:56:59]Write i2c OK [23:56:59]MH_I2C_Read... [23:56:59]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:56:59]Read from MH i2c: E2 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 [23:56:59]MH_I2C_Read... [23:56:59]Read from MH i2c: E2 FD 00 45 64 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 01 [23:57:00]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:00]wFMCommunicate OK [23:57:00]wFMCommunicate request_size=4 [23:57:00]MH_SAM_APDU [23:57:00]CAPDU: 80 17 00 00 [23:57:00]Write to MH i2c: E2 08 00 46 64 80 17 00 00 00 00 00 00 2A [23:57:00]Write i2c OK [23:57:00]MH_I2C_Read... [23:57:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:00]Read from MH i2c: E2 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: E2 FD 00 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: E2 FD 00 46 64 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 A5 [23:57:00]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [23:57:00]wFMCommunicate OK [23:57:00]wFMCommunicate request_size=4 [23:57:00]MH_SAM_APDU [23:57:00]CAPDU: 80 17 00 00 [23:57:00]Write to MH i2c: E2 08 00 47 64 80 17 00 00 00 00 00 00 2B [23:57:00]Write i2c OK [23:57:00]MH_I2C_Read... [23:57:00]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [23:57:00]Read from MH i2c: E2 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: E2 E4 00 [23:57:00]MH_I2C_Read... [23:57:00]Read from MH i2c: E2 E4 00 47 64 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 0B [23:57:01]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 [23:57:01]wFMCommunicate OK [23:57:01]SAM_PROTO_GetFMData done [23:57:01]requested_item fm.sale_refund.total is exist - process it [23:57:01]requested_item fm.buy.total is exist - process it [23:57:01]requested_item shift.sale.total is exist - process it [23:57:01]SAM_PROTO_GetShiftData [23:57:01]wFMCommunicate request_size=4 [23:57:01]MH_SAM_APDU [23:57:01]CAPDU: 80 13 02 00 [23:57:01]Write to MH i2c: E2 08 00 48 64 80 13 02 00 00 00 00 00 2A [23:57:01]Write i2c OK [23:57:01]MH_I2C_Read... [23:57:01]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [23:57:01]Read from MH i2c: E2 [23:57:01]MH_I2C_Read... [23:57:01]Read from MH i2c: E2 FD 00 [23:57:01]MH_I2C_Read... [23:57:01]Read from MH i2c: E2 FD 00 48 64 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 9D [23:57:01]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 [23:57:01]wFMCommunicate OK [23:57:01]wFMCommunicate request_size=4 [23:57:01]MH_SAM_APDU [23:57:01]CAPDU: 80 17 00 00 [23:57:01]Write to MH i2c: E2 08 00 49 64 80 17 00 00 00 00 00 00 2D [23:57:01]Write i2c OK [23:57:01]MH_I2C_Read... [23:57:01]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:01]Read from MH i2c: E2 [23:57:01]MH_I2C_Read... [23:57:01]Read from MH i2c: E2 FD 00 [23:57:01]MH_I2C_Read... [23:57:01]Read from MH i2c: E2 FD 00 49 64 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 35 [23:57:02]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 [23:57:02]wFMCommunicate OK [23:57:02]wFMCommunicate request_size=4 [23:57:02]MH_SAM_APDU [23:57:02]CAPDU: 80 17 00 00 [23:57:02]Write to MH i2c: E2 08 00 4A 64 80 17 00 00 00 00 00 00 2E [23:57:02]Write i2c OK [23:57:02]MH_I2C_Read... [23:57:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:02]Read from MH i2c: E2 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 FD 00 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 FD 00 4A 64 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 00 [23:57:02]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 [23:57:02]wFMCommunicate OK [23:57:02]wFMCommunicate request_size=4 [23:57:02]MH_SAM_APDU [23:57:02]CAPDU: 80 17 00 00 [23:57:02]Write to MH i2c: E2 08 00 4B 64 80 17 00 00 00 00 00 00 2F [23:57:02]Write i2c OK [23:57:02]MH_I2C_Read... [23:57:02]OFD Sender: No OFD packet to send [23:57:02]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [23:57:02]Read from MH i2c: E2 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 FD 00 [23:57:02]MH_I2C_Read... [23:57:02]Read from MH i2c: E2 FD 00 4B 64 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 A1 [23:57:03]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 [23:57:03]wFMCommunicate OK [23:57:03]wFMCommunicate request_size=4 [23:57:03]MH_SAM_APDU [23:57:03]CAPDU: 80 17 00 00 [23:57:03]Write to MH i2c: E2 08 00 4C 64 80 17 00 00 00 00 00 00 30 [23:57:03]Write i2c OK [23:57:03]MH_I2C_Read... [23:57:03]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 186! [23:57:03]Read from MH i2c: E2 [23:57:03]MH_I2C_Read... [23:57:03]Read from MH i2c: E2 BD 00 [23:57:03]MH_I2C_Read... [23:57:03]Read from MH i2c: E2 BD 00 4C 64 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 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 16 [23:57:03]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 [23:57:03]wFMCommunicate OK [23:57:03]SAM_PROTO_GetShiftData done [23:57:03]requested_item shift.sale.total_cash is exist - process it [23:57:03]requested_item shift.sale_refund.total is exist - process it [23:57:03]requested_item shift.sale_refund.total_cash is exist - process it [23:57:03]requested_item shift.buy.total is exist - process it [23:57:03]requested_item shift.buy.total_cash is exist - process it [23:57:03]produce_requested_data done [23:57:03]produce_requested_data return {"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.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} [23:57:03]process_action_free get_value [23:57:03]json_value_free [23:57:03]json_value_free done [23:57:03]process_json_proto returns [23:57:03]Send response to host [23:57:03]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56800301.05,"fm.sale_refund.total":1513352.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}}} [23:57:03]free response buf [23:57:03]execute_script done [23:57:03]execute_script returns [23:57:03]free content buf [23:57:03]Sock 8.Close socket [23:57:03]Sock 8.Thread stoped [23:57:07]OFD Sender: No OFD packet to send [23:57:12]OFD Sender: No OFD packet to send [23:57:17]OFD Sender: No OFD packet to send [23:57:22]OFD Sender: No OFD packet to send [23:57:27]OFD Sender: No OFD packet to send [23:57:32]OFD Sender: No OFD packet to send [23:57:37]OFD Sender: No OFD packet to send [23:57:42]OFD Sender: No OFD packet to send [23:57:47]OFD Sender: No OFD packet to send [23:57:52]OFD Sender: No OFD packet to send [23:57:57]OFD Sender: No OFD packet to send [23:58:02]OFD Sender: No OFD packet to send [23:58:07]OFD Sender: No OFD packet to send [23:58:12]OFD Sender: No OFD packet to send [23:58:17]OFD Sender: No OFD packet to send [23:58:22]OFD Sender: No OFD packet to send [23:58:27]OFD Sender: No OFD packet to send [23:58:32]OFD Sender: No OFD packet to send [23:58:37]OFD Sender: No OFD packet to send [23:58:42]OFD Sender: No OFD packet to send [23:58:47]OFD Sender: No OFD packet to send [23:58:52]OFD Sender: No OFD packet to send [23:58:57]OFD Sender: No OFD packet to send [23:59:02]OFD Sender: No OFD packet to send [23:59:07]OFD Sender: No OFD packet to send [23:59:13]OFD Sender: No OFD packet to send [23:59:18]OFD Sender: No OFD packet to send [23:59:23]OFD Sender: No OFD packet to send [23:59:28]OFD Sender: No OFD packet to send [23:59:33]OFD Sender: No OFD packet to send [23:59:38]OFD Sender: No OFD packet to send [23:59:43]OFD Sender: No OFD packet to send [23:59:48]OFD Sender: No OFD packet to send [23:59:53]OFD Sender: No OFD packet to send [23:59:58]OFD Sender: No OFD packet to send [00:00:03]OFD Sender: No OFD packet to send [00:00:08]OFD Sender: No OFD packet to send [00:00:13]OFD Sender: No OFD packet to send [00:00:18]OFD Sender: No OFD packet to send [00:00:23]OFD Sender: No OFD packet to send [00:00:28]OFD Sender: No OFD packet to send [00:00:33]OFD Sender: No OFD packet to send [00:00:38]OFD Sender: No OFD packet to send [00:00:43]OFD Sender: No OFD packet to send [00:00:48]OFD Sender: No OFD packet to send [00:00:53]OFD Sender: No OFD packet to send [00:00:58]OFD Sender: No OFD packet to send [00:01:03]OFD Sender: No OFD packet to send [00:01:08]OFD Sender: No OFD packet to send [00:01:13]OFD Sender: No OFD packet to send [00:01:18]OFD Sender: No OFD packet to send [00:01:23]OFD Sender: No OFD packet to send [00:01:28]OFD Sender: No OFD packet to send [00:01:33]OFD Sender: No OFD packet to send [00:01:38]OFD Sender: No OFD packet to send [00:01:43]OFD Sender: No OFD packet to send [00:01:48]OFD Sender: No OFD packet to send [00:01:53]OFD Sender: No OFD packet to send [00:01:58]OFD Sender: No OFD packet to send [00:02:03]OFD Sender: No OFD packet to send [00:02:08]OFD Sender: No OFD packet to send [00:02:13]OFD Sender: No OFD packet to send [00:02:18]OFD Sender: No OFD packet to send [00:02:23]OFD Sender: No OFD packet to send [00:02:28]OFD Sender: No OFD packet to send [00:02:33]OFD Sender: No OFD packet to send [00:02:38]OFD Sender: No OFD packet to send [00:02:43]OFD Sender: No OFD packet to send [00:02:48]OFD Sender: No OFD packet to send [00:02:53]OFD Sender: No OFD packet to send [00:02:58]OFD Sender: No OFD packet to send [00:03:03]OFD Sender: No OFD packet to send [00:03:08]OFD Sender: No OFD packet to send [00:03:13]OFD Sender: No OFD packet to send [00:03:18]OFD Sender: No OFD packet to send [00:03:23]OFD Sender: No OFD packet to send [00:03:28]OFD Sender: No OFD packet to send [00:03:33]OFD Sender: No OFD packet to send [00:03:38]OFD Sender: No OFD packet to send [00:03:43]OFD Sender: No OFD packet to send [00:03:48]OFD Sender: No OFD packet to send [00:03:53]OFD Sender: No OFD packet to send [00:03:58]OFD Sender: No OFD packet to send [00:04:03]OFD Sender: No OFD packet to send [00:04:08]OFD Sender: No OFD packet to send [00:04:13]OFD Sender: No OFD packet to send [00:04:18]OFD Sender: No OFD packet to send [00:04:23]OFD Sender: No OFD packet to send [00:04:28]OFD Sender: No OFD packet to send [00:04:33]OFD Sender: No OFD packet to send [00:04:38]OFD Sender: No OFD packet to send [00:04:43]OFD Sender: No OFD packet to send [00:04:48]OFD Sender: No OFD packet to send [00:04:53]OFD Sender: No OFD packet to send [00:04:58]OFD Sender: No OFD packet to send [00:05:03]OFD Sender: No OFD packet to send [00:05:08]OFD Sender: No OFD packet to send [00:05:13]OFD Sender: No OFD packet to send [00:05:18]OFD Sender: No OFD packet to send [00:05:23]OFD Sender: No OFD packet to send [00:05:28]OFD Sender: No OFD packet to send [00:05:33]OFD Sender: No OFD packet to send [00:05:38]OFD Sender: No OFD packet to send [00:05:43]OFD Sender: No OFD packet to send [00:05:48]OFD Sender: No OFD packet to send [00:05:53]OFD Sender: No OFD packet to send [00:05:58]OFD Sender: No OFD packet to send [00:06:03]OFD Sender: No OFD packet to send [00:06:08]OFD Sender: No OFD packet to send [00:06:13]OFD Sender: No OFD packet to send [00:06:15]accept exits with 9 [00:06:15]New connection [00:06:15]New thread 3067141476 created [00:06:15]Thread 3067284836 joined [00:06:15]Waiting for new connection... [00:06:15] Sock 9.Parse request [00:06:15]Sock 9.Check first char [00:06:15]Sock 9.First char is OK [00:06:15]request: POST /json_proto HTTP/1.0 [00:06:15]Method: POST [00:06:15]URL: /json_proto [00:06:15]Method is POST - this is cgi request [00:06:15]url: /json_proto [00:06:15]query_string will be loaded in cgi processing [00:06:15]execute_cgi json_proto POST (null) [00:06:15]execute_cgi path=json_proto method=POST [00:06:15]POST find Content-Length [00:06:15]Host: 172.17.50.196:8080 [00:06:15]Content-Length: 688 [00:06:15]Content-Type: application/json [00:06:15] [00:06:15]POST finish read [00:06:15]Found Content-Length = 688 [00:06:15]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 23.560, "sum" : 1795.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1795.00, "total" : 1795.00, "payments": [ { "type": 0, "sum" : 1795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:15]execute_script... [00:06: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)1094838", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 51", "code": "2710194210", "name": "\u0414\u0422(\u043B)-\u041A-2", "price" : 76.20, "quantity" : 23.560, "sum" : 1795.27, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "deposit" : 1795.00, "total" : 1795.00, "payments": [ { "type": 0, "sum" : 1795.00 } ] } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:06:15]POST & json_proto [00:06:15]process_json_proto [00:06:15]json parsed OK: [00:06:15]protocol is kg_v1.0 [00:06:15]action value=close_receipt [00:06:15]process_action close_receipt [00:06:15]cmd_close_receipt [00:06:15]MH_GetDate [00:06:15]Write to MH i2c: F0 00 00 4D 64 A0 [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: F0 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: F0 09 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: F0 09 00 4D 64 00 FE C9 22 67 72 0D 1C 67 FB [00:06:15]GetLastDocTimeStamp 1730332621 [00:06:15]current date 1730333182 [00:06:15]FM_GetShiftState [00:06:15]SAM_PROTO_GetShiftState [00:06:15]wFMCommunicate request_size=4 [00:06:15]MH_SAM_APDU [00:06:15]CAPDU: 80 13 01 00 [00:06:15]Write to MH i2c: E2 08 00 4E 64 80 13 01 00 00 00 00 00 2F [00:06:15]Write i2c OK [00:06:15]MH_I2C_Read... [00:06:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:15]Read from MH i2c: E2 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 0E 00 [00:06:15]MH_I2C_Read... [00:06:15]Read from MH i2c: E2 0E 00 4E 64 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 58 [00:06:15]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:06:15]wFMCommunicate OK [00:06:15]SAM_PROTO_GetShiftState done [00:06:15]FM_GetShiftState done [00:06:15]opened in 1730332621 [00:06:15]opened+sec_in_day 1730419021 [00:06:15]quantity*price = 179527 [00:06:15]sum+1 = 179528 [00:06:15]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.27 ИТОГО: 1795.00 Внесено: 1795.00 СДАЧА: 0.00 НСП 1% : 15.89 НДС 12% : 190.65 Наличными: 1795.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 1 31.10.2024 00:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139524 ФПД: 162461546173061 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T000622&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139524&fm=162461546173061&tin=02508201610067®Number=0000000000091631&sum=179500 [00:06:16]StoreToDocumentArchive [00:06:16]shift 557 fd 139524 [00:06:16]save to /storage/0557/doc_00139524 [00:06:16]save last doc name /storage/0557/doc_00139524 to /storage/kkm_last_doc_name [00:06:16]save OK [00:06:16]Clear old archive folders... [00:06:16]ProcessDocumentItem done err = 0, tmpTLVsize=252 [00:06:16]tlvbuf is 0120E5C0 [00:06:16]SAM_PROTO_ClearQueue [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 09 00 00 [00:06:16]Write to MH i2c: E2 08 00 5B 64 80 09 00 00 00 00 00 00 31 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 5B 64 00 90 00 33 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]SAM_PROTO_ClearQueue done [00:06:16]KKMCreateOFDPacket [00:06:16]OFDProtocolAddRootSTLVToBuf [00:06:16]FM_MakeSignedData [00:06:16]FM_MakeSignedData [00:06:16]SAM_PROTO_SignData [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 0D 01 02 [00:06:16]Write to MH i2c: E2 08 00 5C 64 80 0D 01 02 00 00 00 00 39 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 5C 64 00 90 00 34 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=255 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 0D 02 02 FA 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 08 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 4A 00 00 00 00 07 04 06 00 2C BD 02 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 FE C9 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 21 02 00 35 04 06 00 [00:06:16]Write to MH i2c: E2 02 01 5D 64 80 0D 02 02 FA 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 08 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 4A 00 00 00 00 07 04 06 00 2C BD 02 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 FE C9 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 21 02 00 35 04 06 00 00 00 44 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 5D 64 00 90 00 35 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=11 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 0D 02 02 06 93 C2 06 BF D2 85 [00:06:16]Write to MH i2c: E2 0E 00 5E 64 80 0D 02 02 06 00 93 C2 06 BF D2 85 00 00 B9 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 03 00 5E 64 00 90 00 36 [00:06:16]RAPDU: 90 00 [00:06:16]wFMCommunicate OK [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 0D 03 02 [00:06:16]Write to MH i2c: E2 08 00 5F 64 80 0D 03 02 00 00 00 00 3E [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 0B 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 0B 00 5F 64 00 5A 61 C3 8C B9 1E B6 C8 90 00 9E [00:06:16]RAPDU: 5A 61 C3 8C B9 1E B6 C8 90 00 [00:06:16]wFMCommunicate OK [00:06:16]SAM_PROTO_SignData done [00:06:16]FM_MakeSignedData done [00:06:16]CreateOFDProtocolMessage [00:06:16]wFMCommunicate request_size=4 [00:06:16]MH_SAM_APDU [00:06:16]CAPDU: 80 11 00 00 [00:06:16]Write to MH i2c: E2 08 00 60 64 80 11 00 00 00 00 00 00 3E [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:16]Read from MH i2c: E2 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 17 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: E2 17 00 60 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 99 [00:06:16]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:06:16]wFMCommunicate OK [00:06:16]CreateOFDProtocolMessage done [00:06:16]OFDSenderStorePacket 139524 [00:06:16]StoreOFDPacket docnum=139524 [00:06:16]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 F5 E1 08 01 38 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 08 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 4A 00 00 00 00 07 04 06 00 2C BD 02 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 FE C9 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 21 02 00 35 04 06 00 93 C2 06 BF D2 85 5A 61 C3 8C B9 1E B6 C8 [00:06:16]CheckFolder [00:06:16]dirname=/storage/ofd_packets [00:06:16]CheckFolder done [00:06:16]ProducePacketName [00:06:16]name=ofd_packets/00139524 [00:06:16]NVStorageSaveData ofd_packets/00139524 [00:06:16]File name is /storage/ofd_packets/00139524 [00:06:16]Write 302 bytes [00:06:16]NVStorageSaveData done [00:06:16]OFDSenderStorePacket done [00:06:16]KKMCreateOFDPacket done [00:06:16]NVStorageSaveData kkm_last_timestamp [00:06:16]File name is /storage/kkm_last_timestamp [00:06:16]Write 4 bytes [00:06:16]NVStorageSaveData done [00:06:16]ExternCall_PrintAddStr [00:06:16]wPrintStart [00:06:16]Write to MH i2c: 01 00 00 61 64 C5 [00:06:16]Write i2c OK [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: 01 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: 01 07 00 [00:06:16]MH_I2C_Read... [00:06:16]Read from MH i2c: 01 07 00 61 64 00 00 00 00 00 FF 0F DA [00:06:16]RasterBufferAndPrint [00:06:16]line Счет N : (1)1094838 [00:06:16]line ИНН: 02508201610067 [00:06:16]line Контрольно-Кассовый Чек [00:06:16]line ПРОДАЖА [00:06:16]line ТРК (МРК, ГНК) : 51 [00:06:16]line Товар: 2710194210 [00:06:16]line ДТ(л)-К-2 [00:06:16]line 23.560 * 76.20 [00:06:16]line = 1795.27 [00:06:16]line НДС 12% НСП 1% [00:06:16]line > о реализуемом товаре [00:06:16]line ОКРУГЛЕНИЕ: -0.27 [00:06:16]line ИТОГО: 1795.00 [00:06:16]line Внесено: 1795.00 [00:06:16]line СДАЧА: 0.00 [00:06:16]line НСП 1% : 15.89 [00:06:16]line НДС 12% : 190.65 [00:06:16]line Наличными: 1795.00 [00:06:16]line Безнал.: 0.00 [00:06:16]line Место: АЗС № 101 "Партнер Нефть" [00:06:16]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:06:16]line СНО: Общий режим [00:06:16]line Чек 1 31.10.2024 00:06 [00:06:16]line Смена: 557 ФФД: 1.0 [00:06:16]line ЗНМ: 0300000081 [00:06:16]line РНМ: 0000000000091631 [00:06:16]line Версия ККМ: 001 [00:06:16]line ФМ: 0000000000874669 [00:06:16]line ФД: 139524 [00:06:16]line ФПД: 162461546173061 [00:06:17]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T000622&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139524&fm=162461546173061&tin=02508201610067®Number=0000000000091631&sum=179500 [00:06:17]OFD Sender: Processing packet 139524 [packets to send 34, broken 33] [00:06:17]ProducePacketName [00:06:17]name=ofd_packets/00139524 [00:06:17]OFD Sender: To server: pG, [00:06:17]CommunicateWithHost lk.salyk.kg:30040 [00:06:17]ConnectInit lk.salyk.kg [00:06:17]written 0, free lines is 4095 [00:06:17]Connected sock=10 [00:06:17]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 01 00 00 F5 E1 08 01 38 4C 5A 03 01 00 03 00 FC 00 1E 04 01 00 01 23 04 4E 00 8A 04 0A 00 32 37 31 30 31 39 34 32 31 30 06 04 0D 00 D0 94 D0 A2 28 D0 BB 29 2D D0 9A 2D 32 FF 03 08 00 03 08 5C 00 00 00 00 00 37 04 06 00 C4 1D 00 00 00 00 13 04 06 00 47 BD 02 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 2C BD 02 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 35 06 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 79 4A 00 00 00 00 07 04 06 00 2C BD 02 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 FE C9 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 21 02 00 35 04 06 00 93 C2 06 BF D2 85 5A 61 C3 8C B9 1E B6 C8 [00:06:17]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 80 AA 47 00 36 E3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 04 21 02 00 F4 03 04 00 AD 75 22 67 B6 04 01 00 00 54 E1 64 3D 6F C6 01 DA [00:06:17]CommunicateWithHost err = 0 [00:06:17]CheckOFDResponse [00:06:17]1017 (14) - 77093643461234 [00:06:17]1041 (16) - 0000000000874669 [00:06:17]1040 (4) - 139524 [00:06:17]1012 (4) - 30.10.2024 18:06 [00:06:17]1206 (1) - 0 [00:06:17]OFD Sender: Remove packet 139524 [00:06:17]ProducePacketName [00:06:17]name=ofd_packets/00139524 [00:06:17]NVStorageDeleteData [00:06:17]Write to MH i2c: 01 00 00 8C 64 F0 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: 01 07 00 8C 64 00 00 00 00 00 F4 0C F7 [00:06:17]RasterBufferAndPrint [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]line [00:06:17]written 0, free lines is 3322 [00:06:17]MH_Cut [00:06:17]Write to MH i2c: D1 01 00 93 64 01 C9 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 01 00 [00:06:17]MH_I2C_Read... [00:06:17]Read from MH i2c: D1 01 00 93 64 00 C8 [00:06:17]Write to MH i2c: 01 00 00 94 64 F8 [00:06:17]Write i2c OK [00:06:17]MH_I2C_Read... [00:06:17]OFD Sender: No OFD packet to send [00:06:18]*** Cut start [00:06:18]*** Partial cut [00:06:18]*** CUTSNS_PIN = 1 [00:06:18]*** CUTSNS_PIN = 0 [00:06:18]*** Brake cut motor [00:06:18]Read from MH i2c: 01 [00:06:18]MH_I2C_Read... [00:06:18]*** Stop cut motor [00:06:18]*** Cut end [00:06:18]Read from MH i2c: 01 07 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: 01 07 00 94 64 00 00 00 00 00 FF 0F 0D [00:06:18]process_action close_receipt done [00:06:18]requested_data is exist [00:06:18]produce_requested_data [00:06:18]requested_item fm.sn is exist - process it [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 11 00 00 [00:06:18]Write to MH i2c: E2 08 00 95 64 80 11 00 00 00 00 00 00 73 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:06:18]Read from MH i2c: E2 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 17 00 [00:06:18]MH_I2C_Read... [00:06:18]Read from MH i2c: E2 17 00 95 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CE [00:06:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:06:18]wFMCommunicate OK [00:06:18]requested_item fd.num is exist - process it [00:06:18]SAM_PROTO_GetFieldsCounters [00:06:18]wFMCommunicate request_size=4 [00:06:18]MH_SAM_APDU [00:06:18]CAPDU: 80 13 00 00 [00:06:18]Write to MH i2c: E2 08 00 96 64 80 13 00 00 00 00 00 00 76 [00:06:18]Write i2c OK [00:06:18]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 62 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 62 00 96 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 04 21 02 00 0E 04 04 00 2D 02 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 F3 [00:06:19]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 04 21 02 00 0E 04 04 00 2D 02 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:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetFieldsCounters done [00:06:19]requested_item shift.num is exist - process it [00:06:19]requested_item shift.opened is exist - process it [00:06:19]req_shift_opened [00:06:19]FM_GetShiftState [00:06:19]SAM_PROTO_GetShiftState [00:06:19]wFMCommunicate request_size=4 [00:06:19]MH_SAM_APDU [00:06:19]CAPDU: 80 13 01 00 [00:06:19]Write to MH i2c: E2 08 00 97 64 80 13 01 00 00 00 00 00 78 [00:06:19]Write i2c OK [00:06:19]MH_I2C_Read... [00:06:19]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:06:19]Read from MH i2c: E2 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 [00:06:19]MH_I2C_Read... [00:06:19]Read from MH i2c: E2 0E 00 97 64 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A1 [00:06:19]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:06:19]wFMCommunicate OK [00:06:19]SAM_PROTO_GetShiftState done [00:06:19]FM_GetShiftState done [00:06:19]req_shift_opened done [00:06:19]requested_item shift.open_date is exist - process it [00:06:19]req_shift_open_date [00:06:19]req_shift_open_date done [00:06:19]produce_requested_data done [00:06:19]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139524,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:06:19]process_action_free close_receipt [00:06:19]json_value_free [00:06:19]json_value_free done [00:06:19]process_json_proto returns [00:06:19]Send response to host [00:06:19]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139524,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:06:19]free response buf [00:06:19]execute_script done [00:06:19]execute_script returns [00:06:19]free content buf [00:06:19]Sock 9.Close socket [00:06:19]Sock 9.Thread stoped [00:06:22]OFD Sender: No OFD packet to send [00:06:27]OFD Sender: No OFD packet to send [00:06:32]OFD Sender: No OFD packet to send [00:06:37]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:58]OFD Sender: No OFD packet to send [00:07:03]OFD Sender: No OFD packet to send [00:07:08]OFD Sender: No OFD packet to send [00:07:13]OFD Sender: No OFD packet to send [00:07:18]OFD Sender: No OFD packet to send [00:07:23]OFD Sender: No OFD packet to send [00:07:28]OFD Sender: No OFD packet to send [00:07:31]accept exits with 8 [00:07:31]New connection [00:07:31]New thread 3067284836 created [00:07:31]Thread 3067141476 joined [00:07:31]Waiting for new connection... [00:07:31] Sock 8.Parse request [00:07:31]Sock 8.Check first char [00:07:31]Sock 8.First char is OK [00:07:31]request: POST /json_proto HTTP/1.0 [00:07:31]Method: POST [00:07:31]URL: /json_proto [00:07:31]Method is POST - this is cgi request [00:07:31]url: /json_proto [00:07:31]query_string will be loaded in cgi processing [00:07:31]execute_cgi json_proto POST (null) [00:07:31]execute_cgi path=json_proto method=POST [00:07:31]POST find Content-Length [00:07:31]Host: 172.17.50.196:8080 [00:07:31]Content-Length: 683 [00:07:31]Content-Type: application/json [00:07:31] [00:07:31]POST finish read [00:07:31]Found Content-Length = 683 [00:07:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (1)1094840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:07:31]execute_script... [00:07: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)1094840", "tax_sys" : 0, "items" : [ { "pre_item_text": "\u0422\u0420\u041A (\u041C\u0420\u041A, \u0413\u041D\u041A) : 43", "code": "2710124130", "name": "\u0410\u0438-92-\u041A-2", "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:07:31]POST & json_proto [00:07:31]process_json_proto [00:07:31]json parsed OK: [00:07:31]protocol is kg_v1.0 [00:07:31]action value=close_receipt [00:07:31]process_action close_receipt [00:07:31]cmd_close_receipt [00:07:31]MH_GetDate [00:07:31]Write to MH i2c: F0 00 00 98 64 EB [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: F0 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: F0 09 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: F0 09 00 98 64 00 4A CA 22 67 72 0D 1C 67 93 [00:07:31]GetLastDocTimeStamp 1730333182 [00:07:31]current date 1730333258 [00:07:31]FM_GetShiftState [00:07:31]SAM_PROTO_GetShiftState [00:07:31]wFMCommunicate request_size=4 [00:07:31]MH_SAM_APDU [00:07:31]CAPDU: 80 13 01 00 [00:07:31]Write to MH i2c: E2 08 00 99 64 80 13 01 00 00 00 00 00 7A [00:07:31]Write i2c OK [00:07:31]MH_I2C_Read... [00:07:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:31]Read from MH i2c: E2 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 0E 00 [00:07:31]MH_I2C_Read... [00:07:31]Read from MH i2c: E2 0E 00 99 64 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A3 [00:07:31]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:07:31]wFMCommunicate OK [00:07:31]SAM_PROTO_GetShiftState done [00:07:31]FM_GetShiftState done [00:07:31]opened in 1730332621 [00:07:31]opened+sec_in_day 1730419021 [00:07:31]quantity*price = 200031 [00:07:31]sum+1 = 200032 [00:07:31]Check (price>sum+1) || (price+1 о реализуемом товаре ОКРУГЛЕНИЕ: -0.31 ИТОГО: 2000.00 Внесено: 2000.00 СДАЧА: 0.00 НСП 1% : 17.70 НДС 12% : 212.42 Наличными: 2000.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 2 31.10.2024 00:07 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139525 ФПД: 271088394891754 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T000738&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139525&fm=271088394891754&tin=02508201610067®Number=0000000000091631&sum=200000 [00:07:32]StoreToDocumentArchive [00:07:32]shift 557 fd 139525 [00:07:32]save to /storage/0557/doc_00139525 [00:07:32]save last doc name /storage/0557/doc_00139525 to /storage/kkm_last_doc_name [00:07:32]save OK [00:07:32]Clear old archive folders... [00:07:32]ProcessDocumentItem done err = 0, tmpTLVsize=251 [00:07:32]tlvbuf is 01287040 [00:07:32]SAM_PROTO_ClearQueue [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 09 00 00 [00:07:32]Write to MH i2c: E2 08 00 A6 64 80 09 00 00 00 00 00 00 7C [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 A6 64 00 90 00 7E [00:07:32]RAPDU: 90 00 [00:07:32]wFMCommunicate OK [00:07:32]SAM_PROTO_ClearQueue done [00:07:32]KKMCreateOFDPacket [00:07:32]OFDProtocolAddRootSTLVToBuf [00:07:32]FM_MakeSignedData [00:07:32]FM_MakeSignedData [00:07:32]SAM_PROTO_SignData [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 0D 01 02 [00:07:32]Write to MH i2c: E2 08 00 A7 64 80 0D 01 02 00 00 00 00 84 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 A7 64 00 90 00 7F [00:07:32]RAPDU: 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=255 [00:07:32]MH_SAM_APDU [00:07: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 32 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 02 00 00 00 F4 03 04 00 4A CA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 21 02 00 35 04 06 00 F6 [00:07:32]Write to MH i2c: E2 02 01 A8 64 80 0D 02 02 FA 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 FF 03 08 00 03 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 02 00 00 00 F4 03 04 00 4A CA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 21 02 00 35 04 06 00 F6 00 00 41 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 A8 64 00 90 00 80 [00:07:32]RAPDU: 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=10 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 0D 02 02 05 8D AF 7A F1 EA [00:07:32]Write to MH i2c: E2 0D 00 A9 64 80 0D 02 02 05 00 8D AF 7A F1 EA 00 00 22 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 03 00 A9 64 00 90 00 81 [00:07:32]RAPDU: 90 00 [00:07:32]wFMCommunicate OK [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 0D 03 02 [00:07:32]Write to MH i2c: E2 08 00 AA 64 80 0D 03 02 00 00 00 00 89 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 0B 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 0B 00 AA 64 00 D1 A1 16 C1 13 66 D5 36 90 00 57 [00:07:32]RAPDU: D1 A1 16 C1 13 66 D5 36 90 00 [00:07:32]wFMCommunicate OK [00:07:32]SAM_PROTO_SignData done [00:07:32]FM_MakeSignedData done [00:07:32]CreateOFDProtocolMessage [00:07:32]wFMCommunicate request_size=4 [00:07:32]MH_SAM_APDU [00:07:32]CAPDU: 80 11 00 00 [00:07:32]Write to MH i2c: E2 08 00 AB 64 80 11 00 00 00 00 00 00 89 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:32]Read from MH i2c: E2 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 17 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: E2 17 00 AB 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E4 [00:07:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:07:32]wFMCommunicate OK [00:07:32]CreateOFDProtocolMessage done [00:07:32]OFDSenderStorePacket 139525 [00:07:32]StoreOFDPacket docnum=139525 [00:07:32]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 DE 01 07 01 AD C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 02 00 00 00 F4 03 04 00 4A CA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 21 02 00 35 04 06 00 F6 8D AF 7A F1 EA D1 A1 16 C1 13 66 D5 36 [00:07:32]CheckFolder [00:07:32]dirname=/storage/ofd_packets [00:07:32]CheckFolder done [00:07:32]ProducePacketName [00:07:32]name=ofd_packets/00139525 [00:07:32]NVStorageSaveData ofd_packets/00139525 [00:07:32]File name is /storage/ofd_packets/00139525 [00:07:32]Write 301 bytes [00:07:32]NVStorageSaveData done [00:07:32]OFDSenderStorePacket done [00:07:32]KKMCreateOFDPacket done [00:07:32]NVStorageSaveData kkm_last_timestamp [00:07:32]File name is /storage/kkm_last_timestamp [00:07:32]Write 4 bytes [00:07:32]NVStorageSaveData done [00:07:32]ExternCall_PrintAddStr [00:07:32]wPrintStart [00:07:32]Write to MH i2c: 01 00 00 AC 64 10 [00:07:32]Write i2c OK [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: 01 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: 01 07 00 [00:07:32]MH_I2C_Read... [00:07:32]Read from MH i2c: 01 07 00 AC 64 00 00 00 00 00 FF 0F 25 [00:07:32]RasterBufferAndPrint [00:07:32]line Счет N : (1)1094840 [00:07:32]line ИНН: 02508201610067 [00:07:32]line Контрольно-Кассовый Чек [00:07:32]line ПРОДАЖА [00:07:32]line ТРК (МРК, ГНК) : 43 [00:07:32]line Товар: 2710124130 [00:07:32]line Аи-92-К-2 [00:07:32]line 29.900 * 66.90 [00:07:32]line = 2000.31 [00:07:32]line НДС 12% НСП 1% [00:07:32]line > о реализуемом товаре [00:07:32]line ОКРУГЛЕНИЕ: -0.31 [00:07:32]line ИТОГО: 2000.00 [00:07:32]line Внесено: 2000.00 [00:07:32]line СДАЧА: 0.00 [00:07:32]line НСП 1% : 17.70 [00:07:32]line НДС 12% : 212.42 [00:07:32]line Наличными: 2000.00 [00:07:32]line Безнал.: 0.00 [00:07:32]line Место: АЗС № 101 "Партнер Нефть" [00:07:32]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:07:32]line СНО: Общий режим [00:07:32]line Чек 2 31.10.2024 00:07 [00:07:32]line Смена: 557 ФФД: 1.0 [00:07:32]line ЗНМ: 0300000081 [00:07:32]line РНМ: 0000000000091631 [00:07:32]line Версия ККМ: 001 [00:07:32]line ФМ: 0000000000874669 [00:07:32]line ФД: 139525 [00:07:32]line ФПД: 271088394891754 [00:07:32]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T000738&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139525&fm=271088394891754&tin=02508201610067®Number=0000000000091631&sum=200000 [00:07:33]OFD Sender: Processing packet 139525 [packets to send 34, broken 33] [00:07:33]ProducePacketName [00:07:33]name=ofd_packets/00139525 [00:07:33]OFD Sender: To server: pG, [00:07:33]CommunicateWithHost lk.salyk.kg:30040 [00:07:33]ConnectInit lk.salyk.kg [00:07:33]written 0, free lines is 4095 [00:07:33]Connected sock=10 [00:07:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0F 01 00 00 DE 01 07 01 AD C3 5A 03 01 00 03 00 FB 00 1E 04 01 00 01 23 04 4D 00 8A 04 0A 00 32 37 31 30 31 32 34 31 33 30 06 04 0C 00 D0 90 D0 B8 2D 39 32 2D D0 9A 2D 32 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 02 00 00 00 F4 03 04 00 4A CA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 21 02 00 35 04 06 00 F6 8D AF 7A F1 EA D1 A1 16 C1 13 66 D5 36 [00:07:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9C 3B 47 00 62 14 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 05 21 02 00 F4 03 04 00 F9 75 22 67 B6 04 01 00 00 5C 56 4A CC 33 27 35 EB [00:07:33]CommunicateWithHost err = 0 [00:07:33]CheckOFDResponse [00:07:33]1017 (14) - 77093643461234 [00:07:33]1041 (16) - 0000000000874669 [00:07:33]1040 (4) - 139525 [00:07:33]1012 (4) - 30.10.2024 18:07 [00:07:33]1206 (1) - 0 [00:07:33]OFD Sender: Remove packet 139525 [00:07:33]ProducePacketName [00:07:33]name=ofd_packets/00139525 [00:07:33]NVStorageDeleteData [00:07:33]Write to MH i2c: 01 00 00 D7 64 3B [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: 01 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: 01 07 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: 01 07 00 D7 64 00 00 00 00 00 EA 0C 38 [00:07:33]RasterBufferAndPrint [00:07:33]line [00:07:33]line [00:07:33]line [00:07:33]line [00:07:33]line [00:07:33]written 0, free lines is 3313 [00:07:33]MH_Cut [00:07:33]Write to MH i2c: D1 01 00 DE 64 01 14 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: D1 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: D1 01 00 [00:07:33]MH_I2C_Read... [00:07:33]Read from MH i2c: D1 01 00 DE 64 00 13 [00:07:33]Write to MH i2c: 01 00 00 DF 64 43 [00:07:33]Write i2c OK [00:07:33]MH_I2C_Read... [00:07:33]OFD Sender: No OFD packet to send [00:07:34]*** Cut start [00:07:34]*** Partial cut [00:07:34]*** CUTSNS_PIN = 1 [00:07:34]*** CUTSNS_PIN = 0 [00:07:34]*** Brake cut motor [00:07:34]Read from MH i2c: 01 [00:07:34]MH_I2C_Read... [00:07:34]*** Stop cut motor [00:07:34]*** Cut end [00:07:34]Read from MH i2c: 01 07 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: 01 07 00 DF 64 00 00 00 00 00 FF 0F 58 [00:07:34]process_action close_receipt done [00:07:34]requested_data is exist [00:07:34]produce_requested_data [00:07:34]requested_item fm.sn is exist - process it [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 11 00 00 [00:07:34]Write to MH i2c: E2 08 00 E0 64 80 11 00 00 00 00 00 00 BE [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:34]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:07:34]Read from MH i2c: E2 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 17 00 [00:07:34]MH_I2C_Read... [00:07:34]Read from MH i2c: E2 17 00 E0 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 19 [00:07:34]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:07:34]wFMCommunicate OK [00:07:34]requested_item fd.num is exist - process it [00:07:34]SAM_PROTO_GetFieldsCounters [00:07:34]wFMCommunicate request_size=4 [00:07:34]MH_SAM_APDU [00:07:34]CAPDU: 80 13 00 00 [00:07:34]Write to MH i2c: E2 08 00 E1 64 80 13 00 00 00 00 00 00 C1 [00:07:34]Write i2c OK [00:07:34]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 62 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 62 00 E1 64 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 05 21 02 00 0E 04 04 00 2D 02 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 42 [00:07:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 05 21 02 00 0E 04 04 00 2D 02 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:07:35]wFMCommunicate OK [00:07:35]SAM_PROTO_GetFieldsCounters done [00:07:35]requested_item shift.num is exist - process it [00:07:35]requested_item shift.opened is exist - process it [00:07:35]req_shift_opened [00:07:35]FM_GetShiftState [00:07:35]SAM_PROTO_GetShiftState [00:07:35]wFMCommunicate request_size=4 [00:07:35]MH_SAM_APDU [00:07:35]CAPDU: 80 13 01 00 [00:07:35]Write to MH i2c: E2 08 00 E2 64 80 13 01 00 00 00 00 00 C3 [00:07:35]Write i2c OK [00:07:35]MH_I2C_Read... [00:07:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:07:35]Read from MH i2c: E2 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 0E 00 [00:07:35]MH_I2C_Read... [00:07:35]Read from MH i2c: E2 0E 00 E2 64 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EC [00:07:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:07:35]wFMCommunicate OK [00:07:35]SAM_PROTO_GetShiftState done [00:07:35]FM_GetShiftState done [00:07:35]req_shift_opened done [00:07:35]requested_item shift.open_date is exist - process it [00:07:35]req_shift_open_date [00:07:35]req_shift_open_date done [00:07:35]produce_requested_data done [00:07:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139525,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:07:35]process_action_free close_receipt [00:07:35]json_value_free [00:07:35]json_value_free done [00:07:35]process_json_proto returns [00:07:35]Send response to host [00:07:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139525,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:07:35]free response buf [00:07:35]execute_script done [00:07:35]execute_script returns [00:07:35]free content buf [00:07:35]Sock 8.Close socket [00:07:35]Sock 8.Thread stoped [00:07:38]OFD Sender: No OFD packet to send [00:07:43]OFD Sender: No OFD packet to send [00:07:48]OFD Sender: No OFD packet to send [00:07:53]OFD Sender: No OFD packet to send [00:07:58]OFD Sender: No OFD packet to send [00:08:03]OFD Sender: No OFD packet to send [00:08:08]OFD Sender: No OFD packet to send [00:08:13]OFD Sender: No OFD packet to send [00:08:19]OFD Sender: No OFD packet to send [00:08:24]OFD Sender: No OFD packet to send [00:08:29]OFD Sender: No OFD packet to send [00:08:34]OFD Sender: No OFD packet to send [00:08:39]OFD Sender: No OFD packet to send [00:08:44]OFD Sender: No OFD packet to send [00:08:49]OFD Sender: No OFD packet to send [00:08:54]OFD Sender: No OFD packet to send [00:08:59]OFD Sender: No OFD packet to send [00:09:04]OFD Sender: No OFD packet to send [00:09:09]OFD Sender: No OFD packet to send [00:09:14]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: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:28]accept exits with 9 [00:11:28]New connection [00:11:28]New thread 3067141476 created [00:11:28]Thread 3067284836 joined [00:11:28]Waiting for new connection... [00:11:28] Sock 9.Parse request [00:11:28]Sock 9.Check first char [00:11:28]Sock 9.First char is OK [00:11:28]request: POST /json_proto HTTP/1.0 [00:11:28]Method: POST [00:11:28]URL: /json_proto [00:11:28]Method is POST - this is cgi request [00:11:28]url: /json_proto [00:11:28]query_string will be loaded in cgi processing [00:11:28]execute_cgi json_proto POST (null) [00:11:28]execute_cgi path=json_proto method=POST [00:11:28]POST find Content-Length [00:11:28]Host: 172.17.50.196:8080 [00:11:28]Content-Length: 1018 [00:11:28]Content-Type: application/json [00:11:28] [00:11:28]POST finish read [00:11:28]Found Content-Length = 1018 [00:11:28]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335403", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:28]execute_script... [00:11:28]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335403", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:11:28]POST & json_proto [00:11:28]process_json_proto [00:11:28]json parsed OK: [00:11:28]protocol is kg_v1.0 [00:11:28]action value=close_receipt [00:11:28]process_action close_receipt [00:11:28]cmd_close_receipt [00:11:28]MH_GetDate [00:11:28]Write to MH i2c: F0 00 00 E3 64 36 [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: F0 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: F0 09 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: F0 09 00 E3 64 00 38 CB 22 67 72 0D 1C 67 CD [00:11:28]GetLastDocTimeStamp 1730333258 [00:11:28]current date 1730333496 [00:11:28]FM_GetShiftState [00:11:28]SAM_PROTO_GetShiftState [00:11:28]wFMCommunicate request_size=4 [00:11:28]MH_SAM_APDU [00:11:28]CAPDU: 80 13 01 00 [00:11:28]Write to MH i2c: E2 08 00 E4 64 80 13 01 00 00 00 00 00 C5 [00:11:28]Write i2c OK [00:11:28]MH_I2C_Read... [00:11:28]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:28]Read from MH i2c: E2 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 0E 00 [00:11:28]MH_I2C_Read... [00:11:28]Read from MH i2c: E2 0E 00 E4 64 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 EE [00:11:28]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:11:28]wFMCommunicate OK [00:11:28]SAM_PROTO_GetShiftState done [00:11:28]FM_GetShiftState done [00:11:28]opened in 1730332621 [00:11:28]opened+sec_in_day 1730419021 [00:11:28]quantity*price = 7500 [00:11:28]sum+1 = 7501 [00:11:28]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.76 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 3 31.10.2024 00:11 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139526 ФПД: 48420035734032 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T001136&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139526&fm=48420035734032&tin=02508201610067®Number=0000000000091631&sum=20500 0 [00:11:29]StoreToDocumentArchive [00:11:29]shift 557 fd 139526 [00:11:29]save to /storage/0557/doc_00139526 [00:11:29]save last doc name /storage/0557/doc_00139526 to /storage/kkm_last_doc_name [00:11:29]save OK [00:11:29]Clear old archive folders... [00:11:29]ProcessDocumentItem done err = 0, tmpTLVsize=426 [00:11:29]tlvbuf is 0131EFB0 [00:11:29]SAM_PROTO_ClearQueue [00:11:29]wFMCommunicate request_size=4 [00:11:29]MH_SAM_APDU [00:11:29]CAPDU: 80 09 00 00 [00:11:29]Write to MH i2c: E2 08 00 F1 64 80 09 00 00 00 00 00 00 C7 [00:11:29]Write i2c OK [00:11:29]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 03 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 03 00 F1 64 00 90 00 C9 [00:11:30]RAPDU: 90 00 [00:11:30]wFMCommunicate OK [00:11:30]SAM_PROTO_ClearQueue done [00:11:30]KKMCreateOFDPacket [00:11:30]OFDProtocolAddRootSTLVToBuf [00:11:30]FM_MakeSignedData [00:11:30]FM_MakeSignedData [00:11:30]SAM_PROTO_SignData [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 0D 01 02 [00:11:30]Write to MH i2c: E2 08 00 F2 64 80 0D 01 02 00 00 00 00 CF [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 03 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 03 00 F2 64 00 90 00 CA [00:11:30]RAPDU: 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=255 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 0D 02 02 FA 03 00 AA 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 [00:11:30]Write to MH i2c: E2 02 01 F3 64 80 0D 02 02 FA 00 03 00 AA 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 00 00 C9 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 03 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 03 00 F3 64 00 90 00 CB [00:11:30]RAPDU: 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=185 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 0D 02 02 B4 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 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 00 00 00 F4 03 04 00 38 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 06 21 02 00 35 04 06 00 2C 09 AB 07 AA 10 [00:11:30]Write to MH i2c: E2 BC 00 F4 64 80 0D 02 02 B4 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 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 00 00 00 F4 03 04 00 38 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 06 21 02 00 35 04 06 00 2C 09 AB 07 AA 10 00 00 C0 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 03 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 03 00 F4 64 00 90 00 CC [00:11:30]RAPDU: 90 00 [00:11:30]wFMCommunicate OK [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 0D 03 02 [00:11:30]Write to MH i2c: E2 08 00 F5 64 80 0D 03 02 00 00 00 00 D4 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 0B 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 0B 00 F5 64 00 C4 7A CD 3C 35 DC 67 C5 90 00 59 [00:11:30]RAPDU: C4 7A CD 3C 35 DC 67 C5 90 00 [00:11:30]wFMCommunicate OK [00:11:30]SAM_PROTO_SignData done [00:11:30]FM_MakeSignedData done [00:11:30]CreateOFDProtocolMessage [00:11:30]wFMCommunicate request_size=4 [00:11:30]MH_SAM_APDU [00:11:30]CAPDU: 80 11 00 00 [00:11:30]Write to MH i2c: E2 08 00 F6 64 80 11 00 00 00 00 00 00 D4 [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:30]Read from MH i2c: E2 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 17 00 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: E2 17 00 F6 64 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2F [00:11:30]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:11:30]wFMCommunicate OK [00:11:30]CreateOFDProtocolMessage done [00:11:30]OFDSenderStorePacket 139526 [00:11:30]StoreOFDPacket docnum=139526 [00:11:30]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BE 01 00 00 C5 B3 B6 01 26 7F 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 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 00 00 00 F4 03 04 00 38 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 06 21 02 00 35 04 06 00 2C 09 AB 07 AA 10 C4 7A CD 3C 35 DC 67 C5 [00:11:30]CheckFolder [00:11:30]dirname=/storage/ofd_packets [00:11:30]CheckFolder done [00:11:30]ProducePacketName [00:11:30]name=ofd_packets/00139526 [00:11:30]NVStorageSaveData ofd_packets/00139526 [00:11:30]File name is /storage/ofd_packets/00139526 [00:11:30]Write 476 bytes [00:11:30]NVStorageSaveData done [00:11:30]OFDSenderStorePacket done [00:11:30]KKMCreateOFDPacket done [00:11:30]NVStorageSaveData kkm_last_timestamp [00:11:30]File name is /storage/kkm_last_timestamp [00:11:30]Write 4 bytes [00:11:30]NVStorageSaveData done [00:11:30]ExternCall_PrintAddStr [00:11:30]wPrintStart [00:11:30]Write to MH i2c: 01 00 00 F7 64 5B [00:11:30]Write i2c OK [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: 01 [00:11:30]MH_I2C_Read... [00:11:30]Read from MH i2c: 01 07 00 [00:11:31]MH_I2C_Read... [00:11:31]OFD Sender: Processing packet 139526 [packets to send 34, broken 33] [00:11:31]ProducePacketName [00:11:31]name=ofd_packets/00139526 [00:11:31]OFD Sender: To server: pG, [00:11:31]CommunicateWithHost lk.salyk.kg:30040 [00:11:31]ConnectInit lk.salyk.kg [00:11:31]Read from MH i2c: 01 07 00 F7 64 00 00 00 00 00 FF 0F 70 [00:11:31]RasterBufferAndPrint [00:11:31]line Счет N : (3)335403 [00:11:31]line ИНН: 02508201610067 [00:11:31]line Контрольно-Кассовый Чек [00:11:31]line ПРОДАЖА [00:11:31]line Товар: 4630007400976 [00:11:31]line Арахис жарен Караван орехов Стандарт 90 [00:11:31]line 1.000 * 75.00 [00:11:31]line = 75.00 [00:11:31]line НДС 12% НСП 1% [00:11:31]line > о реализуемом товаре [00:11:31]line Товар: 2000036220012 [00:11:31]line Кофе Капучино XL(GABB TRADE) [00:11:31]line 1.000 * 130.00 [00:11:31]line = 130.00 [00:11:31]line НДС 12% НСП 1% [00:11:31]line > о реализуемом товаре [00:11:31]line ИТОГО: 205.00 [00:11:31]line НСП 1% : 1.81 [00:11:31]line НДС 12% : 21.76 [00:11:31]line Наличными: 205.00 [00:11:31]line Безнал.: 0.00 [00:11:31]line Место: АЗС № 101 "Партнер Нефть" [00:11:31]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:11:31]line СНО: Общий режим [00:11:31]line Чек 3 31.10.2024 00:11 [00:11:31]line Смена: 557 ФФД: 1.0 [00:11:31]line ЗНМ: 0300000081 [00:11:31]line РНМ: 0000000000091631 [00:11:31]line Версия ККМ: 001 [00:11:31]line ФМ: 0000000000874669 [00:11:31]line ФД: 139526 [00:11:31]line ФПД: 48420035734032 [00:11:31]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T001136&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139526&fm=48420035734032&tin=02508201610067®Number=0000000000091631&sum=20500 [00:11:31]line 0 [00:11:31]written 0, free lines is 4095 [00:11:31]Connected sock=10 [00:11:31]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 BE 01 00 00 C5 B3 B6 01 26 7F 5A 03 01 00 03 00 AA 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 80 08 00 00 00 00 07 04 06 00 14 50 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 00 00 00 F4 03 04 00 38 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 06 21 02 00 35 04 06 00 2C 09 AB 07 AA 10 C4 7A CD 3C 35 DC 67 C5 [00:11:31]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 0C 6B 47 00 2B 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 38 37 34 36 36 39 10 04 04 00 06 21 02 00 F4 03 04 00 E7 76 22 67 B6 04 01 00 00 D2 A5 C0 92 06 C4 17 D6 [00:11:31]CommunicateWithHost err = 0 [00:11:31]CheckOFDResponse [00:11:31]1017 (14) - 77093643461234 [00:11:31]1041 (16) - 0000000000874669 [00:11:31]1040 (4) - 139526 [00:11:31]1012 (4) - 30.10.2024 18:11 [00:11:31]1206 (1) - 0 [00:11:31]OFD Sender: Remove packet 139526 [00:11:31]ProducePacketName [00:11:31]name=ofd_packets/00139526 [00:11:31]NVStorageDeleteData [00:11:31]Write to MH i2c: 01 00 00 27 65 8C [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: 01 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: 01 07 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: 01 07 00 27 65 00 00 00 00 00 B1 0C 50 [00:11:31]RasterBufferAndPrint [00:11:31]line [00:11:31]line [00:11:31]line [00:11:31]line [00:11:31]line [00:11:31]written 0, free lines is 3255 [00:11:31]MH_Cut [00:11:31]Write to MH i2c: D1 01 00 2E 65 01 65 [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: D1 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: D1 01 00 [00:11:31]MH_I2C_Read... [00:11:31]Read from MH i2c: D1 01 00 2E 65 00 64 [00:11:31]Write to MH i2c: 01 00 00 2F 65 94 [00:11:31]Write i2c OK [00:11:31]MH_I2C_Read... [00:11:31]OFD Sender: No OFD packet to send [00:11:32]*** Cut start [00:11:32]*** Partial cut [00:11:32]*** CUTSNS_PIN = 1 [00:11:32]*** CUTSNS_PIN = 0 [00:11:32]*** Brake cut motor [00:11:32]Read from MH i2c: 01 [00:11:32]MH_I2C_Read... [00:11:32]*** Stop cut motor [00:11:32]*** Cut end [00:11:32]Read from MH i2c: 01 07 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: 01 07 00 2F 65 00 00 00 00 00 FF 0F A9 [00:11:32]process_action close_receipt done [00:11:32]requested_data is exist [00:11:32]produce_requested_data [00:11:32]requested_item fm.sn is exist - process it [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 11 00 00 [00:11:32]Write to MH i2c: E2 08 00 30 65 80 11 00 00 00 00 00 00 0F [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:32]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:11:32]Read from MH i2c: E2 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 17 00 [00:11:32]MH_I2C_Read... [00:11:32]Read from MH i2c: E2 17 00 30 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6A [00:11:32]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:11:32]wFMCommunicate OK [00:11:32]requested_item fd.num is exist - process it [00:11:32]SAM_PROTO_GetFieldsCounters [00:11:32]wFMCommunicate request_size=4 [00:11:32]MH_SAM_APDU [00:11:32]CAPDU: 80 13 00 00 [00:11:32]Write to MH i2c: E2 08 00 31 65 80 13 00 00 00 00 00 00 12 [00:11:32]Write i2c OK [00:11:32]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 62 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 62 00 31 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 06 21 02 00 0E 04 04 00 2D 02 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 97 [00:11:33]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 06 21 02 00 0E 04 04 00 2D 02 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:11:33]wFMCommunicate OK [00:11:33]SAM_PROTO_GetFieldsCounters done [00:11:33]requested_item shift.num is exist - process it [00:11:33]requested_item shift.opened is exist - process it [00:11:33]req_shift_opened [00:11:33]FM_GetShiftState [00:11:33]SAM_PROTO_GetShiftState [00:11:33]wFMCommunicate request_size=4 [00:11:33]MH_SAM_APDU [00:11:33]CAPDU: 80 13 01 00 [00:11:33]Write to MH i2c: E2 08 00 32 65 80 13 01 00 00 00 00 00 14 [00:11:33]Write i2c OK [00:11:33]MH_I2C_Read... [00:11:33]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:11:33]Read from MH i2c: E2 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 0E 00 [00:11:33]MH_I2C_Read... [00:11:33]Read from MH i2c: E2 0E 00 32 65 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3D [00:11:33]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:11:33]wFMCommunicate OK [00:11:33]SAM_PROTO_GetShiftState done [00:11:33]FM_GetShiftState done [00:11:33]req_shift_opened done [00:11:33]requested_item shift.open_date is exist - process it [00:11:33]req_shift_open_date [00:11:33]req_shift_open_date done [00:11:33]produce_requested_data done [00:11:33]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139526,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:11:33]process_action_free close_receipt [00:11:33]json_value_free [00:11:33]json_value_free done [00:11:33]process_json_proto returns [00:11:33]Send response to host [00:11:33]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139526,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:11:33]free response buf [00:11:33]execute_script done [00:11:33]execute_script returns [00:11:33]free content buf [00:11:33]Sock 9.Close socket [00:11:33]Sock 9.Thread stoped [00:11:36]OFD Sender: No OFD packet to send [00:11:41]OFD Sender: No OFD packet to send [00:11:46]OFD Sender: No OFD packet to send [00:11:51]OFD Sender: No OFD packet to send [00:11:56]OFD Sender: No OFD packet to send [00:12:01]OFD Sender: No OFD packet to send [00:12:06]OFD Sender: No OFD packet to send [00:12:11]OFD Sender: No OFD packet to send [00:12:16]OFD Sender: No OFD packet to send [00:12:21]OFD Sender: No OFD packet to send [00:12:26]OFD Sender: No OFD packet to send [00:12:31]OFD Sender: No OFD packet to send [00:12:36]OFD Sender: No OFD packet to send [00:12:41]OFD Sender: No OFD packet to send [00:12:46]OFD Sender: No OFD packet to send [00:12:48]accept exits with 8 [00:12:48]New connection [00:12:48]New thread 3067284836 created [00:12:48]Thread 3067141476 joined [00:12:48]Waiting for new connection... [00:12:48] Sock 8.Parse request [00:12:48]Sock 8.Check first char [00:12:48]Sock 8.First char is OK [00:12:48]request: POST /json_proto HTTP/1.0 [00:12:48]Method: POST [00:12:48]URL: /json_proto [00:12:48]Method is POST - this is cgi request [00:12:48]url: /json_proto [00:12:48]query_string will be loaded in cgi processing [00:12:48]execute_cgi json_proto POST (null) [00:12:48]execute_cgi path=json_proto method=POST [00:12:48]POST find Content-Length [00:12:48]Host: 172.17.50.196:8080 [00:12:48]Content-Length: 977 [00:12:48]Content-Type: application/json [00:12:48] [00:12:48]POST finish read [00:12:48]Found Content-Length = 977 [00:12:48]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335404", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:48]execute_script... [00: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 : (3)335404", "tax_sys" : 0, "items" : [ { "code": "46230607", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Richmond Bronze Edition", "price" : 154.00, "quantity" : 1.000, "sum" : 154.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.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" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:48]POST & json_proto [00:12:48]process_json_proto [00:12:48]json parsed OK: [00:12:48]protocol is kg_v1.0 [00:12:48]action value=close_receipt [00:12:48]process_action close_receipt [00:12:48]cmd_close_receipt [00:12:48]MH_GetDate [00:12:48]Write to MH i2c: F0 00 00 33 65 87 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: F0 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: F0 09 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: F0 09 00 33 65 00 88 CB 22 67 72 0D 1C 67 6E [00:12:48]GetLastDocTimeStamp 1730333496 [00:12:48]current date 1730333576 [00:12:48]FM_GetShiftState [00:12:48]SAM_PROTO_GetShiftState [00:12:48]wFMCommunicate request_size=4 [00:12:48]MH_SAM_APDU [00:12:48]CAPDU: 80 13 01 00 [00:12:48]Write to MH i2c: E2 08 00 34 65 80 13 01 00 00 00 00 00 16 [00:12:48]Write i2c OK [00:12:48]MH_I2C_Read... [00:12:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:48]Read from MH i2c: E2 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 0E 00 [00:12:48]MH_I2C_Read... [00:12:48]Read from MH i2c: E2 0E 00 34 65 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 3F [00:12:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:12:48]wFMCommunicate OK [00:12:48]SAM_PROTO_GetShiftState done [00:12:48]FM_GetShiftState done [00:12:48]opened in 1730332621 [00:12:48]opened+sec_in_day 1730419021 [00:12:48]quantity*price = 15400 [00:12:48]sum+1 = 15401 [00:12:48]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 46231529 Mentos ПФ Арбуз 6*100*2 1.000 * 10.00 = 10.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 164.00 НСП 1% : 1.45 НДС 12% : 17.41 Наличными: 0.00 Безнал.: 164.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 4 31.10.2024 00:12 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139527 ФПД: 199965220777297 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T001256&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139527&fm=199965220777297&tin=02508201610067®Number=0000000000091631&sum=16400 0 [00:12:49]StoreToDocumentArchive [00:12:49]shift 557 fd 139527 [00:12:49]save to /storage/0557/doc_00139527 [00:12:49]save last doc name /storage/0557/doc_00139527 to /storage/kkm_last_doc_name [00:12:49]save OK [00:12:49]Clear old archive folders... [00:12:49]ProcessDocumentItem done err = 0, tmpTLVsize=374 [00:12:49]tlvbuf is 01163A90 [00:12:49]SAM_PROTO_ClearQueue [00:12:49]wFMCommunicate request_size=4 [00:12:49]MH_SAM_APDU [00:12:49]CAPDU: 80 09 00 00 [00:12:49]Write to MH i2c: E2 08 00 41 65 80 09 00 00 00 00 00 00 18 [00:12:49]Write i2c OK [00:12:49]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 41 65 00 90 00 1A [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]SAM_PROTO_ClearQueue done [00:12:50]KKMCreateOFDPacket [00:12:50]OFDProtocolAddRootSTLVToBuf [00:12:50]FM_MakeSignedData [00:12:50]FM_MakeSignedData [00:12:50]SAM_PROTO_SignData [00:12:50]wFMCommunicate request_size=4 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 0D 01 02 [00:12:50]Write to MH i2c: E2 08 00 42 65 80 0D 01 02 00 00 00 00 20 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 42 65 00 90 00 1B [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=255 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 0D 02 02 FA 03 00 76 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 [00:12:50]Write to MH i2c: E2 02 01 43 65 80 0D 02 02 FA 00 03 00 76 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 00 00 95 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 43 65 00 90 00 1C [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=133 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 0D 02 02 80 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 88 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 07 21 02 00 35 04 06 00 B5 DE 07 F3 AD 51 [00:12:50]Write to MH i2c: E2 88 00 44 65 80 0D 02 02 80 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 88 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 07 21 02 00 35 04 06 00 B5 DE 07 F3 AD 51 00 00 3A [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 03 00 44 65 00 90 00 1D [00:12:50]RAPDU: 90 00 [00:12:50]wFMCommunicate OK [00:12:50]wFMCommunicate request_size=4 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 0D 03 02 [00:12:50]Write to MH i2c: E2 08 00 45 65 80 0D 03 02 00 00 00 00 25 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 0B 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 0B 00 45 65 00 CD 81 F8 B9 BB EE EB 90 90 00 49 [00:12:50]RAPDU: CD 81 F8 B9 BB EE EB 90 90 00 [00:12:50]wFMCommunicate OK [00:12:50]SAM_PROTO_SignData done [00:12:50]FM_MakeSignedData done [00:12:50]CreateOFDProtocolMessage [00:12:50]wFMCommunicate request_size=4 [00:12:50]MH_SAM_APDU [00:12:50]CAPDU: 80 11 00 00 [00:12:50]Write to MH i2c: E2 08 00 46 65 80 11 00 00 00 00 00 00 25 [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:50]Read from MH i2c: E2 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 17 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: E2 17 00 46 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 80 [00:12:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:12:50]wFMCommunicate OK [00:12:50]CreateOFDProtocolMessage done [00:12:50]OFDSenderStorePacket 139527 [00:12:50]StoreOFDPacket docnum=139527 [00:12:50]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8A 01 00 00 BB EE 82 01 A0 61 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 88 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 07 21 02 00 35 04 06 00 B5 DE 07 F3 AD 51 CD 81 F8 B9 BB EE EB 90 [00:12:50]CheckFolder [00:12:50]dirname=/storage/ofd_packets [00:12:50]CheckFolder done [00:12:50]ProducePacketName [00:12:50]name=ofd_packets/00139527 [00:12:50]NVStorageSaveData ofd_packets/00139527 [00:12:50]File name is /storage/ofd_packets/00139527 [00:12:50]Write 424 bytes [00:12:50]NVStorageSaveData done [00:12:50]OFDSenderStorePacket done [00:12:50]KKMCreateOFDPacket done [00:12:50]NVStorageSaveData kkm_last_timestamp [00:12:50]File name is /storage/kkm_last_timestamp [00:12:50]Write 4 bytes [00:12:50]NVStorageSaveData done [00:12:50]ExternCall_PrintAddStr [00:12:50]wPrintStart [00:12:50]Write to MH i2c: 01 00 00 47 65 AC [00:12:50]Write i2c OK [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: 01 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: 01 07 00 [00:12:50]MH_I2C_Read... [00:12:50]Read from MH i2c: 01 07 00 47 65 00 00 00 00 00 FF 0F C1 [00:12:50]RasterBufferAndPrint [00:12:50]line Счет N : (3)335404 [00:12:50]line ИНН: 02508201610067 [00:12:50]line Контрольно-Кассовый Чек [00:12:50]line ПРОДАЖА [00:12:50]line Товар: 46230607 [00:12:50]line Сигареты Richmond Bronze Edition [00:12:50]line 1.000 * 154.00 [00:12:50]line = 154.00 [00:12:50]line НДС 12% НСП 1% [00:12:50]line > о реализуемом товаре [00:12:50]line Товар: 46231529 [00:12:50]line Mentos ПФ Арбуз 6*100*2 [00:12:50]line 1.000 * 10.00 [00:12:50]line = 10.00 [00:12:50]line НДС 12% НСП 1% [00:12:50]line > о реализуемом товаре [00:12:50]line ИТОГО: 164.00 [00:12:50]line НСП 1% : 1.45 [00:12:50]line НДС 12% : 17.41 [00:12:50]line Наличными: 0.00 [00:12:50]line Безнал.: 164.00 [00:12:50]line Место: АЗС № 101 "Партнер Нефть" [00:12:50]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:12:50]line СНО: Общий режим [00:12:50]line Чек 4 31.10.2024 00:12 [00:12:50]line Смена: 557 ФФД: 1.0 [00:12:50]line ЗНМ: 0300000081 [00:12:50]line РНМ: 0000000000091631 [00:12:50]line Версия ККМ: 001 [00:12:50]line Платежная система: Mbank [00:12:50]line ФМ: 0000000000874669 [00:12:50]line ФД: 139527 [00:12:50]line ФПД: 199965220777297 [00:12:50]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T001256&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139527&fm=199965220777297&tin=02508201610067®Number=0000000000091631&sum=16400 [00:12:50]line 0 [00:12:50]OFD Sender: Processing packet 139527 [packets to send 34, broken 33] [00:12:50]ProducePacketName [00:12:50]name=ofd_packets/00139527 [00:12:50]OFD Sender: To server: pG, [00:12:50]CommunicateWithHost lk.salyk.kg:30040 [00:12:50]ConnectInit lk.salyk.kg [00:12:50]written 0, free lines is 4095 [00:12:51]Connected sock=10 [00:12:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8A 01 00 00 BB EE 82 01 A0 61 5A 03 01 00 03 00 76 01 1E 04 01 00 01 23 04 67 00 8A 04 08 00 34 36 32 33 30 36 30 37 06 04 28 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 52 69 63 68 6D 6F 6E 64 20 42 72 6F 6E 7A 65 20 45 64 69 74 69 6F 6E FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 28 3C 00 00 00 00 13 04 06 00 28 3C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 04 00 00 00 F4 03 04 00 88 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 07 21 02 00 35 04 06 00 B5 DE 07 F3 AD 51 CD 81 F8 B9 BB EE EB 90 [00:12:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DC 05 47 00 A6 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 38 37 34 36 36 39 10 04 04 00 07 21 02 00 F4 03 04 00 37 77 22 67 B6 04 01 00 00 6D F0 6B 08 5B EA F6 30 [00:12:51]CommunicateWithHost err = 0 [00:12:51]CheckOFDResponse [00:12:51]1017 (14) - 77093643461234 [00:12:51]1041 (16) - 0000000000874669 [00:12:51]1040 (4) - 139527 [00:12:51]1012 (4) - 30.10.2024 18:13 [00:12:51]1206 (1) - 0 [00:12:51]OFD Sender: Remove packet 139527 [00:12:51]ProducePacketName [00:12:51]name=ofd_packets/00139527 [00:12:51]NVStorageDeleteData [00:12:51]Write to MH i2c: 01 00 00 77 65 DC [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: 01 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: 01 07 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: 01 07 00 77 65 00 00 00 00 00 AA 0C 99 [00:12:51]RasterBufferAndPrint [00:12:51]line [00:12:51]line [00:12:51]line [00:12:51]line [00:12:51]line [00:12:51]written 0, free lines is 3251 [00:12:51]MH_Cut [00:12:51]Write to MH i2c: D1 01 00 7E 65 01 B5 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: D1 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: D1 01 00 [00:12:51]MH_I2C_Read... [00:12:51]Read from MH i2c: D1 01 00 7E 65 00 B4 [00:12:51]Write to MH i2c: 01 00 00 7F 65 E4 [00:12:51]Write i2c OK [00:12:51]MH_I2C_Read... [00:12:51]OFD Sender: No OFD packet to send [00:12:52]*** Cut start [00:12:52]*** Partial cut [00:12:52]*** CUTSNS_PIN = 1 [00:12:52]*** CUTSNS_PIN = 0 [00:12:52]*** Brake cut motor [00:12:52]Read from MH i2c: 01 [00:12:52]MH_I2C_Read... [00:12:52]*** Stop cut motor [00:12:52]*** Cut end [00:12:52]Read from MH i2c: 01 07 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: 01 07 00 7F 65 00 00 00 00 00 FF 0F F9 [00:12:52]process_action close_receipt done [00:12:52]requested_data is exist [00:12:52]produce_requested_data [00:12:52]requested_item fm.sn is exist - process it [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 11 00 00 [00:12:52]Write to MH i2c: E2 08 00 80 65 80 11 00 00 00 00 00 00 5F [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:52]Read from MH i2c: E2 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 17 00 [00:12:52]MH_I2C_Read... [00:12:52]Read from MH i2c: E2 17 00 80 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [00:12:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:12:52]wFMCommunicate OK [00:12:52]requested_item fd.num is exist - process it [00:12:52]SAM_PROTO_GetFieldsCounters [00:12:52]wFMCommunicate request_size=4 [00:12:52]MH_SAM_APDU [00:12:52]CAPDU: 80 13 00 00 [00:12:52]Write to MH i2c: E2 08 00 81 65 80 13 00 00 00 00 00 00 62 [00:12:52]Write i2c OK [00:12:52]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 62 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 62 00 81 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 07 21 02 00 0E 04 04 00 2D 02 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 EB [00:12:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 07 21 02 00 0E 04 04 00 2D 02 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:12:53]wFMCommunicate OK [00:12:53]SAM_PROTO_GetFieldsCounters done [00:12:53]requested_item shift.num is exist - process it [00:12:53]requested_item shift.opened is exist - process it [00:12:53]req_shift_opened [00:12:53]FM_GetShiftState [00:12:53]SAM_PROTO_GetShiftState [00:12:53]wFMCommunicate request_size=4 [00:12:53]MH_SAM_APDU [00:12:53]CAPDU: 80 13 01 00 [00:12:53]Write to MH i2c: E2 08 00 82 65 80 13 01 00 00 00 00 00 64 [00:12:53]Write i2c OK [00:12:53]MH_I2C_Read... [00:12:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:53]Read from MH i2c: E2 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 0E 00 [00:12:53]MH_I2C_Read... [00:12:53]Read from MH i2c: E2 0E 00 82 65 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8D [00:12:53]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:12:53]wFMCommunicate OK [00:12:53]SAM_PROTO_GetShiftState done [00:12:53]FM_GetShiftState done [00:12:53]req_shift_opened done [00:12:53]requested_item shift.open_date is exist - process it [00:12:53]req_shift_open_date [00:12:53]req_shift_open_date done [00:12:53]produce_requested_data done [00:12:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139527,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:12:53]process_action_free close_receipt [00:12:53]json_value_free [00:12:53]json_value_free done [00:12:53]process_json_proto returns [00:12:53]Send response to host [00:12:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139527,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:12:53]free response buf [00:12:53]execute_script done [00:12:53]execute_script returns [00:12:53]free content buf [00:12:53]Sock 8.Close socket [00:12:53]Sock 8.Thread stoped [00:12:56]OFD Sender: No OFD packet to send [00:12:57]accept exits with 9 [00:12:57]New connection [00:12:57]New thread 3067141476 created [00:12:57]Thread 3067284836 joined [00:12:57]Waiting for new connection... [00:12:57] Sock 9.Parse request [00:12:57]Sock 9.Check first char [00:12:57]Sock 9.First char is OK [00:12:57]request: POST /json_proto HTTP/1.0 [00:12:57]Method: POST [00:12:57]URL: /json_proto [00:12:57]Method is POST - this is cgi request [00:12:57]url: /json_proto [00:12:57]query_string will be loaded in cgi processing [00:12:57]execute_cgi json_proto POST (null) [00:12:57]execute_cgi path=json_proto method=POST [00:12:57]POST find Content-Length [00:12:57]Host: 172.17.50.196:8080 [00:12:57]Content-Length: 711 [00:12:57]Content-Type: application/json [00:12:57] [00:12:57]POST finish read [00:12:57]Found Content-Length = 711 [00:12:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335405", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:57]execute_script... [00: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 : (3)335405", "tax_sys" : 0, "items" : [ { "code": "4870202521216", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A MAXI \u0447\u0430\u0439 1,2 \u0437\u0435\u043B.\u043B\u0438\u043C\u043E\u043D (\u043D\u043E\u0432\u044B\u0439)", "price" : 104.00, "quantity" : 1.000, "sum" : 104.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 104.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:12:57]POST & json_proto [00:12:57]process_json_proto [00:12:57]json parsed OK: [00:12:57]protocol is kg_v1.0 [00:12:57]action value=close_receipt [00:12:57]process_action close_receipt [00:12:57]cmd_close_receipt [00:12:57]MH_GetDate [00:12:57]Write to MH i2c: F0 00 00 83 65 D7 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: F0 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: F0 09 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: F0 09 00 83 65 00 91 CB 22 67 72 0D 1C 67 C7 [00:12:57]GetLastDocTimeStamp 1730333576 [00:12:57]current date 1730333585 [00:12:57]FM_GetShiftState [00:12:57]SAM_PROTO_GetShiftState [00:12:57]wFMCommunicate request_size=4 [00:12:57]MH_SAM_APDU [00:12:57]CAPDU: 80 13 01 00 [00:12:57]Write to MH i2c: E2 08 00 84 65 80 13 01 00 00 00 00 00 66 [00:12:57]Write i2c OK [00:12:57]MH_I2C_Read... [00:12:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:12:57]Read from MH i2c: E2 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 0E 00 [00:12:57]MH_I2C_Read... [00:12:57]Read from MH i2c: E2 0E 00 84 65 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8F [00:12:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:12:57]wFMCommunicate OK [00:12:57]SAM_PROTO_GetShiftState done [00:12:57]FM_GetShiftState done [00:12:57]opened in 1730332621 [00:12:57]opened+sec_in_day 1730419021 [00:12:57]quantity*price = 10400 [00:12:57]sum+1 = 10401 [00:12:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 104.00 НСП 1% : 0.92 НДС 12% : 11.04 Наличными: 104.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 5 31.10.2024 00:13 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139528 ФПД: 82870275456465 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T001305&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139528&fm=82870275456465&tin=02508201610067®Number=0000000000091631&sum=10400 0 [00:12:58]StoreToDocumentArchive [00:12:58]shift 557 fd 139528 [00:12:58]save to /storage/0557/doc_00139528 [00:12:58]save last doc name /storage/0557/doc_00139528 to /storage/kkm_last_doc_name [00:12:58]save OK [00:12:58]Clear old archive folders... [00:12:58]ProcessDocumentItem done err = 0, tmpTLVsize=303 [00:12:58]tlvbuf is 01193900 [00:12:58]SAM_PROTO_ClearQueue [00:12:58]wFMCommunicate request_size=4 [00:12:58]MH_SAM_APDU [00:12:58]CAPDU: 80 09 00 00 [00:12:58]Write to MH i2c: E2 08 00 91 65 80 09 00 00 00 00 00 00 68 [00:12:58]Write i2c OK [00:12:58]MH_I2C_Read... [00:12:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 03 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 03 00 91 65 00 90 00 6A [00:12:58]RAPDU: 90 00 [00:12:58]wFMCommunicate OK [00:12:58]SAM_PROTO_ClearQueue done [00:12:58]KKMCreateOFDPacket [00:12:58]OFDProtocolAddRootSTLVToBuf [00:12:58]FM_MakeSignedData [00:12:58]FM_MakeSignedData [00:12:58]SAM_PROTO_SignData [00:12:58]wFMCommunicate request_size=4 [00:12:58]MH_SAM_APDU [00:12:58]CAPDU: 80 0D 01 02 [00:12:58]Write to MH i2c: E2 08 00 92 65 80 0D 01 02 00 00 00 00 70 [00:12:58]Write i2c OK [00:12:58]MH_I2C_Read... [00:12:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:12:58]Read from MH i2c: E2 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 03 00 [00:12:58]MH_I2C_Read... [00:12:58]Read from MH i2c: E2 03 00 92 65 00 90 00 6B [00:12:58]RAPDU: 90 00 [00:12:58]wFMCommunicate OK [00:12:58]wFMCommunicate request_size=255 [00:12:58]MH_SAM_APDU [00:12:58]CAPDU: 80 0D 02 02 FA 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 91 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D [00:12:58]Write to MH i2c: E2 02 01 93 65 80 0D 02 02 FA 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 91 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 00 00 CC [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 03 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 03 00 93 65 00 90 00 6C [00:12:59]RAPDU: 90 00 [00:12:59]wFMCommunicate OK [00:12:59]wFMCommunicate request_size=62 [00:12:59]MH_SAM_APDU [00:12:59]CAPDU: 80 0D 02 02 39 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 08 21 02 00 35 04 06 00 4B 5E BD 54 BD D1 [00:12:59]Write to MH i2c: E2 41 00 94 65 80 0D 02 02 39 00 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 08 21 02 00 35 04 06 00 4B 5E BD 54 BD D1 00 00 24 [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 03 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 03 00 94 65 00 90 00 6D [00:12:59]RAPDU: 90 00 [00:12:59]wFMCommunicate OK [00:12:59]wFMCommunicate request_size=4 [00:12:59]MH_SAM_APDU [00:12:59]CAPDU: 80 0D 03 02 [00:12:59]Write to MH i2c: E2 08 00 95 65 80 0D 03 02 00 00 00 00 75 [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 0B 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 0B 00 95 65 00 04 19 7A 88 6C A6 C5 23 90 00 8F [00:12:59]RAPDU: 04 19 7A 88 6C A6 C5 23 90 00 [00:12:59]wFMCommunicate OK [00:12:59]SAM_PROTO_SignData done [00:12:59]FM_MakeSignedData done [00:12:59]CreateOFDProtocolMessage [00:12:59]wFMCommunicate request_size=4 [00:12:59]MH_SAM_APDU [00:12:59]CAPDU: 80 11 00 00 [00:12:59]Write to MH i2c: E2 08 00 96 65 80 11 00 00 00 00 00 00 75 [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:12:59]Read from MH i2c: E2 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 17 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: E2 17 00 96 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [00:12:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:12:59]wFMCommunicate OK [00:12:59]CreateOFDProtocolMessage done [00:12:59]OFDSenderStorePacket 139528 [00:12:59]StoreOFDPacket docnum=139528 [00:12:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 FC 88 3B 01 E1 DA 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 91 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 08 21 02 00 35 04 06 00 4B 5E BD 54 BD D1 04 19 7A 88 6C A6 C5 23 [00:12:59]CheckFolder [00:12:59]dirname=/storage/ofd_packets [00:12:59]CheckFolder done [00:12:59]ProducePacketName [00:12:59]name=ofd_packets/00139528 [00:12:59]NVStorageSaveData ofd_packets/00139528 [00:12:59]File name is /storage/ofd_packets/00139528 [00:12:59]Write 353 bytes [00:12:59]NVStorageSaveData done [00:12:59]OFDSenderStorePacket done [00:12:59]KKMCreateOFDPacket done [00:12:59]NVStorageSaveData kkm_last_timestamp [00:12:59]File name is /storage/kkm_last_timestamp [00:12:59]Write 4 bytes [00:12:59]NVStorageSaveData done [00:12:59]ExternCall_PrintAddStr [00:12:59]wPrintStart [00:12:59]Write to MH i2c: 01 00 00 97 65 FC [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: 01 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: 01 07 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: 01 07 00 97 65 00 00 00 00 00 FF 0F 11 [00:12:59]RasterBufferAndPrint [00:12:59]line Счет N : (3)335405 [00:12:59]line ИНН: 02508201610067 [00:12:59]line Контрольно-Кассовый Чек [00:12:59]line ПРОДАЖА [00:12:59]line Товар: 4870202521216 [00:12:59]line Напиток MAXI чай 1,2 зел.лимон (новый) [00:12:59]line 1.000 * 104.00 [00:12:59]line = 104.00 [00:12:59]line НДС 12% НСП 1% [00:12:59]line > о реализуемом товаре [00:12:59]line ИТОГО: 104.00 [00:12:59]line НСП 1% : 0.92 [00:12:59]line НДС 12% : 11.04 [00:12:59]line Наличными: 104.00 [00:12:59]line Безнал.: 0.00 [00:12:59]line Место: АЗС № 101 "Партнер Нефть" [00:12:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:12:59]line СНО: Общий режим [00:12:59]line Чек 5 31.10.2024 00:13 [00:12:59]line Смена: 557 ФФД: 1.0 [00:12:59]line ЗНМ: 0300000081 [00:12:59]line РНМ: 0000000000091631 [00:12:59]line Версия ККМ: 001 [00:12:59]line ФМ: 0000000000874669 [00:12:59]line ФД: 139528 [00:12:59]line ФПД: 82870275456465 [00:12:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T001305&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139528&fm=82870275456465&tin=02508201610067®Number=0000000000091631&sum=10400 [00:12:59]line 0 [00:12:59]written 0, free lines is 4095 [00:12:59]OFD Sender: Processing packet 139528 [packets to send 34, broken 33] [00:12:59]ProducePacketName [00:12:59]name=ofd_packets/00139528 [00:12:59]OFD Sender: To server: pG, [00:12:59]CommunicateWithHost lk.salyk.kg:30040 [00:12:59]ConnectInit lk.salyk.kg [00:12:59]Connected sock=10 [00:12:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 43 01 00 00 FC 88 3B 01 E1 DA 5A 03 01 00 03 00 2F 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 38 37 30 32 30 32 35 32 31 32 31 36 06 04 3D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4D 41 58 49 20 D1 87 D0 B0 D0 B9 20 31 2C 32 20 D0 B7 D0 B5 D0 BB 2E D0 BB D0 B8 D0 BC D0 BE D0 BD 20 28 D0 BD D0 BE D0 B2 D1 8B D0 B9 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 A0 28 00 00 00 00 13 04 06 00 A0 28 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 A0 28 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 5C 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 50 04 00 00 00 00 07 04 06 00 A0 28 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 91 CB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 08 21 02 00 35 04 06 00 4B 5E BD 54 BD D1 04 19 7A 88 6C A6 C5 23 [00:12:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 9B EE 47 00 C1 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 38 37 34 36 36 39 10 04 04 00 08 21 02 00 F4 03 04 00 40 77 22 67 B6 04 01 00 00 D3 2A 17 37 E0 53 AC CE [00:12:59]CommunicateWithHost err = 0 [00:12:59]CheckOFDResponse [00:12:59]1017 (14) - 77093643461234 [00:12:59]1041 (16) - 0000000000874669 [00:12:59]1040 (4) - 139528 [00:12:59]1012 (4) - 30.10.2024 18:13 [00:12:59]1206 (1) - 0 [00:12:59]OFD Sender: Remove packet 139528 [00:12:59]ProducePacketName [00:12:59]name=ofd_packets/00139528 [00:12:59]NVStorageDeleteData [00:12:59]Write to MH i2c: 01 00 00 C0 65 25 [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: 01 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: 01 07 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: 01 07 00 C0 65 00 00 00 00 00 12 0D 4B [00:12:59]RasterBufferAndPrint [00:12:59]line [00:12:59]line [00:12:59]line [00:12:59]line [00:12:59]line [00:12:59]written 0, free lines is 3359 [00:12:59]MH_Cut [00:12:59]Write to MH i2c: D1 01 00 C7 65 01 FE [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: D1 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: D1 01 00 [00:12:59]MH_I2C_Read... [00:12:59]Read from MH i2c: D1 01 00 C7 65 00 FD [00:12:59]Write to MH i2c: 01 00 00 C8 65 2D [00:12:59]Write i2c OK [00:12:59]MH_I2C_Read... [00:13:00]OFD Sender: No OFD packet to send [00:13:00]*** Cut start [00:13:00]*** Partial cut [00:13:00]*** CUTSNS_PIN = 1 [00:13:00]*** CUTSNS_PIN = 0 [00:13:00]*** Brake cut motor [00:13:01]Read from MH i2c: 01 [00:13:01]MH_I2C_Read... [00:13:01]*** Stop cut motor [00:13:01]*** Cut end [00:13:01]Read from MH i2c: 01 07 00 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: 01 07 00 C8 65 00 00 00 00 00 FF 0F 42 [00:13:01]process_action close_receipt done [00:13:01]requested_data is exist [00:13:01]produce_requested_data [00:13:01]requested_item fm.sn is exist - process it [00:13:01]wFMCommunicate request_size=4 [00:13:01]MH_SAM_APDU [00:13:01]CAPDU: 80 11 00 00 [00:13:01]Write to MH i2c: E2 08 00 C9 65 80 11 00 00 00 00 00 00 A8 [00:13:01]Write i2c OK [00:13:01]MH_I2C_Read... [00:13:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:13:01]Read from MH i2c: E2 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 17 00 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 17 00 C9 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 03 [00:13:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:13:01]wFMCommunicate OK [00:13:01]requested_item fd.num is exist - process it [00:13:01]SAM_PROTO_GetFieldsCounters [00:13:01]wFMCommunicate request_size=4 [00:13:01]MH_SAM_APDU [00:13:01]CAPDU: 80 13 00 00 [00:13:01]Write to MH i2c: E2 08 00 CA 65 80 13 00 00 00 00 00 00 AB [00:13:01]Write i2c OK [00:13:01]MH_I2C_Read... [00:13:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:13:01]Read from MH i2c: E2 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 62 00 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 62 00 CA 65 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 08 21 02 00 0E 04 04 00 2D 02 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 38 [00:13:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 08 21 02 00 0E 04 04 00 2D 02 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:13:01]wFMCommunicate OK [00:13:01]SAM_PROTO_GetFieldsCounters done [00:13:01]requested_item shift.num is exist - process it [00:13:01]requested_item shift.opened is exist - process it [00:13:01]req_shift_opened [00:13:01]FM_GetShiftState [00:13:01]SAM_PROTO_GetShiftState [00:13:01]wFMCommunicate request_size=4 [00:13:01]MH_SAM_APDU [00:13:01]CAPDU: 80 13 01 00 [00:13:01]Write to MH i2c: E2 08 00 CB 65 80 13 01 00 00 00 00 00 AD [00:13:01]Write i2c OK [00:13:01]MH_I2C_Read... [00:13:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:13:01]Read from MH i2c: E2 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 0E 00 [00:13:01]MH_I2C_Read... [00:13:01]Read from MH i2c: E2 0E 00 CB 65 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D6 [00:13:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:13:01]wFMCommunicate OK [00:13:01]SAM_PROTO_GetShiftState done [00:13:01]FM_GetShiftState done [00:13:01]req_shift_opened done [00:13:01]requested_item shift.open_date is exist - process it [00:13:01]req_shift_open_date [00:13:01]req_shift_open_date done [00:13:01]produce_requested_data done [00:13:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139528,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:13:01]process_action_free close_receipt [00:13:01]json_value_free [00:13:01]json_value_free done [00:13:01]process_json_proto returns [00:13:01]Send response to host [00:13:01]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139528,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:13:01]free response buf [00:13:01]execute_script done [00:13:01]execute_script returns [00:13:01]free content buf [00:13:01]Sock 9.Close socket [00:13:01]Sock 9.Thread stoped [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]OFD Sender: No OFD packet to send [00:15:25]OFD Sender: No OFD packet to send [00:15:30]OFD Sender: No OFD packet to send [00:15:35]OFD Sender: No OFD packet to send [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:00]OFD Sender: No OFD packet to send [00:18:05]OFD Sender: No OFD packet to send [00:18:10]OFD Sender: No OFD packet to send [00:18:15]OFD Sender: No OFD packet to send [00:18:20]OFD Sender: No OFD packet to send [00:18:25]OFD Sender: No OFD packet to send [00:18:30]OFD Sender: No OFD packet to send [00:18:35]OFD Sender: No OFD packet to send [00:18:40]OFD Sender: No OFD packet to send [00:18:45]OFD Sender: No OFD packet to send [00:18:50]OFD Sender: No OFD packet to send [00:18:55]OFD Sender: No OFD packet to send [00:18:55]accept exits with 8 [00:18:55]New connection [00:18:55]New thread 3067284836 created [00:18:55]Thread 3067141476 joined [00:18:55]Waiting for new connection... [00:18:55] Sock 8.Parse request [00:18:55]Sock 8.Check first char [00:18:55]Sock 8.First char is OK [00:18:55]request: POST /json_proto HTTP/1.0 [00:18:55]Method: POST [00:18:55]URL: /json_proto [00:18:55]Method is POST - this is cgi request [00:18:55]url: /json_proto [00:18:55]query_string will be loaded in cgi processing [00:18:55]execute_cgi json_proto POST (null) [00:18:55]execute_cgi path=json_proto method=POST [00:18:55]POST find Content-Length [00:18:55]Host: 172.17.50.196:8080 [00:18:55]Content-Length: 1030 [00:18:55]Content-Type: application/json [00:18:55] [00:18:55]POST finish read [00:18:55]Found Content-Length = 1030 [00:18:55]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335406", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:55]execute_script... [00:18: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 : (3)335406", "tax_sys" : 0, "items" : [ { "code": "4600682557456", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A FLash up energy \u044D\u043D \u0436/\u0431 0,5/0,45\u043B", "price" : 69.00, "quantity" : 1.000, "sum" : 69.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.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" : 119.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:18:55]POST & json_proto [00:18:55]process_json_proto [00:18:55]json parsed OK: [00:18:55]protocol is kg_v1.0 [00:18:55]action value=close_receipt [00:18:55]process_action close_receipt [00:18:55]cmd_close_receipt [00:18:55]MH_GetDate [00:18:55]Write to MH i2c: F0 00 00 CC 65 20 [00:18:55]Write i2c OK [00:18:55]MH_I2C_Read... [00:18:55]Read from MH i2c: F0 [00:18:55]MH_I2C_Read... [00:18:55]Read from MH i2c: F0 09 00 [00:18:55]MH_I2C_Read... [00:18:55]Read from MH i2c: F0 09 00 CC 65 00 F7 CC 22 67 72 0D 1C 67 77 [00:18:55]GetLastDocTimeStamp 1730333585 [00:18:55]current date 1730333943 [00:18:55]FM_GetShiftState [00:18:55]SAM_PROTO_GetShiftState [00:18:55]wFMCommunicate request_size=4 [00:18:55]MH_SAM_APDU [00:18:55]CAPDU: 80 13 01 00 [00:18:55]Write to MH i2c: E2 08 00 CD 65 80 13 01 00 00 00 00 00 AF [00:18:55]Write i2c OK [00:18:55]MH_I2C_Read... [00:18:55]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:18:55]Read from MH i2c: E2 [00:18:55]MH_I2C_Read... [00:18:55]Read from MH i2c: E2 0E 00 [00:18:55]MH_I2C_Read... [00:18:55]Read from MH i2c: E2 0E 00 CD 65 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D8 [00:18:55]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:18:55]wFMCommunicate OK [00:18:55]SAM_PROTO_GetShiftState done [00:18:55]FM_GetShiftState done [00:18:55]opened in 1730332621 [00:18:55]opened+sec_in_day 1730419021 [00:18:55]quantity*price = 6900 [00:18:55]sum+1 = 6901 [00:18:55]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 119.00 НСП 1% : 1.05 НДС 12% : 12.64 Наличными: 0.00 Безнал.: 119.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 6 31.10.2024 00:19 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139529 ФПД: 134479703796091 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T001903&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139529&fm=134479703796091&tin=02508201610067®Number=0000000000091631&sum=11900 0 [00:18:57]StoreToDocumentArchive [00:18:57]shift 557 fd 139529 [00:18:57]save to /storage/0557/doc_00139529 [00:18:57]save last doc name /storage/0557/doc_00139529 to /storage/kkm_last_doc_name [00:18:57]save OK [00:18:57]Clear old archive folders... [00:18:57]ProcessDocumentItem done err = 0, tmpTLVsize=393 [00:18:57]tlvbuf is 01158AD0 [00:18:57]SAM_PROTO_ClearQueue [00:18:57]wFMCommunicate request_size=4 [00:18:57]MH_SAM_APDU [00:18:57]CAPDU: 80 09 00 00 [00:18:57]Write to MH i2c: E2 08 00 DA 65 80 09 00 00 00 00 00 00 B1 [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:18:57]Read from MH i2c: E2 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 03 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 03 00 DA 65 00 90 00 B3 [00:18:57]RAPDU: 90 00 [00:18:57]wFMCommunicate OK [00:18:57]SAM_PROTO_ClearQueue done [00:18:57]KKMCreateOFDPacket [00:18:57]OFDProtocolAddRootSTLVToBuf [00:18:57]FM_MakeSignedData [00:18:57]FM_MakeSignedData [00:18:57]SAM_PROTO_SignData [00:18:57]wFMCommunicate request_size=4 [00:18:57]MH_SAM_APDU [00:18:57]CAPDU: 80 0D 01 02 [00:18:57]Write to MH i2c: E2 08 00 DB 65 80 0D 01 02 00 00 00 00 B9 [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:18:57]Read from MH i2c: E2 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 03 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 03 00 DB 65 00 90 00 B4 [00:18:57]RAPDU: 90 00 [00:18:57]wFMCommunicate OK [00:18:57]wFMCommunicate request_size=255 [00:18:57]MH_SAM_APDU [00:18:57]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 [00:18:57]Write to MH i2c: E2 02 01 DC 65 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 9B [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:57]Read from MH i2c: E2 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 03 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 03 00 DC 65 00 90 00 B5 [00:18:57]RAPDU: 90 00 [00:18:57]wFMCommunicate OK [00:18:57]wFMCommunicate request_size=152 [00:18:57]MH_SAM_APDU [00:18:57]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 CC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 09 21 02 00 35 04 06 00 7A 4E FE F9 69 7B [00:18:57]Write to MH i2c: E2 9B 00 DD 65 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 CC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 09 21 02 00 35 04 06 00 7A 4E FE F9 69 7B 00 00 64 [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:18:57]Read from MH i2c: E2 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 03 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 03 00 DD 65 00 90 00 B6 [00:18:57]RAPDU: 90 00 [00:18:57]wFMCommunicate OK [00:18:57]wFMCommunicate request_size=4 [00:18:57]MH_SAM_APDU [00:18:57]CAPDU: 80 0D 03 02 [00:18:57]Write to MH i2c: E2 08 00 DE 65 80 0D 03 02 00 00 00 00 BE [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:18:57]Read from MH i2c: E2 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 0B 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 0B 00 DE 65 00 E2 F4 9E F2 66 0D 17 A5 90 00 54 [00:18:57]RAPDU: E2 F4 9E F2 66 0D 17 A5 90 00 [00:18:57]wFMCommunicate OK [00:18:57]SAM_PROTO_SignData done [00:18:57]FM_MakeSignedData done [00:18:57]CreateOFDProtocolMessage [00:18:57]wFMCommunicate request_size=4 [00:18:57]MH_SAM_APDU [00:18:57]CAPDU: 80 11 00 00 [00:18:57]Write to MH i2c: E2 08 00 DF 65 80 11 00 00 00 00 00 00 BE [00:18:57]Write i2c OK [00:18:57]MH_I2C_Read... [00:18:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:57]Read from MH i2c: E2 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 17 00 [00:18:57]MH_I2C_Read... [00:18:57]Read from MH i2c: E2 17 00 DF 65 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 19 [00:18:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:18:57]wFMCommunicate OK [00:18:57]CreateOFDProtocolMessage done [00:18:57]OFDSenderStorePacket 139529 [00:18:57]StoreOFDPacket docnum=139529 [00:18:57]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9D 01 00 00 49 8F 95 01 2A CB 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 CC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 09 21 02 00 35 04 06 00 7A 4E FE F9 69 7B E2 F4 9E F2 66 0D 17 A5 [00:18:57]CheckFolder [00:18:57]dirname=/storage/ofd_packets [00:18:57]CheckFolder done [00:18:57]ProducePacketName [00:18:57]name=ofd_packets/00139529 [00:18:57]NVStorageSaveData ofd_packets/00139529 [00:18:57]File name is /storage/ofd_packets/00139529 [00:18:57]Write 443 bytes [00:18:57]NVStorageSaveData done [00:18:57]OFDSenderStorePacket done [00:18:57]KKMCreateOFDPacket done [00:18:57]NVStorageSaveData kkm_last_timestamp [00:18:57]File name is /storage/kkm_last_timestamp [00:18:57]Write 4 bytes [00:18:57]NVStorageSaveData done [00:18:57]ExternCall_PrintAddStr [00:18:57]wPrintStart [00:18:57]Write to MH i2c: 01 00 00 E0 65 45 [00:18:57]OFD Sender: Processing packet 139529 [packets to send 34, broken 33] [00:18:57]ProducePacketName [00:18:57]name=ofd_packets/00139529 [00:18:57]OFD Sender: To server: pG, [00:18:57]CommunicateWithHost lk.salyk.kg:30040 [00:18:58]ConnectInit lk.salyk.kg [00:18:58]Write i2c OK [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: 01 [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: 01 07 00 [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: 01 07 00 E0 65 00 00 00 00 00 FF 0F 5A [00:18:58]RasterBufferAndPrint [00:18:58]line Счет N : (3)335406 [00:18:58]line ИНН: 02508201610067 [00:18:58]line Контрольно-Кассовый Чек [00:18:58]line ПРОДАЖА [00:18:58]line Товар: 4600682557456 [00:18:58]line Напиток FLash up energy эн ж/б 0,5/0,45л [00:18:58]line 1.000 * 69.00 [00:18:58]line = 69.00 [00:18:58]line НДС 12% НСП 1% [00:18:58]line > о реализуемом товаре [00:18:58]line Товар: 4700000160358 [00:18:58]line Вода Легенда 1л [00:18:58]line 1.000 * 50.00 [00:18:58]line = 50.00 [00:18:58]line НДС 12% НСП 1% [00:18:58]line > о реализуемом товаре [00:18:58]line ИТОГО: 119.00 [00:18:58]line НСП 1% : 1.05 [00:18:58]line НДС 12% : 12.64 [00:18:58]line Наличными: 0.00 [00:18:58]line Безнал.: 119.00 [00:18:58]line Место: АЗС № 101 "Партнер Нефть" [00:18:58]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:18:58]line СНО: Общий режим [00:18:58]line Чек 6 31.10.2024 00:19 [00:18:58]line Смена: 557 ФФД: 1.0 [00:18:58]line ЗНМ: 0300000081 [00:18:58]line РНМ: 0000000000091631 [00:18:58]line Версия ККМ: 001 [00:18:58]line Платежная система: Mbank [00:18:58]line ФМ: 0000000000874669 [00:18:58]line ФД: 139529 [00:18:58]line ФПД: 134479703796091 [00:18:58]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T001903&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139529&fm=134479703796091&tin=02508201610067®Number=0000000000091631&sum=11900 [00:18:58]line 0 [00:18:58]written 0, free lines is 4095 [00:18:58]Connected sock=10 [00:18:58]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9D 01 00 00 49 8F 95 01 2A CB 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 78 00 8A 04 0D 00 34 36 30 30 36 38 32 35 35 37 34 35 36 06 04 34 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 46 4C 61 73 68 20 75 70 20 65 6E 65 72 67 79 20 D1 8D D0 BD 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 F4 1A 00 00 00 00 13 04 06 00 F4 1A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 7C 2E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 69 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F0 04 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 7C 2E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 06 00 00 00 F4 03 04 00 F7 CC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 09 21 02 00 35 04 06 00 7A 4E FE F9 69 7B E2 F4 9E F2 66 0D 17 A5 [00:18:58]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F8 36 47 00 7D E1 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 09 21 02 00 F4 03 04 00 A6 78 22 67 B6 04 01 00 00 33 4E D6 BA 3E 35 9B 3E [00:18:58]CommunicateWithHost err = 0 [00:18:58]CheckOFDResponse [00:18:58]1017 (14) - 77093643461234 [00:18:58]1041 (16) - 0000000000874669 [00:18:58]1040 (4) - 139529 [00:18:58]1012 (4) - 30.10.2024 18:19 [00:18:58]1206 (1) - 0 [00:18:58]OFD Sender: Remove packet 139529 [00:18:58]ProducePacketName [00:18:58]name=ofd_packets/00139529 [00:18:58]NVStorageDeleteData [00:18:58]Write to MH i2c: 01 00 00 10 66 76 [00:18:58]Write i2c OK [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: 01 [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: 01 07 00 [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: 01 07 00 10 66 00 00 00 00 00 A6 0C 2F [00:18:58]RasterBufferAndPrint [00:18:58]line [00:18:58]line [00:18:58]line [00:18:58]line [00:18:58]line [00:18:58]written 0, free lines is 3244 [00:18:58]MH_Cut [00:18:58]Write to MH i2c: D1 01 00 17 66 01 4F [00:18:58]Write i2c OK [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: D1 [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: D1 01 00 [00:18:58]MH_I2C_Read... [00:18:58]Read from MH i2c: D1 01 00 17 66 00 4E [00:18:58]Write to MH i2c: 01 00 00 18 66 7E [00:18:58]Write i2c OK [00:18:58]MH_I2C_Read... [00:18:58]OFD Sender: No OFD packet to send [00:18:59]*** Cut start [00:18:59]*** Partial cut [00:18:59]*** CUTSNS_PIN = 1 [00:18:59]*** CUTSNS_PIN = 0 [00:18:59]*** Brake cut motor [00:18:59]Read from MH i2c: 01 [00:18:59]MH_I2C_Read... [00:18:59]*** Stop cut motor [00:18:59]*** Cut end [00:18:59]Read from MH i2c: 01 07 00 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: 01 07 00 18 66 00 00 00 00 00 FF 0F 93 [00:18:59]process_action close_receipt done [00:18:59]requested_data is exist [00:18:59]produce_requested_data [00:18:59]requested_item fm.sn is exist - process it [00:18:59]wFMCommunicate request_size=4 [00:18:59]MH_SAM_APDU [00:18:59]CAPDU: 80 11 00 00 [00:18:59]Write to MH i2c: E2 08 00 19 66 80 11 00 00 00 00 00 00 F9 [00:18:59]Write i2c OK [00:18:59]MH_I2C_Read... [00:18:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:18:59]Read from MH i2c: E2 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: E2 17 00 [00:18:59]MH_I2C_Read... [00:18:59]Read from MH i2c: E2 17 00 19 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 54 [00:18:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:18:59]wFMCommunicate OK [00:18:59]requested_item fd.num is exist - process it [00:18:59]SAM_PROTO_GetFieldsCounters [00:18:59]wFMCommunicate request_size=4 [00:18:59]MH_SAM_APDU [00:18:59]CAPDU: 80 13 00 00 [00:18:59]Write to MH i2c: E2 08 00 1A 66 80 13 00 00 00 00 00 00 FC [00:18:59]Write i2c OK [00:18:59]MH_I2C_Read... [00:19:00]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:19:00]Read from MH i2c: E2 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 62 00 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 62 00 1A 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 09 21 02 00 0E 04 04 00 2D 02 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 8D [00:19:00]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 09 21 02 00 0E 04 04 00 2D 02 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:19:00]wFMCommunicate OK [00:19:00]SAM_PROTO_GetFieldsCounters done [00:19:00]requested_item shift.num is exist - process it [00:19:00]requested_item shift.opened is exist - process it [00:19:00]req_shift_opened [00:19:00]FM_GetShiftState [00:19:00]SAM_PROTO_GetShiftState [00:19:00]wFMCommunicate request_size=4 [00:19:00]MH_SAM_APDU [00:19:00]CAPDU: 80 13 01 00 [00:19:00]Write to MH i2c: E2 08 00 1B 66 80 13 01 00 00 00 00 00 FE [00:19:00]Write i2c OK [00:19:00]MH_I2C_Read... [00:19:00]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:19:00]Read from MH i2c: E2 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 0E 00 [00:19:00]MH_I2C_Read... [00:19:00]Read from MH i2c: E2 0E 00 1B 66 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 27 [00:19:00]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:19:00]wFMCommunicate OK [00:19:00]SAM_PROTO_GetShiftState done [00:19:00]FM_GetShiftState done [00:19:00]req_shift_opened done [00:19:00]requested_item shift.open_date is exist - process it [00:19:00]req_shift_open_date [00:19:00]req_shift_open_date done [00:19:00]produce_requested_data done [00:19:00]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139529,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:19:00]process_action_free close_receipt [00:19:00]json_value_free [00:19:00]json_value_free done [00:19:00]process_json_proto returns [00:19:00]Send response to host [00:19:00]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139529,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:19:00]free response buf [00:19:00]execute_script done [00:19:00]execute_script returns [00:19:00]free content buf [00:19:00]Sock 8.Close socket [00:19:00]Sock 8.Thread stoped [00:19:02]int [00:19:02]Write to MH i2c: 01 00 00 1C 66 82 [00:19:02]*** FLAG_PRN_PAP1 set [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: 01 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: 01 07 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: 01 07 00 1C 66 00 01 00 00 00 FF 0F 98 [00:19:02]state=0 [00:19:02]No paper [00:19:02]int [00:19:02]Write to MH i2c: 01 00 00 1D 66 83 [00:19:02]*** FLAG_PRN_PAP2 set [00:19:02]Write i2c OK [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: 01 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: 01 07 00 [00:19:02]MH_I2C_Read... [00:19:02]Read from MH i2c: 01 07 00 1D 66 00 03 00 00 00 FF 0F 9B [00:19:02]state=0 [00:19:02]No paper [00:19:02]Cover opened [00:19:03]OFD Sender: No OFD packet to send [00:19:07]Write to MH i2c: 01 00 00 1E 66 84 [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 07 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 07 00 1E 66 00 03 00 00 00 FF 0F 9C [00:19:07]state=3 [00:19:07]No paper [00:19:07]Cover opened [00:19:07]int [00:19:07]Write to MH i2c: 01 00 00 1F 66 85 [00:19:07]*** FLAG_PRN_PAP2 reset [00:19:07]Write i2c OK [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 07 00 [00:19:07]MH_I2C_Read... [00:19:07]Read from MH i2c: 01 07 00 1F 66 00 01 00 00 00 FF 0F 9B [00:19:07]state=3 [00:19:07]No paper [00:19:07]Cover closed [00:19:07]*** FLAG_PRN_PAP1 reset [00:19:08]OFD Sender: No OFD packet to send [00:19:12]int line is 0 - check status [00:19:12]Write to MH i2c: 01 00 00 20 66 86 [00:19:12]Write i2c OK [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: 01 [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: 01 07 00 [00:19:12]MH_I2C_Read... [00:19:12]Read from MH i2c: 01 07 00 20 66 00 00 00 00 00 FF 0F 9B [00:19:12]state=0 [00:19:13]OFD Sender: No OFD packet to send [00:19:18]OFD Sender: No OFD packet to send [00:19:23]OFD Sender: No OFD packet to send [00:19:28]OFD Sender: No OFD packet to send [00:19:33]OFD Sender: No OFD packet to send [00:19:38]OFD Sender: No OFD packet to send [00:19:43]OFD Sender: No OFD packet to send [00:19:48]OFD Sender: No OFD packet to send [00:19:53]OFD Sender: No OFD packet to send [00:19:58]OFD Sender: No OFD packet to send [00:20:03]OFD Sender: No OFD packet to send [00:20:08]OFD Sender: No OFD packet to send [00:20:13]accept exits with 9 [00:20:13]New connection [00:20:13]New thread 3067141476 created [00:20:13]Thread 3067284836 joined [00:20:13]Waiting for new connection... [00:20:13] Sock 9.Parse request [00:20:13]Sock 9.Check first char [00:20:13]Sock 9.First char is OK [00:20:13]request: POST /json_proto HTTP/1.0 [00:20:13]Method: POST [00:20:13]URL: /json_proto [00:20:13]Method is POST - this is cgi request [00:20:13]url: /json_proto [00:20:13]query_string will be loaded in cgi processing [00:20:13]execute_cgi json_proto POST (null) [00:20:13]execute_cgi path=json_proto method=POST [00:20:13]POST find Content-Length [00:20:13]Host: 172.17.50.196:8080 [00:20:13]Content-Length: 938 [00:20:13]Content-Type: application/json [00:20:13] [00:20:13]POST finish read [00:20:13]Found Content-Length = 938 [00:20:13]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335407", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:13]execute_script... [00:20: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 : (3)335407", "tax_sys" : 0, "items" : [ { "code": "4607084351378", "name": "\u0411\u0438\u0441\u043A\u0432\u0438\u0442 \u0427\u043E\u043A\u043E \u043F\u0430\u0439 6\u0448\u0442", "price" : 175.00, "quantity" : 1.000, "sum" : 175.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4602441000609", "name": "\u041D\u0430\u043F\u0438\u0442 \u0414\u044E\u0448\u0435\u0441 1\u043B \u0441\u0442\u0435\u043A\u043B\u043E", "price" : 205.00, "quantity" : 1.000, "sum" : 205.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 380.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:20:13]POST & json_proto [00:20:13]process_json_proto [00:20:13]json parsed OK: [00:20:13]protocol is kg_v1.0 [00:20:13]action value=close_receipt [00:20:13]process_action close_receipt [00:20:13]cmd_close_receipt [00:20:13]MH_GetDate [00:20:13]Write to MH i2c: F0 00 00 21 66 76 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 09 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: F0 09 00 21 66 00 45 CD 22 67 72 0D 1C 67 1C [00:20:13]GetLastDocTimeStamp 1730333943 [00:20:13]current date 1730334021 [00:20:13]FM_GetShiftState [00:20:13]SAM_PROTO_GetShiftState [00:20:13]wFMCommunicate request_size=4 [00:20:13]MH_SAM_APDU [00:20:13]CAPDU: 80 13 01 00 [00:20:13]Write to MH i2c: E2 08 00 22 66 80 13 01 00 00 00 00 00 05 [00:20:13]Write i2c OK [00:20:13]MH_I2C_Read... [00:20:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:13]Read from MH i2c: E2 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 0E 00 [00:20:13]MH_I2C_Read... [00:20:13]Read from MH i2c: E2 0E 00 22 66 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2E [00:20:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:20:13]wFMCommunicate OK [00:20:13]SAM_PROTO_GetShiftState done [00:20:13]FM_GetShiftState done [00:20:13]opened in 1730332621 [00:20:13]opened+sec_in_day 1730419021 [00:20:13]quantity*price = 17500 [00:20:13]sum+1 = 17501 [00:20:13]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4602441000609 Напит Дюшес 1л стекло 1.000 * 205.00 = 205.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 380.00 НСП 1% : 3.36 НДС 12% : 40.35 Наличными: 380.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 7 31.10.2024 00:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139530 ФПД: 97470634324536 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T002021&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139530&fm=97470634324536&tin=02508201610067®Number=0000000000091631&sum=38000 0 [00:20:14]StoreToDocumentArchive [00:20:14]shift 557 fd 139530 [00:20:14]save to /storage/0557/doc_00139530 [00:20:14]save last doc name /storage/0557/doc_00139530 to /storage/kkm_last_doc_name [00:20:14]save OK [00:20:14]Clear old archive folders... [00:20:14]ProcessDocumentItem done err = 0, tmpTLVsize=388 [00:20:14]tlvbuf is 011D7EA0 [00:20:14]SAM_PROTO_ClearQueue [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 09 00 00 [00:20:14]Write to MH i2c: E2 08 00 2F 66 80 09 00 00 00 00 00 00 07 [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 2F 66 00 90 00 09 [00:20:14]RAPDU: 90 00 [00:20:14]wFMCommunicate OK [00:20:14]SAM_PROTO_ClearQueue done [00:20:14]KKMCreateOFDPacket [00:20:14]OFDProtocolAddRootSTLVToBuf [00:20:14]FM_MakeSignedData [00:20:14]FM_MakeSignedData [00:20:14]SAM_PROTO_SignData [00:20:14]wFMCommunicate request_size=4 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 0D 01 02 [00:20:14]Write to MH i2c: E2 08 00 30 66 80 0D 01 02 00 00 00 00 0F [00:20:14]Write i2c OK [00:20:14]MH_I2C_Read... [00:20:14]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:20:14]Read from MH i2c: E2 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 [00:20:14]MH_I2C_Read... [00:20:14]Read from MH i2c: E2 03 00 30 66 00 90 00 0A [00:20:14]RAPDU: 90 00 [00:20:14]wFMCommunicate OK [00:20:14]wFMCommunicate request_size=255 [00:20:14]MH_SAM_APDU [00:20:14]CAPDU: 80 0D 02 02 FA 03 00 84 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 [00:20:14]Write to MH i2c: E2 02 01 31 66 80 0D 02 02 FA 00 03 00 84 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 00 00 23 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 31 66 00 90 00 0B [00:20:15]RAPDU: 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=147 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 0D 02 02 8E F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 0F 00 00 00 00 07 04 06 00 70 94 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 45 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0A 21 02 00 35 04 06 00 58 A6 26 88 F2 38 [00:20:15]Write to MH i2c: E2 96 00 32 66 80 0D 02 02 8E 00 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 0F 00 00 00 00 07 04 06 00 70 94 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 45 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0A 21 02 00 35 04 06 00 58 A6 26 88 F2 38 00 00 59 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 03 00 32 66 00 90 00 0C [00:20:15]RAPDU: 90 00 [00:20:15]wFMCommunicate OK [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 0D 03 02 [00:20:15]Write to MH i2c: E2 08 00 33 66 80 0D 03 02 00 00 00 00 14 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 0B 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 0B 00 33 66 00 45 8C BC 12 A7 C1 F6 59 90 00 6B [00:20:15]RAPDU: 45 8C BC 12 A7 C1 F6 59 90 00 [00:20:15]wFMCommunicate OK [00:20:15]SAM_PROTO_SignData done [00:20:15]FM_MakeSignedData done [00:20:15]CreateOFDProtocolMessage [00:20:15]wFMCommunicate request_size=4 [00:20:15]MH_SAM_APDU [00:20:15]CAPDU: 80 11 00 00 [00:20:15]Write to MH i2c: E2 08 00 34 66 80 11 00 00 00 00 00 00 14 [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:15]Read from MH i2c: E2 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 17 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: E2 17 00 34 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6F [00:20:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:20:15]wFMCommunicate OK [00:20:15]CreateOFDProtocolMessage done [00:20:15]OFDSenderStorePacket 139530 [00:20:15]StoreOFDPacket docnum=139530 [00:20:15]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 98 01 00 00 7D B4 90 01 D2 90 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 0F 00 00 00 00 07 04 06 00 70 94 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 45 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0A 21 02 00 35 04 06 00 58 A6 26 88 F2 38 45 8C BC 12 A7 C1 F6 59 [00:20:15]CheckFolder [00:20:15]dirname=/storage/ofd_packets [00:20:15]CheckFolder done [00:20:15]ProducePacketName [00:20:15]name=ofd_packets/00139530 [00:20:15]NVStorageSaveData ofd_packets/00139530 [00:20:15]File name is /storage/ofd_packets/00139530 [00:20:15]Write 438 bytes [00:20:15]NVStorageSaveData done [00:20:15]OFDSenderStorePacket done [00:20:15]KKMCreateOFDPacket done [00:20:15]NVStorageSaveData kkm_last_timestamp [00:20:15]File name is /storage/kkm_last_timestamp [00:20:15]Write 4 bytes [00:20:15]NVStorageSaveData done [00:20:15]ExternCall_PrintAddStr [00:20:15]wPrintStart [00:20:15]Write to MH i2c: 01 00 00 35 66 9B [00:20:15]Write i2c OK [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 [00:20:15]MH_I2C_Read... [00:20:15]Read from MH i2c: 01 07 00 35 66 00 00 00 00 00 FF 0F B0 [00:20:15]RasterBufferAndPrint [00:20:15]line Счет N : (3)335407 [00:20:15]line ИНН: 02508201610067 [00:20:15]line Контрольно-Кассовый Чек [00:20:15]line ПРОДАЖА [00:20:15]line Товар: 4607084351378 [00:20:15]line Бисквит Чоко пай 6шт [00:20:15]line 1.000 * 175.00 [00:20:15]line = 175.00 [00:20:15]line НДС 12% НСП 1% [00:20:15]line > о реализуемом товаре [00:20:15]line Товар: 4602441000609 [00:20:15]line Напит Дюшес 1л стекло [00:20:15]line 1.000 * 205.00 [00:20:15]line = 205.00 [00:20:15]line НДС 12% НСП 1% [00:20:15]line > о реализуемом товаре [00:20:15]line ИТОГО: 380.00 [00:20:15]line НСП 1% : 3.36 [00:20:15]line НДС 12% : 40.35 [00:20:15]line Наличными: 380.00 [00:20:15]line Безнал.: 0.00 [00:20:15]line Место: АЗС № 101 "Партнер Нефть" [00:20:15]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:20:15]line СНО: Общий режим [00:20:15]line Чек 7 31.10.2024 00:20 [00:20:15]line Смена: 557 ФФД: 1.0 [00:20:15]line ЗНМ: 0300000081 [00:20:15]line РНМ: 0000000000091631 [00:20:15]line Версия ККМ: 001 [00:20:15]line ФМ: 0000000000874669 [00:20:15]line ФД: 139530 [00:20:15]line ФПД: 97470634324536 [00:20:15]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T002021&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139530&fm=97470634324536&tin=02508201610067®Number=0000000000091631&sum=38000 [00:20:15]line 0 [00:20:15]OFD Sender: Processing packet 139530 [packets to send 34, broken 33] [00:20:15]ProducePacketName [00:20:15]name=ofd_packets/00139530 [00:20:15]OFD Sender: To server: pG, [00:20:15]CommunicateWithHost lk.salyk.kg:30040 [00:20:15]ConnectInit lk.salyk.kg [00:20:15]written 0, free lines is 4095 [00:20:15]Connected sock=10 [00:20:15]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 98 01 00 00 7D B4 90 01 D2 90 5A 03 01 00 03 00 84 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 34 36 30 37 30 38 34 33 35 31 33 37 38 06 04 24 00 D0 91 D0 B8 D1 81 D0 BA D0 B2 D0 B8 D1 82 20 D0 A7 D0 BE D0 BA D0 BE 20 D0 BF D0 B0 D0 B9 20 36 D1 88 D1 82 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 5C 44 00 00 00 00 13 04 06 00 5C 44 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 34 36 30 32 34 34 31 30 30 30 36 30 39 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 20 D0 94 D1 8E D1 88 D0 B5 D1 81 20 31 D0 BB 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 14 50 00 00 00 00 13 04 06 00 14 50 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 70 94 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 50 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 C3 0F 00 00 00 00 07 04 06 00 70 94 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 45 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0A 21 02 00 35 04 06 00 58 A6 26 88 F2 38 45 8C BC 12 A7 C1 F6 59 [00:20:16]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 69 E5 47 00 A0 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 38 37 34 36 36 39 10 04 04 00 0A 21 02 00 F4 03 04 00 F4 78 22 67 B6 04 01 00 00 EA 1D 21 25 AA E2 F1 89 [00:20:16]CommunicateWithHost err = 0 [00:20:16]CheckOFDResponse [00:20:16]1017 (14) - 77093643461234 [00:20:16]1041 (16) - 0000000000874669 [00:20:16]1040 (4) - 139530 [00:20:16]1012 (4) - 30.10.2024 18:20 [00:20:16]1206 (1) - 0 [00:20:16]OFD Sender: Remove packet 139530 [00:20:16]ProducePacketName [00:20:16]name=ofd_packets/00139530 [00:20:16]NVStorageDeleteData [00:20:16]Write to MH i2c: 01 00 00 63 66 C9 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: 01 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: 01 07 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: 01 07 00 63 66 00 00 00 00 00 D3 0C AF [00:20:16]RasterBufferAndPrint [00:20:16]line [00:20:16]line [00:20:16]line [00:20:16]line [00:20:16]line [00:20:16]written 0, free lines is 3289 [00:20:16]MH_Cut [00:20:16]Write to MH i2c: D1 01 00 6A 66 01 A2 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: D1 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: D1 01 00 [00:20:16]MH_I2C_Read... [00:20:16]Read from MH i2c: D1 01 00 6A 66 00 A1 [00:20:16]Write to MH i2c: 01 00 00 6B 66 D1 [00:20:16]Write i2c OK [00:20:16]MH_I2C_Read... [00:20:16]OFD Sender: No OFD packet to send [00:20:17]*** Cut start [00:20:17]*** Partial cut [00:20:17]*** CUTSNS_PIN = 1 [00:20:17]*** CUTSNS_PIN = 0 [00:20:17]*** Brake cut motor [00:20:17]Read from MH i2c: 01 [00:20:17]MH_I2C_Read... [00:20:17]*** Stop cut motor [00:20:17]*** Cut end [00:20:17]Read from MH i2c: 01 07 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: 01 07 00 6B 66 00 00 00 00 00 FF 0F E6 [00:20:17]process_action close_receipt done [00:20:17]requested_data is exist [00:20:17]produce_requested_data [00:20:17]requested_item fm.sn is exist - process it [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 11 00 00 [00:20:17]Write to MH i2c: E2 08 00 6C 66 80 11 00 00 00 00 00 00 4C [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 17 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 17 00 6C 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A7 [00:20:17]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:20:17]wFMCommunicate OK [00:20:17]requested_item fd.num is exist - process it [00:20:17]SAM_PROTO_GetFieldsCounters [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 13 00 00 [00:20:17]Write to MH i2c: E2 08 00 6D 66 80 13 00 00 00 00 00 00 4F [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 62 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 62 00 6D 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0A 21 02 00 0E 04 04 00 2D 02 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 E4 [00:20:17]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0A 21 02 00 0E 04 04 00 2D 02 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:20:17]wFMCommunicate OK [00:20:17]SAM_PROTO_GetFieldsCounters done [00:20:17]requested_item shift.num is exist - process it [00:20:17]requested_item shift.opened is exist - process it [00:20:17]req_shift_opened [00:20:17]FM_GetShiftState [00:20:17]SAM_PROTO_GetShiftState [00:20:17]wFMCommunicate request_size=4 [00:20:17]MH_SAM_APDU [00:20:17]CAPDU: 80 13 01 00 [00:20:17]Write to MH i2c: E2 08 00 6E 66 80 13 01 00 00 00 00 00 51 [00:20:17]Write i2c OK [00:20:17]MH_I2C_Read... [00:20:17]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:20:17]Read from MH i2c: E2 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 0E 00 [00:20:17]MH_I2C_Read... [00:20:17]Read from MH i2c: E2 0E 00 6E 66 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7A [00:20:17]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:20:17]wFMCommunicate OK [00:20:17]SAM_PROTO_GetShiftState done [00:20:17]FM_GetShiftState done [00:20:17]req_shift_opened done [00:20:17]requested_item shift.open_date is exist - process it [00:20:17]req_shift_open_date [00:20:17]req_shift_open_date done [00:20:17]produce_requested_data done [00:20:17]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139530,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:20:17]process_action_free close_receipt [00:20:17]json_value_free [00:20:17]json_value_free done [00:20:17]process_json_proto returns [00:20:17]Send response to host [00:20:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139530,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:20:17]free response buf [00:20:17]execute_script done [00:20:17]execute_script returns [00:20:17]free content buf [00:20:17]Sock 9.Close socket [00:20:17]Sock 9.Thread stoped [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:05]accept exits with 8 [00:21:05]New connection [00:21:05]New thread 3067284836 created [00:21:05]Thread 3067141476 joined [00:21:05]Waiting for new connection... [00:21:05] Sock 8.Parse request [00:21:05]Sock 8.Check first char [00:21:05]Sock 8.First char is OK [00:21:05]request: POST /json_proto HTTP/1.0 [00:21:05]Method: POST [00:21:05]URL: /json_proto [00:21:05]Method is POST - this is cgi request [00:21:05]url: /json_proto [00:21:05]query_string will be loaded in cgi processing [00:21:05]execute_cgi json_proto POST (null) [00:21:05]execute_cgi path=json_proto method=POST [00:21:05]POST find Content-Length [00:21:05]Host: 172.17.50.196:8080 [00:21:05]Content-Length: 624 [00:21:05]Content-Type: application/json [00:21:05] [00:21:05]POST finish read [00:21:05]Found Content-Length = 624 [00:21:05]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335408", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:05]execute_script... [00: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 : (3)335408", "tax_sys" : 0, "items" : [ { "code": "48742245", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Silver Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:21:05]POST & json_proto [00:21:05]process_json_proto [00:21:05]json parsed OK: [00:21:05]protocol is kg_v1.0 [00:21:05]action value=close_receipt [00:21:05]process_action close_receipt [00:21:05]cmd_close_receipt [00:21:05]MH_GetDate [00:21:05]Write to MH i2c: F0 00 00 6F 66 C4 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: F0 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: F0 09 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: F0 09 00 6F 66 00 79 CD 22 67 72 0D 1C 67 9E [00:21:05]GetLastDocTimeStamp 1730334021 [00:21:05]current date 1730334073 [00:21:05]FM_GetShiftState [00:21:05]SAM_PROTO_GetShiftState [00:21:05]wFMCommunicate request_size=4 [00:21:05]MH_SAM_APDU [00:21:05]CAPDU: 80 13 01 00 [00:21:05]Write to MH i2c: E2 08 00 70 66 80 13 01 00 00 00 00 00 53 [00:21:05]Write i2c OK [00:21:05]MH_I2C_Read... [00:21:05]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:05]Read from MH i2c: E2 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 0E 00 [00:21:05]MH_I2C_Read... [00:21:05]Read from MH i2c: E2 0E 00 70 66 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 7C [00:21:05]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:21:05]wFMCommunicate OK [00:21:05]SAM_PROTO_GetShiftState done [00:21:05]FM_GetShiftState done [00:21:05]opened in 1730332621 [00:21:05]opened+sec_in_day 1730419021 [00:21:05]quantity*price = 16000 [00:21:05]sum+1 = 16001 [00:21:05]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 8 31.10.2024 00:21 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139531 ФПД: 237614712592397 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T002113&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139531&fm=237614712592397&tin=02508201610067®Number=0000000000091631&sum=16000 0 [00:21:06]StoreToDocumentArchive [00:21:06]shift 557 fd 139531 [00:21:06]save to /storage/0557/doc_00139531 [00:21:06]save last doc name /storage/0557/doc_00139531 to /storage/kkm_last_doc_name [00:21:06]save OK [00:21:06]Clear old archive folders... [00:21:06]ProcessDocumentItem done err = 0, tmpTLVsize=276 [00:21:06]tlvbuf is 0111A750 [00:21:06]SAM_PROTO_ClearQueue [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 09 00 00 [00:21:06]Write to MH i2c: E2 08 00 7D 66 80 09 00 00 00 00 00 00 55 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 7D 66 00 90 00 57 [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]SAM_PROTO_ClearQueue done [00:21:06]KKMCreateOFDPacket [00:21:06]OFDProtocolAddRootSTLVToBuf [00:21:06]FM_MakeSignedData [00:21:06]FM_MakeSignedData [00:21:06]SAM_PROTO_SignData [00:21:06]wFMCommunicate request_size=4 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 0D 01 02 [00:21:06]Write to MH i2c: E2 08 00 7E 66 80 0D 01 02 00 00 00 00 5D [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:06]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:21:06]Read from MH i2c: E2 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 [00:21:06]MH_I2C_Read... [00:21:06]Read from MH i2c: E2 03 00 7E 66 00 90 00 58 [00:21:06]RAPDU: 90 00 [00:21:06]wFMCommunicate OK [00:21:06]wFMCommunicate request_size=255 [00:21:06]MH_SAM_APDU [00:21:06]CAPDU: 80 0D 02 02 FA 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 79 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 [00:21:06]Write to MH i2c: E2 02 01 7F 66 80 0D 02 02 FA 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 79 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 00 00 38 [00:21:06]Write i2c OK [00:21:06]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 7F 66 00 90 00 59 [00:21:07]RAPDU: 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=35 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 0D 02 02 1E 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 21 02 00 35 04 06 00 D8 1B FC 89 98 0D [00:21:07]Write to MH i2c: E2 26 00 80 66 80 0D 02 02 1E 00 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 21 02 00 35 04 06 00 D8 1B FC 89 98 0D 00 00 A6 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 03 00 80 66 00 90 00 5A [00:21:07]RAPDU: 90 00 [00:21:07]wFMCommunicate OK [00:21:07]wFMCommunicate request_size=4 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 0D 03 02 [00:21:07]Write to MH i2c: E2 08 00 81 66 80 0D 03 02 00 00 00 00 62 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 0B 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 0B 00 81 66 00 0F 75 96 AF AB FE 0A 5A 90 00 39 [00:21:07]RAPDU: 0F 75 96 AF AB FE 0A 5A 90 00 [00:21:07]wFMCommunicate OK [00:21:07]SAM_PROTO_SignData done [00:21:07]FM_MakeSignedData done [00:21:07]CreateOFDProtocolMessage [00:21:07]wFMCommunicate request_size=4 [00:21:07]MH_SAM_APDU [00:21:07]CAPDU: 80 11 00 00 [00:21:07]Write to MH i2c: E2 08 00 82 66 80 11 00 00 00 00 00 00 62 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:07]Read from MH i2c: E2 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 17 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: E2 17 00 82 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BD [00:21:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:21:07]wFMCommunicate OK [00:21:07]CreateOFDProtocolMessage done [00:21:07]OFDSenderStorePacket 139531 [00:21:07]StoreOFDPacket docnum=139531 [00:21:07]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 DA 21 20 01 B9 0E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 79 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 21 02 00 35 04 06 00 D8 1B FC 89 98 0D 0F 75 96 AF AB FE 0A 5A [00:21:07]CheckFolder [00:21:07]dirname=/storage/ofd_packets [00:21:07]CheckFolder done [00:21:07]ProducePacketName [00:21:07]name=ofd_packets/00139531 [00:21:07]NVStorageSaveData ofd_packets/00139531 [00:21:07]File name is /storage/ofd_packets/00139531 [00:21:07]Write 326 bytes [00:21:07]NVStorageSaveData done [00:21:07]OFDSenderStorePacket done [00:21:07]KKMCreateOFDPacket done [00:21:07]NVStorageSaveData kkm_last_timestamp [00:21:07]File name is /storage/kkm_last_timestamp [00:21:07]Write 4 bytes [00:21:07]NVStorageSaveData done [00:21:07]ExternCall_PrintAddStr [00:21:07]wPrintStart [00:21:07]Write to MH i2c: 01 00 00 83 66 E9 [00:21:07]Write i2c OK [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: 01 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: 01 07 00 [00:21:07]MH_I2C_Read... [00:21:07]Read from MH i2c: 01 07 00 83 66 00 00 00 00 00 FF 0F FE [00:21:07]RasterBufferAndPrint [00:21:07]line Счет N : (3)335408 [00:21:07]line ИНН: 02508201610067 [00:21:07]line Контрольно-Кассовый Чек [00:21:07]line ПРОДАЖА [00:21:07]line Товар: 48742245 [00:21:07]line Сигареты Parliament Silver Blue [00:21:07]line 1.000 * 160.00 [00:21:07]line = 160.00 [00:21:07]line НДС 12% НСП 1% [00:21:07]line > о реализуемом товаре [00:21:07]line ИТОГО: 160.00 [00:21:07]line НСП 1% : 1.42 [00:21:07]line НДС 12% : 16.99 [00:21:07]line Наличными: 160.00 [00:21:07]line Безнал.: 0.00 [00:21:07]line Место: АЗС № 101 "Партнер Нефть" [00:21:07]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:21:07]line СНО: Общий режим [00:21:07]line Чек 8 31.10.2024 00:21 [00:21:07]line Смена: 557 ФФД: 1.0 [00:21:07]line ЗНМ: 0300000081 [00:21:07]line РНМ: 0000000000091631 [00:21:07]line Версия ККМ: 001 [00:21:07]line ФМ: 0000000000874669 [00:21:07]line ФД: 139531 [00:21:07]line ФПД: 237614712592397 [00:21:07]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T002113&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139531&fm=237614712592397&tin=02508201610067®Number=0000000000091631&sum=16000 [00:21:07]line 0 [00:21:07]OFD Sender: Processing packet 139531 [packets to send 34, broken 33] [00:21:07]ProducePacketName [00:21:07]name=ofd_packets/00139531 [00:21:07]OFD Sender: To server: pG, [00:21:07]CommunicateWithHost lk.salyk.kg:30040 [00:21:07]ConnectInit lk.salyk.kg [00:21:07]written 0, free lines is 4095 [00:21:07]Connected sock=10 [00:21:07]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 28 01 00 00 DA 21 20 01 B9 0E 5A 03 01 00 03 00 14 01 1E 04 01 00 01 23 04 66 00 8A 04 08 00 34 38 37 34 32 32 34 35 06 04 27 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 53 69 6C 76 65 72 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 08 00 00 00 F4 03 04 00 79 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 21 02 00 35 04 06 00 D8 1B FC 89 98 0D 0F 75 96 AF AB FE 0A 5A [00:21:07]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 7E 6D 47 00 08 57 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0B 21 02 00 F4 03 04 00 28 79 22 67 B6 04 01 00 00 4D 24 B9 92 E1 AA BB 3B [00:21:07]CommunicateWithHost err = 0 [00:21:07]CheckOFDResponse [00:21:07]1017 (14) - 77093643461234 [00:21:07]1041 (16) - 0000000000874669 [00:21:07]1040 (4) - 139531 [00:21:07]1012 (4) - 30.10.2024 18:21 [00:21:07]1206 (1) - 0 [00:21:07]OFD Sender: Remove packet 139531 [00:21:07]ProducePacketName [00:21:07]name=ofd_packets/00139531 [00:21:07]NVStorageDeleteData [00:21:08]Write to MH i2c: 01 00 00 AC 66 12 [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: 01 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: 01 07 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: 01 07 00 AC 66 00 00 00 00 00 01 0D 27 [00:21:08]RasterBufferAndPrint [00:21:08]line [00:21:08]line [00:21:08]line [00:21:08]line [00:21:08]line [00:21:08]written 0, free lines is 3335 [00:21:08]MH_Cut [00:21:08]Write to MH i2c: D1 01 00 B3 66 01 EB [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: D1 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: D1 01 00 [00:21:08]MH_I2C_Read... [00:21:08]Read from MH i2c: D1 01 00 B3 66 00 EA [00:21:08]Write to MH i2c: 01 00 00 B4 66 1A [00:21:08]Write i2c OK [00:21:08]MH_I2C_Read... [00:21:08]OFD Sender: No OFD packet to send [00:21:08]*** Cut start [00:21:08]*** Partial cut [00:21:08]*** CUTSNS_PIN = 1 [00:21:08]*** CUTSNS_PIN = 0 [00:21:09]*** Brake cut motor [00:21:09]Read from MH i2c: 01 [00:21:09]MH_I2C_Read... [00:21:09]*** Stop cut motor [00:21:09]*** Cut end [00:21:09]Read from MH i2c: 01 07 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: 01 07 00 B4 66 00 00 00 00 00 FF 0F 2F [00:21:09]process_action close_receipt done [00:21:09]requested_data is exist [00:21:09]produce_requested_data [00:21:09]requested_item fm.sn is exist - process it [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 11 00 00 [00:21:09]Write to MH i2c: E2 08 00 B5 66 80 11 00 00 00 00 00 00 95 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:21:09]Read from MH i2c: E2 17 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 17 00 B5 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F0 [00:21:09]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:21:09]wFMCommunicate OK [00:21:09]requested_item fd.num is exist - process it [00:21:09]SAM_PROTO_GetFieldsCounters [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 13 00 00 [00:21:09]Write to MH i2c: E2 08 00 B6 66 80 13 00 00 00 00 00 00 98 [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 62 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 62 00 B6 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0B 21 02 00 0E 04 04 00 2D 02 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 31 [00:21:09]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0B 21 02 00 0E 04 04 00 2D 02 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:21:09]wFMCommunicate OK [00:21:09]SAM_PROTO_GetFieldsCounters done [00:21:09]requested_item shift.num is exist - process it [00:21:09]requested_item shift.opened is exist - process it [00:21:09]req_shift_opened [00:21:09]FM_GetShiftState [00:21:09]SAM_PROTO_GetShiftState [00:21:09]wFMCommunicate request_size=4 [00:21:09]MH_SAM_APDU [00:21:09]CAPDU: 80 13 01 00 [00:21:09]Write to MH i2c: E2 08 00 B7 66 80 13 01 00 00 00 00 00 9A [00:21:09]Write i2c OK [00:21:09]MH_I2C_Read... [00:21:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:21:09]Read from MH i2c: E2 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 0E 00 [00:21:09]MH_I2C_Read... [00:21:09]Read from MH i2c: E2 0E 00 B7 66 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C3 [00:21:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:21:09]wFMCommunicate OK [00:21:09]SAM_PROTO_GetShiftState done [00:21:09]FM_GetShiftState done [00:21:09]req_shift_opened done [00:21:09]requested_item shift.open_date is exist - process it [00:21:09]req_shift_open_date [00:21:09]req_shift_open_date done [00:21:09]produce_requested_data done [00:21:09]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139531,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:21:09]process_action_free close_receipt [00:21:09]json_value_free [00:21:09]json_value_free done [00:21:09]process_json_proto returns [00:21:09]Send response to host [00:21:09]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139531,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:21:09]free response buf [00:21:09]execute_script done [00:21:09]execute_script returns [00:21:09]free content buf [00:21:09]Sock 8.Close socket [00:21:09]Sock 8.Thread stoped [00:21:13]OFD Sender: No OFD packet to send [00:21:18]OFD Sender: No OFD packet to send [00:21:23]OFD Sender: No OFD packet to send [00:21:28]OFD Sender: No OFD packet to send [00:21:33]OFD Sender: No OFD packet to send [00:21:38]OFD Sender: No OFD packet to send [00:21:43]OFD Sender: No OFD packet to send [00:21:48]OFD Sender: No OFD packet to send [00:21:53]OFD Sender: No OFD packet to send [00:21:58]OFD Sender: No OFD packet to send [00:22:03]OFD Sender: No OFD packet to send [00:22:08]OFD Sender: No OFD packet to send [00:22:13]OFD Sender: No OFD packet to send [00:22:18]OFD Sender: No OFD packet to send [00:22:20]accept exits with 9 [00:22:20]New connection [00:22:20]New thread 3067141476 created [00:22:20]Thread 3067284836 joined [00:22:20]Waiting for new connection... [00:22:20] Sock 9.Parse request [00:22:20]Sock 9.Check first char [00:22:20]Sock 9.First char is OK [00:22:20]request: POST /json_proto HTTP/1.0 [00:22:20]Method: POST [00:22:20]URL: /json_proto [00:22:20]Method is POST - this is cgi request [00:22:20]url: /json_proto [00:22:20]query_string will be loaded in cgi processing [00:22:20]execute_cgi json_proto POST (null) [00:22:20]execute_cgi path=json_proto method=POST [00:22:20]POST find Content-Length [00:22:20]Host: 172.17.50.196:8080 [00:22:20]Content-Length: 666 [00:22:20]Content-Type: application/json [00:22:20] [00:22:20]POST finish read [00:22:20]Found Content-Length = 666 [00:22:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335409", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:20]execute_script... [00:22:20]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335409", "tax_sys" : 0, "items" : [ { "code": "4870022003305", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Gorilla \u044D\u043D \u043D\u0430\u0442 \u0436/\u0431 0,5/0,45\u043B", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:22:20]POST & json_proto [00:22:20]process_json_proto [00:22:20]json parsed OK: [00:22:20]protocol is kg_v1.0 [00:22:20]action value=close_receipt [00:22:20]process_action close_receipt [00:22:20]cmd_close_receipt [00:22:20]MH_GetDate [00:22:20]Write to MH i2c: F0 00 00 B8 66 0D [00:22:20]Write i2c OK [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: F0 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: F0 09 00 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: F0 09 00 B8 66 00 C4 CD 22 67 72 0D 1C 67 32 [00:22:20]GetLastDocTimeStamp 1730334073 [00:22:20]current date 1730334148 [00:22:20]FM_GetShiftState [00:22:20]SAM_PROTO_GetShiftState [00:22:20]wFMCommunicate request_size=4 [00:22:20]MH_SAM_APDU [00:22:20]CAPDU: 80 13 01 00 [00:22:20]Write to MH i2c: E2 08 00 B9 66 80 13 01 00 00 00 00 00 9C [00:22:20]Write i2c OK [00:22:20]MH_I2C_Read... [00:22:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:20]Read from MH i2c: E2 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: E2 0E 00 [00:22:20]MH_I2C_Read... [00:22:20]Read from MH i2c: E2 0E 00 B9 66 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C5 [00:22:20]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:22:20]wFMCommunicate OK [00:22:20]SAM_PROTO_GetShiftState done [00:22:20]FM_GetShiftState done [00:22:20]opened in 1730332621 [00:22:20]opened+sec_in_day 1730419021 [00:22:20]quantity*price = 9900 [00:22:20]sum+1 = 9901 [00:22:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 9 31.10.2024 00:22 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139532 ФПД: 276013148939587 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T002228&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139532&fm=276013148939587&tin=02508201610067®Number=0000000000091631&sum=9900 0 [00:22:21]StoreToDocumentArchive [00:22:21]shift 557 fd 139532 [00:22:21]save to /storage/0557/doc_00139532 [00:22:21]save last doc name /storage/0557/doc_00139532 to /storage/kkm_last_doc_name [00:22:21]save OK [00:22:21]Clear old archive folders... [00:22:21]ProcessDocumentItem done err = 0, tmpTLVsize=293 [00:22:21]tlvbuf is 011E54F0 [00:22:21]SAM_PROTO_ClearQueue [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 09 00 00 [00:22:21]Write to MH i2c: E2 08 00 C6 66 80 09 00 00 00 00 00 00 9E [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 C6 66 00 90 00 A0 [00:22:21]RAPDU: 90 00 [00:22:21]wFMCommunicate OK [00:22:21]SAM_PROTO_ClearQueue done [00:22:21]KKMCreateOFDPacket [00:22:21]OFDProtocolAddRootSTLVToBuf [00:22:21]FM_MakeSignedData [00:22:21]FM_MakeSignedData [00:22:21]SAM_PROTO_SignData [00:22:21]wFMCommunicate request_size=4 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 0D 01 02 [00:22:21]Write to MH i2c: E2 08 00 C7 66 80 0D 01 02 00 00 00 00 A6 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:22:21]Read from MH i2c: E2 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 [00:22:21]MH_I2C_Read... [00:22:21]Read from MH i2c: E2 03 00 C7 66 00 90 00 A1 [00:22:21]RAPDU: 90 00 [00:22:21]wFMCommunicate OK [00:22:21]wFMCommunicate request_size=255 [00:22:21]MH_SAM_APDU [00:22:21]CAPDU: 80 0D 02 02 FA 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 C4 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 [00:22:21]Write to MH i2c: E2 02 01 C8 66 80 0D 02 02 FA 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 C4 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 00 00 54 [00:22:21]Write i2c OK [00:22:21]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 03 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 03 00 C8 66 00 90 00 A2 [00:22:22]RAPDU: 90 00 [00:22:22]wFMCommunicate OK [00:22:22]wFMCommunicate request_size=52 [00:22:22]MH_SAM_APDU [00:22:22]CAPDU: 80 0D 02 02 2F 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 21 02 00 35 04 06 00 FB 08 51 B2 25 43 [00:22:22]Write to MH i2c: E2 37 00 C9 66 80 0D 02 02 2F 00 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 21 02 00 35 04 06 00 FB 08 51 B2 25 43 00 00 0C [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 03 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 03 00 C9 66 00 90 00 A3 [00:22:22]RAPDU: 90 00 [00:22:22]wFMCommunicate OK [00:22:22]wFMCommunicate request_size=4 [00:22:22]MH_SAM_APDU [00:22:22]CAPDU: 80 0D 03 02 [00:22:22]Write to MH i2c: E2 08 00 CA 66 80 0D 03 02 00 00 00 00 AB [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 0B 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 0B 00 CA 66 00 BB A5 E8 DF 65 79 62 A0 90 00 B3 [00:22:22]RAPDU: BB A5 E8 DF 65 79 62 A0 90 00 [00:22:22]wFMCommunicate OK [00:22:22]SAM_PROTO_SignData done [00:22:22]FM_MakeSignedData done [00:22:22]CreateOFDProtocolMessage [00:22:22]wFMCommunicate request_size=4 [00:22:22]MH_SAM_APDU [00:22:22]CAPDU: 80 11 00 00 [00:22:22]Write to MH i2c: E2 08 00 CB 66 80 11 00 00 00 00 00 00 AB [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:22]Read from MH i2c: E2 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 17 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: E2 17 00 CB 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 06 [00:22:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:22:22]wFMCommunicate OK [00:22:22]CreateOFDProtocolMessage done [00:22:22]OFDSenderStorePacket 139532 [00:22:22]StoreOFDPacket docnum=139532 [00:22:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 BA B7 31 01 6C AD 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 C4 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 21 02 00 35 04 06 00 FB 08 51 B2 25 43 BB A5 E8 DF 65 79 62 A0 [00:22:22]CheckFolder [00:22:22]dirname=/storage/ofd_packets [00:22:22]CheckFolder done [00:22:22]ProducePacketName [00:22:22]name=ofd_packets/00139532 [00:22:22]NVStorageSaveData ofd_packets/00139532 [00:22:22]File name is /storage/ofd_packets/00139532 [00:22:22]Write 343 bytes [00:22:22]NVStorageSaveData done [00:22:22]OFDSenderStorePacket done [00:22:22]KKMCreateOFDPacket done [00:22:22]NVStorageSaveData kkm_last_timestamp [00:22:22]File name is /storage/kkm_last_timestamp [00:22:22]Write 4 bytes [00:22:22]NVStorageSaveData done [00:22:22]ExternCall_PrintAddStr [00:22:22]wPrintStart [00:22:22]Write to MH i2c: 01 00 00 CC 66 32 [00:22:22]Write i2c OK [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 07 00 [00:22:22]MH_I2C_Read... [00:22:22]Read from MH i2c: 01 07 00 CC 66 00 00 00 00 00 FF 0F 47 [00:22:22]RasterBufferAndPrint [00:22:22]line Счет N : (3)335409 [00:22:22]line ИНН: 02508201610067 [00:22:22]line Контрольно-Кассовый Чек [00:22:22]line ПРОДАЖА [00:22:22]line Товар: 4870022003305 [00:22:22]line Напиток Gorilla эн нат ж/б 0,5/0,45л [00:22:22]line 1.000 * 99.00 [00:22:22]line = 99.00 [00:22:22]line НДС 12% НСП 1% [00:22:22]line > о реализуемом товаре [00:22:22]line ИТОГО: 99.00 [00:22:22]line НСП 1% : 0.88 [00:22:22]line НДС 12% : 10.51 [00:22:22]line Наличными: 99.00 [00:22:22]line Безнал.: 0.00 [00:22:22]line Место: АЗС № 101 "Партнер Нефть" [00:22:22]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:22:22]line СНО: Общий режим [00:22:22]line Чек 9 31.10.2024 00:22 [00:22:22]line Смена: 557 ФФД: 1.0 [00:22:22]line ЗНМ: 0300000081 [00:22:22]line РНМ: 0000000000091631 [00:22:22]line Версия ККМ: 001 [00:22:22]line ФМ: 0000000000874669 [00:22:22]line ФД: 139532 [00:22:22]line ФПД: 276013148939587 [00:22:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T002228&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139532&fm=276013148939587&tin=02508201610067®Number=0000000000091631&sum=9900 [00:22:22]line 0 [00:22:22]OFD Sender: Processing packet 139532 [packets to send 34, broken 33] [00:22:22]ProducePacketName [00:22:22]name=ofd_packets/00139532 [00:22:22]OFD Sender: To server: pG, [00:22:22]CommunicateWithHost lk.salyk.kg:30040 [00:22:22]ConnectInit lk.salyk.kg [00:22:22]written 0, free lines is 4095 [00:22:22]Connected sock=10 [00:22:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 39 01 00 00 BA B7 31 01 6C AD 5A 03 01 00 03 00 25 01 1E 04 01 00 01 23 04 77 00 8A 04 0D 00 34 38 37 30 30 32 32 30 30 33 33 30 35 06 04 33 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D1 82 20 D0 B6 2F D0 B1 20 30 2C 35 2F 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 09 00 00 00 F4 03 04 00 C4 CD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 21 02 00 35 04 06 00 FB 08 51 B2 25 43 BB A5 E8 DF 65 79 62 A0 [00:22:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 54 65 47 00 2C 7D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0C 21 02 00 F4 03 04 00 73 79 22 67 B6 04 01 00 00 23 ED D9 30 11 88 5C 21 [00:22:22]CommunicateWithHost err = 0 [00:22:22]CheckOFDResponse [00:22:22]1017 (14) - 77093643461234 [00:22:22]1041 (16) - 0000000000874669 [00:22:22]1040 (4) - 139532 [00:22:22]1012 (4) - 30.10.2024 18:22 [00:22:22]1206 (1) - 0 [00:22:22]OFD Sender: Remove packet 139532 [00:22:22]ProducePacketName [00:22:22]name=ofd_packets/00139532 [00:22:22]NVStorageDeleteData [00:22:23]Write to MH i2c: 01 00 00 F5 66 5B [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: 01 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: 01 07 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: 01 07 00 F5 66 00 00 00 00 00 03 0D 72 [00:22:23]RasterBufferAndPrint [00:22:23]line [00:22:23]line [00:22:23]line [00:22:23]line [00:22:23]line [00:22:23]written 0, free lines is 3337 [00:22:23]MH_Cut [00:22:23]Write to MH i2c: D1 01 00 FC 66 01 34 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: D1 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: D1 01 00 [00:22:23]MH_I2C_Read... [00:22:23]Read from MH i2c: D1 01 00 FC 66 00 33 [00:22:23]Write to MH i2c: 01 00 00 FD 66 63 [00:22:23]Write i2c OK [00:22:23]MH_I2C_Read... [00:22:23]OFD Sender: No OFD packet to send [00:22:23]*** Cut start [00:22:23]*** Partial cut [00:22:23]*** CUTSNS_PIN = 1 [00:22:23]*** CUTSNS_PIN = 0 [00:22:23]*** Brake cut motor [00:22:24]Read from MH i2c: 01 [00:22:24]MH_I2C_Read... [00:22:24]*** Stop cut motor [00:22:24]*** Cut end [00:22:24]Read from MH i2c: 01 07 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: 01 07 00 FD 66 00 00 00 00 00 FF 0F 78 [00:22:24]process_action close_receipt done [00:22:24]requested_data is exist [00:22:24]produce_requested_data [00:22:24]requested_item fm.sn is exist - process it [00:22:24]wFMCommunicate request_size=4 [00:22:24]MH_SAM_APDU [00:22:24]CAPDU: 80 11 00 00 [00:22:24]Write to MH i2c: E2 08 00 FE 66 80 11 00 00 00 00 00 00 DE [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:22:24]Read from MH i2c: E2 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 17 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 17 00 FE 66 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 39 [00:22:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:22:24]wFMCommunicate OK [00:22:24]requested_item fd.num is exist - process it [00:22:24]SAM_PROTO_GetFieldsCounters [00:22:24]wFMCommunicate request_size=4 [00:22:24]MH_SAM_APDU [00:22:24]CAPDU: 80 13 00 00 [00:22:24]Write to MH i2c: E2 08 00 FF 66 80 13 00 00 00 00 00 00 E1 [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:22:24]Read from MH i2c: E2 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 62 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 62 00 FF 66 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0C 21 02 00 0E 04 04 00 2D 02 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 7E [00:22:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0C 21 02 00 0E 04 04 00 2D 02 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:22:24]wFMCommunicate OK [00:22:24]SAM_PROTO_GetFieldsCounters done [00:22:24]requested_item shift.num is exist - process it [00:22:24]requested_item shift.opened is exist - process it [00:22:24]req_shift_opened [00:22:24]FM_GetShiftState [00:22:24]SAM_PROTO_GetShiftState [00:22:24]wFMCommunicate request_size=4 [00:22:24]MH_SAM_APDU [00:22:24]CAPDU: 80 13 01 00 [00:22:24]Write to MH i2c: E2 08 00 00 67 80 13 01 00 00 00 00 00 E4 [00:22:24]Write i2c OK [00:22:24]MH_I2C_Read... [00:22:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:22:24]Read from MH i2c: E2 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 0E 00 [00:22:24]MH_I2C_Read... [00:22:24]Read from MH i2c: E2 0E 00 00 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0D [00:22:24]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:22:24]wFMCommunicate OK [00:22:24]SAM_PROTO_GetShiftState done [00:22:24]FM_GetShiftState done [00:22:24]req_shift_opened done [00:22:24]requested_item shift.open_date is exist - process it [00:22:24]req_shift_open_date [00:22:24]req_shift_open_date done [00:22:24]produce_requested_data done [00:22:24]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139532,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:22:24]process_action_free close_receipt [00:22:24]json_value_free [00:22:24]json_value_free done [00:22:24]process_json_proto returns [00:22:24]Send response to host [00:22:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139532,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:22:24]free response buf [00:22:24]execute_script done [00:22:24]execute_script returns [00:22:24]free content buf [00:22:24]Sock 9.Close socket [00:22:24]Sock 9.Thread stoped [00:22:28]OFD Sender: No OFD packet to send [00:22:33]OFD Sender: No OFD packet to send [00:22:38]OFD Sender: No OFD packet to send [00:22:43]OFD Sender: No OFD packet to send [00:22:48]OFD Sender: No OFD packet to send [00:22:53]OFD Sender: No OFD packet to send [00:22:58]OFD Sender: No OFD packet to send [00:23:03]OFD Sender: No OFD packet to send [00:23:08]OFD Sender: No OFD packet to send [00:23:13]OFD Sender: No OFD packet to send [00:23:18]OFD Sender: No OFD packet to send [00:23:23]OFD Sender: No OFD packet to send [00:23:28]OFD Sender: No OFD packet to send [00:23:33]OFD Sender: No OFD packet to send [00:23:38]OFD Sender: No OFD packet to send [00:23:43]OFD Sender: No OFD packet to send [00:23:48]OFD Sender: No OFD packet to send [00:23:53]OFD Sender: No OFD packet to send [00:23:58]OFD Sender: No OFD packet to send [00:24:03]OFD Sender: No OFD packet to send [00:24:08]OFD Sender: No OFD packet to send [00:24:13]OFD Sender: No OFD packet to send [00:24:18]OFD Sender: No OFD packet to send [00:24:23]OFD Sender: No OFD packet to send [00:24:28]OFD Sender: No OFD packet to send [00:24:33]OFD Sender: No OFD packet to send [00:24:38]OFD Sender: No OFD packet to send [00:24:43]OFD Sender: No OFD packet to send [00:24:48]OFD Sender: No OFD packet to send [00:24:53]OFD Sender: No OFD packet to send [00:24:58]OFD Sender: No OFD packet to send [00:25:03]OFD Sender: No OFD packet to send [00:25:08]OFD Sender: No OFD packet to send [00:25:13]OFD Sender: No OFD packet to send [00:25:18]OFD Sender: No OFD packet to send [00:25:23]OFD Sender: No OFD packet to send [00:25:28]OFD Sender: No OFD packet to send [00:25:33]OFD Sender: No OFD packet to send [00:25:38]OFD Sender: No OFD packet to send [00:25:43]OFD Sender: No OFD packet to send [00:25:48]OFD Sender: No OFD packet to send [00:25:53]OFD Sender: No OFD packet to send [00:25:58]OFD Sender: No OFD packet to send [00:26:03]OFD Sender: No OFD packet to send [00:26:08]OFD Sender: No OFD packet to send [00:26:13]OFD Sender: No OFD packet to send [00:26:18]OFD Sender: No OFD packet to send [00:26:23]OFD Sender: No OFD packet to send [00:26:28]OFD Sender: No OFD packet to send [00:26:33]OFD Sender: No OFD packet to send [00:26:38]OFD Sender: No OFD packet to send [00:26:43]OFD Sender: No OFD packet to send [00:26:48]OFD Sender: No OFD packet to send [00:26:53]OFD Sender: No OFD packet to send [00:26:58]OFD Sender: No OFD packet to send [00:27:03]OFD Sender: No OFD packet to send [00:27:08]OFD Sender: No OFD packet to send [00:27:13]OFD Sender: No OFD packet to send [00:27:18]OFD Sender: No OFD packet to send [00:27:23]OFD Sender: No OFD packet to send [00:27:28]OFD Sender: No OFD packet to send [00:27:33]OFD Sender: No OFD packet to send [00:27:38]OFD Sender: No OFD packet to send [00:27:43]OFD Sender: No OFD packet to send [00:27:48]OFD Sender: No OFD packet to send [00:27:53]OFD Sender: No OFD packet to send [00:27:58]OFD Sender: No OFD packet to send [00:28:03]OFD Sender: No OFD packet to send [00:28:08]OFD Sender: No OFD packet to send [00:28:13]OFD Sender: No OFD packet to send [00:28:18]OFD Sender: No OFD packet to send [00:28:23]OFD Sender: No OFD packet to send [00:28:28]OFD Sender: No OFD packet to send [00:28:33]OFD Sender: No OFD packet to send [00:28:38]OFD Sender: No OFD packet to send [00:28:43]OFD Sender: No OFD packet to send [00:28:48]OFD Sender: No OFD packet to send [00:28:53]OFD Sender: No OFD packet to send [00:28:58]OFD Sender: No OFD packet to send [00:29:03]OFD Sender: No OFD packet to send [00:29:08]OFD Sender: No OFD packet to send [00:29:13]OFD Sender: No OFD packet to send [00:29:18]OFD Sender: No OFD packet to send [00:29:23]OFD Sender: No OFD packet to send [00:29:28]OFD Sender: No OFD packet to send [00:29:33]OFD Sender: No OFD packet to send [00:29:38]OFD Sender: No OFD packet to send [00:29:43]OFD Sender: No OFD packet to send [00:29:48]OFD Sender: No OFD packet to send [00:29:53]OFD Sender: No OFD packet to send [00:29:58]OFD Sender: No OFD packet to send [00:30:03]OFD Sender: No OFD packet to send [00:30:08]OFD Sender: No OFD packet to send [00:30:13]OFD Sender: No OFD packet to send [00:30:18]OFD Sender: No OFD packet to send [00:30:23]OFD Sender: No OFD packet to send [00:30:28]OFD Sender: No OFD packet to send [00:30:33]OFD Sender: No OFD packet to send [00:30:38]OFD Sender: No OFD packet to send [00:30:43]OFD Sender: No OFD packet to send [00:30:48]OFD Sender: No OFD packet to send [00:30:53]OFD Sender: No OFD packet to send [00:30:58]OFD Sender: No OFD packet to send [00:31:03]OFD Sender: No OFD packet to send [00:31:08]OFD Sender: No OFD packet to send [00:31:13]OFD Sender: No OFD packet to send [00:31:18]OFD Sender: No OFD packet to send [00:31:23]OFD Sender: No OFD packet to send [00:31:28]OFD Sender: No OFD packet to send [00:31:33]OFD Sender: No OFD packet to send [00:31:38]OFD Sender: No OFD packet to send [00:31:43]OFD Sender: No OFD packet to send [00:31:48]OFD Sender: No OFD packet to send [00:31:53]OFD Sender: No OFD packet to send [00:31:58]OFD Sender: No OFD packet to send [00:32:03]OFD Sender: No OFD packet to send [00:32:08]OFD Sender: No OFD packet to send [00:32:13]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:04]OFD Sender: No OFD packet to send [00:34:09]OFD Sender: No OFD packet to send [00:34:14]OFD Sender: No OFD packet to send [00:34:19]OFD Sender: No OFD packet to send [00:34:24]OFD Sender: No OFD packet to send [00:34:29]OFD Sender: No OFD packet to send [00:34:34]OFD Sender: No OFD packet to send [00:34:39]OFD Sender: No OFD packet to send [00:34:44]OFD Sender: No OFD packet to send [00:34:49]OFD Sender: No OFD packet to send [00:34:54]OFD Sender: No OFD packet to send [00:34:59]OFD Sender: No OFD packet to send [00:35:04]OFD Sender: No OFD packet to send [00:35:09]OFD Sender: No OFD packet to send [00:35:13]accept exits with 8 [00:35:13]New connection [00:35:13]New thread 3067284836 created [00:35:13]Thread 3067141476 joined [00:35:13]Waiting for new connection... [00:35:13] Sock 8.Parse request [00:35:13]Sock 8.Check first char [00:35:13]Sock 8.First char is OK [00:35:13]request: POST /json_proto HTTP/1.0 [00:35:13]Method: POST [00:35:13]URL: /json_proto [00:35:13]Method is POST - this is cgi request [00:35:13]url: /json_proto [00:35:13]query_string will be loaded in cgi processing [00:35:13]execute_cgi json_proto POST (null) [00:35:13]execute_cgi path=json_proto method=POST [00:35:13]POST find Content-Length [00:35:13]Host: 172.17.50.196:8080 [00:35:13]Content-Length: 215 [00:35:13]Content-Type: application/json [00:35:13] [00:35:13]POST finish read [00:35:13]Found Content-Length = 215 [00:35:13]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:35:13]execute_script... [00:35:13]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:35:13]POST & json_proto [00:35:13]process_json_proto [00:35:13]json parsed OK: [00:35:13]protocol is kg_v1.0 [00:35:13]action value=get_value [00:35:13]process_action get_value [00:35:13]cmd_get_value [00:35:13]process_action get_value done [00:35:13]requested_data is exist [00:35:13]produce_requested_data [00:35:13]requested_item kkm.sn is exist - process it [00:35:13]requested_item kkm.ver is exist - process it [00:35:13]requested_item fm.sn is exist - process it [00:35:13]wFMCommunicate request_size=4 [00:35:13]MH_SAM_APDU [00:35:13]CAPDU: 80 11 00 00 [00:35:13]Write to MH i2c: E2 08 00 01 67 80 11 00 00 00 00 00 00 E2 [00:35:13]Write i2c OK [00:35:13]MH_I2C_Read... [00:35:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:13]Read from MH i2c: E2 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 17 00 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 17 00 01 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3D [00:35:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:35:13]wFMCommunicate OK [00:35:13]requested_item fd.num is exist - process it [00:35:13]SAM_PROTO_GetFieldsCounters [00:35:13]wFMCommunicate request_size=4 [00:35:13]MH_SAM_APDU [00:35:13]CAPDU: 80 13 00 00 [00:35:13]Write to MH i2c: E2 08 00 02 67 80 13 00 00 00 00 00 00 E5 [00:35:13]Write i2c OK [00:35:13]MH_I2C_Read... [00:35:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:13]Read from MH i2c: E2 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 62 00 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 62 00 02 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0C 21 02 00 0E 04 04 00 2D 02 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 82 [00:35:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0C 21 02 00 0E 04 04 00 2D 02 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:35:13]wFMCommunicate OK [00:35:13]SAM_PROTO_GetFieldsCounters done [00:35:13]requested_item shift.num is exist - process it [00:35:13]requested_item shift.opened is exist - process it [00:35:13]req_shift_opened [00:35:13]FM_GetShiftState [00:35:13]SAM_PROTO_GetShiftState [00:35:13]wFMCommunicate request_size=4 [00:35:13]MH_SAM_APDU [00:35:13]CAPDU: 80 13 01 00 [00:35:13]Write to MH i2c: E2 08 00 03 67 80 13 01 00 00 00 00 00 E7 [00:35:13]Write i2c OK [00:35:13]MH_I2C_Read... [00:35:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:13]Read from MH i2c: E2 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 0E 00 [00:35:13]MH_I2C_Read... [00:35:13]Read from MH i2c: E2 0E 00 03 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 10 [00:35:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:35:13]wFMCommunicate OK [00:35:13]SAM_PROTO_GetShiftState done [00:35:13]FM_GetShiftState done [00:35:13]req_shift_opened done [00:35:13]requested_item shift.open_date is exist - process it [00:35:13]req_shift_open_date [00:35:13]req_shift_open_date done [00:35:13]produce_requested_data done [00:35:13]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139532,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:35:13]process_action_free get_value [00:35:13]json_value_free [00:35:13]json_value_free done [00:35:13]process_json_proto returns [00:35:13]Send response to host [00:35:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139532,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:35:13]free response buf [00:35:13]execute_script done [00:35:13]execute_script returns [00:35:13]free content buf [00:35:13]Sock 8.Close socket [00:35:13]Sock 8.Thread stoped [00:35:13]accept exits with 9 [00:35:13]New connection [00:35:13]New thread 3067141476 created [00:35:13]Thread 3067284836 joined [00:35:13]Waiting for new connection... [00:35:13] Sock 9.Parse request [00:35:13]Sock 9.Check first char [00:35:13]Sock 9.First char is OK [00:35:13]request: POST /json_proto HTTP/1.0 [00:35:13]Method: POST [00:35:13]URL: /json_proto [00:35:13]Method is POST - this is cgi request [00:35:13]url: /json_proto [00:35:13]query_string will be loaded in cgi processing [00:35:13]execute_cgi json_proto POST (null) [00:35:13]execute_cgi path=json_proto method=POST [00:35:13]POST find Content-Length [00:35:13]Host: 172.17.50.196:8080 [00:35:13]Content-Length: 331 [00:35:13]Content-Type: application/json [00:35:13] [00:35:13]POST finish read [00:35:13]Found Content-Length = 331 [00:35:13]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:35:13]execute_script... [00:35:14]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:35:14]POST & json_proto [00:35:14]process_json_proto [00:35:14]json parsed OK: [00:35:14]protocol is kg_v1.0 [00:35:14]action value=get_value [00:35:14]process_action get_value [00:35:14]cmd_get_value [00:35:14]process_action get_value done [00:35:14]requested_data is exist [00:35:14]produce_requested_data [00:35:14]requested_item fm.sale.total is exist - process it [00:35:14]SAM_PROTO_GetFMData [00:35:14]wFMCommunicate request_size=4 [00:35:14]MH_SAM_APDU [00:35:14]CAPDU: 80 13 03 00 [00:35:14]Write to MH i2c: E2 08 00 04 67 80 13 03 00 00 00 00 00 EA [00:35:14]OFD Sender: No OFD packet to send [00:35:14]Write i2c OK [00:35:14]MH_I2C_Read... [00:35:14]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:14]Read from MH i2c: E2 [00:35:14]MH_I2C_Read... [00:35:14]Read from MH i2c: E2 FD 00 [00:35:14]MH_I2C_Read... [00:35:14]Read from MH i2c: E2 FD 00 04 67 00 C7 04 85 04 C3 04 6E 04 04 00 B2 1C 02 00 69 04 A3 00 6F 04 04 00 67 1A 02 00 B1 04 05 00 E1 0C 96 52 01 70 04 05 00 BC 53 37 03 01 72 04 04 00 25 B9 5E 4F 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 44 79 F5 23 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 BD DC FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 F2 [00:35:14]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 B2 1C 02 00 69 04 A3 00 6F 04 04 00 67 1A 02 00 B1 04 05 00 E1 0C 96 52 01 70 04 05 00 BC 53 37 03 01 72 04 04 00 25 B9 5E 4F 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 44 79 F5 23 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 BD DC FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [00:35:14]wFMCommunicate OK [00:35:14]wFMCommunicate request_size=4 [00:35:14]MH_SAM_APDU [00:35:14]CAPDU: 80 17 00 00 [00:35:14]Write to MH i2c: E2 08 00 05 67 80 17 00 00 00 00 00 00 EC [00:35:14]Write i2c OK [00:35:14]MH_I2C_Read... [00:35:14]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:14]Read from MH i2c: E2 [00:35:14]MH_I2C_Read... [00:35:14]Read from MH i2c: E2 FD 00 [00:35:14]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 FD 00 05 67 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 03 [00:35:15]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:15]wFMCommunicate OK [00:35:15]wFMCommunicate request_size=4 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 17 00 00 [00:35:15]Write to MH i2c: E2 08 00 06 67 80 17 00 00 00 00 00 00 ED [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 FD 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 FD 00 06 67 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C5 [00:35:15]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:15]wFMCommunicate OK [00:35:15]wFMCommunicate request_size=4 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 17 00 00 [00:35:15]Write to MH i2c: E2 08 00 07 67 80 17 00 00 00 00 00 00 EE [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 FD 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 FD 00 07 67 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 69 [00:35:15]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:15]wFMCommunicate OK [00:35:15]wFMCommunicate request_size=4 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 17 00 00 [00:35:15]Write to MH i2c: E2 08 00 08 67 80 17 00 00 00 00 00 00 EF [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:15]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:35:15]Read from MH i2c: E2 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 E4 00 [00:35:15]MH_I2C_Read... [00:35:15]Read from MH i2c: E2 E4 00 08 67 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 CF [00:35:15]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:15]wFMCommunicate OK [00:35:15]SAM_PROTO_GetFMData done [00:35:15]requested_item fm.sale_refund.total is exist - process it [00:35:15]requested_item fm.buy.total is exist - process it [00:35:15]requested_item shift.sale.total is exist - process it [00:35:15]SAM_PROTO_GetShiftData [00:35:15]wFMCommunicate request_size=4 [00:35:15]MH_SAM_APDU [00:35:15]CAPDU: 80 13 02 00 [00:35:15]Write to MH i2c: E2 08 00 09 67 80 13 02 00 00 00 00 00 EE [00:35:15]Write i2c OK [00:35:15]MH_I2C_Read... [00:35:16]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:16]Read from MH i2c: E2 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 09 67 00 AC 04 AA 04 A8 04 6E 04 04 00 09 00 00 00 69 04 99 00 6F 04 04 00 09 00 00 00 B1 04 03 00 48 AB 07 70 04 03 00 BC 3C 07 72 04 02 00 8C 6E 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 81 D0 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 60 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 6F [00:35:16]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 09 00 00 00 69 04 99 00 6F 04 04 00 09 00 00 00 B1 04 03 00 48 AB 07 70 04 03 00 BC 3C 07 72 04 02 00 8C 6E 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 81 D0 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 60 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:16]wFMCommunicate OK [00:35:16]wFMCommunicate request_size=4 [00:35:16]MH_SAM_APDU [00:35:16]CAPDU: 80 17 00 00 [00:35:16]Write to MH i2c: E2 08 00 0A 67 80 17 00 00 00 00 00 00 F1 [00:35:16]Write i2c OK [00:35:16]MH_I2C_Read... [00:35:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:16]Read from MH i2c: E2 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 0A 67 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 06 [00:35:16]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:35:16]wFMCommunicate OK [00:35:16]wFMCommunicate request_size=4 [00:35:16]MH_SAM_APDU [00:35:16]CAPDU: 80 17 00 00 [00:35:16]Write to MH i2c: E2 08 00 0B 67 80 17 00 00 00 00 00 00 F2 [00:35:16]Write i2c OK [00:35:16]MH_I2C_Read... [00:35:16]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:16]Read from MH i2c: E2 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 [00:35:16]MH_I2C_Read... [00:35:16]Read from MH i2c: E2 FD 00 0B 67 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 B3 [00:35:16]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:16]wFMCommunicate OK [00:35:16]wFMCommunicate request_size=4 [00:35:16]MH_SAM_APDU [00:35:16]CAPDU: 80 17 00 00 [00:35:16]Write to MH i2c: E2 08 00 0C 67 80 17 00 00 00 00 00 00 F3 [00:35:16]Write i2c OK [00:35:16]MH_I2C_Read... [00:35:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:17]Read from MH i2c: E2 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 FD 00 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 FD 00 0C 67 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 90 00 68 [00:35:17]RAPDU: 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 90 00 [00:35:17]wFMCommunicate OK [00:35:17]wFMCommunicate request_size=4 [00:35:17]MH_SAM_APDU [00:35:17]CAPDU: 80 17 00 00 [00:35:17]Write to MH i2c: E2 08 00 0D 67 80 17 00 00 00 00 00 00 F4 [00:35:17]Write i2c OK [00:35:17]MH_I2C_Read... [00:35:17]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [00:35:17]Read from MH i2c: E2 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 C9 00 [00:35:17]MH_I2C_Read... [00:35:17]Read from MH i2c: E2 C9 00 0D 67 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 D1 04 8D 00 6F 04 04 00 00 00 00 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 90 00 D8 [00:35:17]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:17]wFMCommunicate OK [00:35:17]SAM_PROTO_GetShiftData done [00:35:17]requested_item shift.sale.total_cash is exist - process it [00:35:17]requested_item shift.sale_refund.total is exist - process it [00:35:17]requested_item shift.sale_refund.total_cash is exist - process it [00:35:17]requested_item shift.buy.total is exist - process it [00:35:17]requested_item shift.buy.total_cash is exist - process it [00:35:17]produce_requested_data done [00:35:17]produce_requested_data return {"fm.sale.total":56805327.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":5026.00,"shift.sale.total_cash":4743.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:35:17]process_action_free get_value [00:35:17]json_value_free [00:35:17]json_value_free done [00:35:17]process_json_proto returns [00:35:17]Send response to host [00:35:17]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56805327.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":5026.00,"shift.sale.total_cash":4743.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:35:17]free response buf [00:35:17]execute_script done [00:35:17]execute_script returns [00:35:17]free content buf [00:35:17]Sock 9.Close socket [00:35:17]Sock 9.Thread stoped [00:35:19]OFD Sender: No OFD packet to send [00:35:23]accept exits with 8 [00:35:23]New connection [00:35:23]New thread 3067284836 created [00:35:23] Sock 8.Parse request [00:35:23]Thread 3067141476 joined [00:35:23]Sock 8.Check first char [00:35:23]Waiting for new connection... [00:35:23]Sock 8.First char is OK [00:35:23]request: POST /json_proto HTTP/1.0 [00:35:23]Method: POST [00:35:23]URL: /json_proto [00:35:23]Method is POST - this is cgi request [00:35:23]url: /json_proto [00:35:23]query_string will be loaded in cgi processing [00:35:23]execute_cgi json_proto POST (null) [00:35:23]execute_cgi path=json_proto method=POST [00:35:23]POST find Content-Length [00:35:23]Host: 172.17.50.196:8080 [00:35:23]Content-Length: 215 [00:35:23]Content-Type: application/json [00:35:23] [00:35:23]POST finish read [00:35:23]Found Content-Length = 215 [00:35:23]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:35:23]execute_script... [00:35:23]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:35:23]POST & json_proto [00:35:23]process_json_proto [00:35:23]json parsed OK: [00:35:23]protocol is kg_v1.0 [00:35:23]action value=get_value [00:35:23]process_action get_value [00:35:23]cmd_get_value [00:35:23]process_action get_value done [00:35:23]requested_data is exist [00:35:23]produce_requested_data [00:35:23]requested_item kkm.sn is exist - process it [00:35:23]requested_item kkm.ver is exist - process it [00:35:23]requested_item fm.sn is exist - process it [00:35:23]wFMCommunicate request_size=4 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 11 00 00 [00:35:23]Write to MH i2c: E2 08 00 0E 67 80 11 00 00 00 00 00 00 EF [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 17 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 17 00 0E 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4A [00:35:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:35:23]wFMCommunicate OK [00:35:23]requested_item fd.num is exist - process it [00:35:23]SAM_PROTO_GetFieldsCounters [00:35:23]wFMCommunicate request_size=4 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 13 00 00 [00:35:23]Write to MH i2c: E2 08 00 0F 67 80 13 00 00 00 00 00 00 F2 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 62 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 62 00 0F 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0C 21 02 00 0E 04 04 00 2D 02 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 8F [00:35:23]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0C 21 02 00 0E 04 04 00 2D 02 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:35:23]wFMCommunicate OK [00:35:23]SAM_PROTO_GetFieldsCounters done [00:35:23]requested_item shift.num is exist - process it [00:35:23]requested_item shift.opened is exist - process it [00:35:23]req_shift_opened [00:35:23]FM_GetShiftState [00:35:23]SAM_PROTO_GetShiftState [00:35:23]wFMCommunicate request_size=4 [00:35:23]MH_SAM_APDU [00:35:23]CAPDU: 80 13 01 00 [00:35:23]Write to MH i2c: E2 08 00 10 67 80 13 01 00 00 00 00 00 F4 [00:35:23]Write i2c OK [00:35:23]MH_I2C_Read... [00:35:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:23]Read from MH i2c: E2 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 0E 00 [00:35:23]MH_I2C_Read... [00:35:23]Read from MH i2c: E2 0E 00 10 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1D [00:35:23]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:35:23]wFMCommunicate OK [00:35:23]SAM_PROTO_GetShiftState done [00:35:23]FM_GetShiftState done [00:35:23]req_shift_opened done [00:35:23]requested_item shift.open_date is exist - process it [00:35:23]req_shift_open_date [00:35:23]req_shift_open_date done [00:35:23]produce_requested_data done [00:35:23]produce_requested_data return {"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139532,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:35:23]process_action_free get_value [00:35:23]json_value_free [00:35:23]json_value_free done [00:35:23]process_json_proto returns [00:35:23]Send response to host [00:35:23]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"kkm.sn":"0300000081","kkm.ver":"001","fm.sn":"0000000000874669","fd.num":139532,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:35:23]free response buf [00:35:23]execute_script done [00:35:23]execute_script returns [00:35:23]free content buf [00:35:23]Sock 8.Close socket [00:35:23]Sock 8.Thread stoped [00:35:23]accept exits with 9 [00:35:23]New connection [00:35:23]New thread 3067141476 created [00:35:23]Thread 3067284836 joined [00:35:23]Waiting for new connection... [00:35:23] Sock 9.Parse request [00:35:23]Sock 9.Check first char [00:35:23]Sock 9.First char is OK [00:35:23]request: POST /json_proto HTTP/1.0 [00:35:23]Method: POST [00:35:23]URL: /json_proto [00:35:23]Method is POST - this is cgi request [00:35:23]url: /json_proto [00:35:23]query_string will be loaded in cgi processing [00:35:23]execute_cgi json_proto POST (null) [00:35:23]execute_cgi path=json_proto method=POST [00:35:23]POST find Content-Length [00:35:23]Host: 172.17.50.196:8080 [00:35:23]Content-Length: 331 [00:35:23]Content-Type: application/json [00:35:23] [00:35:23]POST finish read [00:35:23]Found Content-Length = 331 [00:35:23]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:35:23]execute_script... [00:35:23]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:35:23]POST & json_proto [00:35:23]process_json_proto [00:35:23]json parsed OK: [00:35:23]protocol is kg_v1.0 [00:35:23]action value=get_value [00:35:23]process_action get_value [00:35:23]cmd_get_value [00:35:23]process_action get_value done [00:35:23]requested_data is exist [00:35:23]produce_requested_data [00:35:24]requested_item fm.sale.total is exist - process it [00:35:24]SAM_PROTO_GetFMData [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 13 03 00 [00:35:24]Write to MH i2c: E2 08 00 11 67 80 13 03 00 00 00 00 00 F7 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]OFD Sender: No OFD packet to send [00:35:24]*** iso7816_exchange 80 13 03 00... Resp OK rsp.len_out = 250! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 FD 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 FD 00 11 67 00 C7 04 85 04 C3 04 6E 04 04 00 B2 1C 02 00 69 04 A3 00 6F 04 04 00 67 1A 02 00 B1 04 05 00 E1 0C 96 52 01 70 04 05 00 BC 53 37 03 01 72 04 04 00 25 B9 5E 4F 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 44 79 F5 23 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 BD DC FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 FF [00:35:24]RAPDU: C7 04 85 04 C3 04 6E 04 04 00 B2 1C 02 00 69 04 A3 00 6F 04 04 00 67 1A 02 00 B1 04 05 00 E1 0C 96 52 01 70 04 05 00 BC 53 37 03 01 72 04 04 00 25 B9 5E 4F 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 44 79 F5 23 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 BD DC FE 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 6A 04 9E 00 6F 04 04 00 4B 02 00 00 B1 04 04 00 20 31 05 09 70 04 04 00 5C 05 E1 08 72 04 03 00 C4 2B 24 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 43 3D F5 EF 90 00 [00:35:24]wFMCommunicate OK [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 17 00 00 [00:35:24]Write to MH i2c: E2 08 00 12 67 80 17 00 00 00 00 00 00 F9 [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:24]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:24]Read from MH i2c: E2 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 FD 00 [00:35:24]MH_I2C_Read... [00:35:24]Read from MH i2c: E2 FD 00 12 67 00 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 10 [00:35:24]RAPDU: 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 87 6F 14 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:24]wFMCommunicate OK [00:35:24]wFMCommunicate request_size=4 [00:35:24]MH_SAM_APDU [00:35:24]CAPDU: 80 17 00 00 [00:35:24]Write to MH i2c: E2 08 00 13 67 80 17 00 00 00 00 00 00 FA [00:35:24]Write i2c OK [00:35:24]MH_I2C_Read... [00:35:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:25]Read from MH i2c: E2 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 FD 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 FD 00 13 67 00 B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 D2 [00:35:25]RAPDU: B1 04 00 00 70 04 00 00 72 04 00 00 00 04 75 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:25]wFMCommunicate OK [00:35:25]wFMCommunicate request_size=4 [00:35:25]MH_SAM_APDU [00:35:25]CAPDU: 80 17 00 00 [00:35:25]Write to MH i2c: E2 08 00 14 67 80 17 00 00 00 00 00 00 FB [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:25]Read from MH i2c: E2 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 FD 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 FD 00 14 67 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 76 [00:35:25]RAPDU: 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:25]wFMCommunicate OK [00:35:25]wFMCommunicate request_size=4 [00:35:25]MH_SAM_APDU [00:35:25]CAPDU: 80 17 00 00 [00:35:25]Write to MH i2c: E2 08 00 15 67 80 17 00 00 00 00 00 00 FC [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:25]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 225! [00:35:25]Read from MH i2c: E2 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 E4 00 [00:35:25]MH_I2C_Read... [00:35:25]Read from MH i2c: E2 E4 00 15 67 00 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 DC [00:35:25]RAPDU: 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:25]wFMCommunicate OK [00:35:25]SAM_PROTO_GetFMData done [00:35:25]requested_item fm.sale_refund.total is exist - process it [00:35:25]requested_item fm.buy.total is exist - process it [00:35:25]requested_item shift.sale.total is exist - process it [00:35:25]SAM_PROTO_GetShiftData [00:35:25]wFMCommunicate request_size=4 [00:35:25]MH_SAM_APDU [00:35:25]CAPDU: 80 13 02 00 [00:35:25]Write to MH i2c: E2 08 00 16 67 80 13 02 00 00 00 00 00 FB [00:35:25]Write i2c OK [00:35:25]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 13 02 00... Resp OK rsp.len_out = 250! [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 FD 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 FD 00 16 67 00 AC 04 AA 04 A8 04 6E 04 04 00 09 00 00 00 69 04 99 00 6F 04 04 00 09 00 00 00 B1 04 03 00 48 AB 07 70 04 03 00 BC 3C 07 72 04 02 00 8C 6E 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 81 D0 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 60 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 7C [00:35:26]RAPDU: AC 04 AA 04 A8 04 6E 04 04 00 09 00 00 00 69 04 99 00 6F 04 04 00 09 00 00 00 B1 04 03 00 48 AB 07 70 04 03 00 BC 3C 07 72 04 02 00 8C 6E 00 04 79 00 EE 03 09 00 F2 03 01 00 00 F3 03 00 00 EE 03 0B 00 F2 03 01 00 01 F3 03 02 00 81 D0 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 0B 00 F6 03 01 00 01 F7 03 02 00 60 11 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:26]wFMCommunicate OK [00:35:26]wFMCommunicate request_size=4 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 17 00 00 [00:35:26]Write to MH i2c: E2 08 00 17 67 80 17 00 00 00 00 00 00 FE [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 FD 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 FD 00 17 67 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 13 [00:35:26]RAPDU: 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 09 00 F6 03 01 00 05 F7 03 00 00 EF 03 09 00 F6 03 01 00 06 F7 03 00 00 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 90 00 [00:35:26]wFMCommunicate OK [00:35:26]wFMCommunicate request_size=4 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 17 00 00 [00:35:26]Write to MH i2c: E2 08 00 18 67 80 17 00 00 00 00 00 00 FF [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:26]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:26]Read from MH i2c: E2 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 FD 00 [00:35:26]MH_I2C_Read... [00:35:26]Read from MH i2c: E2 FD 00 18 67 00 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 C0 [00:35:26]RAPDU: 00 00 EE 03 09 00 F2 03 01 00 01 F3 03 00 00 EF 03 09 00 F6 03 01 00 00 F7 03 00 00 EF 03 09 00 F6 03 01 00 01 F7 03 00 00 EF 03 09 00 F6 03 01 00 02 F7 03 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 90 00 [00:35:26]wFMCommunicate OK [00:35:26]wFMCommunicate request_size=4 [00:35:26]MH_SAM_APDU [00:35:26]CAPDU: 80 17 00 00 [00:35:26]Write to MH i2c: E2 08 00 19 67 80 17 00 00 00 00 00 00 00 [00:35:26]Write i2c OK [00:35:26]MH_I2C_Read... [00:35:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 250! [00:35:27]Read from MH i2c: E2 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 FD 00 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 FD 00 19 67 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 90 00 75 [00:35:27]RAPDU: 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 90 00 [00:35:27]wFMCommunicate OK [00:35:27]wFMCommunicate request_size=4 [00:35:27]MH_SAM_APDU [00:35:27]CAPDU: 80 17 00 00 [00:35:27]Write to MH i2c: E2 08 00 1A 67 80 17 00 00 00 00 00 00 01 [00:35:27]Write i2c OK [00:35:27]MH_I2C_Read... [00:35:27]*** iso7816_exchange 80 17 00 00... Resp OK rsp.len_out = 198! [00:35:27]Read from MH i2c: E2 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 C9 00 [00:35:27]MH_I2C_Read... [00:35:27]Read from MH i2c: E2 C9 00 1A 67 00 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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 E5 [00:35:27]RAPDU: 00 EF 03 09 00 F6 03 01 00 03 F7 03 00 00 EF 03 09 00 F6 03 01 00 04 F7 03 00 00 EF 03 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:35:27]wFMCommunicate OK [00:35:27]SAM_PROTO_GetShiftData done [00:35:27]requested_item shift.sale.total_cash is exist - process it [00:35:27]requested_item shift.sale_refund.total is exist - process it [00:35:27]requested_item shift.sale_refund.total_cash is exist - process it [00:35:27]requested_item shift.buy.total is exist - process it [00:35:27]requested_item shift.buy.total_cash is exist - process it [00:35:27]produce_requested_data done [00:35:27]produce_requested_data return {"fm.sale.total":56805327.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":5026.00,"shift.sale.total_cash":4743.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:35:27]process_action_free get_value [00:35:27]json_value_free [00:35:27]json_value_free done [00:35:27]process_json_proto returns [00:35:27]Send response to host [00:35:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sale.total":56805327.05,"fm.sale_refund.total":1513352.00,"fm.buy.total":0.00,"shift.sale.total":5026.00,"shift.sale.total_cash":4743.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:35:27]free response buf [00:35:27]execute_script done [00:35:27]execute_script returns [00:35:27]free content buf [00:35:27]Sock 9.Close socket [00:35:27]Sock 9.Thread stoped [00:35:29]OFD Sender: No OFD packet to send [00:35:34]OFD Sender: No OFD packet to send [00:35:39]OFD Sender: No OFD packet to send [00:35:41]accept exits with 8 [00:35:41]New connection [00:35:41]New thread 3067284836 created [00:35:41]Thread 3067141476 joined [00:35:41]Waiting for new connection... [00:35:41] Sock 8.Parse request [00:35:41]Sock 8.Check first char [00:35:41]Sock 8.First char is OK [00:35:41]request: POST /json_proto HTTP/1.0 [00:35:41]Method: POST [00:35:41]URL: /json_proto [00:35:41]Method is POST - this is cgi request [00:35:41]url: /json_proto [00:35:41]query_string will be loaded in cgi processing [00:35:41]execute_cgi json_proto POST (null) [00:35:41]execute_cgi path=json_proto method=POST [00:35:41]POST find Content-Length [00:35:41]Host: 172.17.50.196:8080 [00:35:41]Content-Length: 656 [00:35:41]Content-Type: application/json [00:35:41] [00:35:41]POST finish read [00:35:41]Found Content-Length = 656 [00:35:41]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335410", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:41]execute_script... [00:35:41]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335410", "tax_sys" : 0, "items" : [ { "code": "2000031750019", "name": "\u041F\u0430\u043A\u0435\u0442 \u041F\u0430\u0440\u0442\u043D\u0435\u0440 \u041D\u0435\u0444\u0442\u044C", "price" : 4.00, "quantity" : 1.000, "sum" : 4.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 4.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:35:41]POST & json_proto [00:35:41]process_json_proto [00:35:41]json parsed OK: [00:35:41]protocol is kg_v1.0 [00:35:41]action value=close_receipt [00:35:41]process_action close_receipt [00:35:41]cmd_close_receipt [00:35:41]MH_GetDate [00:35:41]Write to MH i2c: F0 00 00 1B 67 71 [00:35:41]Write i2c OK [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: F0 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: F0 09 00 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: F0 09 00 1B 67 00 E5 D0 22 67 72 0D 1C 67 BA [00:35:41]GetLastDocTimeStamp 1730334148 [00:35:41]current date 1730334949 [00:35:41]FM_GetShiftState [00:35:41]SAM_PROTO_GetShiftState [00:35:41]wFMCommunicate request_size=4 [00:35:41]MH_SAM_APDU [00:35:41]CAPDU: 80 13 01 00 [00:35:41]Write to MH i2c: E2 08 00 1C 67 80 13 01 00 00 00 00 00 00 [00:35:41]Write i2c OK [00:35:41]MH_I2C_Read... [00:35:41]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:41]Read from MH i2c: E2 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 0E 00 [00:35:41]MH_I2C_Read... [00:35:41]Read from MH i2c: E2 0E 00 1C 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 29 [00:35:41]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:35:41]wFMCommunicate OK [00:35:41]SAM_PROTO_GetShiftState done [00:35:41]FM_GetShiftState done [00:35:41]opened in 1730332621 [00:35:41]opened+sec_in_day 1730419021 [00:35:41]quantity*price = 400 [00:35:41]sum+1 = 401 [00:35:41]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 4.00 НСП 1% : 0.03 НДС 12% : 0.42 Наличными: 4.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 10 31.10.2024 00:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139533 ФПД: 258243583152510 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T003549&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139533&fm=258243583152510&tin=02508201610067®Number=0000000000091631&sum=400 0 [00:35:42]StoreToDocumentArchive [00:35:42]shift 557 fd 139533 [00:35:42]save to /storage/0557/doc_00139533 [00:35:42]save last doc name /storage/0557/doc_00139533 to /storage/kkm_last_doc_name [00:35:42]save OK [00:35:42]Clear old archive folders... [00:35:42]ProcessDocumentItem done err = 0, tmpTLVsize=278 [00:35:42]tlvbuf is 011E4E80 [00:35:42]SAM_PROTO_ClearQueue [00:35:42]wFMCommunicate request_size=4 [00:35:42]MH_SAM_APDU [00:35:42]CAPDU: 80 09 00 00 [00:35:42]Write to MH i2c: E2 08 00 29 67 80 09 00 00 00 00 00 00 02 [00:35:42]Write i2c OK [00:35:42]MH_I2C_Read... [00:35:42]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:35:42]Read from MH i2c: E2 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 03 00 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 03 00 29 67 00 90 00 04 [00:35:42]RAPDU: 90 00 [00:35:42]wFMCommunicate OK [00:35:42]SAM_PROTO_ClearQueue done [00:35:42]KKMCreateOFDPacket [00:35:42]OFDProtocolAddRootSTLVToBuf [00:35:42]FM_MakeSignedData [00:35:42]FM_MakeSignedData [00:35:42]SAM_PROTO_SignData [00:35:42]wFMCommunicate request_size=4 [00:35:42]MH_SAM_APDU [00:35:42]CAPDU: 80 0D 01 02 [00:35:42]Write to MH i2c: E2 08 00 2A 67 80 0D 01 02 00 00 00 00 0A [00:35:42]Write i2c OK [00:35:42]MH_I2C_Read... [00:35:42]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:35:42]Read from MH i2c: E2 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 03 00 [00:35:42]MH_I2C_Read... [00:35:42]Read from MH i2c: E2 03 00 2A 67 00 90 00 05 [00:35:42]RAPDU: 90 00 [00:35:42]wFMCommunicate OK [00:35:42]wFMCommunicate request_size=255 [00:35:42]MH_SAM_APDU [00:35:42]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E5 D0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [00:35:42]Write to MH i2c: E2 02 01 2B 67 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E5 D0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 B9 [00:35:42]Write i2c OK [00:35:42]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 03 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 03 00 2B 67 00 90 00 06 [00:35:43]RAPDU: 90 00 [00:35:43]wFMCommunicate OK [00:35:43]wFMCommunicate request_size=37 [00:35:43]MH_SAM_APDU [00:35:43]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 21 02 00 35 04 06 00 EA DF 05 0A 11 7E [00:35:43]Write to MH i2c: E2 28 00 2C 67 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 21 02 00 35 04 06 00 EA DF 05 0A 11 7E 00 00 03 [00:35:43]Write i2c OK [00:35:43]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 03 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 03 00 2C 67 00 90 00 07 [00:35:43]RAPDU: 90 00 [00:35:43]wFMCommunicate OK [00:35:43]wFMCommunicate request_size=4 [00:35:43]MH_SAM_APDU [00:35:43]CAPDU: 80 0D 03 02 [00:35:43]Write to MH i2c: E2 08 00 2D 67 80 0D 03 02 00 00 00 00 0F [00:35:43]Write i2c OK [00:35:43]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 0B 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 0B 00 2D 67 00 19 CD 76 56 6D D7 BD 3B 90 00 FE [00:35:43]RAPDU: 19 CD 76 56 6D D7 BD 3B 90 00 [00:35:43]wFMCommunicate OK [00:35:43]SAM_PROTO_SignData done [00:35:43]FM_MakeSignedData done [00:35:43]CreateOFDProtocolMessage [00:35:43]wFMCommunicate request_size=4 [00:35:43]MH_SAM_APDU [00:35:43]CAPDU: 80 11 00 00 [00:35:43]Write to MH i2c: E2 08 00 2E 67 80 11 00 00 00 00 00 00 0F [00:35:43]Write i2c OK [00:35:43]MH_I2C_Read... [00:35:43]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:43]Read from MH i2c: E2 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 17 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: E2 17 00 2E 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6A [00:35:43]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:35:43]wFMCommunicate OK [00:35:43]CreateOFDProtocolMessage done [00:35:43]OFDSenderStorePacket 139533 [00:35:43]StoreOFDPacket docnum=139533 [00:35:43]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 82 F0 22 01 F3 E7 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E5 D0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 21 02 00 35 04 06 00 EA DF 05 0A 11 7E 19 CD 76 56 6D D7 BD 3B [00:35:43]CheckFolder [00:35:43]dirname=/storage/ofd_packets [00:35:43]CheckFolder done [00:35:43]ProducePacketName [00:35:43]name=ofd_packets/00139533 [00:35:43]NVStorageSaveData ofd_packets/00139533 [00:35:43]File name is /storage/ofd_packets/00139533 [00:35:43]Write 328 bytes [00:35:43]NVStorageSaveData done [00:35:43]OFDSenderStorePacket done [00:35:43]KKMCreateOFDPacket done [00:35:43]NVStorageSaveData kkm_last_timestamp [00:35:43]File name is /storage/kkm_last_timestamp [00:35:43]Write 4 bytes [00:35:43]NVStorageSaveData done [00:35:43]ExternCall_PrintAddStr [00:35:43]wPrintStart [00:35:43]Write to MH i2c: 01 00 00 2F 67 96 [00:35:43]Write i2c OK [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: 01 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: 01 07 00 [00:35:43]MH_I2C_Read... [00:35:43]Read from MH i2c: 01 07 00 2F 67 00 00 00 00 00 FF 0F AB [00:35:43]RasterBufferAndPrint [00:35:43]line Счет N : (3)335410 [00:35:43]line ИНН: 02508201610067 [00:35:43]line Контрольно-Кассовый Чек [00:35:43]line ПРОДАЖА [00:35:43]line Товар: 2000031750019 [00:35:43]line Пакет Партнер Нефть [00:35:43]line 1.000 * 4.00 [00:35:43]line = 4.00 [00:35:43]line НДС 12% НСП 1% [00:35:43]line > о реализуемом товаре [00:35:43]line ИТОГО: 4.00 [00:35:43]line НСП 1% : 0.03 [00:35:43]line НДС 12% : 0.42 [00:35:43]line Наличными: 4.00 [00:35:43]line Безнал.: 0.00 [00:35:43]line Место: АЗС № 101 "Партнер Нефть" [00:35:43]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:35:43]line СНО: Общий режим [00:35:43]line Чек 10 31.10.2024 00:35 [00:35:43]line Смена: 557 ФФД: 1.0 [00:35:43]line ЗНМ: 0300000081 [00:35:43]line РНМ: 0000000000091631 [00:35:43]line Версия ККМ: 001 [00:35:43]line ФМ: 0000000000874669 [00:35:43]line ФД: 139533 [00:35:43]line ФПД: 258243583152510 [00:35:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T003549&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139533&fm=258243583152510&tin=02508201610067®Number=0000000000091631&sum=400 [00:35:43]line 0 [00:35:43]OFD Sender: Processing packet 139533 [packets to send 34, broken 33] [00:35:43]ProducePacketName [00:35:43]name=ofd_packets/00139533 [00:35:43]OFD Sender: To server: pG, [00:35:43]CommunicateWithHost lk.salyk.kg:30040 [00:35:43]ConnectInit lk.salyk.kg [00:35:43]written 0, free lines is 4095 [00:35:43]Connected sock=9 [00:35:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 82 F0 22 01 F3 E7 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 0D 00 32 30 30 30 30 33 31 37 35 30 30 31 39 06 04 24 00 D0 9F D0 B0 D0 BA D0 B5 D1 82 20 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 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 90 01 00 00 00 00 13 04 06 00 90 01 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 90 01 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 03 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2A 00 00 00 00 00 07 04 06 00 90 01 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0A 00 00 00 F4 03 04 00 E5 D0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 21 02 00 35 04 06 00 EA DF 05 0A 11 7E 19 CD 76 56 6D D7 BD 3B [00:35:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DE 58 47 00 DB 04 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0D 21 02 00 F4 03 04 00 94 7C 22 67 B6 04 01 00 00 34 E1 70 90 A2 4C 66 38 [00:35:43]CommunicateWithHost err = 0 [00:35:43]CheckOFDResponse [00:35:43]1017 (14) - 77093643461234 [00:35:43]1041 (16) - 0000000000874669 [00:35:43]1040 (4) - 139533 [00:35:43]1012 (4) - 30.10.2024 18:36 [00:35:43]1206 (1) - 0 [00:35:43]OFD Sender: Remove packet 139533 [00:35:43]ProducePacketName [00:35:43]name=ofd_packets/00139533 [00:35:43]NVStorageDeleteData [00:35:44]Write to MH i2c: 01 00 00 57 67 BE [00:35:44]Write i2c OK [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: 01 [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: 01 07 00 [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: 01 07 00 57 67 00 00 00 00 00 07 0D D9 [00:35:44]RasterBufferAndPrint [00:35:44]line [00:35:44]line [00:35:44]line [00:35:44]line [00:35:44]line [00:35:44]written 0, free lines is 3344 [00:35:44]MH_Cut [00:35:44]Write to MH i2c: D1 01 00 5E 67 01 97 [00:35:44]Write i2c OK [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: D1 [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: D1 01 00 [00:35:44]MH_I2C_Read... [00:35:44]Read from MH i2c: D1 01 00 5E 67 00 96 [00:35:44]Write to MH i2c: 01 00 00 5F 67 C6 [00:35:44]Write i2c OK [00:35:44]MH_I2C_Read... [00:35:44]OFD Sender: No OFD packet to send [00:35:44]*** Cut start [00:35:44]*** Partial cut [00:35:44]*** CUTSNS_PIN = 1 [00:35:44]*** CUTSNS_PIN = 0 [00:35:45]*** Brake cut motor [00:35:45]Read from MH i2c: 01 [00:35:45]MH_I2C_Read... [00:35:45]*** Stop cut motor [00:35:45]*** Cut end [00:35:45]Read from MH i2c: 01 07 00 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: 01 07 00 5F 67 00 00 00 00 00 FF 0F DB [00:35:45]process_action close_receipt done [00:35:45]requested_data is exist [00:35:45]produce_requested_data [00:35:45]requested_item fm.sn is exist - process it [00:35:45]wFMCommunicate request_size=4 [00:35:45]MH_SAM_APDU [00:35:45]CAPDU: 80 11 00 00 [00:35:45]Write to MH i2c: E2 08 00 60 67 80 11 00 00 00 00 00 00 41 [00:35:45]Write i2c OK [00:35:45]MH_I2C_Read... [00:35:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:35:45]Read from MH i2c: E2 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 17 00 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 17 00 60 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9C [00:35:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:35:45]wFMCommunicate OK [00:35:45]requested_item fd.num is exist - process it [00:35:45]SAM_PROTO_GetFieldsCounters [00:35:45]wFMCommunicate request_size=4 [00:35:45]MH_SAM_APDU [00:35:45]CAPDU: 80 13 00 00 [00:35:45]Write to MH i2c: E2 08 00 61 67 80 13 00 00 00 00 00 00 44 [00:35:45]Write i2c OK [00:35:45]MH_I2C_Read... [00:35:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:35:45]Read from MH i2c: E2 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 62 00 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 62 00 61 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0D 21 02 00 0E 04 04 00 2D 02 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 E5 [00:35:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0D 21 02 00 0E 04 04 00 2D 02 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:35:45]wFMCommunicate OK [00:35:45]SAM_PROTO_GetFieldsCounters done [00:35:45]requested_item shift.num is exist - process it [00:35:45]requested_item shift.opened is exist - process it [00:35:45]req_shift_opened [00:35:45]FM_GetShiftState [00:35:45]SAM_PROTO_GetShiftState [00:35:45]wFMCommunicate request_size=4 [00:35:45]MH_SAM_APDU [00:35:45]CAPDU: 80 13 01 00 [00:35:45]Write to MH i2c: E2 08 00 62 67 80 13 01 00 00 00 00 00 46 [00:35:45]Write i2c OK [00:35:45]MH_I2C_Read... [00:35:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:35:45]Read from MH i2c: E2 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 0E 00 [00:35:45]MH_I2C_Read... [00:35:45]Read from MH i2c: E2 0E 00 62 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6F [00:35:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:35:45]wFMCommunicate OK [00:35:45]SAM_PROTO_GetShiftState done [00:35:45]FM_GetShiftState done [00:35:45]req_shift_opened done [00:35:45]requested_item shift.open_date is exist - process it [00:35:45]req_shift_open_date [00:35:45]req_shift_open_date done [00:35:45]produce_requested_data done [00:35:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139533,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:35:45]process_action_free close_receipt [00:35:45]json_value_free [00:35:45]json_value_free done [00:35:45]process_json_proto returns [00:35:45]Send response to host [00:35:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139533,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:35:45]free response buf [00:35:45]execute_script done [00:35:45]execute_script returns [00:35:45]free content buf [00:35:45]Sock 8.Close socket [00:35:45]Sock 8.Thread stoped [00:35:49]OFD Sender: No OFD packet to send [00:35:54]OFD Sender: No OFD packet to send [00:35:59]OFD Sender: No OFD packet to send [00:36:03]accept exits with 10 [00:36:03]New connection [00:36:03]New thread 3067141476 created [00:36:03]Thread 3067284836 joined [00:36:03]Waiting for new connection... [00:36:03] Sock 10.Parse request [00:36:03]Sock 10.Check first char [00:36:03]Sock 10.First char is OK [00:36:03]request: POST /json_proto HTTP/1.0 [00:36:03]Method: POST [00:36:03]URL: /json_proto [00:36:03]Method is POST - this is cgi request [00:36:03]url: /json_proto [00:36:03]query_string will be loaded in cgi processing [00:36:03]execute_cgi json_proto POST (null) [00:36:03]execute_cgi path=json_proto method=POST [00:36:03]POST find Content-Length [00:36:03]Host: 172.17.50.196:8080 [00:36:03]Content-Length: 646 [00:36:03]Content-Type: application/json [00:36:03] [00:36:03]POST finish read [00:36:03]Found Content-Length = 646 [00:36:03]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335411", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:03]execute_script... [00:36: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 : (3)335411", "tax_sys" : 0, "items" : [ { "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 2.000, "sum" : 260.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 260.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:36:03]POST & json_proto [00:36:03]process_json_proto [00:36:03]json parsed OK: [00:36:03]protocol is kg_v1.0 [00:36:03]action value=close_receipt [00:36:03]process_action close_receipt [00:36:03]cmd_close_receipt [00:36:03]MH_GetDate [00:36:03]Write to MH i2c: F0 00 00 63 67 B9 [00:36:03]Write i2c OK [00:36:03]MH_I2C_Read... [00:36:03]Read from MH i2c: F0 [00:36:03]MH_I2C_Read... [00:36:03]Read from MH i2c: F0 09 00 [00:36:03]MH_I2C_Read... [00:36:03]Read from MH i2c: F0 09 00 63 67 00 FB D0 22 67 72 0D 1C 67 18 [00:36:03]GetLastDocTimeStamp 1730334949 [00:36:03]current date 1730334971 [00:36:03]FM_GetShiftState [00:36:03]SAM_PROTO_GetShiftState [00:36:03]wFMCommunicate request_size=4 [00:36:03]MH_SAM_APDU [00:36:03]CAPDU: 80 13 01 00 [00:36:03]Write to MH i2c: E2 08 00 64 67 80 13 01 00 00 00 00 00 48 [00:36:03]Write i2c OK [00:36:03]MH_I2C_Read... [00:36:03]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:03]Read from MH i2c: E2 [00:36:03]MH_I2C_Read... [00:36:03]Read from MH i2c: E2 0E 00 [00:36:03]MH_I2C_Read... [00:36:03]Read from MH i2c: E2 0E 00 64 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 71 [00:36:03]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:36:03]wFMCommunicate OK [00:36:03]SAM_PROTO_GetShiftState done [00:36:03]FM_GetShiftState done [00:36:03]opened in 1730332621 [00:36:03]opened+sec_in_day 1730419021 [00:36:03]quantity*price = 26000 [00:36:03]sum+1 = 26001 [00:36:03]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 260.00 НСП 1% : 2.30 НДС 12% : 27.61 Наличными: 260.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 11 31.10.2024 00:36 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139534 ФПД: 18097055805528 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T003611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139534&fm=18097055805528&tin=02508201610067®Number=0000000000091631&sum=26000 0 [00:36:04]StoreToDocumentArchive [00:36:04]shift 557 fd 139534 [00:36:04]save to /storage/0557/doc_00139534 [00:36:04]save last doc name /storage/0557/doc_00139534 to /storage/kkm_last_doc_name [00:36:04]save OK [00:36:04]Clear old archive folders... [00:36:04]ProcessDocumentItem done err = 0, tmpTLVsize=282 [00:36:04]tlvbuf is 013331E0 [00:36:04]SAM_PROTO_ClearQueue [00:36:04]wFMCommunicate request_size=4 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 09 00 00 [00:36:04]Write to MH i2c: E2 08 00 71 67 80 09 00 00 00 00 00 00 4A [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:04]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:36:04]Read from MH i2c: E2 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 03 00 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 03 00 71 67 00 90 00 4C [00:36:04]RAPDU: 90 00 [00:36:04]wFMCommunicate OK [00:36:04]SAM_PROTO_ClearQueue done [00:36:04]KKMCreateOFDPacket [00:36:04]OFDProtocolAddRootSTLVToBuf [00:36:04]FM_MakeSignedData [00:36:04]FM_MakeSignedData [00:36:04]SAM_PROTO_SignData [00:36:04]wFMCommunicate request_size=4 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 0D 01 02 [00:36:04]Write to MH i2c: E2 08 00 72 67 80 0D 01 02 00 00 00 00 52 [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:04]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:36:04]Read from MH i2c: E2 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 03 00 [00:36:04]MH_I2C_Read... [00:36:04]Read from MH i2c: E2 03 00 72 67 00 90 00 4D [00:36:04]RAPDU: 90 00 [00:36:04]wFMCommunicate OK [00:36:04]wFMCommunicate request_size=255 [00:36:04]MH_SAM_APDU [00:36:04]CAPDU: 80 0D 02 02 FA 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 C9 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 0B 00 00 00 F4 03 04 00 FB D0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 [00:36:04]Write to MH i2c: E2 02 01 73 67 80 0D 02 02 FA 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 C9 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 0B 00 00 00 F4 03 04 00 FB D0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 00 00 A4 [00:36:04]Write i2c OK [00:36:04]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 03 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 03 00 73 67 00 90 00 4E [00:36:05]RAPDU: 90 00 [00:36:05]wFMCommunicate OK [00:36:05]wFMCommunicate request_size=41 [00:36:05]MH_SAM_APDU [00:36:05]CAPDU: 80 0D 02 02 24 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 21 02 00 35 04 06 00 10 75 8C 95 30 58 [00:36:05]Write to MH i2c: E2 2C 00 74 67 80 0D 02 02 24 00 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 21 02 00 35 04 06 00 10 75 8C 95 30 58 00 00 8B [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 03 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 03 00 74 67 00 90 00 4F [00:36:05]RAPDU: 90 00 [00:36:05]wFMCommunicate OK [00:36:05]wFMCommunicate request_size=4 [00:36:05]MH_SAM_APDU [00:36:05]CAPDU: 80 0D 03 02 [00:36:05]Write to MH i2c: E2 08 00 75 67 80 0D 03 02 00 00 00 00 57 [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 0B 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 0B 00 75 67 00 77 29 7A 4A 31 A9 FB B4 90 00 45 [00:36:05]RAPDU: 77 29 7A 4A 31 A9 FB B4 90 00 [00:36:05]wFMCommunicate OK [00:36:05]SAM_PROTO_SignData done [00:36:05]FM_MakeSignedData done [00:36:05]CreateOFDProtocolMessage [00:36:05]wFMCommunicate request_size=4 [00:36:05]MH_SAM_APDU [00:36:05]CAPDU: 80 11 00 00 [00:36:05]Write to MH i2c: E2 08 00 76 67 80 11 00 00 00 00 00 00 57 [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:05]Read from MH i2c: E2 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 17 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: E2 17 00 76 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B2 [00:36:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:36:05]wFMCommunicate OK [00:36:05]CreateOFDProtocolMessage done [00:36:05]OFDSenderStorePacket 139534 [00:36:05]StoreOFDPacket docnum=139534 [00:36:05]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 7A DD 26 01 DA 8A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 C9 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 0B 00 00 00 F4 03 04 00 FB D0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 21 02 00 35 04 06 00 10 75 8C 95 30 58 77 29 7A 4A 31 A9 FB B4 [00:36:05]CheckFolder [00:36:05]dirname=/storage/ofd_packets [00:36:05]CheckFolder done [00:36:05]ProducePacketName [00:36:05]name=ofd_packets/00139534 [00:36:05]NVStorageSaveData ofd_packets/00139534 [00:36:05]File name is /storage/ofd_packets/00139534 [00:36:05]Write 332 bytes [00:36:05]NVStorageSaveData done [00:36:05]OFDSenderStorePacket done [00:36:05]KKMCreateOFDPacket done [00:36:05]NVStorageSaveData kkm_last_timestamp [00:36:05]File name is /storage/kkm_last_timestamp [00:36:05]Write 4 bytes [00:36:05]NVStorageSaveData done [00:36:05]ExternCall_PrintAddStr [00:36:05]wPrintStart [00:36:05]Write to MH i2c: 01 00 00 77 67 DE [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 07 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 07 00 77 67 00 00 00 00 00 FF 0F F3 [00:36:05]RasterBufferAndPrint [00:36:05]line Счет N : (3)335411 [00:36:05]line ИНН: 02508201610067 [00:36:05]line Контрольно-Кассовый Чек [00:36:05]line ПРОДАЖА [00:36:05]line Товар: 2000036220012 [00:36:05]line Кофе Капучино XL(GABB TRADE) [00:36:05]line 2.000 * 130.00 [00:36:05]line = 260.00 [00:36:05]line НДС 12% НСП 1% [00:36:05]line > о реализуемом товаре [00:36:05]line ИТОГО: 260.00 [00:36:05]line НСП 1% : 2.30 [00:36:05]line НДС 12% : 27.61 [00:36:05]line Наличными: 260.00 [00:36:05]line Безнал.: 0.00 [00:36:05]line Место: АЗС № 101 "Партнер Нефть" [00:36:05]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:36:05]line СНО: Общий режим [00:36:05]line Чек 11 31.10.2024 00:36 [00:36:05]line Смена: 557 ФФД: 1.0 [00:36:05]line ЗНМ: 0300000081 [00:36:05]line РНМ: 0000000000091631 [00:36:05]line Версия ККМ: 001 [00:36:05]line ФМ: 0000000000874669 [00:36:05]line ФД: 139534 [00:36:05]line ФПД: 18097055805528 [00:36:05]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T003611&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139534&fm=18097055805528&tin=02508201610067®Number=0000000000091631&sum=26000 [00:36:05]OFD Sender: Processing packet 139534 [packets to send 34, broken 33] [00:36:05]ProducePacketName [00:36:05]name=ofd_packets/00139534 [00:36:05]OFD Sender: To server: pG, [00:36:05]CommunicateWithHost lk.salyk.kg:30040 [00:36:05]ConnectInit lk.salyk.kg [00:36:05]line 0 [00:36:05]written 0, free lines is 4095 [00:36:05]Connected sock=9 [00:36:05]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2E 01 00 00 7A DD 26 01 DA 8A 5A 03 01 00 03 00 1A 01 1E 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 90 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 C9 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 0B 00 00 00 F4 03 04 00 FB D0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 21 02 00 35 04 06 00 10 75 8C 95 30 58 77 29 7A 4A 31 A9 FB B4 [00:36:05]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 55 9E 47 00 75 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0E 21 02 00 F4 03 04 00 AA 7C 22 67 B6 04 01 00 00 79 E2 4C 95 65 70 4F 29 [00:36:05]CommunicateWithHost err = 0 [00:36:05]CheckOFDResponse [00:36:05]1017 (14) - 77093643461234 [00:36:05]1041 (16) - 0000000000874669 [00:36:05]1040 (4) - 139534 [00:36:05]1012 (4) - 30.10.2024 18:36 [00:36:05]1206 (1) - 0 [00:36:05]OFD Sender: Remove packet 139534 [00:36:05]ProducePacketName [00:36:05]name=ofd_packets/00139534 [00:36:05]NVStorageDeleteData [00:36:05]Write to MH i2c: 01 00 00 A0 67 07 [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 07 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: 01 07 00 A0 67 00 00 00 00 00 08 0D 23 [00:36:05]RasterBufferAndPrint [00:36:05]line [00:36:05]line [00:36:05]line [00:36:05]line [00:36:05]line [00:36:05]written 0, free lines is 3345 [00:36:05]MH_Cut [00:36:05]Write to MH i2c: D1 01 00 A7 67 01 E0 [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: D1 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: D1 01 00 [00:36:05]MH_I2C_Read... [00:36:05]Read from MH i2c: D1 01 00 A7 67 00 DF [00:36:05]Write to MH i2c: 01 00 00 A8 67 0F [00:36:05]Write i2c OK [00:36:05]MH_I2C_Read... [00:36:06]OFD Sender: No OFD packet to send [00:36:06]*** Cut start [00:36:06]*** Partial cut [00:36:06]*** CUTSNS_PIN = 1 [00:36:06]*** CUTSNS_PIN = 0 [00:36:06]*** Brake cut motor [00:36:07]Read from MH i2c: 01 [00:36:07]MH_I2C_Read... [00:36:07]*** Stop cut motor [00:36:07]*** Cut end [00:36:07]Read from MH i2c: 01 07 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: 01 07 00 A8 67 00 00 00 00 00 FF 0F 24 [00:36:07]process_action close_receipt done [00:36:07]requested_data is exist [00:36:07]produce_requested_data [00:36:07]requested_item fm.sn is exist - process it [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 11 00 00 [00:36:07]Write to MH i2c: E2 08 00 A9 67 80 11 00 00 00 00 00 00 8A [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 17 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 17 00 A9 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E5 [00:36:07]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:36:07]wFMCommunicate OK [00:36:07]requested_item fd.num is exist - process it [00:36:07]SAM_PROTO_GetFieldsCounters [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 13 00 00 [00:36:07]Write to MH i2c: E2 08 00 AA 67 80 13 00 00 00 00 00 00 8D [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 62 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 62 00 AA 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0E 21 02 00 0E 04 04 00 2D 02 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 32 [00:36:07]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0E 21 02 00 0E 04 04 00 2D 02 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 [00:36:07]wFMCommunicate OK [00:36:07]SAM_PROTO_GetFieldsCounters done [00:36:07]requested_item shift.num is exist - process it [00:36:07]requested_item shift.opened is exist - process it [00:36:07]req_shift_opened [00:36:07]FM_GetShiftState [00:36:07]SAM_PROTO_GetShiftState [00:36:07]wFMCommunicate request_size=4 [00:36:07]MH_SAM_APDU [00:36:07]CAPDU: 80 13 01 00 [00:36:07]Write to MH i2c: E2 08 00 AB 67 80 13 01 00 00 00 00 00 8F [00:36:07]Write i2c OK [00:36:07]MH_I2C_Read... [00:36:07]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:36:07]Read from MH i2c: E2 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 0E 00 [00:36:07]MH_I2C_Read... [00:36:07]Read from MH i2c: E2 0E 00 AB 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B8 [00:36:07]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:36:07]wFMCommunicate OK [00:36:07]SAM_PROTO_GetShiftState done [00:36:07]FM_GetShiftState done [00:36:07]req_shift_opened done [00:36:07]requested_item shift.open_date is exist - process it [00:36:07]req_shift_open_date [00:36:07]req_shift_open_date done [00:36:07]produce_requested_data done [00:36:07]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139534,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:36:07]process_action_free close_receipt [00:36:07]json_value_free [00:36:07]json_value_free done [00:36:07]process_json_proto returns [00:36:07]Send response to host [00:36:07]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139534,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:36:07]free response buf [00:36:07]execute_script done [00:36:07]execute_script returns [00:36:07]free content buf [00:36:07]Sock 10.Close socket [00:36:07]Sock 10.Thread stoped [00:36:11]OFD Sender: No OFD packet to send [00:36:16]OFD Sender: No OFD packet to send [00:36:21]OFD Sender: No OFD packet to send [00:36:26]OFD Sender: No OFD packet to send [00:36:31]OFD Sender: No OFD packet to send [00:36:36]OFD Sender: No OFD packet to send [00:36:41]OFD Sender: No OFD packet to send [00:36:46]OFD Sender: No OFD packet to send [00:36:51]OFD Sender: No OFD packet to send [00:36:56]OFD Sender: No OFD packet to send [00:37:01]OFD Sender: No OFD packet to send [00:37:06]OFD Sender: No OFD packet to send [00:37:11]OFD Sender: No OFD packet to send [00:37:16]OFD Sender: No OFD packet to send [00:37:21]OFD Sender: No OFD packet to send [00:37:26]OFD Sender: No OFD packet to send [00:37:31]OFD Sender: No OFD packet to send [00:37:36]OFD Sender: No OFD packet to send [00:37:41]OFD Sender: No OFD packet to send [00:37:46]OFD Sender: No OFD packet to send [00:37:51]OFD Sender: No OFD packet to send [00:37:56]OFD Sender: No OFD packet to send [00:38:01]OFD Sender: No OFD packet to send [00:38:06]OFD Sender: No OFD packet to send [00:38:11]OFD Sender: No OFD packet to send [00:38:16]OFD Sender: No OFD packet to send [00:38:20]accept exits with 8 [00:38:20]New connection [00:38:20]New thread 3067284836 created [00:38:20]Thread 3067141476 joined [00:38:20]Waiting for new connection... [00:38:20] Sock 8.Parse request [00:38:20]Sock 8.Check first char [00:38:20]Sock 8.First char is OK [00:38:20]request: POST /json_proto HTTP/1.0 [00:38:20]Method: POST [00:38:20]URL: /json_proto [00:38:20]Method is POST - this is cgi request [00:38:20]url: /json_proto [00:38:20]query_string will be loaded in cgi processing [00:38:20]execute_cgi json_proto POST (null) [00:38:20]execute_cgi path=json_proto method=POST [00:38:20]POST find Content-Length [00:38:20]Host: 172.17.50.196:8080 [00:38:20]Content-Length: 621 [00:38:20]Content-Type: application/json [00:38:20] [00:38:20]POST finish read [00:38:20]Found Content-Length = 621 [00:38:20]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335412", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:20]execute_script... [00:38: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 : (3)335412", "tax_sys" : 0, "items" : [ { "code": "48744119", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston Xstyle Dual", "price" : 149.00, "quantity" : 1.000, "sum" : 149.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 149.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [00:38:20]POST & json_proto [00:38:20]process_json_proto [00:38:20]json parsed OK: [00:38:20]protocol is kg_v1.0 [00:38:20]action value=close_receipt [00:38:20]process_action close_receipt [00:38:20]cmd_close_receipt [00:38:20]MH_GetDate [00:38:20]Write to MH i2c: F0 00 00 AC 67 02 [00:38:20]Write i2c OK [00:38:20]MH_I2C_Read... [00:38:20]Read from MH i2c: F0 [00:38:20]MH_I2C_Read... [00:38:20]Read from MH i2c: F0 09 00 [00:38:20]MH_I2C_Read... [00:38:20]Read from MH i2c: F0 09 00 AC 67 00 84 D1 22 67 72 0D 1C 67 EB [00:38:20]GetLastDocTimeStamp 1730334971 [00:38:20]current date 1730335108 [00:38:20]FM_GetShiftState [00:38:20]SAM_PROTO_GetShiftState [00:38:20]wFMCommunicate request_size=4 [00:38:20]MH_SAM_APDU [00:38:20]CAPDU: 80 13 01 00 [00:38:20]Write to MH i2c: E2 08 00 AD 67 80 13 01 00 00 00 00 00 91 [00:38:20]Write i2c OK [00:38:20]MH_I2C_Read... [00:38:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:20]Read from MH i2c: E2 [00:38:20]MH_I2C_Read... [00:38:20]Read from MH i2c: E2 0E 00 [00:38:20]MH_I2C_Read... [00:38:20]Read from MH i2c: E2 0E 00 AD 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 BA [00:38:20]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:38:20]wFMCommunicate OK [00:38:20]SAM_PROTO_GetShiftState done [00:38:20]FM_GetShiftState done [00:38:20]opened in 1730332621 [00:38:20]opened+sec_in_day 1730419021 [00:38:20]quantity*price = 14900 [00:38:20]sum+1 = 14901 [00:38:20]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 149.00 НСП 1% : 1.32 НДС 12% : 15.82 Наличными: 149.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 12 31.10.2024 00:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139535 ФПД: 125981031508278 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T003828&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139535&fm=125981031508278&tin=02508201610067®Number=0000000000091631&sum=14900 0 [00:38:21]StoreToDocumentArchive [00:38:21]shift 557 fd 139535 [00:38:21]save to /storage/0557/doc_00139535 [00:38:21]save last doc name /storage/0557/doc_00139535 to /storage/kkm_last_doc_name [00:38:21]save OK [00:38:21]Clear old archive folders... [00:38:21]ProcessDocumentItem done err = 0, tmpTLVsize=273 [00:38:21]tlvbuf is 013330B0 [00:38:21]SAM_PROTO_ClearQueue [00:38:21]wFMCommunicate request_size=4 [00:38:21]MH_SAM_APDU [00:38:21]CAPDU: 80 09 00 00 [00:38:21]Write to MH i2c: E2 08 00 BA 67 80 09 00 00 00 00 00 00 93 [00:38:21]Write i2c OK [00:38:21]MH_I2C_Read... [00:38:21]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [00:38:21]Read from MH i2c: E2 [00:38:21]MH_I2C_Read... [00:38:21]Read from MH i2c: E2 03 00 [00:38:21]MH_I2C_Read... [00:38:21]Read from MH i2c: E2 03 00 BA 67 00 90 00 95 [00:38:21]RAPDU: 90 00 [00:38:21]wFMCommunicate OK [00:38:21]SAM_PROTO_ClearQueue done [00:38:21]KKMCreateOFDPacket [00:38:21]OFDProtocolAddRootSTLVToBuf [00:38:21]FM_MakeSignedData [00:38:21]FM_MakeSignedData [00:38:21]SAM_PROTO_SignData [00:38:21]wFMCommunicate request_size=4 [00:38:21]MH_SAM_APDU [00:38:21]CAPDU: 80 0D 01 02 [00:38:21]Write to MH i2c: E2 08 00 BB 67 80 0D 01 02 00 00 00 00 9B [00:38:21]Write i2c OK [00:38:21]MH_I2C_Read... [00:38:21]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [00:38:21]Read from MH i2c: E2 [00:38:21]MH_I2C_Read... [00:38:21]Read from MH i2c: E2 03 00 [00:38:21]MH_I2C_Read... [00:38:21]Read from MH i2c: E2 03 00 BB 67 00 90 00 96 [00:38:21]RAPDU: 90 00 [00:38:21]wFMCommunicate OK [00:38:21]wFMCommunicate request_size=255 [00:38:21]MH_SAM_APDU [00:38:21]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 0C 00 00 00 F4 03 04 00 84 D1 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [00:38:21]Write to MH i2c: E2 02 01 BC 67 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 0C 00 00 00 F4 03 04 00 84 D1 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 4A [00:38:21]Write i2c OK [00:38:21]MH_I2C_Read... [00:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:22]Read from MH i2c: E2 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: E2 03 00 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: E2 03 00 BC 67 00 90 00 97 [00:38:22]RAPDU: 90 00 [00:38:22]wFMCommunicate OK [00:38:22]wFMCommunicate request_size=32 [00:38:22]MH_SAM_APDU [00:38:22]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 0F 21 02 00 35 04 06 00 72 94 3E A1 A9 36 [00:38:22]Write to MH i2c: E2 23 00 BD 67 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 0F 21 02 00 35 04 06 00 72 94 3E A1 A9 36 00 00 F9 [00:38:22]Write i2c OK [00:38:22]MH_I2C_Read... [00:38:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [00:38:22]Read from MH i2c: E2 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: E2 03 00 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: E2 03 00 BD 67 00 90 00 98 [00:38:22]RAPDU: 90 00 [00:38:22]wFMCommunicate OK [00:38:22]wFMCommunicate request_size=4 [00:38:22]MH_SAM_APDU [00:38:22]CAPDU: 80 0D 03 02 [00:38:22]Write to MH i2c: E2 08 00 BE 67 80 0D 03 02 00 00 00 00 A0 [00:38:22]Write i2c OK [00:38:22]MH_I2C_Read... [00:38:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [00:38:22]Read from MH i2c: E2 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: E2 0B 00 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: E2 0B 00 BE 67 00 A9 68 F0 5B 6C 74 88 AC 90 00 11 [00:38:22]RAPDU: A9 68 F0 5B 6C 74 88 AC 90 00 [00:38:22]wFMCommunicate OK [00:38:22]SAM_PROTO_SignData done [00:38:22]FM_MakeSignedData done [00:38:22]CreateOFDProtocolMessage [00:38:22]wFMCommunicate request_size=4 [00:38:22]MH_SAM_APDU [00:38:22]CAPDU: 80 11 00 00 [00:38:22]Write to MH i2c: E2 08 00 BF 67 80 11 00 00 00 00 00 00 A0 [00:38:22]Write i2c OK [00:38:22]MH_I2C_Read... [00:38:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:22]Read from MH i2c: E2 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: E2 17 00 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: E2 17 00 BF 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 FB [00:38:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:38:22]wFMCommunicate OK [00:38:22]CreateOFDProtocolMessage done [00:38:22]OFDSenderStorePacket 139535 [00:38:22]StoreOFDPacket docnum=139535 [00:38:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 AF BE 1D 01 2B 52 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 0C 00 00 00 F4 03 04 00 84 D1 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0F 21 02 00 35 04 06 00 72 94 3E A1 A9 36 A9 68 F0 5B 6C 74 88 AC [00:38:22]CheckFolder [00:38:22]dirname=/storage/ofd_packets [00:38:22]CheckFolder done [00:38:22]ProducePacketName [00:38:22]name=ofd_packets/00139535 [00:38:22]NVStorageSaveData ofd_packets/00139535 [00:38:22]File name is /storage/ofd_packets/00139535 [00:38:22]Write 323 bytes [00:38:22]NVStorageSaveData done [00:38:22]OFDSenderStorePacket done [00:38:22]KKMCreateOFDPacket done [00:38:22]NVStorageSaveData kkm_last_timestamp [00:38:22]File name is /storage/kkm_last_timestamp [00:38:22]Write 4 bytes [00:38:22]NVStorageSaveData done [00:38:22]ExternCall_PrintAddStr [00:38:22]wPrintStart [00:38:22]Write to MH i2c: 01 00 00 C0 67 27 [00:38:22]Write i2c OK [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: 01 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: 01 07 00 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: 01 07 00 C0 67 00 00 00 00 00 FF 0F 3C [00:38:22]RasterBufferAndPrint [00:38:22]line Счет N : (3)335412 [00:38:22]line ИНН: 02508201610067 [00:38:22]line Контрольно-Кассовый Чек [00:38:22]line ПРОДАЖА [00:38:22]line Товар: 48744119 [00:38:22]line Сигареты Winston Xstyle Dual [00:38:22]line 1.000 * 149.00 [00:38:22]line = 149.00 [00:38:22]line НДС 12% НСП 1% [00:38:22]line > о реализуемом товаре [00:38:22]line ИТОГО: 149.00 [00:38:22]line НСП 1% : 1.32 [00:38:22]line НДС 12% : 15.82 [00:38:22]line Наличными: 149.00 [00:38:22]line Безнал.: 0.00 [00:38:22]line Место: АЗС № 101 "Партнер Нефть" [00:38:22]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [00:38:22]line СНО: Общий режим [00:38:22]line Чек 12 31.10.2024 00:38 [00:38:22]line Смена: 557 ФФД: 1.0 [00:38:22]line ЗНМ: 0300000081 [00:38:22]line РНМ: 0000000000091631 [00:38:22]line Версия ККМ: 001 [00:38:22]line ФМ: 0000000000874669 [00:38:22]line ФД: 139535 [00:38:22]line ФПД: 125981031508278 [00:38:22]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T003828&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139535&fm=125981031508278&tin=02508201610067®Number=0000000000091631&sum=14900 [00:38:22]line 0 [00:38:22]written 0, free lines is 4095 [00:38:22]OFD Sender: Processing packet 139535 [packets to send 34, broken 33] [00:38:22]ProducePacketName [00:38:22]name=ofd_packets/00139535 [00:38:22]OFD Sender: To server: pG, [00:38:22]CommunicateWithHost lk.salyk.kg:30040 [00:38:22]ConnectInit lk.salyk.kg [00:38:22]Connected sock=10 [00:38:22]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 AF BE 1D 01 2B 52 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 34 31 31 39 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 73 74 79 6C 65 20 44 75 61 6C FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 34 3A 00 00 00 00 13 04 06 00 34 3A 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 34 3A 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 84 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 2E 06 00 00 00 00 07 04 06 00 34 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 0C 00 00 00 F4 03 04 00 84 D1 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 0F 21 02 00 35 04 06 00 72 94 3E A1 A9 36 A9 68 F0 5B 6C 74 88 AC [00:38:22]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6F 16 47 00 86 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 38 37 34 36 36 39 10 04 04 00 0F 21 02 00 F4 03 04 00 33 7D 22 67 B6 04 01 00 00 71 FA 3B D0 98 96 F6 B9 [00:38:22]CommunicateWithHost err = 0 [00:38:22]CheckOFDResponse [00:38:22]1017 (14) - 77093643461234 [00:38:22]1041 (16) - 0000000000874669 [00:38:22]1040 (4) - 139535 [00:38:22]1012 (4) - 30.10.2024 18:38 [00:38:22]1206 (1) - 0 [00:38:22]OFD Sender: Remove packet 139535 [00:38:22]ProducePacketName [00:38:22]name=ofd_packets/00139535 [00:38:22]NVStorageDeleteData [00:38:22]Write to MH i2c: 01 00 00 E8 67 4F [00:38:22]Write i2c OK [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: 01 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: 01 07 00 [00:38:22]MH_I2C_Read... [00:38:22]Read from MH i2c: 01 07 00 E8 67 00 00 00 00 00 02 0D 65 [00:38:22]RasterBufferAndPrint [00:38:22]line [00:38:22]line [00:38:22]line [00:38:22]line [00:38:22]line [00:38:22]written 0, free lines is 3336 [00:38:23]MH_Cut [00:38:23]Write to MH i2c: D1 01 00 EF 67 01 28 [00:38:23]Write i2c OK [00:38:23]MH_I2C_Read... [00:38:23]Read from MH i2c: D1 [00:38:23]MH_I2C_Read... [00:38:23]Read from MH i2c: D1 01 00 [00:38:23]MH_I2C_Read... [00:38:23]Read from MH i2c: D1 01 00 EF 67 00 27 [00:38:23]Write to MH i2c: 01 00 00 F0 67 57 [00:38:23]Write i2c OK [00:38:23]MH_I2C_Read... [00:38:23]OFD Sender: No OFD packet to send [00:38:23]*** Cut start [00:38:23]*** Partial cut [00:38:23]*** CUTSNS_PIN = 1 [00:38:23]*** CUTSNS_PIN = 0 [00:38:23]*** Brake cut motor [00:38:24]Read from MH i2c: 01 [00:38:24]MH_I2C_Read... [00:38:24]*** Stop cut motor [00:38:24]*** Cut end [00:38:24]Read from MH i2c: 01 07 00 [00:38:24]MH_I2C_Read... [00:38:24]Read from MH i2c: 01 07 00 F0 67 00 00 00 00 00 FF 0F 6C [00:38:24]process_action close_receipt done [00:38:24]requested_data is exist [00:38:24]produce_requested_data [00:38:24]requested_item fm.sn is exist - process it [00:38:24]wFMCommunicate request_size=4 [00:38:24]MH_SAM_APDU [00:38:24]CAPDU: 80 11 00 00 [00:38:24]Write to MH i2c: E2 08 00 F1 67 80 11 00 00 00 00 00 00 D2 [00:38:24]Write i2c OK [00:38:24]MH_I2C_Read... [00:38:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [00:38:24]Read from MH i2c: E2 [00:38:24]MH_I2C_Read... [00:38:24]Read from MH i2c: E2 17 00 [00:38:24]MH_I2C_Read... [00:38:24]Read from MH i2c: E2 17 00 F1 67 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2D [00:38:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [00:38:24]wFMCommunicate OK [00:38:24]requested_item fd.num is exist - process it [00:38:24]SAM_PROTO_GetFieldsCounters [00:38:24]wFMCommunicate request_size=4 [00:38:24]MH_SAM_APDU [00:38:24]CAPDU: 80 13 00 00 [00:38:24]Write to MH i2c: E2 08 00 F2 67 80 13 00 00 00 00 00 00 D5 [00:38:24]Write i2c OK [00:38:24]MH_I2C_Read... [00:38:24]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [00:38:24]Read from MH i2c: E2 [00:38:24]MH_I2C_Read... [00:38:24]Read from MH i2c: E2 62 00 [00:38:24]MH_I2C_Read... [00:38:24]Read from MH i2c: E2 62 00 F2 67 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0F 21 02 00 0E 04 04 00 2D 02 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 7E [00:38:24]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 0F 21 02 00 0E 04 04 00 2D 02 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 [00:38:24]wFMCommunicate OK [00:38:24]SAM_PROTO_GetFieldsCounters done [00:38:24]requested_item shift.num is exist - process it [00:38:24]requested_item shift.opened is exist - process it [00:38:24]req_shift_opened [00:38:24]FM_GetShiftState [00:38:24]SAM_PROTO_GetShiftState [00:38:24]wFMCommunicate request_size=4 [00:38:24]MH_SAM_APDU [00:38:24]CAPDU: 80 13 01 00 [00:38:24]Write to MH i2c: E2 08 00 F3 67 80 13 01 00 00 00 00 00 D7 [00:38:24]Write i2c OK [00:38:24]MH_I2C_Read... [00:38:24]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [00:38:24]Read from MH i2c: E2 [00:38:24]MH_I2C_Read... [00:38:24]Read from MH i2c: E2 0E 00 [00:38:24]MH_I2C_Read... [00:38:24]Read from MH i2c: E2 0E 00 F3 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 00 [00:38:24]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [00:38:24]wFMCommunicate OK [00:38:24]SAM_PROTO_GetShiftState done [00:38:24]FM_GetShiftState done [00:38:24]req_shift_opened done [00:38:24]requested_item shift.open_date is exist - process it [00:38:24]req_shift_open_date [00:38:24]req_shift_open_date done [00:38:24]produce_requested_data done [00:38:24]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139535,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [00:38:24]process_action_free close_receipt [00:38:24]json_value_free [00:38:24]json_value_free done [00:38:24]process_json_proto returns [00:38:24]Send response to host [00:38:24]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139535,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [00:38:24]free response buf [00:38:24]execute_script done [00:38:24]execute_script returns [00:38:24]free content buf [00:38:24]Sock 8.Close socket [00:38:24]Sock 8.Thread stoped [00:38:28]OFD Sender: No OFD packet to send [00:38:33]OFD Sender: No OFD packet to send [00:38:38]OFD Sender: No OFD packet to send [00:38:43]OFD Sender: No OFD packet to send [00:38:48]OFD Sender: No OFD packet to send [00:38:53]OFD Sender: No OFD packet to send [00:38:58]OFD Sender: No OFD packet to send [00:39:03]OFD Sender: No OFD packet to send [00:39:08]OFD Sender: No OFD packet to send [00:39:13]OFD Sender: No OFD packet to send [00:39:18]OFD Sender: No OFD packet to send [00:39:23]OFD Sender: No OFD packet to send [00:39:28]OFD Sender: No OFD packet to send [00:39:33]OFD Sender: No OFD packet to send [00:39:38]OFD Sender: No OFD packet to send [00:39:43]OFD Sender: No OFD packet to send [00:39:48]OFD Sender: No OFD packet to send [00:39:53]OFD Sender: No OFD packet to send [00:39:58]OFD Sender: No OFD packet to send [00:40:03]OFD Sender: No OFD packet to send [00:40:08]OFD Sender: No OFD packet to send [00:40:13]OFD Sender: No OFD packet to send [00:40:18]OFD Sender: No OFD packet to send [00:40:23]OFD Sender: No OFD packet to send [00:40:28]OFD Sender: No OFD packet to send [00:40:33]OFD Sender: No OFD packet to send [00:40:38]OFD Sender: No OFD packet to send [00:40:43]OFD Sender: No OFD packet to send [00:40:48]OFD Sender: No OFD packet to send [00:40:53]OFD Sender: No OFD packet to send [00:40:58]OFD Sender: No OFD packet to send [00:41:03]OFD Sender: No OFD packet to send [00:41:08]OFD Sender: No OFD packet to send [00:41:13]OFD Sender: No OFD packet to send [00:41:18]OFD Sender: No OFD packet to send [00:41:23]OFD Sender: No OFD packet to send [00:41:28]OFD Sender: No OFD packet to send [00:41:33]OFD Sender: No OFD packet to send [00:41:38]OFD Sender: No OFD packet to send [00:41:43]OFD Sender: No OFD packet to send [00:41:48]OFD Sender: No OFD packet to send [00:41:53]OFD Sender: No OFD packet to send [00:41:58]OFD Sender: No OFD packet to send [00:42:03]OFD Sender: No OFD packet to send [00:42:08]OFD Sender: No OFD packet to send [00:42:13]OFD Sender: No OFD packet to send [00:42:18]OFD Sender: No OFD packet to send [00:42:23]OFD Sender: No OFD packet to send [00:42:28]OFD Sender: No OFD packet to send [00:42:33]OFD Sender: No OFD packet to send [00:42:38]OFD Sender: No OFD packet to send [00:42:43]OFD Sender: No OFD packet to send [00:42:48]OFD Sender: No OFD packet to send [00:42:53]OFD Sender: No OFD packet to send [00:42:58]OFD Sender: No OFD packet to send [00:43:03]OFD Sender: No OFD packet to send [00:43:08]OFD Sender: No OFD packet to send [00:43:13]OFD Sender: No OFD packet to send [00:43:18]OFD Sender: No OFD packet to send [00:43:23]OFD Sender: No OFD packet to send [00:43:28]OFD Sender: No OFD packet to send [00:43:33]OFD Sender: No OFD packet to send [00:43:38]OFD Sender: No OFD packet to send [00:43:43]OFD Sender: No OFD packet to send [00:43:48]OFD Sender: No OFD packet to send [00:43:53]OFD Sender: No OFD packet to send [00:43:58]OFD Sender: No OFD packet to send [00:44:03]OFD Sender: No OFD packet to send [00:44:08]OFD Sender: No OFD packet to send [00:44:13]OFD Sender: No OFD packet to send [00:44:18]OFD Sender: No OFD packet to send [00:44:23]OFD Sender: No OFD packet to send [00:44:28]OFD Sender: No OFD packet to send [00:44:33]OFD Sender: No OFD packet to send [00:44:38]OFD Sender: No OFD packet to send [00:44:43]OFD Sender: No OFD packet to send [00:44:48]OFD Sender: No OFD packet to send [00:44:53]OFD Sender: No OFD packet to send [00:44:58]OFD Sender: No OFD packet to send [00:45:03]OFD Sender: No OFD packet to send [00:45:08]OFD Sender: No OFD packet to send [00:45:13]OFD Sender: No OFD packet to send [00:45:18]OFD Sender: No OFD packet to send [00:45:23]OFD Sender: No OFD packet to send [00:45:28]OFD Sender: No OFD packet to send [00:45:33]OFD Sender: No OFD packet to send [00:45:38]OFD Sender: No OFD packet to send [00:45:43]OFD Sender: No OFD packet to send [00:45:48]OFD Sender: No OFD packet to send [00:45:53]OFD Sender: No OFD packet to send [00:45:58]OFD Sender: No OFD packet to send [00:46:03]OFD Sender: No OFD packet to send [00:46:08]OFD Sender: No OFD packet to send [00:46:13]OFD Sender: No OFD packet to send [00:46:18]OFD Sender: No OFD packet to send [00:46:23]OFD Sender: No OFD packet to send [00:46:28]OFD Sender: No OFD packet to send [00:46:33]OFD Sender: No OFD packet to send [00:46:38]OFD Sender: No OFD packet to send [00:46:43]OFD Sender: No OFD packet to send [00:46:48]OFD Sender: No OFD packet to send [00:46:53]OFD Sender: No OFD packet to send [00:46:58]OFD Sender: No OFD packet to send [00:47:03]OFD Sender: No OFD packet to send [00:47:08]OFD Sender: No OFD packet to send [00:47:13]OFD Sender: No OFD packet to send [00:47:18]OFD Sender: No OFD packet to send [00:47:23]OFD Sender: No OFD packet to send [00:47:28]OFD Sender: No OFD packet to send [00:47:33]OFD Sender: No OFD packet to send [00:47:38]OFD Sender: No OFD packet to send [00:47:43]OFD Sender: No OFD packet to send [00:47:48]OFD Sender: No OFD packet to send [00:47:53]OFD Sender: No OFD packet to send [00:47:58]OFD Sender: No OFD packet to send [00:48:03]OFD Sender: No OFD packet to send [00:48:08]OFD Sender: No OFD packet to send [00:48:13]OFD Sender: No OFD packet to send [00:48:18]OFD Sender: No OFD packet to send [00:48:23]OFD Sender: No OFD packet to send [00:48:28]OFD Sender: No OFD packet to send [00:48:33]OFD Sender: No OFD packet to send [00:48:38]OFD Sender: No OFD packet to send [00:48:43]OFD Sender: No OFD packet to send [00:48:48]OFD Sender: No OFD packet to send [00:48:53]OFD Sender: No OFD packet to send [00:48:58]OFD Sender: No OFD packet to send [00:49:03]OFD Sender: No OFD packet to send [00:49:08]OFD Sender: No OFD packet to send [00:49:13]OFD Sender: No OFD packet to send [00:49:18]OFD Sender: No OFD packet to send [00:49:23]OFD Sender: No OFD packet to send [00:49:28]OFD Sender: No OFD packet to send [00:49:33]OFD Sender: No OFD packet to send [00:49:38]OFD Sender: No OFD packet to send [00:49:43]OFD Sender: No OFD packet to send [00:49:48]OFD Sender: No OFD packet to send [00:49:53]OFD Sender: No OFD packet to send [00:49:58]OFD Sender: No OFD packet to send [00:50:03]OFD Sender: No OFD packet to send [00:50:08]OFD Sender: No OFD packet to send [00:50:13]OFD Sender: No OFD packet to send [00:50:18]OFD Sender: No OFD packet to send [00:50:23]OFD Sender: No OFD packet to send [00:50:28]OFD Sender: No OFD packet to send [00:50:33]OFD Sender: No OFD packet to send [00:50:38]OFD Sender: No OFD packet to send [00:50:43]OFD Sender: No OFD packet to send [00:50:48]OFD Sender: No OFD packet to send [00:50:53]OFD Sender: No OFD packet to send [00:50:58]OFD Sender: No OFD packet to send [00:51:04]OFD Sender: No OFD packet to send [00:51:09]OFD Sender: No OFD packet to send [00:51:14]OFD Sender: No OFD packet to send [00:51:19]OFD Sender: No OFD packet to send [00:51:24]OFD Sender: No OFD packet to send [00:51:29]OFD Sender: No OFD packet to send [00:51:34]OFD Sender: No OFD packet to send [00:51:39]OFD Sender: No OFD packet to send [00:51:44]OFD Sender: No OFD packet to send [00:51:49]OFD Sender: No OFD packet to send [00:51:54]OFD Sender: No OFD packet to send [00:51:59]OFD Sender: No OFD packet to send [00:52:04]OFD Sender: No OFD packet to send [00:52:09]OFD Sender: No OFD packet to send [00:52:14]OFD Sender: No OFD packet to send [00:52:19]OFD Sender: No OFD packet to send [00:52:24]OFD Sender: No OFD packet to send [00:52:29]OFD Sender: No OFD packet to send [00:52:34]OFD Sender: No OFD packet to send [00:52:39]OFD Sender: No OFD packet to send [00:52:44]OFD Sender: No OFD packet to send [00:52:49]OFD Sender: No OFD packet to send [00:52:54]OFD Sender: No OFD packet to send [00:52:59]OFD Sender: No OFD packet to send [00:53:04]OFD Sender: No OFD packet to send [00:53:09]OFD Sender: No OFD packet to send [00:53:14]OFD Sender: No OFD packet to send [00:53:19]OFD Sender: No OFD packet to send [00:53:24]OFD Sender: No OFD packet to send [00:53:29]OFD Sender: No OFD packet to send [00:53:34]OFD Sender: No OFD packet to send [00:53:39]OFD Sender: No OFD packet to send [00:53:44]OFD Sender: No OFD packet to send [00:53:49]OFD Sender: No OFD packet to send [00:53:54]OFD Sender: No OFD packet to send [00:53:59]OFD Sender: No OFD packet to send [00:54:04]OFD Sender: No OFD packet to send [00:54:09]OFD Sender: No OFD packet to send [00:54:14]OFD Sender: No OFD packet to send [00:54:19]OFD Sender: No OFD packet to send [00:54:24]OFD Sender: No OFD packet to send [00:54:29]OFD Sender: No OFD packet to send [00:54:34]OFD Sender: No OFD packet to send [00:54:39]OFD Sender: No OFD packet to send [00:54:44]OFD Sender: No OFD packet to send [00:54:49]OFD Sender: No OFD packet to send [00:54:54]OFD Sender: No OFD packet to send [00:54:59]OFD Sender: No OFD packet to send [00:55:04]OFD Sender: No OFD packet to send [00:55:09]OFD Sender: No OFD packet to send [00:55:14]OFD Sender: No OFD packet to send [00:55:19]OFD Sender: No OFD packet to send [00:55:24]OFD Sender: No OFD packet to send [00:55:29]OFD Sender: No OFD packet to send [00:55:34]OFD Sender: No OFD packet to send [00:55:39]OFD Sender: No OFD packet to send [00:55:44]OFD Sender: No OFD packet to send [00:55:49]OFD Sender: No OFD packet to send [00:55:54]OFD Sender: No OFD packet to send [00:55:59]OFD Sender: No OFD packet to send [00:56:04]OFD Sender: No OFD packet to send [00:56:09]OFD Sender: No OFD packet to send [00:56:14]OFD Sender: No OFD packet to send [00:56:19]OFD Sender: No OFD packet to send [00:56:24]OFD Sender: No OFD packet to send [00:56:29]OFD Sender: No OFD packet to send [00:56:34]OFD Sender: No OFD packet to send [00:56:39]OFD Sender: No OFD packet to send [00:56:44]OFD Sender: No OFD packet to send [00:56:49]OFD Sender: No OFD packet to send [00:56:54]OFD Sender: No OFD packet to send [00:56:59]OFD Sender: No OFD packet to send [00:57:04]OFD Sender: No OFD packet to send [00:57:09]OFD Sender: No OFD packet to send [00:57:14]OFD Sender: No OFD packet to send [00:57:19]OFD Sender: No OFD packet to send [00:57:24]OFD Sender: No OFD packet to send [00:57:29]OFD Sender: No OFD packet to send [00:57:34]OFD Sender: No OFD packet to send [00:57:39]OFD Sender: No OFD packet to send [00:57:44]OFD Sender: No OFD packet to send [00:57:49]OFD Sender: No OFD packet to send [00:57:54]OFD Sender: No OFD packet to send [00:57:59]OFD Sender: No OFD packet to send [00:58:04]OFD Sender: No OFD packet to send [00:58:09]OFD Sender: No OFD packet to send [00:58:14]OFD Sender: No OFD packet to send [00:58:19]OFD Sender: No OFD packet to send [00:58:24]OFD Sender: No OFD packet to send [00:58:29]OFD Sender: No OFD packet to send [00:58:34]OFD Sender: No OFD packet to send [00:58:39]OFD Sender: No OFD packet to send [00:58:44]OFD Sender: No OFD packet to send [00:58:49]OFD Sender: No OFD packet to send [00:58:54]OFD Sender: No OFD packet to send [00:58:59]OFD Sender: No OFD packet to send [00:59:04]OFD Sender: No OFD packet to send [00:59:09]OFD Sender: No OFD packet to send [00:59:14]OFD Sender: No OFD packet to send [00:59:19]OFD Sender: No OFD packet to send [00:59:24]OFD Sender: No OFD packet to send [00:59:29]OFD Sender: No OFD packet to send [00:59:34]OFD Sender: No OFD packet to send [00:59:39]OFD Sender: No OFD packet to send [00:59:44]OFD Sender: No OFD packet to send [00:59:49]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]accept exits with 9 [01:02:54]New connection [01:02:54]New thread 3067141476 created [01:02:54]Thread 3067284836 joined [01:02:54]Waiting for new connection... [01:02:54] Sock 9.Parse request [01:02:54]Sock 9.Check first char [01:02:54]Sock 9.First char is OK [01:02:54]request: POST /json_proto HTTP/1.0 [01:02:54]Method: POST [01:02:54]URL: /json_proto [01:02:54]Method is POST - this is cgi request [01:02:54]url: /json_proto [01:02:54]query_string will be loaded in cgi processing [01:02:54]execute_cgi json_proto POST (null) [01:02:54]execute_cgi path=json_proto method=POST [01:02:54]POST find Content-Length [01:02:54]Host: 172.17.50.196:8080 [01:02:54]Content-Length: 1014 [01:02:54]Content-Type: application/json [01:02:54] [01:02:54]POST finish read [01:02:54]Found Content-Length = 1014 [01:02:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335413", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:54]execute_script... [01:02: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 : (3)335413", "tax_sys" : 0, "items" : [ { "code": "4700000160792", "name": "\u0421\u043D\u0435\u043A \u041A\u0443\u0440\u0443\u0442 \u043A\u043B\u0430\u0441\u0441\u0438\u0447\u0435\u0441\u043A\u0438\u0439 (\u043A\u0440\u0443\u0433\u043B\u044B\u0439)", "price" : 60.00, "quantity" : 2.000, "sum" : 120.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870002329951", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Lipton IceTea 1\u043B \u0437\u0435\u043B \u0447\u0430\u0439 Regular", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 239.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:02:54]POST & json_proto [01:02:54]process_json_proto [01:02:54]json parsed OK: [01:02:54]protocol is kg_v1.0 [01:02:54]action value=close_receipt [01:02:54]process_action close_receipt [01:02:54]cmd_close_receipt [01:02:54]MH_GetDate [01:02:54]Write to MH i2c: F0 00 00 F4 67 4A [01:02:54]Write i2c OK [01:02:54]MH_I2C_Read... [01:02:54]Read from MH i2c: F0 [01:02:54]MH_I2C_Read... [01:02:54]Read from MH i2c: F0 09 00 [01:02:54]MH_I2C_Read... [01:02:54]Read from MH i2c: F0 09 00 F4 67 00 46 D7 22 67 72 0D 1C 67 FB [01:02:54]GetLastDocTimeStamp 1730335108 [01:02:54]current date 1730336582 [01:02:54]FM_GetShiftState [01:02:54]SAM_PROTO_GetShiftState [01:02:54]wFMCommunicate request_size=4 [01:02:54]MH_SAM_APDU [01:02:54]CAPDU: 80 13 01 00 [01:02:54]Write to MH i2c: E2 08 00 F5 67 80 13 01 00 00 00 00 00 D9 [01:02:54]Write i2c OK [01:02:54]MH_I2C_Read... [01:02:54]OFD Sender: No OFD packet to send [01:02:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:54]Read from MH i2c: E2 [01:02:54]MH_I2C_Read... [01:02:54]Read from MH i2c: E2 0E 00 [01:02:54]MH_I2C_Read... [01:02:54]Read from MH i2c: E2 0E 00 F5 67 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 02 [01:02:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:02:54]wFMCommunicate OK [01:02:54]SAM_PROTO_GetShiftState done [01:02:54]FM_GetShiftState done [01:02:54]opened in 1730332621 [01:02:54]opened+sec_in_day 1730419021 [01:02:54]quantity*price = 12000 [01:02:54]sum+1 = 12001 [01:02:54]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870002329951 Напиток Lipton IceTea 1л зел чай Regular 1.000 * 119.00 = 119.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 239.00 НСП 1% : 2.11 НДС 12% : 25.38 Наличными: 239.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 13 31.10.2024 01:03 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139536 ФПД: 41229638717113 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T010302&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139536&fm=41229638717113&tin=02508201610067®Number=0000000000091631&sum=23900 0 [01:02:55]StoreToDocumentArchive [01:02:55]shift 557 fd 139536 [01:02:55]save to /storage/0557/doc_00139536 [01:02:55]save last doc name /storage/0557/doc_00139536 to /storage/kkm_last_doc_name [01:02:55]save OK [01:02:55]Clear old archive folders... [01:02:55]ProcessDocumentItem done err = 0, tmpTLVsize=429 [01:02:55]tlvbuf is 0112D160 [01:02:55]SAM_PROTO_ClearQueue [01:02:55]wFMCommunicate request_size=4 [01:02:55]MH_SAM_APDU [01:02:55]CAPDU: 80 09 00 00 [01:02:55]Write to MH i2c: E2 08 00 02 68 80 09 00 00 00 00 00 00 DC [01:02:55]Write i2c OK [01:02:55]MH_I2C_Read... [01:02:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:02:55]Read from MH i2c: E2 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: E2 03 00 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: E2 03 00 02 68 00 90 00 DE [01:02:55]RAPDU: 90 00 [01:02:55]wFMCommunicate OK [01:02:55]SAM_PROTO_ClearQueue done [01:02:55]KKMCreateOFDPacket [01:02:55]OFDProtocolAddRootSTLVToBuf [01:02:55]FM_MakeSignedData [01:02:55]FM_MakeSignedData [01:02:55]SAM_PROTO_SignData [01:02:55]wFMCommunicate request_size=4 [01:02:55]MH_SAM_APDU [01:02:55]CAPDU: 80 0D 01 02 [01:02:55]Write to MH i2c: E2 08 00 03 68 80 0D 01 02 00 00 00 00 E4 [01:02:55]Write i2c OK [01:02:55]MH_I2C_Read... [01:02:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:02:55]Read from MH i2c: E2 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: E2 03 00 [01:02:55]MH_I2C_Read... [01:02:55]Read from MH i2c: E2 03 00 03 68 00 90 00 DF [01:02:55]RAPDU: 90 00 [01:02:55]wFMCommunicate OK [01:02:55]wFMCommunicate request_size=255 [01:02:55]MH_SAM_APDU [01:02:55]CAPDU: 80 0D 02 02 FA 03 00 AD 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 [01:02:55]Write to MH i2c: E2 02 01 04 68 80 0D 02 02 FA 00 03 00 AD 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 98 [01:02:55]Write i2c OK [01:02:55]MH_I2C_Read... [01:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:56]Read from MH i2c: E2 [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: E2 03 00 [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: E2 03 00 04 68 00 90 00 E0 [01:02:56]RAPDU: 90 00 [01:02:56]wFMCommunicate OK [01:02:56]wFMCommunicate request_size=188 [01:02:56]MH_SAM_APDU [01:02:56]CAPDU: 80 0D 02 02 B7 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 46 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 21 02 00 35 04 06 00 25 7F 85 F8 4E B9 [01:02:56]Write to MH i2c: E2 BF 00 05 68 80 0D 02 02 B7 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 46 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 21 02 00 35 04 06 00 25 7F 85 F8 4E B9 00 00 C3 [01:02:56]Write i2c OK [01:02:56]MH_I2C_Read... [01:02:56]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:02:56]Read from MH i2c: E2 [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: E2 03 00 [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: E2 03 00 05 68 00 90 00 E1 [01:02:56]RAPDU: 90 00 [01:02:56]wFMCommunicate OK [01:02:56]wFMCommunicate request_size=4 [01:02:56]MH_SAM_APDU [01:02:56]CAPDU: 80 0D 03 02 [01:02:56]Write to MH i2c: E2 08 00 06 68 80 0D 03 02 00 00 00 00 E9 [01:02:56]Write i2c OK [01:02:56]MH_I2C_Read... [01:02:56]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:02:56]Read from MH i2c: E2 [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: E2 0B 00 [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: E2 0B 00 06 68 00 BE B8 73 7F 8D AA 6B D8 90 00 CC [01:02:56]RAPDU: BE B8 73 7F 8D AA 6B D8 90 00 [01:02:56]wFMCommunicate OK [01:02:56]SAM_PROTO_SignData done [01:02:56]FM_MakeSignedData done [01:02:56]CreateOFDProtocolMessage [01:02:56]wFMCommunicate request_size=4 [01:02:56]MH_SAM_APDU [01:02:56]CAPDU: 80 11 00 00 [01:02:56]Write to MH i2c: E2 08 00 07 68 80 11 00 00 00 00 00 00 E9 [01:02:56]Write i2c OK [01:02:56]MH_I2C_Read... [01:02:56]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:56]Read from MH i2c: E2 [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: E2 17 00 [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: E2 17 00 07 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 44 [01:02:56]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:02:56]wFMCommunicate OK [01:02:56]CreateOFDProtocolMessage done [01:02:56]OFDSenderStorePacket 139536 [01:02:56]StoreOFDPacket docnum=139536 [01:02:56]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C1 01 00 00 6F BE B9 01 C4 29 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 46 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 21 02 00 35 04 06 00 25 7F 85 F8 4E B9 BE B8 73 7F 8D AA 6B D8 [01:02:56]CheckFolder [01:02:56]dirname=/storage/ofd_packets [01:02:56]CheckFolder done [01:02:56]ProducePacketName [01:02:56]name=ofd_packets/00139536 [01:02:56]NVStorageSaveData ofd_packets/00139536 [01:02:56]File name is /storage/ofd_packets/00139536 [01:02:56]Write 479 bytes [01:02:56]NVStorageSaveData done [01:02:56]OFDSenderStorePacket done [01:02:56]KKMCreateOFDPacket done [01:02:56]NVStorageSaveData kkm_last_timestamp [01:02:56]File name is /storage/kkm_last_timestamp [01:02:56]Write 4 bytes [01:02:56]NVStorageSaveData done [01:02:56]ExternCall_PrintAddStr [01:02:56]wPrintStart [01:02:56]Write to MH i2c: 01 00 00 08 68 70 [01:02:56]Write i2c OK [01:02:56]MH_I2C_Read... [01:02:56]Read from MH i2c: 01 [01:02:56]MH_I2C_Read... [01:02:56]OFD Sender: Processing packet 139536 [packets to send 34, broken 33] [01:02:56]Read from MH i2c: ProducePacketName [01:02:56]01 name=ofd_packets/00139536 [01:02:56]07 00 [01:02:56]OFD Sender: To server: pG, [01:02:56]MH_I2C_Read... [01:02:56]CommunicateWithHost lk.salyk.kg:30040 [01:02:56]ConnectInit lk.salyk.kg [01:02:56]Read from MH i2c: 01 07 00 08 68 00 00 00 00 00 FF 0F 85 [01:02:56]RasterBufferAndPrint [01:02:56]line Счет N : (3)335413 [01:02:56]line ИНН: 02508201610067 [01:02:56]line Контрольно-Кассовый Чек [01:02:56]line ПРОДАЖА [01:02:56]line Товар: 4700000160792 [01:02:56]line Снек Курут классический (круглый) [01:02:56]line 2.000 * 60.00 [01:02:56]line = 120.00 [01:02:56]line НДС 12% НСП 1% [01:02:56]line > о реализуемом товаре [01:02:56]line Товар: 4870002329951 [01:02:56]line Напиток Lipton IceTea 1л зел чай Regular [01:02:56]line 1.000 * 119.00 [01:02:56]line = 119.00 [01:02:56]line НДС 12% НСП 1% [01:02:56]line > о реализуемом товаре [01:02:56]line ИТОГО: 239.00 [01:02:56]line НСП 1% : 2.11 [01:02:56]line НДС 12% : 25.38 [01:02:56]line Наличными: 239.00 [01:02:56]line Безнал.: 0.00 [01:02:56]line Место: АЗС № 101 "Партнер Нефть" [01:02:56]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:02:56]line СНО: Общий режим [01:02:56]line Чек 13 31.10.2024 01:03 [01:02:56]line Смена: 557 ФФД: 1.0 [01:02:56]line ЗНМ: 0300000081 [01:02:56]line РНМ: 0000000000091631 [01:02:56]line Версия ККМ: 001 [01:02:56]line ФМ: 0000000000874669 [01:02:56]line ФД: 139536 [01:02:56]line ФПД: 41229638717113 [01:02:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T010302&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139536&fm=41229638717113&tin=02508201610067®Number=0000000000091631&sum=23900 [01:02:56]line 0 [01:02:56]written 0, free lines is 4095 [01:02:56]Connected sock=10 [01:02:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 C1 01 00 00 6F BE B9 01 C4 29 5A 03 01 00 03 00 AD 01 1E 04 01 00 01 23 04 81 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 37 39 32 06 04 3D 00 D0 A1 D0 BD D0 B5 D0 BA 20 D0 9A D1 83 D1 80 D1 83 D1 82 20 D0 BA D0 BB D0 B0 D1 81 D1 81 D0 B8 D1 87 D0 B5 D1 81 D0 BA D0 B8 D0 B9 20 28 D0 BA D1 80 D1 83 D0 B3 D0 BB D1 8B D0 B9 29 FF 03 08 00 03 D0 07 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 E0 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 38 37 30 30 30 32 33 32 39 39 35 31 06 04 36 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 4C 69 70 74 6F 6E 20 49 63 65 54 65 61 20 31 D0 BB 20 D0 B7 D0 B5 D0 BB 20 D1 87 D0 B0 D0 B9 20 52 65 67 75 6C 61 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 5C 5D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 D3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 EA 09 00 00 00 00 07 04 06 00 5C 5D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0D 00 00 00 F4 03 04 00 46 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 21 02 00 35 04 06 00 25 7F 85 F8 4E B9 BE B8 73 7F 8D AA 6B D8 [01:02:57]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2E 5E 47 00 35 F7 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 10 21 02 00 F4 03 04 00 F5 82 22 67 B6 04 01 00 00 33 93 3C 91 CC 2D 79 49 [01:02:57]CommunicateWithHost err = 0 [01:02:57]CheckOFDResponse [01:02:57]1017 (14) - 77093643461234 [01:02:57]1041 (16) - 0000000000874669 [01:02:57]1040 (4) - 139536 [01:02:57]1012 (4) - 30.10.2024 19:03 [01:02:57]1206 (1) - 0 [01:02:57]OFD Sender: Remove packet 139536 [01:02:57]ProducePacketName [01:02:57]name=ofd_packets/00139536 [01:02:57]NVStorageDeleteData [01:02:57]Write to MH i2c: 01 00 00 38 68 A0 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 07 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: 01 07 00 38 68 00 00 00 00 00 B1 0C 64 [01:02:57]RasterBufferAndPrint [01:02:57]line [01:02:57]line [01:02:57]line [01:02:57]line [01:02:57]line [01:02:57]written 0, free lines is 3258 [01:02:57]MH_Cut [01:02:57]Write to MH i2c: D1 01 00 3F 68 01 79 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: D1 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: D1 01 00 [01:02:57]MH_I2C_Read... [01:02:57]Read from MH i2c: D1 01 00 3F 68 00 78 [01:02:57]Write to MH i2c: 01 00 00 40 68 A8 [01:02:57]Write i2c OK [01:02:57]MH_I2C_Read... [01:02:57]OFD Sender: No OFD packet to send [01:02:58]*** Cut start [01:02:58]*** Partial cut [01:02:58]*** CUTSNS_PIN = 1 [01:02:58]*** CUTSNS_PIN = 0 [01:02:58]*** Brake cut motor [01:02:58]Read from MH i2c: 01 [01:02:58]MH_I2C_Read... [01:02:58]*** Stop cut motor [01:02:58]*** Cut end [01:02:58]Read from MH i2c: 01 07 00 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: 01 07 00 40 68 00 00 00 00 00 FF 0F BD [01:02:58]process_action close_receipt done [01:02:58]requested_data is exist [01:02:58]produce_requested_data [01:02:58]requested_item fm.sn is exist - process it [01:02:58]wFMCommunicate request_size=4 [01:02:58]MH_SAM_APDU [01:02:58]CAPDU: 80 11 00 00 [01:02:58]Write to MH i2c: E2 08 00 41 68 80 11 00 00 00 00 00 00 23 [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:02:58]Read from MH i2c: E2 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: E2 17 00 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: E2 17 00 41 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 7E [01:02:58]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:02:58]wFMCommunicate OK [01:02:58]requested_item fd.num is exist - process it [01:02:58]SAM_PROTO_GetFieldsCounters [01:02:58]wFMCommunicate request_size=4 [01:02:58]MH_SAM_APDU [01:02:58]CAPDU: 80 13 00 00 [01:02:58]Write to MH i2c: E2 08 00 42 68 80 13 00 00 00 00 00 00 26 [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:02:58]Read from MH i2c: E2 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: E2 62 00 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: E2 62 00 42 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 10 21 02 00 0E 04 04 00 2D 02 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 D3 [01:02:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 10 21 02 00 0E 04 04 00 2D 02 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:02:58]wFMCommunicate OK [01:02:58]SAM_PROTO_GetFieldsCounters done [01:02:58]requested_item shift.num is exist - process it [01:02:58]requested_item shift.opened is exist - process it [01:02:58]req_shift_opened [01:02:58]FM_GetShiftState [01:02:58]SAM_PROTO_GetShiftState [01:02:58]wFMCommunicate request_size=4 [01:02:58]MH_SAM_APDU [01:02:58]CAPDU: 80 13 01 00 [01:02:58]Write to MH i2c: E2 08 00 43 68 80 13 01 00 00 00 00 00 28 [01:02:58]Write i2c OK [01:02:58]MH_I2C_Read... [01:02:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:02:58]Read from MH i2c: E2 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: E2 0E 00 [01:02:58]MH_I2C_Read... [01:02:58]Read from MH i2c: E2 0E 00 43 68 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 51 [01:02:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:02:58]wFMCommunicate OK [01:02:58]SAM_PROTO_GetShiftState done [01:02:58]FM_GetShiftState done [01:02:58]req_shift_opened done [01:02:58]requested_item shift.open_date is exist - process it [01:02:58]req_shift_open_date [01:02:58]req_shift_open_date done [01:02:58]produce_requested_data done [01:02:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139536,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:02:58]process_action_free close_receipt [01:02:58]json_value_free [01:02:58]json_value_free done [01:02:58]process_json_proto returns [01:02:58]Send response to host [01:02:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139536,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:02:58]free response buf [01:02:58]execute_script done [01:02:58]execute_script returns [01:02:58]free content buf [01:02:58]Sock 9.Close socket [01:02:58]Sock 9.Thread stoped [01:03:02]OFD Sender: No OFD packet to send [01:03:07]OFD Sender: No OFD packet to send [01:03:12]OFD Sender: No OFD packet to send [01:03:17]OFD Sender: No OFD packet to send [01:03:22]OFD Sender: No OFD packet to send [01:03:27]OFD Sender: No OFD packet to send [01:03:32]OFD Sender: No OFD packet to send [01:03:37]OFD Sender: No OFD packet to send [01:03:42]OFD Sender: No OFD packet to send [01:03:47]OFD Sender: No OFD packet to send [01:03:52]OFD Sender: No OFD packet to send [01:03:57]OFD Sender: No OFD packet to send [01:04:02]OFD Sender: No OFD packet to send [01:04:07]OFD Sender: No OFD packet to send [01:04:12]OFD Sender: No OFD packet to send [01:04:17]OFD Sender: No OFD packet to send [01:04:22]OFD Sender: No OFD packet to send [01:04:27]OFD Sender: No OFD packet to send [01:04:32]OFD Sender: No OFD packet to send [01:04:37]OFD Sender: No OFD packet to send [01:04:42]OFD Sender: No OFD packet to send [01:04:47]OFD Sender: No OFD packet to send [01:04:52]OFD Sender: No OFD packet to send [01:04:57]accept exits with 8 [01:04:57]New connection [01:04:57]New thread 3067284836 created [01:04:57]Thread 3067141476 joined [01:04:57]Waiting for new connection... [01:04:57] Sock 8.Parse request [01:04:57]Sock 8.Check first char [01:04:57]Sock 8.First char is OK [01:04:57]request: POST /json_proto HTTP/1.0 [01:04:57]Method: POST [01:04:57]URL: /json_proto [01:04:57]Method is POST - this is cgi request [01:04:57]url: /json_proto [01:04:57]query_string will be loaded in cgi processing [01:04:57]execute_cgi json_proto POST (null) [01:04:57]execute_cgi path=json_proto method=POST [01:04:57]POST find Content-Length [01:04:57]Host: 172.17.50.196:8080 [01:04:57]Content-Length: 641 [01:04:57]Content-Type: application/json [01:04:57] [01:04:57]POST finish read [01:04:57]Found Content-Length = 641 [01:04:57]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335414", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:04:57]execute_script... [01:04: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 : (3)335414", "tax_sys" : 0, "items" : [ { "code": "4700001060169", "name": "\u041A\u043E\u043D\u044C\u044F\u043A \u0411\u0438\u0448\u043A\u0435\u043A 0,2\u043B", "price" : 330.00, "quantity" : 1.000, "sum" : 330.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 330.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:04:57]POST & json_proto [01:04:57]process_json_proto [01:04:57]json parsed OK: [01:04:57]protocol is kg_v1.0 [01:04:57]action value=close_receipt [01:04:57]process_action close_receipt [01:04:57]cmd_close_receipt [01:04:57]MH_GetDate [01:04:57]Write to MH i2c: F0 00 00 44 68 9B [01:04:57]Write i2c OK [01:04:57]MH_I2C_Read... [01:04:57]Read from MH i2c: F0 [01:04:57]MH_I2C_Read... [01:04:57]Read from MH i2c: F0 09 00 [01:04:57]MH_I2C_Read... [01:04:57]Read from MH i2c: F0 09 00 44 68 00 C1 D7 22 67 72 0D 1C 67 C7 [01:04:57]GetLastDocTimeStamp 1730336582 [01:04:57]current date 1730336705 [01:04:57]FM_GetShiftState [01:04:57]SAM_PROTO_GetShiftState [01:04:57]wFMCommunicate request_size=4 [01:04:57]MH_SAM_APDU [01:04:57]CAPDU: 80 13 01 00 [01:04:57]Write to MH i2c: E2 08 00 45 68 80 13 01 00 00 00 00 00 2A [01:04:57]Write i2c OK [01:04:57]MH_I2C_Read... [01:04:57]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:04:57]Read from MH i2c: E2 [01:04:57]MH_I2C_Read... [01:04:57]Read from MH i2c: E2 0E 00 [01:04:57]MH_I2C_Read... [01:04:57]Read from MH i2c: E2 0E 00 45 68 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 53 [01:04:57]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:04:57]wFMCommunicate OK [01:04:57]SAM_PROTO_GetShiftState done [01:04:57]FM_GetShiftState done [01:04:57]opened in 1730332621 [01:04:57]opened+sec_in_day 1730419021 [01:04:57]quantity*price = 33000 [01:04:57]sum+1 = 33001 [01:04:57]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 330.00 НСП 1% : 2.92 НДС 12% : 35.04 Наличными: 330.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 14 31.10.2024 01:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139537 ФПД: 252088851165681 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T010505&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139537&fm=252088851165681&tin=02508201610067®Number=0000000000091631&sum=33000 0 [01:04:58]StoreToDocumentArchive [01:04:58]shift 557 fd 139537 [01:04:58]save to /storage/0557/doc_00139537 [01:04:58]save last doc name /storage/0557/doc_00139537 to /storage/kkm_last_doc_name [01:04:58]save OK [01:04:58]Clear old archive folders... [01:04:58]ProcessDocumentItem done err = 0, tmpTLVsize=273 [01:04:58]tlvbuf is 01113030 [01:04:58]SAM_PROTO_ClearQueue [01:04:58]wFMCommunicate request_size=4 [01:04:58]MH_SAM_APDU [01:04:58]CAPDU: 80 09 00 00 [01:04:58]Write to MH i2c: E2 08 00 52 68 80 09 00 00 00 00 00 00 2C [01:04:58]Write i2c OK [01:04:58]MH_I2C_Read... [01:04:58]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:04:58]Read from MH i2c: E2 [01:04:58]MH_I2C_Read... [01:04:58]Read from MH i2c: E2 03 00 [01:04:58]MH_I2C_Read... [01:04:58]Read from MH i2c: E2 03 00 52 68 00 90 00 2E [01:04:58]RAPDU: 90 00 [01:04:58]wFMCommunicate OK [01:04:58]SAM_PROTO_ClearQueue done [01:04:58]KKMCreateOFDPacket [01:04:58]OFDProtocolAddRootSTLVToBuf [01:04:58]FM_MakeSignedData [01:04:58]FM_MakeSignedData [01:04:58]SAM_PROTO_SignData [01:04:58]wFMCommunicate request_size=4 [01:04:58]MH_SAM_APDU [01:04:58]CAPDU: 80 0D 01 02 [01:04:58]Write to MH i2c: E2 08 00 53 68 80 0D 01 02 00 00 00 00 34 [01:04:58]Write i2c OK [01:04:58]MH_I2C_Read... [01:04:58]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:04:58]Read from MH i2c: E2 [01:04:58]MH_I2C_Read... [01:04:58]Read from MH i2c: E2 03 00 [01:04:58]MH_I2C_Read... [01:04:58]Read from MH i2c: E2 03 00 53 68 00 90 00 2F [01:04:58]RAPDU: 90 00 [01:04:58]wFMCommunicate OK [01:04:58]wFMCommunicate request_size=255 [01:04:58]MH_SAM_APDU [01:04:58]CAPDU: 80 0D 02 02 FA 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C1 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 [01:04:58]Write to MH i2c: E2 02 01 54 68 80 0D 02 02 FA 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C1 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 00 00 44 [01:04:58]Write i2c OK [01:04:58]MH_I2C_Read... [01:04:58]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:58]Read from MH i2c: E2 [01:04:58]MH_I2C_Read... [01:04:58]Read from MH i2c: E2 03 00 [01:04:58]MH_I2C_Read... [01:04:58]Read from MH i2c: E2 03 00 54 68 00 90 00 30 [01:04:58]RAPDU: 90 00 [01:04:58]wFMCommunicate OK [01:04:58]wFMCommunicate request_size=32 [01:04:58]MH_SAM_APDU [01:04:58]CAPDU: 80 0D 02 02 1B 30 30 30 38 37 34 36 36 39 10 04 04 00 11 21 02 00 35 04 06 00 E5 46 02 6C F1 F1 [01:04:58]Write to MH i2c: E2 23 00 55 68 80 0D 02 02 1B 00 30 30 30 38 37 34 36 36 39 10 04 04 00 11 21 02 00 35 04 06 00 E5 46 02 6C F1 F1 00 00 4B [01:04:58]Write i2c OK [01:04:58]MH_I2C_Read... [01:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:04:59]Read from MH i2c: E2 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: E2 03 00 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: E2 03 00 55 68 00 90 00 31 [01:04:59]RAPDU: 90 00 [01:04:59]wFMCommunicate OK [01:04:59]wFMCommunicate request_size=4 [01:04:59]MH_SAM_APDU [01:04:59]CAPDU: 80 0D 03 02 [01:04:59]Write to MH i2c: E2 08 00 56 68 80 0D 03 02 00 00 00 00 39 [01:04:59]Write i2c OK [01:04:59]MH_I2C_Read... [01:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:04:59]Read from MH i2c: E2 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: E2 0B 00 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: E2 0B 00 56 68 00 01 65 4C A4 2B 11 0F 39 90 00 14 [01:04:59]RAPDU: 01 65 4C A4 2B 11 0F 39 90 00 [01:04:59]wFMCommunicate OK [01:04:59]SAM_PROTO_SignData done [01:04:59]FM_MakeSignedData done [01:04:59]CreateOFDProtocolMessage [01:04:59]wFMCommunicate request_size=4 [01:04:59]MH_SAM_APDU [01:04:59]CAPDU: 80 11 00 00 [01:04:59]Write to MH i2c: E2 08 00 57 68 80 11 00 00 00 00 00 00 39 [01:04:59]Write i2c OK [01:04:59]MH_I2C_Read... [01:04:59]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:04:59]Read from MH i2c: E2 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: E2 17 00 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: E2 17 00 57 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 94 [01:04:59]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:04:59]wFMCommunicate OK [01:04:59]CreateOFDProtocolMessage done [01:04:59]OFDSenderStorePacket 139537 [01:04:59]StoreOFDPacket docnum=139537 [01:04:59]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 AE A1 1D 01 82 00 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C1 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 11 21 02 00 35 04 06 00 E5 46 02 6C F1 F1 01 65 4C A4 2B 11 0F 39 [01:04:59]CheckFolder [01:04:59]dirname=/storage/ofd_packets [01:04:59]CheckFolder done [01:04:59]ProducePacketName [01:04:59]name=ofd_packets/00139537 [01:04:59]NVStorageSaveData ofd_packets/00139537 [01:04:59]File name is /storage/ofd_packets/00139537 [01:04:59]Write 323 bytes [01:04:59]NVStorageSaveData done [01:04:59]OFDSenderStorePacket done [01:04:59]KKMCreateOFDPacket done [01:04:59]NVStorageSaveData kkm_last_timestamp [01:04:59]File name is /storage/kkm_last_timestamp [01:04:59]Write 4 bytes [01:04:59]NVStorageSaveData done [01:04:59]ExternCall_PrintAddStr [01:04:59]wPrintStart [01:04:59]Write to MH i2c: 01 00 00 58 68 C0 [01:04:59]OFD Sender: Processing packet 139537 [packets to send 34, broken 33] [01:04:59]ProducePacketName [01:04:59]name=ofd_packets/00139537 [01:04:59]OFD Sender: To server: pG, [01:04:59]CommunicateWithHost lk.salyk.kg:30040 [01:04:59]ConnectInit lk.salyk.kg [01:04:59]Write i2c OK [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: 01 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: 01 07 00 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: 01 07 00 58 68 00 00 00 00 00 FF 0F D5 [01:04:59]RasterBufferAndPrint [01:04:59]line Счет N : (3)335414 [01:04:59]line ИНН: 02508201610067 [01:04:59]line Контрольно-Кассовый Чек [01:04:59]line ПРОДАЖА [01:04:59]line Товар: 4700001060169 [01:04:59]line Коньяк Бишкек 0,2л [01:04:59]line 1.000 * 330.00 [01:04:59]line = 330.00 [01:04:59]line НДС 12% НСП 1% [01:04:59]line > о реализуемом товаре [01:04:59]line ИТОГО: 330.00 [01:04:59]line НСП 1% : 2.92 [01:04:59]line НДС 12% : 35.04 [01:04:59]line Наличными: 330.00 [01:04:59]line Безнал.: 0.00 [01:04:59]line Место: АЗС № 101 "Партнер Нефть" [01:04:59]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:04:59]line СНО: Общий режим [01:04:59]line Чек 14 31.10.2024 01:05 [01:04:59]line Смена: 557 ФФД: 1.0 [01:04:59]line ЗНМ: 0300000081 [01:04:59]line РНМ: 0000000000091631 [01:04:59]line Версия ККМ: 001 [01:04:59]line ФМ: 0000000000874669 [01:04:59]line ФД: 139537 [01:04:59]line ФПД: 252088851165681 [01:04:59]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T010505&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139537&fm=252088851165681&tin=02508201610067®Number=0000000000091631&sum=33000 [01:04:59]line 0 [01:04:59]Connected sock=11 [01:04:59]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 25 01 00 00 AE A1 1D 01 82 00 5A 03 01 00 03 00 11 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 37 30 30 30 30 31 30 36 30 31 36 39 06 04 1F 00 D0 9A D0 BE D0 BD D1 8C D1 8F D0 BA 20 D0 91 D0 B8 D1 88 D0 BA D0 B5 D0 BA 20 30 2C 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 80 00 00 00 00 13 04 06 00 E8 80 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 80 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 24 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 B0 0D 00 00 00 00 07 04 06 00 E8 80 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0E 00 00 00 F4 03 04 00 C1 D7 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 11 21 02 00 35 04 06 00 E5 46 02 6C F1 F1 01 65 4C A4 2B 11 0F 39 [01:04:59]written 0, free lines is 4095 [01:04:59]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 2F BD 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 38 37 34 36 36 39 10 04 04 00 11 21 02 00 F4 03 04 00 70 83 22 67 B6 04 01 00 00 98 3E 5D BC 9B DC 23 AC [01:04:59]CommunicateWithHost err = 0 [01:04:59]CheckOFDResponse [01:04:59]1017 (14) - 77093643461234 [01:04:59]1041 (16) - 0000000000874669 [01:04:59]1040 (4) - 139537 [01:04:59]1012 (4) - 30.10.2024 19:05 [01:04:59]1206 (1) - 0 [01:04:59]OFD Sender: Remove packet 139537 [01:04:59]ProducePacketName [01:04:59]name=ofd_packets/00139537 [01:04:59]NVStorageDeleteData [01:04:59]Write to MH i2c: 01 00 00 80 68 E8 [01:04:59]Write i2c OK [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: 01 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: 01 07 00 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: 01 07 00 80 68 00 00 00 00 00 0E 0D 0A [01:04:59]RasterBufferAndPrint [01:04:59]line [01:04:59]line [01:04:59]line [01:04:59]line [01:04:59]line [01:04:59]written 0, free lines is 3351 [01:04:59]MH_Cut [01:04:59]Write to MH i2c: D1 01 00 87 68 01 C1 [01:04:59]Write i2c OK [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: D1 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: D1 01 00 [01:04:59]MH_I2C_Read... [01:04:59]Read from MH i2c: D1 01 00 87 68 00 C0 [01:04:59]Write to MH i2c: 01 00 00 88 68 F0 [01:04:59]Write i2c OK [01:04:59]MH_I2C_Read... [01:05:00]OFD Sender: No OFD packet to send [01:05:00]*** Cut start [01:05:00]*** Partial cut [01:05:00]*** CUTSNS_PIN = 1 [01:05:00]*** CUTSNS_PIN = 0 [01:05:00]*** Brake cut motor [01:05:01]Read from MH i2c: 01 [01:05:01]MH_I2C_Read... [01:05:01]*** Stop cut motor [01:05:01]*** Cut end [01:05:01]Read from MH i2c: 01 07 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: 01 07 00 88 68 00 00 00 00 00 FF 0F 05 [01:05:01]process_action close_receipt done [01:05:01]requested_data is exist [01:05:01]produce_requested_data [01:05:01]requested_item fm.sn is exist - process it [01:05:01]wFMCommunicate request_size=4 [01:05:01]MH_SAM_APDU [01:05:01]CAPDU: 80 11 00 00 [01:05:01]Write to MH i2c: E2 08 00 89 68 80 11 00 00 00 00 00 00 6B [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:05:01]Read from MH i2c: E2 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 17 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 17 00 89 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 C6 [01:05:01]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:05:01]wFMCommunicate OK [01:05:01]requested_item fd.num is exist - process it [01:05:01]SAM_PROTO_GetFieldsCounters [01:05:01]wFMCommunicate request_size=4 [01:05:01]MH_SAM_APDU [01:05:01]CAPDU: 80 13 00 00 [01:05:01]Write to MH i2c: E2 08 00 8A 68 80 13 00 00 00 00 00 00 6E [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:05:01]Read from MH i2c: E2 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 62 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 62 00 8A 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 11 21 02 00 0E 04 04 00 2D 02 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 1F [01:05:01]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 11 21 02 00 0E 04 04 00 2D 02 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:05:01]wFMCommunicate OK [01:05:01]SAM_PROTO_GetFieldsCounters done [01:05:01]requested_item shift.num is exist - process it [01:05:01]requested_item shift.opened is exist - process it [01:05:01]req_shift_opened [01:05:01]FM_GetShiftState [01:05:01]SAM_PROTO_GetShiftState [01:05:01]wFMCommunicate request_size=4 [01:05:01]MH_SAM_APDU [01:05:01]CAPDU: 80 13 01 00 [01:05:01]Write to MH i2c: E2 08 00 8B 68 80 13 01 00 00 00 00 00 70 [01:05:01]Write i2c OK [01:05:01]MH_I2C_Read... [01:05:01]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:05:01]Read from MH i2c: E2 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 0E 00 [01:05:01]MH_I2C_Read... [01:05:01]Read from MH i2c: E2 0E 00 8B 68 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 99 [01:05:01]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:05:01]wFMCommunicate OK [01:05:01]SAM_PROTO_GetShiftState done [01:05:01]FM_GetShiftState done [01:05:01]req_shift_opened done [01:05:01]requested_item shift.open_date is exist - process it [01:05:01]req_shift_open_date [01:05:01]req_shift_open_date done [01:05:01]produce_requested_data done [01:05:01]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139537,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:05:01]process_action_free close_receipt [01:05:01]json_value_free [01:05:01]json_value_free done [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:30]OFD Sender: No OFD packet to send [01:07:35]OFD Sender: No OFD packet to send [01:07:40]OFD Sender: No OFD packet to send [01:07:45]OFD Sender: No OFD packet to send [01:07:50]OFD Sender: No OFD packet to send [01:07:55]OFD Sender: No OFD packet to send [01:08:00]OFD Sender: No OFD packet to send [01:08:05]OFD Sender: No OFD packet to send [01:08:10]OFD Sender: No OFD packet to send [01:08:15]OFD Sender: No OFD packet to send [01:08:20]OFD Sender: No OFD packet to send [01:08:25]OFD Sender: No OFD packet to send [01:08:30]OFD Sender: No OFD packet to send [01:08:35]OFD Sender: No OFD packet to send [01:08:40]OFD Sender: No OFD packet to send [01:08:45]OFD Sender: No OFD packet to send [01:08:50]OFD Sender: No OFD packet to send [01:08:55]OFD Sender: No OFD packet to send [01:09:00]OFD Sender: No OFD packet to send [01:09:05]OFD Sender: No OFD packet to send [01:09:10]ConnectInit Can't connect to host [01:09:10]OFD Sender: No OFD packet to send [01:09:15]OFD Sender: No OFD packet to send [01:09:20]OFD Sender: No OFD packet to send [01:09:25]OFD Sender: No OFD packet to send [01:09:30]OFD Sender: No OFD packet to send [01:09:35]OFD Sender: No OFD packet to send [01:09:40]OFD Sender: No OFD packet to send [01:09:45]OFD Sender: No OFD packet to send [01:09:50]OFD Sender: No OFD packet to send [01:09:55]OFD Sender: No OFD packet to send [01:10:00]OFD Sender: No OFD packet to send [01:10:05]OFD Sender: No OFD packet to send [01:10:10]OFD Sender: No OFD packet to send [01:10:15]OFD Sender: No OFD packet to send [01:10:20]OFD Sender: No OFD packet to send [01:10:25]OFD Sender: No OFD packet to send [01:10:30]OFD Sender: No OFD packet to send [01:10:35]OFD Sender: No OFD packet to send [01:10:40]OFD Sender: No OFD packet to send [01:10:45]OFD Sender: No OFD packet to send [01:10:50]OFD Sender: No OFD packet to send [01:10:55]OFD Sender: No OFD packet to send [01:11:00]OFD Sender: No OFD packet to send [01:11:05]OFD Sender: No OFD packet to send [01:11:10]OFD Sender: No OFD packet to send [01:11:15]OFD Sender: No OFD packet to send [01:11:20]OFD Sender: No OFD packet to send [01:11:25]OFD Sender: No OFD packet to send [01:11:30]OFD Sender: No OFD packet to send [01:11:35]OFD Sender: No OFD packet to send [01:11:40]OFD Sender: No OFD packet to send [01:11:45]OFD Sender: No OFD packet to send [01:11:50]OFD Sender: No OFD packet to send [01:11:55]OFD Sender: No OFD packet to send [01:12:00]OFD Sender: No OFD packet to send [01:12:05]OFD Sender: No OFD packet to send [01:12:10]OFD Sender: No OFD packet to send [01:12:15]OFD Sender: No OFD packet to send [01:12:20]OFD Sender: No OFD packet to send [01:12:25]OFD Sender: No OFD packet to send [01:12:30]OFD Sender: No OFD packet to send [01:12:35]OFD Sender: No OFD packet to send [01:12:40]OFD Sender: No OFD packet to send [01:12:45]OFD Sender: No OFD packet to send [01:12:50]OFD Sender: No OFD packet to send [01:12:55]OFD Sender: No OFD packet to send [01:13:00]OFD Sender: No OFD packet to send [01:13:05]OFD Sender: No OFD packet to send [01:13:10]OFD Sender: No OFD packet to send [01:13:15]OFD Sender: No OFD packet to send [01:13:20]OFD Sender: No OFD packet to send [01:13:25]OFD Sender: No OFD packet to send [01:13:30]OFD Sender: No OFD packet to send [01:13:35]OFD Sender: No OFD packet to send [01:13:40]OFD Sender: No OFD packet to send [01:13:45]OFD Sender: No OFD packet to send [01:13:50]OFD Sender: No OFD packet to send [01:13:55]OFD Sender: No OFD packet to send [01:14:00]OFD Sender: No OFD packet to send [01:14:05]OFD Sender: No OFD packet to send [01:14:10]OFD Sender: No OFD packet to send [01:14:15]OFD Sender: No OFD packet to send [01:14:20]OFD Sender: No OFD packet to send [01:14:25]OFD Sender: No OFD packet to send [01:14:30]OFD Sender: No OFD packet to send [01:14:35]OFD Sender: No OFD packet to send [01:14:40]OFD Sender: No OFD packet to send [01:14:45]OFD Sender: No OFD packet to send [01:14:50]OFD Sender: No OFD packet to send [01:14:55]OFD Sender: No OFD packet to send [01:15:00]OFD Sender: No OFD packet to send [01:15:05]OFD Sender: No OFD packet to send [01:15:10]OFD Sender: No OFD packet to send [01:15:15]OFD Sender: No OFD packet to send [01:15:20]OFD Sender: No OFD packet to send [01:15:25]OFD Sender: No OFD packet to send [01:15:30]OFD Sender: No OFD packet to send [01:15:35]OFD Sender: No OFD packet to send [01:15:40]OFD Sender: No OFD packet to send [01:15:45]OFD Sender: No OFD packet to send [01:15:50]accept exits with 10 [01:15:50]New connection [01:15:50]New thread 3067141476 created [01:15:50]Thread 3067284836 joined [01:15:50]Waiting for new connection... [01:15:50] Sock 10.Parse request [01:15:50]Sock 10.Check first char [01:15:50]Sock 10.First char is OK [01:15:50]request: POST /json_proto HTTP/1.0 [01:15:50]Method: POST [01:15:50]URL: /json_proto [01:15:50]Method is POST - this is cgi request [01:15:50]url: /json_proto [01:15:50]query_string will be loaded in cgi processing [01:15:50]execute_cgi json_proto POST (null) [01:15:50]execute_cgi path=json_proto method=POST [01:15:50]POST find Content-Length [01:15:50]Host: 172.17.50.196:8080 [01:15:50]Content-Length: 642 [01:15:50]Content-Type: application/json [01:15:50] [01:15:50]POST finish read [01:15:50]Found Content-Length = 642 [01:15:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335415", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:50]execute_script... [01:15: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 : (3)335415", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 59.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:15:50]POST & json_proto [01:15:50]process_json_proto [01:15:50]json parsed OK: [01:15:50]protocol is kg_v1.0 [01:15:50]action value=close_receipt [01:15:50]process_action close_receipt [01:15:50]cmd_close_receipt [01:15:50]MH_GetDate [01:15:50]Write to MH i2c: F0 00 00 8C 68 E3 [01:15:50]Write i2c OK [01:15:50]MH_I2C_Read... [01:15:50]Read from MH i2c: F0 [01:15:50]MH_I2C_Read... [01:15:50]Read from MH i2c: F0 09 00 [01:15:50]MH_I2C_Read... [01:15:50]Read from MH i2c: F0 09 00 8C 68 00 4E DA 22 67 72 0D 1C 67 9F [01:15:50]GetLastDocTimeStamp 1730336705 [01:15:50]current date 1730337358 [01:15:50]FM_GetShiftState [01:15:50]SAM_PROTO_GetShiftState [01:15:50]wFMCommunicate request_size=4 [01:15:50]MH_SAM_APDU [01:15:50]CAPDU: 80 13 01 00 [01:15:50]Write to MH i2c: E2 08 00 8D 68 80 13 01 00 00 00 00 00 72 [01:15:50]Write i2c OK [01:15:50]MH_I2C_Read... [01:15:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:50]Read from MH i2c: E2 [01:15:50]MH_I2C_Read... [01:15:50]Read from MH i2c: E2 0E 00 [01:15:50]MH_I2C_Read... [01:15:50]Read from MH i2c: E2 0E 00 8D 68 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 9B [01:15:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:15:50]wFMCommunicate OK [01:15:50]SAM_PROTO_GetShiftState done [01:15:50]FM_GetShiftState done [01:15:50]opened in 1730332621 [01:15:50]opened+sec_in_day 1730419021 [01:15:50]quantity*price = 5900 [01:15:50]sum+1 = 5901 [01:15:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 59.00 НСП 1% : 0.52 НДС 12% : 6.26 Наличными: 59.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 15 31.10.2024 01:15 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139538 ФПД: 204946305485108 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T011558&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139538&fm=204946305485108&tin=02508201610067®Number=0000000000091631&sum=5900 0 [01:15:51]StoreToDocumentArchive [01:15:51]shift 557 fd 139538 [01:15:51]save to /storage/0557/doc_00139538 [01:15:51]save last doc name /storage/0557/doc_00139538 to /storage/kkm_last_doc_name [01:15:51]save OK [01:15:51]Clear old archive folders... [01:15:51]ProcessDocumentItem done err = 0, tmpTLVsize=281 [01:15:51]tlvbuf is 011D7C00 [01:15:51]SAM_PROTO_ClearQueue [01:15:51]wFMCommunicate request_size=4 [01:15:51]MH_SAM_APDU [01:15:51]CAPDU: 80 09 00 00 [01:15:51]Write to MH i2c: E2 08 00 9A 68 80 09 00 00 00 00 00 00 74 [01:15:51]Write i2c OK [01:15:51]MH_I2C_Read... [01:15:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:15:51]Read from MH i2c: E2 [01:15:51]MH_I2C_Read... [01:15:51]Read from MH i2c: E2 03 00 [01:15:51]MH_I2C_Read... [01:15:51]Read from MH i2c: E2 03 00 9A 68 00 90 00 76 [01:15:51]RAPDU: 90 00 [01:15:51]wFMCommunicate OK [01:15:51]SAM_PROTO_ClearQueue done [01:15:51]KKMCreateOFDPacket [01:15:51]OFDProtocolAddRootSTLVToBuf [01:15:51]FM_MakeSignedData [01:15:51]FM_MakeSignedData [01:15:51]SAM_PROTO_SignData [01:15:51]wFMCommunicate request_size=4 [01:15:51]MH_SAM_APDU [01:15:51]CAPDU: 80 0D 01 02 [01:15:51]Write to MH i2c: E2 08 00 9B 68 80 0D 01 02 00 00 00 00 7C [01:15:51]Write i2c OK [01:15:51]MH_I2C_Read... [01:15:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:15:51]Read from MH i2c: E2 [01:15:51]MH_I2C_Read... [01:15:51]Read from MH i2c: E2 03 00 [01:15:51]MH_I2C_Read... [01:15:51]Read from MH i2c: E2 03 00 9B 68 00 90 00 77 [01:15:51]RAPDU: 90 00 [01:15:51]wFMCommunicate OK [01:15:51]wFMCommunicate request_size=255 [01:15:51]MH_SAM_APDU [01:15:51]CAPDU: 80 0D 02 02 FA 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4E DA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 [01:15:51]Write to MH i2c: E2 02 01 9C 68 80 0D 02 02 FA 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4E DA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 00 F3 [01:15:51]Write i2c OK [01:15:51]MH_I2C_Read... [01:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:52]Read from MH i2c: E2 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 03 00 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 03 00 9C 68 00 90 00 78 [01:15:52]RAPDU: 90 00 [01:15:52]wFMCommunicate OK [01:15:52]wFMCommunicate request_size=40 [01:15:52]MH_SAM_APDU [01:15:52]CAPDU: 80 0D 02 02 23 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 12 21 02 00 35 04 06 00 BA 65 C7 BC 89 34 [01:15:52]Write to MH i2c: E2 2B 00 9D 68 80 0D 02 02 23 00 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 12 21 02 00 35 04 06 00 BA 65 C7 BC 89 34 00 00 D8 [01:15:52]Write i2c OK [01:15:52]MH_I2C_Read... [01:15:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:15:52]Read from MH i2c: E2 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 03 00 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 03 00 9D 68 00 90 00 79 [01:15:52]RAPDU: 90 00 [01:15:52]wFMCommunicate OK [01:15:52]wFMCommunicate request_size=4 [01:15:52]MH_SAM_APDU [01:15:52]CAPDU: 80 0D 03 02 [01:15:52]Write to MH i2c: E2 08 00 9E 68 80 0D 03 02 00 00 00 00 81 [01:15:52]Write i2c OK [01:15:52]MH_I2C_Read... [01:15:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:15:52]Read from MH i2c: E2 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 0B 00 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 0B 00 9E 68 00 42 A9 60 B0 14 E0 9B 35 90 00 41 [01:15:52]RAPDU: 42 A9 60 B0 14 E0 9B 35 90 00 [01:15:52]wFMCommunicate OK [01:15:52]SAM_PROTO_SignData done [01:15:52]FM_MakeSignedData done [01:15:52]CreateOFDProtocolMessage [01:15:52]wFMCommunicate request_size=4 [01:15:52]MH_SAM_APDU [01:15:52]CAPDU: 80 11 00 00 [01:15:52]Write to MH i2c: E2 08 00 9F 68 80 11 00 00 00 00 00 00 81 [01:15:52]Write i2c OK [01:15:52]MH_I2C_Read... [01:15:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:52]Read from MH i2c: E2 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 17 00 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: E2 17 00 9F 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DC [01:15:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:15:52]wFMCommunicate OK [01:15:52]CreateOFDProtocolMessage done [01:15:52]OFDSenderStorePacket 139538 [01:15:52]StoreOFDPacket docnum=139538 [01:15:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2D 01 00 00 A6 67 25 01 64 AE 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4E DA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 12 21 02 00 35 04 06 00 BA 65 C7 BC 89 34 42 A9 60 B0 14 E0 9B 35 [01:15:52]CheckFolder [01:15:52]dirname=/storage/ofd_packets [01:15:52]CheckFolder done [01:15:52]ProducePacketName [01:15:52]name=ofd_packets/00139538 [01:15:52]NVStorageSaveData ofd_packets/00139538 [01:15:52]File name is /storage/ofd_packets/00139538 [01:15:52]Write 331 bytes [01:15:52]NVStorageSaveData done [01:15:52]OFDSenderStorePacket done [01:15:52]KKMCreateOFDPacket done [01:15:52]NVStorageSaveData kkm_last_timestamp [01:15:52]File name is /storage/kkm_last_timestamp [01:15:52]Write 4 bytes [01:15:52]NVStorageSaveData done [01:15:52]ExternCall_PrintAddStr [01:15:52]wPrintStart [01:15:52]Write to MH i2c: 01 00 00 A0 68 08 [01:15:52]Write i2c OK [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: 01 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: 01 07 00 [01:15:52]MH_I2C_Read... [01:15:52]Read from MH i2c: 01 07 00 A0 68 00 00 00 00 00 FF 0F 1D [01:15:52]RasterBufferAndPrint [01:15:52]line Счет N : (3)335415 [01:15:52]line ИНН: 02508201610067 [01:15:52]line Контрольно-Кассовый Чек [01:15:52]line ПРОДАЖА [01:15:52]line Товар: 4607065001445 [01:15:52]line Шок батончик Snickers 50,5г [01:15:52]line 1.000 * 59.00 [01:15:52]line = 59.00 [01:15:52]line НДС 12% НСП 1% [01:15:52]line > о реализуемом товаре [01:15:52]line ИТОГО: 59.00 [01:15:52]line НСП 1% : 0.52 [01:15:52]line НДС 12% : 6.26 [01:15:52]line Наличными: 59.00 [01:15:52]line Безнал.: 0.00 [01:15:52]line Место: АЗС № 101 "Партнер Нефть" [01:15:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:15:52]line СНО: Общий режим [01:15:52]line Чек 15 31.10.2024 01:15 [01:15:52]line Смена: 557 ФФД: 1.0 [01:15:52]line ЗНМ: 0300000081 [01:15:52]line РНМ: 0000000000091631 [01:15:52]line Версия ККМ: 001 [01:15:52]line ФМ: 0000000000874669 [01:15:52]line ФД: 139538 [01:15:52]line ФПД: 204946305485108 [01:15:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T011558&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139538&fm=204946305485108&tin=02508201610067®Number=0000000000091631&sum=5900 [01:15:52]OFD Sender: Processing packet 139538 [packets to send 34, broken 33] [01:15:52]ProducePacketName [01:15:52]name=ofd_packets/00139538 [01:15:52]OFD Sender: To server: pG, [01:15:52]CommunicateWithHost lk.salyk.kg:30040 [01:15:52]ConnectInit lk.salyk.kg [01:15:52]line 0 [01:15:52]written 0, free lines is 4095 [01:15:52]Connected sock=9 [01:15:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2D 01 00 00 A6 67 25 01 64 AE 5A 03 01 00 03 00 19 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 0C 17 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 34 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 72 02 00 00 00 00 07 04 06 00 0C 17 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 0F 00 00 00 F4 03 04 00 4E DA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 12 21 02 00 35 04 06 00 BA 65 C7 BC 89 34 42 A9 60 B0 14 E0 9B 35 [01:15:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 47 89 47 00 9C 7E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 12 21 02 00 F4 03 04 00 FD 85 22 67 B6 04 01 00 00 E7 BF E0 8B 30 E7 80 AF [01:15:52]CommunicateWithHost err = 0 [01:15:52]CheckOFDResponse [01:15:52]1017 (14) - 77093643461234 [01:15:52]1041 (16) - 0000000000874669 [01:15:52]1040 (4) - 139538 [01:15:52]1012 (4) - 30.10.2024 19:16 [01:15:52]1206 (1) - 0 [01:15:52]OFD Sender: Remove packet 139538 [01:15:52]ProducePacketName [01:15:52]name=ofd_packets/00139538 [01:15:52]NVStorageDeleteData [01:15:53]Write to MH i2c: 01 00 00 C8 68 30 [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: 01 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: 01 07 00 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: 01 07 00 C8 68 00 00 00 00 00 1D 0D 61 [01:15:53]RasterBufferAndPrint [01:15:53]line [01:15:53]line [01:15:53]line [01:15:53]line [01:15:53]line [01:15:53]written 0, free lines is 3362 [01:15:53]MH_Cut [01:15:53]Write to MH i2c: D1 01 00 CF 68 01 09 [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: D1 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: D1 01 00 [01:15:53]MH_I2C_Read... [01:15:53]Read from MH i2c: D1 01 00 CF 68 00 08 [01:15:53]Write to MH i2c: 01 00 00 D0 68 38 [01:15:53]Write i2c OK [01:15:53]MH_I2C_Read... [01:15:53]OFD Sender: No OFD packet to send [01:15:53]*** Cut start [01:15:53]*** Partial cut [01:15:53]*** CUTSNS_PIN = 1 [01:15:53]*** CUTSNS_PIN = 0 [01:15:53]*** Brake cut motor [01:15:54]Read from MH i2c: 01 [01:15:54]MH_I2C_Read... [01:15:54]*** Stop cut motor [01:15:54]*** Cut end [01:15:54]Read from MH i2c: 01 07 00 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: 01 07 00 D0 68 00 00 00 00 00 FF 0F 4D [01:15:54]process_action close_receipt done [01:15:54]requested_data is exist [01:15:54]produce_requested_data [01:15:54]requested_item fm.sn is exist - process it [01:15:54]wFMCommunicate request_size=4 [01:15:54]MH_SAM_APDU [01:15:54]CAPDU: 80 11 00 00 [01:15:54]Write to MH i2c: E2 08 00 D1 68 80 11 00 00 00 00 00 00 B3 [01:15:54]Write i2c OK [01:15:54]MH_I2C_Read... [01:15:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:15:54]Read from MH i2c: E2 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: E2 17 00 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: E2 17 00 D1 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0E [01:15:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:15:54]wFMCommunicate OK [01:15:54]requested_item fd.num is exist - process it [01:15:54]SAM_PROTO_GetFieldsCounters [01:15:54]wFMCommunicate request_size=4 [01:15:54]MH_SAM_APDU [01:15:54]CAPDU: 80 13 00 00 [01:15:54]Write to MH i2c: E2 08 00 D2 68 80 13 00 00 00 00 00 00 B6 [01:15:54]Write i2c OK [01:15:54]MH_I2C_Read... [01:15:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:15:54]Read from MH i2c: E2 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: E2 62 00 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: E2 62 00 D2 68 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 12 21 02 00 0E 04 04 00 2D 02 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 6B [01:15:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 12 21 02 00 0E 04 04 00 2D 02 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:15:54]wFMCommunicate OK [01:15:54]SAM_PROTO_GetFieldsCounters done [01:15:54]requested_item shift.num is exist - process it [01:15:54]requested_item shift.opened is exist - process it [01:15:54]req_shift_opened [01:15:54]FM_GetShiftState [01:15:54]SAM_PROTO_GetShiftState [01:15:54]wFMCommunicate request_size=4 [01:15:54]MH_SAM_APDU [01:15:54]CAPDU: 80 13 01 00 [01:15:54]Write to MH i2c: E2 08 00 D3 68 80 13 01 00 00 00 00 00 B8 [01:15:54]Write i2c OK [01:15:54]MH_I2C_Read... [01:15:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:15:54]Read from MH i2c: E2 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: E2 0E 00 [01:15:54]MH_I2C_Read... [01:15:54]Read from MH i2c: E2 0E 00 D3 68 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E1 [01:15:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:15:54]wFMCommunicate OK [01:15:54]SAM_PROTO_GetShiftState done [01:15:54]FM_GetShiftState done [01:15:54]req_shift_opened done [01:15:54]requested_item shift.open_date is exist - process it [01:15:54]req_shift_open_date [01:15:54]req_shift_open_date done [01:15:54]produce_requested_data done [01:15:54]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139538,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:15:54]process_action_free close_receipt [01:15:54]json_value_free [01:15:54]json_value_free done [01:15:54]process_json_proto returns [01:15:54]Send response to host [01:15:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139538,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:15:54]free response buf [01:15:54]execute_script done [01:15:54]execute_script returns [01:15:54]free content buf [01:15:54]Sock 10.Close socket [01:15:54]Sock 10.Thread stoped [01:15:58]OFD Sender: No OFD packet to send [01:16:03]OFD Sender: No OFD packet to send [01:16:08]OFD Sender: No OFD packet to send [01:16:13]OFD Sender: No OFD packet to send [01:16:18]OFD Sender: No OFD packet to send [01:16:23]OFD Sender: No OFD packet to send [01:16:28]OFD Sender: No OFD packet to send [01:16:33]OFD Sender: No OFD packet to send [01:16:38]OFD Sender: No OFD packet to send [01:16:43]OFD Sender: No OFD packet to send [01:16:48]OFD Sender: No OFD packet to send [01:16:53]OFD Sender: No OFD packet to send [01:16:58]OFD Sender: No OFD packet to send [01:17:03]OFD Sender: No OFD packet to send [01:17:08]OFD Sender: No OFD packet to send [01:17:13]OFD Sender: No OFD packet to send [01:17:18]OFD Sender: No OFD packet to send [01:17:23]OFD Sender: No OFD packet to send [01:17:28]OFD Sender: No OFD packet to send [01:17:33]OFD Sender: No OFD packet to send [01:17:38]OFD Sender: No OFD packet to send [01:17:43]OFD Sender: No OFD packet to send [01:17:48]OFD Sender: No OFD packet to send [01:17:53]OFD Sender: No OFD packet to send [01:17:58]OFD Sender: No OFD packet to send [01:18:03]OFD Sender: No OFD packet to send [01:18:08]OFD Sender: No OFD packet to send [01:18:13]OFD Sender: No OFD packet to send [01:18:18]OFD Sender: No OFD packet to send [01:18:23]OFD Sender: No OFD packet to send [01:18:28]OFD Sender: No OFD packet to send [01:18:33]OFD Sender: No OFD packet to send [01:18:38]OFD Sender: No OFD packet to send [01:18:43]OFD Sender: No OFD packet to send [01:18:48]OFD Sender: No OFD packet to send [01:18:53]OFD Sender: No OFD packet to send [01:18:58]OFD Sender: No OFD packet to send [01:19:03]OFD Sender: No OFD packet to send [01:19:08]OFD Sender: No OFD packet to send [01:19:13]OFD Sender: No OFD packet to send [01:19:18]OFD Sender: No OFD packet to send [01:19:23]OFD Sender: No OFD packet to send [01:19:28]OFD Sender: No OFD packet to send [01:19:33]OFD Sender: No OFD packet to send [01:19:38]OFD Sender: No OFD packet to send [01:19:43]OFD Sender: No OFD packet to send [01:19:48]OFD Sender: No OFD packet to send [01:19:53]OFD Sender: No OFD packet to send [01:19:58]OFD Sender: No OFD packet to send [01:20:03]OFD Sender: No OFD packet to send [01:20:08]OFD Sender: No OFD packet to send [01:20:13]OFD Sender: No OFD packet to send [01:20:18]OFD Sender: No OFD packet to send [01:20:23]OFD Sender: No OFD packet to send [01:20:28]OFD Sender: No OFD packet to send [01:20:33]OFD Sender: No OFD packet to send [01:20:34]accept exits with 8 [01:20:34]New connection [01:20:34]New thread 3067284836 created [01:20:34]Thread 3067141476 joined [01:20:34]Waiting for new connection... [01:20:34] Sock 8.Parse request [01:20:34]Sock 8.Check first char [01:20:34]Sock 8.First char is OK [01:20:34]request: POST /json_proto HTTP/1.0 [01:20:34]Method: POST [01:20:34]URL: /json_proto [01:20:34]Method is POST - this is cgi request [01:20:34]url: /json_proto [01:20:34]query_string will be loaded in cgi processing [01:20:34]execute_cgi json_proto POST (null) [01:20:34]execute_cgi path=json_proto method=POST [01:20:34]POST find Content-Length [01:20:34]Host: 172.17.50.196:8080 [01:20:34]Content-Length: 750 [01:20:34]Content-Type: application/json [01:20:34] [01:20:34]POST finish read [01:20:34]Found Content-Length = 750 [01:20:34]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335418", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:34]execute_script... [01:20: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 : (3)335418", "tax_sys" : 0, "items" : [ { "code": "48743587", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Silver", "price" : 144.00, "quantity" : 1.000, "sum" : 144.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" : 144.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:20:34]POST & json_proto [01:20:34]process_json_proto [01:20:34]json parsed OK: [01:20:34]protocol is kg_v1.0 [01:20:34]action value=close_receipt [01:20:34]process_action close_receipt [01:20:34]cmd_close_receipt [01:20:34]MH_GetDate [01:20:34]Write to MH i2c: F0 00 00 D4 68 2B [01:20:34]Write i2c OK [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: F0 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: F0 09 00 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: F0 09 00 D4 68 00 6A DB 22 67 72 0D 1C 67 04 [01:20:34]GetLastDocTimeStamp 1730337358 [01:20:34]current date 1730337642 [01:20:34]FM_GetShiftState [01:20:34]SAM_PROTO_GetShiftState [01:20:34]wFMCommunicate request_size=4 [01:20:34]MH_SAM_APDU [01:20:34]CAPDU: 80 13 01 00 [01:20:34]Write to MH i2c: E2 08 00 D5 68 80 13 01 00 00 00 00 00 BA [01:20:34]Write i2c OK [01:20:34]MH_I2C_Read... [01:20:34]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:34]Read from MH i2c: E2 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: E2 0E 00 [01:20:34]MH_I2C_Read... [01:20:34]Read from MH i2c: E2 0E 00 D5 68 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 E3 [01:20:34]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:20:34]wFMCommunicate OK [01:20:34]SAM_PROTO_GetShiftState done [01:20:34]FM_GetShiftState done [01:20:34]opened in 1730332621 [01:20:34]opened+sec_in_day 1730419021 [01:20:34]quantity*price = 14400 [01:20:34]sum+1 = 14401 [01:20:34]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 144.00 НСП 1% : 1.27 НДС 12% : 15.29 Наличными: 0.00 Безнал.: 144.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 16 31.10.2024 01:20 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139539 ФПД: 37217644900001 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012042&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139539&fm=37217644900001&tin=02508201610067®Number=0000000000091631&sum=14400 0 [01:20:35]StoreToDocumentArchive [01:20:35]shift 557 fd 139539 [01:20:35]save to /storage/0557/doc_00139539 [01:20:35]save last doc name /storage/0557/doc_00139539 to /storage/kkm_last_doc_name [01:20:35]save OK [01:20:35]Clear old archive folders... [01:20:35]ProcessDocumentItem done err = 0, tmpTLVsize=275 [01:20:35]tlvbuf is 011D7AC0 [01:20:35]SAM_PROTO_ClearQueue [01:20:35]wFMCommunicate request_size=4 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 09 00 00 [01:20:35]Write to MH i2c: E2 08 00 E2 68 80 09 00 00 00 00 00 00 BC [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 E2 68 00 90 00 BE [01:20:35]RAPDU: 90 00 [01:20:35]wFMCommunicate OK [01:20:35]SAM_PROTO_ClearQueue done [01:20:35]KKMCreateOFDPacket [01:20:35]OFDProtocolAddRootSTLVToBuf [01:20:35]FM_MakeSignedData [01:20:35]FM_MakeSignedData [01:20:35]SAM_PROTO_SignData [01:20:35]wFMCommunicate request_size=4 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 0D 01 02 [01:20:35]Write to MH i2c: E2 08 00 E3 68 80 0D 01 02 00 00 00 00 C4 [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 E3 68 00 90 00 BF [01:20:35]RAPDU: 90 00 [01:20:35]wFMCommunicate OK [01:20:35]wFMCommunicate request_size=255 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6A DB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [01:20:35]Write to MH i2c: E2 02 01 E4 68 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6A DB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 00 00 D1 [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:35]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:35]Read from MH i2c: E2 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 [01:20:35]MH_I2C_Read... [01:20:35]Read from MH i2c: E2 03 00 E4 68 00 90 00 C0 [01:20:35]RAPDU: 90 00 [01:20:35]wFMCommunicate OK [01:20:35]wFMCommunicate request_size=34 [01:20:35]MH_SAM_APDU [01:20:35]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 21 02 00 35 04 06 00 21 D9 68 80 EE A1 [01:20:35]Write to MH i2c: E2 25 00 E5 68 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 21 02 00 35 04 06 00 21 D9 68 80 EE A1 00 00 37 [01:20:35]Write i2c OK [01:20:35]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 03 00 E5 68 00 90 00 C1 [01:20:36]RAPDU: 90 00 [01:20:36]wFMCommunicate OK [01:20:36]wFMCommunicate request_size=4 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 0D 03 02 [01:20:36]Write to MH i2c: E2 08 00 E6 68 80 0D 03 02 00 00 00 00 C9 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 0B 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 0B 00 E6 68 00 79 17 25 48 BA BD 64 30 90 00 D2 [01:20:36]RAPDU: 79 17 25 48 BA BD 64 30 90 00 [01:20:36]wFMCommunicate OK [01:20:36]SAM_PROTO_SignData done [01:20:36]FM_MakeSignedData done [01:20:36]CreateOFDProtocolMessage [01:20:36]wFMCommunicate request_size=4 [01:20:36]MH_SAM_APDU [01:20:36]CAPDU: 80 11 00 00 [01:20:36]Write to MH i2c: E2 08 00 E7 68 80 11 00 00 00 00 00 00 C9 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:36]Read from MH i2c: E2 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 17 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: E2 17 00 E7 68 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 24 [01:20:36]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:20:36]wFMCommunicate OK [01:20:36]CreateOFDProtocolMessage done [01:20:36]OFDSenderStorePacket 139539 [01:20:36]StoreOFDPacket docnum=139539 [01:20:36]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 F0 9B 1F 01 F3 EA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6A DB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 21 02 00 35 04 06 00 21 D9 68 80 EE A1 79 17 25 48 BA BD 64 30 [01:20:36]CheckFolder [01:20:36]dirname=/storage/ofd_packets [01:20:36]CheckFolder done [01:20:36]ProducePacketName [01:20:36]name=ofd_packets/00139539 [01:20:36]NVStorageSaveData ofd_packets/00139539 [01:20:36]File name is /storage/ofd_packets/00139539 [01:20:36]Write 325 bytes [01:20:36]NVStorageSaveData done [01:20:36]OFDSenderStorePacket done [01:20:36]KKMCreateOFDPacket done [01:20:36]NVStorageSaveData kkm_last_timestamp [01:20:36]File name is /storage/kkm_last_timestamp [01:20:36]Write 4 bytes [01:20:36]NVStorageSaveData done [01:20:36]ExternCall_PrintAddStr [01:20:36]wPrintStart [01:20:36]Write to MH i2c: 01 00 00 E8 68 50 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 E8 68 00 00 00 00 00 FF 0F 65 [01:20:36]RasterBufferAndPrint [01:20:36]line Счет N : (3)335418 [01:20:36]line ИНН: 02508201610067 [01:20:36]line Контрольно-Кассовый Чек [01:20:36]line ПРОДАЖА [01:20:36]line Товар: 48743587 [01:20:36]line Сигареты Winston XStyle Silver [01:20:36]line 1.000 * 144.00 [01:20:36]line = 144.00 [01:20:36]line НДС 12% НСП 1% [01:20:36]line > о реализуемом товаре [01:20:36]line ИТОГО: 144.00 [01:20:36]line НСП 1% : 1.27 [01:20:36]line НДС 12% : 15.29 [01:20:36]line Наличными: 0.00 [01:20:36]line Безнал.: 144.00 [01:20:36]line Место: АЗС № 101 "Партнер Нефть" [01:20:36]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:20:36]line СНО: Общий режим [01:20:36]line Чек 16 31.10.2024 01:20 [01:20:36]line Смена: 557 ФФД: 1.0 [01:20:36]line ЗНМ: 0300000081 [01:20:36]line РНМ: 0000000000091631 [01:20:36]line Версия ККМ: 001 [01:20:36]line Платежная система: Mbank [01:20:36]line ФМ: 0000000000874669 [01:20:36]line ФД: 139539 [01:20:36]line ФПД: 37217644900001 [01:20:36]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012042&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139539&fm=37217644900001&tin=02508201610067®Number=0000000000091631&sum=14400 [01:20:36]OFD Sender: Processing packet 139539 [packets to send 34, broken 33] [01:20:36]ProducePacketName [01:20:36]name=ofd_packets/00139539 [01:20:36]OFD Sender: To server: pG, [01:20:36]CommunicateWithHost lk.salyk.kg:30040 [01:20:36]ConnectInit lk.salyk.kg [01:20:36]line 0 [01:20:36]written 0, free lines is 4095 [01:20:36]Connected sock=10 [01:20:36]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 F0 9B 1F 01 F3 EA 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 34 38 37 34 33 35 38 37 06 04 26 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 53 69 6C 76 65 72 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 38 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 7F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F9 05 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 38 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 10 00 00 00 F4 03 04 00 6A DB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 21 02 00 35 04 06 00 21 D9 68 80 EE A1 79 17 25 48 BA BD 64 30 [01:20:36]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 1E EA 47 00 4B DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 13 21 02 00 F4 03 04 00 19 87 22 67 B6 04 01 00 00 DD CC 3C 6B 7C CA 9A 11 [01:20:36]CommunicateWithHost err = 0 [01:20:36]CheckOFDResponse [01:20:36]1017 (14) - 77093643461234 [01:20:36]1041 (16) - 0000000000874669 [01:20:36]1040 (4) - 139539 [01:20:36]1012 (4) - 30.10.2024 19:20 [01:20:36]1206 (1) - 0 [01:20:36]OFD Sender: Remove packet 139539 [01:20:36]ProducePacketName [01:20:36]name=ofd_packets/00139539 [01:20:36]NVStorageDeleteData [01:20:36]Write to MH i2c: 01 00 00 12 69 7B [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: 01 07 00 12 69 00 00 00 00 00 00 0D 8F [01:20:36]RasterBufferAndPrint [01:20:36]line [01:20:36]line [01:20:36]line [01:20:36]line [01:20:36]line [01:20:36]written 0, free lines is 3334 [01:20:36]MH_Cut [01:20:36]Write to MH i2c: D1 01 00 19 69 01 54 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: D1 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: D1 01 00 [01:20:36]MH_I2C_Read... [01:20:36]Read from MH i2c: D1 01 00 19 69 00 53 [01:20:36]Write to MH i2c: 01 00 00 1A 69 83 [01:20:36]Write i2c OK [01:20:36]MH_I2C_Read... [01:20:37]OFD Sender: No OFD packet to send [01:20:37]*** Cut start [01:20:37]*** Partial cut [01:20:37]*** CUTSNS_PIN = 1 [01:20:37]*** CUTSNS_PIN = 0 [01:20:37]*** Brake cut motor [01:20:38]Read from MH i2c: 01 [01:20:38]MH_I2C_Read... [01:20:38]*** Stop cut motor [01:20:38]*** Cut end [01:20:38]Read from MH i2c: 01 07 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: 01 07 00 1A 69 00 00 00 00 00 FF 0F 98 [01:20:38]process_action close_receipt done [01:20:38]requested_data is exist [01:20:38]produce_requested_data [01:20:38]requested_item fm.sn is exist - process it [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 11 00 00 [01:20:38]Write to MH i2c: E2 08 00 1B 69 80 11 00 00 00 00 00 00 FE [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 17 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 17 00 1B 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 59 [01:20:38]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:20:38]wFMCommunicate OK [01:20:38]requested_item fd.num is exist - process it [01:20:38]SAM_PROTO_GetFieldsCounters [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 13 00 00 [01:20:38]Write to MH i2c: E2 08 00 1C 69 80 13 00 00 00 00 00 00 01 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 62 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 62 00 1C 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 13 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 BA [01:20:38]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 13 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 10 00 00 00 5E 04 04 00 10 00 00 00 57 04 04 00 11 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:20:38]wFMCommunicate OK [01:20:38]SAM_PROTO_GetFieldsCounters done [01:20:38]requested_item shift.num is exist - process it [01:20:38]requested_item shift.opened is exist - process it [01:20:38]req_shift_opened [01:20:38]FM_GetShiftState [01:20:38]SAM_PROTO_GetShiftState [01:20:38]wFMCommunicate request_size=4 [01:20:38]MH_SAM_APDU [01:20:38]CAPDU: 80 13 01 00 [01:20:38]Write to MH i2c: E2 08 00 1D 69 80 13 01 00 00 00 00 00 03 [01:20:38]Write i2c OK [01:20:38]MH_I2C_Read... [01:20:38]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:20:38]Read from MH i2c: E2 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 0E 00 [01:20:38]MH_I2C_Read... [01:20:38]Read from MH i2c: E2 0E 00 1D 69 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2C [01:20:38]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:20:38]wFMCommunicate OK [01:20:38]SAM_PROTO_GetShiftState done [01:20:38]FM_GetShiftState done [01:20:38]req_shift_opened done [01:20:38]requested_item shift.open_date is exist - process it [01:20:38]req_shift_open_date [01:20:38]req_shift_open_date done [01:20:38]produce_requested_data done [01:20:38]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139539,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:20:38]process_action_free close_receipt [01:20:38]json_value_free [01:20:38]json_value_free done [01:20:38]process_json_proto returns [01:20:38]Send response to host [01:20:38]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139539,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:20:38]free response buf [01:20:38]execute_script done [01:20:38]execute_script returns [01:20:38]free content buf [01:20:38]Sock 8.Close socket [01:20:38]Sock 8.Thread stoped [01:20:42]OFD Sender: No OFD packet to send [01:20:47]OFD Sender: No OFD packet to send [01:20:52]OFD Sender: No OFD packet to send [01:20:57]OFD Sender: No OFD packet to send [01:21:02]OFD Sender: No OFD packet to send [01:21:07]OFD Sender: No OFD packet to send [01:21:12]OFD Sender: No OFD packet to send [01:21:17]OFD Sender: No OFD packet to send [01:21:22]OFD Sender: No OFD packet to send [01:21:27]OFD Sender: No OFD packet to send [01:21:32]OFD Sender: No OFD packet to send [01:21:37]OFD Sender: No OFD packet to send [01:21:42]OFD Sender: No OFD packet to send [01:21:47]OFD Sender: No OFD packet to send [01:21:52]OFD Sender: No OFD packet to send [01:21:57]OFD Sender: No OFD packet to send [01:22:02]OFD Sender: No OFD packet to send [01:22:07]OFD Sender: No OFD packet to send [01:22:12]OFD Sender: No OFD packet to send [01:22:17]OFD Sender: No OFD packet to send [01:22:22]OFD Sender: No OFD packet to send [01:22:27]OFD Sender: No OFD packet to send [01:22:32]OFD Sender: No OFD packet to send [01:22:37]OFD Sender: No OFD packet to send [01:22:42]OFD Sender: No OFD packet to send [01:22:47]OFD Sender: No OFD packet to send [01:22:52]OFD Sender: No OFD packet to send [01:22:57]OFD Sender: No OFD packet to send [01:23:02]OFD Sender: No OFD packet to send [01:23:07]OFD Sender: No OFD packet to send [01:23:12]OFD Sender: No OFD packet to send [01:23:17]OFD Sender: No OFD packet to send [01:23:22]OFD Sender: No OFD packet to send [01:23:27]OFD Sender: No OFD packet to send [01:23:32]OFD Sender: No OFD packet to send [01:23:37]OFD Sender: No OFD packet to send [01:23:42]OFD Sender: No OFD packet to send [01:23:47]OFD Sender: No OFD packet to send [01:23:50]accept exits with 9 [01:23:50]New connection [01:23:50]New thread 3067141476 created [01:23:50]Thread 3067284836 joined [01:23:50]Waiting for new connection... [01:23:50] Sock 9.Parse request [01:23:50]Sock 9.Check first char [01:23:50]Sock 9.First char is OK [01:23:50]request: POST /json_proto HTTP/1.0 [01:23:50]Method: POST [01:23:50]URL: /json_proto [01:23:50]Method is POST - this is cgi request [01:23:50]url: /json_proto [01:23:50]query_string will be loaded in cgi processing [01:23:50]execute_cgi json_proto POST (null) [01:23:50]execute_cgi path=json_proto method=POST [01:23:50]POST find Content-Length [01:23:50]Host: 172.17.50.196:8080 [01:23:50]Content-Length: 622 [01:23:50]Content-Type: application/json [01:23:50] [01:23:50]POST finish read [01:23:50]Found Content-Length = 622 [01:23:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335419", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:50]execute_script... [01: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 : (3)335419", "tax_sys" : 0, "items" : [ { "code": "4640030091645", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B ESSE Exchange M", "price" : 159.00, "quantity" : 1.000, "sum" : 159.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:23:50]POST & json_proto [01:23:50]process_json_proto [01:23:50]json parsed OK: [01:23:50]protocol is kg_v1.0 [01:23:50]action value=close_receipt [01:23:50]process_action close_receipt [01:23:50]cmd_close_receipt [01:23:50]MH_GetDate [01:23:50]Write to MH i2c: F0 00 00 1E 69 76 [01:23:50]Write i2c OK [01:23:50]MH_I2C_Read... [01:23:50]Read from MH i2c: F0 [01:23:50]MH_I2C_Read... [01:23:50]Read from MH i2c: F0 09 00 [01:23:50]MH_I2C_Read... [01:23:50]Read from MH i2c: F0 09 00 1E 69 00 2E DC 22 67 72 0D 1C 67 14 [01:23:50]GetLastDocTimeStamp 1730337642 [01:23:50]current date 1730337838 [01:23:50]FM_GetShiftState [01:23:50]SAM_PROTO_GetShiftState [01:23:50]wFMCommunicate request_size=4 [01:23:50]MH_SAM_APDU [01:23:50]CAPDU: 80 13 01 00 [01:23:50]Write to MH i2c: E2 08 00 1F 69 80 13 01 00 00 00 00 00 05 [01:23:50]Write i2c OK [01:23:50]MH_I2C_Read... [01:23:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:50]Read from MH i2c: E2 [01:23:50]MH_I2C_Read... [01:23:50]Read from MH i2c: E2 0E 00 [01:23:50]MH_I2C_Read... [01:23:50]Read from MH i2c: E2 0E 00 1F 69 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2E [01:23:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:23:50]wFMCommunicate OK [01:23:50]SAM_PROTO_GetShiftState done [01:23:50]FM_GetShiftState done [01:23:50]opened in 1730332621 [01:23:50]opened+sec_in_day 1730419021 [01:23:50]quantity*price = 15900 [01:23:50]sum+1 = 15901 [01:23:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 159.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 17 31.10.2024 01:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139540 ФПД: 142843588127547 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012358&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139540&fm=142843588127547&tin=02508201610067®Number=0000000000091631&sum=15900 0 [01:23:51]StoreToDocumentArchive [01:23:51]shift 557 fd 139540 [01:23:51]save to /storage/0557/doc_00139540 [01:23:51]save last doc name /storage/0557/doc_00139540 to /storage/kkm_last_doc_name [01:23:51]save OK [01:23:51]Clear old archive folders... [01:23:51]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:23:51]tlvbuf is 011D7B90 [01:23:51]SAM_PROTO_ClearQueue [01:23:51]wFMCommunicate request_size=4 [01:23:51]MH_SAM_APDU [01:23:51]CAPDU: 80 09 00 00 [01:23:51]Write to MH i2c: E2 08 00 2C 69 80 09 00 00 00 00 00 00 07 [01:23:51]Write i2c OK [01:23:51]MH_I2C_Read... [01:23:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:23:51]Read from MH i2c: E2 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 03 00 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 03 00 2C 69 00 90 00 09 [01:23:51]RAPDU: 90 00 [01:23:51]wFMCommunicate OK [01:23:51]SAM_PROTO_ClearQueue done [01:23:51]KKMCreateOFDPacket [01:23:51]OFDProtocolAddRootSTLVToBuf [01:23:51]FM_MakeSignedData [01:23:51]FM_MakeSignedData [01:23:51]SAM_PROTO_SignData [01:23:51]wFMCommunicate request_size=4 [01:23:51]MH_SAM_APDU [01:23:51]CAPDU: 80 0D 01 02 [01:23:51]Write to MH i2c: E2 08 00 2D 69 80 0D 01 02 00 00 00 00 0F [01:23:51]Write i2c OK [01:23:51]MH_I2C_Read... [01:23:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:23:51]Read from MH i2c: E2 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 03 00 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 03 00 2D 69 00 90 00 0A [01:23:51]RAPDU: 90 00 [01:23:51]wFMCommunicate OK [01:23:51]wFMCommunicate request_size=255 [01:23:51]MH_SAM_APDU [01:23:51]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2E DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [01:23:51]Write to MH i2c: E2 02 01 2E 69 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2E DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 00 00 01 [01:23:51]Write i2c OK [01:23:51]MH_I2C_Read... [01:23:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:51]Read from MH i2c: E2 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 03 00 [01:23:51]MH_I2C_Read... [01:23:51]Read from MH i2c: E2 03 00 2E 69 00 90 00 0B [01:23:51]RAPDU: 90 00 [01:23:51]wFMCommunicate OK [01:23:51]wFMCommunicate request_size=33 [01:23:51]MH_SAM_APDU [01:23:51]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 21 02 00 35 04 06 00 81 EA 5D 54 2B 3B [01:23:51]Write to MH i2c: E2 24 00 2F 69 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 21 02 00 35 04 06 00 81 EA 5D 54 2B 3B 00 00 62 [01:23:51]Write i2c OK [01:23:51]MH_I2C_Read... [01:23:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:23:52]Read from MH i2c: E2 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: E2 03 00 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: E2 03 00 2F 69 00 90 00 0C [01:23:52]RAPDU: 90 00 [01:23:52]wFMCommunicate OK [01:23:52]wFMCommunicate request_size=4 [01:23:52]MH_SAM_APDU [01:23:52]CAPDU: 80 0D 03 02 [01:23:52]Write to MH i2c: E2 08 00 30 69 80 0D 03 02 00 00 00 00 14 [01:23:52]Write i2c OK [01:23:52]MH_I2C_Read... [01:23:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:23:52]Read from MH i2c: E2 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: E2 0B 00 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: E2 0B 00 30 69 00 55 55 37 82 64 67 F7 21 90 00 5B [01:23:52]RAPDU: 55 55 37 82 64 67 F7 21 90 00 [01:23:52]wFMCommunicate OK [01:23:52]SAM_PROTO_SignData done [01:23:52]FM_MakeSignedData done [01:23:52]CreateOFDProtocolMessage [01:23:52]wFMCommunicate request_size=4 [01:23:52]MH_SAM_APDU [01:23:52]CAPDU: 80 11 00 00 [01:23:52]Write to MH i2c: E2 08 00 31 69 80 11 00 00 00 00 00 00 14 [01:23:52]Write i2c OK [01:23:52]MH_I2C_Read... [01:23:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:52]Read from MH i2c: E2 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: E2 17 00 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: E2 17 00 31 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6F [01:23:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:23:52]wFMCommunicate OK [01:23:52]CreateOFDProtocolMessage done [01:23:52]OFDSenderStorePacket 139540 [01:23:52]StoreOFDPacket docnum=139540 [01:23:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 A0 CF 1E 01 52 B2 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2E DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 21 02 00 35 04 06 00 81 EA 5D 54 2B 3B 55 55 37 82 64 67 F7 21 [01:23:52]CheckFolder [01:23:52]dirname=/storage/ofd_packets [01:23:52]CheckFolder done [01:23:52]ProducePacketName [01:23:52]name=ofd_packets/00139540 [01:23:52]NVStorageSaveData ofd_packets/00139540 [01:23:52]File name is /storage/ofd_packets/00139540 [01:23:52]Write 324 bytes [01:23:52]NVStorageSaveData done [01:23:52]OFDSenderStorePacket done [01:23:52]KKMCreateOFDPacket done [01:23:52]NVStorageSaveData kkm_last_timestamp [01:23:52]File name is /storage/kkm_last_timestamp [01:23:52]Write 4 bytes [01:23:52]NVStorageSaveData done [01:23:52]ExternCall_PrintAddStr [01:23:52]wPrintStart [01:23:52]Write to MH i2c: 01 00 00 32 69 9B [01:23:52]Write i2c OK [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: 01 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: 01 07 00 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: 01 07 00 32 69 00 00 00 00 00 FF 0F B0 [01:23:52]RasterBufferAndPrint [01:23:52]line Счет N : (3)335419 [01:23:52]line ИНН: 02508201610067 [01:23:52]line Контрольно-Кассовый Чек [01:23:52]line ПРОДАЖА [01:23:52]line Товар: 4640030091645 [01:23:52]line Сигареты ESSE Exchange M [01:23:52]line 1.000 * 159.00 [01:23:52]line = 159.00 [01:23:52]line НДС 12% НСП 1% [01:23:52]line > о реализуемом товаре [01:23:52]line ИТОГО: 159.00 [01:23:52]line НСП 1% : 1.41 [01:23:52]line НДС 12% : 16.88 [01:23:52]line Наличными: 159.00 [01:23:52]line Безнал.: 0.00 [01:23:52]line Место: АЗС № 101 "Партнер Нефть" [01:23:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:23:52]line СНО: Общий режим [01:23:52]line Чек 17 31.10.2024 01:23 [01:23:52]line Смена: 557 ФФД: 1.0 [01:23:52]line ЗНМ: 0300000081 [01:23:52]line РНМ: 0000000000091631 [01:23:52]line Версия ККМ: 001 [01:23:52]line ФМ: 0000000000874669 [01:23:52]line ФД: 139540 [01:23:52]line ФПД: 142843588127547 [01:23:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012358&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139540&fm=142843588127547&tin=02508201610067®Number=0000000000091631&sum=15900 [01:23:52]OFD Sender: Processing packet 139540 [packets to send 34, broken 33] [01:23:52]ProducePacketName [01:23:52]name=ofd_packets/00139540 [01:23:52]OFD Sender: To server: pG, [01:23:52]CommunicateWithHost lk.salyk.kg:30040 [01:23:52]ConnectInit lk.salyk.kg [01:23:52]line 0 [01:23:52]written 0, free lines is 4095 [01:23:52]Connected sock=10 [01:23:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 A0 CF 1E 01 52 B2 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 0D 00 34 36 34 30 30 33 30 30 39 31 36 34 35 06 04 20 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 45 53 53 45 20 45 78 63 68 61 6E 67 65 20 4D FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 1C 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 11 00 00 00 F4 03 04 00 2E DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 21 02 00 35 04 06 00 81 EA 5D 54 2B 3B 55 55 37 82 64 67 F7 21 [01:23:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C2 33 47 00 83 9E A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 14 21 02 00 F4 03 04 00 DD 87 22 67 B6 04 01 00 00 88 CF 01 5E 6F 61 50 17 [01:23:52]CommunicateWithHost err = 0 [01:23:52]CheckOFDResponse [01:23:52]1017 (14) - 77093643461234 [01:23:52]1041 (16) - 0000000000874669 [01:23:52]1040 (4) - 139540 [01:23:52]1012 (4) - 30.10.2024 19:24 [01:23:52]1206 (1) - 0 [01:23:52]OFD Sender: Remove packet 139540 [01:23:52]ProducePacketName [01:23:52]name=ofd_packets/00139540 [01:23:52]NVStorageDeleteData [01:23:52]Write to MH i2c: 01 00 00 5A 69 C3 [01:23:52]Write i2c OK [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: 01 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: 01 07 00 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: 01 07 00 5A 69 00 00 00 00 00 33 0D 0A [01:23:52]RasterBufferAndPrint [01:23:52]line [01:23:52]line [01:23:52]line [01:23:52]line [01:23:52]line [01:23:52]written 0, free lines is 3386 [01:23:52]MH_Cut [01:23:52]Write to MH i2c: D1 01 00 61 69 01 9C [01:23:52]Write i2c OK [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: D1 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: D1 01 00 [01:23:52]MH_I2C_Read... [01:23:52]Read from MH i2c: D1 01 00 61 69 00 9B [01:23:52]Write to MH i2c: 01 00 00 62 69 CB [01:23:52]Write i2c OK [01:23:52]MH_I2C_Read... [01:23:53]OFD Sender: No OFD packet to send [01:23:53]*** Cut start [01:23:53]*** Partial cut [01:23:53]*** CUTSNS_PIN = 1 [01:23:53]*** CUTSNS_PIN = 0 [01:23:53]*** Brake cut motor [01:23:54]Read from MH i2c: 01 [01:23:54]MH_I2C_Read... [01:23:54]*** Stop cut motor [01:23:54]*** Cut end [01:23:54]Read from MH i2c: 01 07 00 [01:23:54]MH_I2C_Read... [01:23:54]Read from MH i2c: 01 07 00 62 69 00 00 00 00 00 FF 0F E0 [01:23:54]process_action close_receipt done [01:23:54]requested_data is exist [01:23:54]produce_requested_data [01:23:54]requested_item fm.sn is exist - process it [01:23:54]wFMCommunicate request_size=4 [01:23:54]MH_SAM_APDU [01:23:54]CAPDU: 80 11 00 00 [01:23:54]Write to MH i2c: E2 08 00 63 69 80 11 00 00 00 00 00 00 46 [01:23:54]Write i2c OK [01:23:54]MH_I2C_Read... [01:23:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:23:54]Read from MH i2c: E2 [01:23:54]MH_I2C_Read... [01:23:54]Read from MH i2c: E2 17 00 [01:23:54]MH_I2C_Read... [01:23:54]Read from MH i2c: E2 17 00 63 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 A1 [01:23:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:23:54]wFMCommunicate OK [01:23:54]requested_item fd.num is exist - process it [01:23:54]SAM_PROTO_GetFieldsCounters [01:23:54]wFMCommunicate request_size=4 [01:23:54]MH_SAM_APDU [01:23:54]CAPDU: 80 13 00 00 [01:23:54]Write to MH i2c: E2 08 00 64 69 80 13 00 00 00 00 00 00 49 [01:23:54]Write i2c OK [01:23:54]MH_I2C_Read... [01:23:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:23:54]Read from MH i2c: E2 [01:23:54]MH_I2C_Read... [01:23:54]Read from MH i2c: E2 62 00 [01:23:54]MH_I2C_Read... [01:23:54]Read from MH i2c: E2 62 00 64 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 14 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 06 [01:23:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 14 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 11 00 00 00 5E 04 04 00 11 00 00 00 57 04 04 00 12 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:23:54]wFMCommunicate OK [01:23:54]SAM_PROTO_GetFieldsCounters done [01:23:54]requested_item shift.num is exist - process it [01:23:54]requested_item shift.opened is exist - process it [01:23:54]req_shift_opened [01:23:54]FM_GetShiftState [01:23:54]SAM_PROTO_GetShiftState [01:23:54]wFMCommunicate request_size=4 [01:23:54]MH_SAM_APDU [01:23:54]CAPDU: 80 13 01 00 [01:23:54]Write to MH i2c: E2 08 00 65 69 80 13 01 00 00 00 00 00 4B [01:23:54]Write i2c OK [01:23:54]MH_I2C_Read... [01:23:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:23:54]Read from MH i2c: E2 [01:23:54]MH_I2C_Read... [01:23:54]Read from MH i2c: E2 0E 00 [01:23:54]MH_I2C_Read... [01:23:54]Read from MH i2c: E2 0E 00 65 69 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 74 [01:23:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:23:54]wFMCommunicate OK [01:23:54]SAM_PROTO_GetShiftState done [01:23:54]FM_GetShiftState done [01:23:54]req_shift_opened done [01:23:54]requested_item shift.open_date is exist - process it [01:23:54]req_shift_open_date [01:23:54]req_shift_open_date done [01:23:54]produce_requested_data done [01:23:54]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139540,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:23:54]process_action_free close_receipt [01:23:54]json_value_free [01:23:54]json_value_free done [01:23:54]process_json_proto returns [01:23:54]Send response to host [01:23:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139540,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:23:54]free response buf [01:23:54]execute_script done [01:23:54]execute_script returns [01:23:54]free content buf [01:23:54]Sock 9.Close socket [01:23:54]Sock 9.Thread stoped [01:23:58]OFD Sender: No OFD packet to send [01:24:03]OFD Sender: No OFD packet to send [01:24:08]OFD Sender: No OFD packet to send [01:24:13]OFD Sender: No OFD packet to send [01:24:18]OFD Sender: No OFD packet to send [01:24:23]OFD Sender: No OFD packet to send [01:24:23]accept exits with 8 [01:24:23]New connection [01:24:23]New thread 3067284836 created [01:24:23]Thread 3067141476 joined [01:24:23]Waiting for new connection... [01:24:23] Sock 8.Parse request [01:24:23]Sock 8.Check first char [01:24:23]Sock 8.First char is OK [01:24:23]request: POST /json_proto HTTP/1.0 [01:24:23]Method: POST [01:24:23]URL: /json_proto [01:24:23]Method is POST - this is cgi request [01:24:23]url: /json_proto [01:24:23]query_string will be loaded in cgi processing [01:24:23]execute_cgi json_proto POST (null) [01:24:23]execute_cgi path=json_proto method=POST [01:24:23]POST find Content-Length [01:24:23]Host: 172.17.50.196:8080 [01:24:23]Content-Length: 875 [01:24:23]Content-Type: application/json [01:24:23] [01:24:23]POST finish read [01:24:23]Found Content-Length = 875 [01:24:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335420", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 214.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:23]execute_script... [01:24: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 : (3)335420", "tax_sys" : 0, "items" : [ { "code": "4630007400358", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 70\u0433", "price" : 70.00, "quantity" : 1.000, "sum" : 70.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 214.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:24:23]POST & json_proto [01:24:23]process_json_proto [01:24:23]json parsed OK: [01:24:23]protocol is kg_v1.0 [01:24:23]action value=close_receipt [01:24:23]process_action close_receipt [01:24:23]cmd_close_receipt [01:24:23]MH_GetDate [01:24:23]Write to MH i2c: F0 00 00 66 69 BE [01:24:23]Write i2c OK [01:24:23]MH_I2C_Read... [01:24:23]Read from MH i2c: F0 [01:24:23]MH_I2C_Read... [01:24:23]Read from MH i2c: F0 09 00 [01:24:23]MH_I2C_Read... [01:24:23]Read from MH i2c: F0 09 00 66 69 00 4F DC 22 67 72 0D 1C 67 7D [01:24:23]GetLastDocTimeStamp 1730337838 [01:24:23]current date 1730337871 [01:24:23]FM_GetShiftState [01:24:23]SAM_PROTO_GetShiftState [01:24:23]wFMCommunicate request_size=4 [01:24:23]MH_SAM_APDU [01:24:23]CAPDU: 80 13 01 00 [01:24:23]Write to MH i2c: E2 08 00 67 69 80 13 01 00 00 00 00 00 4D [01:24:23]Write i2c OK [01:24:23]MH_I2C_Read... [01:24:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:23]Read from MH i2c: E2 [01:24:23]MH_I2C_Read... [01:24:23]Read from MH i2c: E2 0E 00 [01:24:23]MH_I2C_Read... [01:24:23]Read from MH i2c: E2 0E 00 67 69 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 76 [01:24:23]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:24:23]wFMCommunicate OK [01:24:23]SAM_PROTO_GetShiftState done [01:24:23]FM_GetShiftState done [01:24:23]opened in 1730332621 [01:24:23]opened+sec_in_day 1730419021 [01:24:23]quantity*price = 7000 [01:24:23]sum+1 = 7001 [01:24:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48743570 Сигареты Winston XStyle Blue 1.000 * 144.00 = 144.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 214.00 НСП 1% : 1.89 НДС 12% : 22.72 Наличными: 214.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 18 31.10.2024 01:24 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139541 ФПД: 192706898396639 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012431&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139541&fm=192706898396639&tin=02508201610067®Number=0000000000091631&sum=21400 0 [01:24:24]StoreToDocumentArchive [01:24:24]shift 557 fd 139541 [01:24:24]save to /storage/0557/doc_00139541 [01:24:24]save last doc name /storage/0557/doc_00139541 to /storage/kkm_last_doc_name [01:24:24]save OK [01:24:24]Clear old archive folders... [01:24:24]ProcessDocumentItem done err = 0, tmpTLVsize=375 [01:24:24]tlvbuf is 01244F60 [01:24:24]SAM_PROTO_ClearQueue [01:24:24]wFMCommunicate request_size=4 [01:24:24]MH_SAM_APDU [01:24:24]CAPDU: 80 09 00 00 [01:24:24]Write to MH i2c: E2 08 00 74 69 80 09 00 00 00 00 00 00 4F [01:24:24]Write i2c OK [01:24:24]MH_I2C_Read... [01:24:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:24:24]Read from MH i2c: E2 [01:24:24]MH_I2C_Read... [01:24:24]Read from MH i2c: E2 03 00 [01:24:24]MH_I2C_Read... [01:24:24]Read from MH i2c: E2 03 00 74 69 00 90 00 51 [01:24:24]RAPDU: 90 00 [01:24:24]wFMCommunicate OK [01:24:24]SAM_PROTO_ClearQueue done [01:24:24]KKMCreateOFDPacket [01:24:24]OFDProtocolAddRootSTLVToBuf [01:24:24]FM_MakeSignedData [01:24:24]FM_MakeSignedData [01:24:24]SAM_PROTO_SignData [01:24:24]wFMCommunicate request_size=4 [01:24:24]MH_SAM_APDU [01:24:24]CAPDU: 80 0D 01 02 [01:24:24]Write to MH i2c: E2 08 00 75 69 80 0D 01 02 00 00 00 00 57 [01:24:24]Write i2c OK [01:24:24]MH_I2C_Read... [01:24:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:24:24]Read from MH i2c: E2 [01:24:24]MH_I2C_Read... [01:24:24]Read from MH i2c: E2 03 00 [01:24:24]MH_I2C_Read... [01:24:24]Read from MH i2c: E2 03 00 75 69 00 90 00 52 [01:24:24]RAPDU: 90 00 [01:24:24]wFMCommunicate OK [01:24:24]wFMCommunicate request_size=255 [01:24:24]MH_SAM_APDU [01:24:24]CAPDU: 80 0D 02 02 FA 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F [01:24:24]Write to MH i2c: E2 02 01 76 69 80 0D 02 02 FA 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 00 D7 [01:24:24]Write i2c OK [01:24:24]MH_I2C_Read... [01:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:25]Read from MH i2c: E2 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: E2 03 00 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: E2 03 00 76 69 00 90 00 53 [01:24:25]RAPDU: 90 00 [01:24:25]wFMCommunicate OK [01:24:25]wFMCommunicate request_size=134 [01:24:25]MH_SAM_APDU [01:24:25]CAPDU: 80 0D 02 02 81 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 98 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 4F DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 15 21 02 00 35 04 06 00 AF 44 12 39 85 DF [01:24:25]Write to MH i2c: E2 89 00 77 69 80 0D 02 02 81 00 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 98 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 4F DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 15 21 02 00 35 04 06 00 AF 44 12 39 85 DF 00 00 2E [01:24:25]Write i2c OK [01:24:25]MH_I2C_Read... [01:24:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:24:25]Read from MH i2c: E2 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: E2 03 00 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: E2 03 00 77 69 00 90 00 54 [01:24:25]RAPDU: 90 00 [01:24:25]wFMCommunicate OK [01:24:25]wFMCommunicate request_size=4 [01:24:25]MH_SAM_APDU [01:24:25]CAPDU: 80 0D 03 02 [01:24:25]Write to MH i2c: E2 08 00 78 69 80 0D 03 02 00 00 00 00 5C [01:24:25]Write i2c OK [01:24:25]MH_I2C_Read... [01:24:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:24:25]Read from MH i2c: E2 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: E2 0B 00 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: E2 0B 00 78 69 00 09 0F 59 0B B3 3E 8F 89 90 00 E2 [01:24:25]RAPDU: 09 0F 59 0B B3 3E 8F 89 90 00 [01:24:25]wFMCommunicate OK [01:24:25]SAM_PROTO_SignData done [01:24:25]FM_MakeSignedData done [01:24:25]CreateOFDProtocolMessage [01:24:25]wFMCommunicate request_size=4 [01:24:25]MH_SAM_APDU [01:24:25]CAPDU: 80 11 00 00 [01:24:25]Write to MH i2c: E2 08 00 79 69 80 11 00 00 00 00 00 00 5C [01:24:25]Write i2c OK [01:24:25]MH_I2C_Read... [01:24:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:25]Read from MH i2c: E2 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: E2 17 00 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: E2 17 00 79 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B7 [01:24:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:24:25]wFMCommunicate OK [01:24:25]CreateOFDProtocolMessage done [01:24:25]OFDSenderStorePacket 139541 [01:24:25]StoreOFDPacket docnum=139541 [01:24:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8B 01 00 00 22 32 83 01 07 C3 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 98 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 4F DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 15 21 02 00 35 04 06 00 AF 44 12 39 85 DF 09 0F 59 0B B3 3E 8F 89 [01:24:25]CheckFolder [01:24:25]dirname=/storage/ofd_packets [01:24:25]CheckFolder done [01:24:25]ProducePacketName [01:24:25]name=ofd_packets/00139541 [01:24:25]NVStorageSaveData ofd_packets/00139541 [01:24:25]File name is /storage/ofd_packets/00139541 [01:24:25]Write 425 bytes [01:24:25]NVStorageSaveData done [01:24:25]OFDSenderStorePacket done [01:24:25]KKMCreateOFDPacket done [01:24:25]NVStorageSaveData kkm_last_timestamp [01:24:25]File name is /storage/kkm_last_timestamp [01:24:25]Write 4 bytes [01:24:25]NVStorageSaveData done [01:24:25]ExternCall_PrintAddStr [01:24:25]wPrintStart [01:24:25]Write to MH i2c: 01 00 00 7A 69 E3 [01:24:25]Write i2c OK [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: 01 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: 01 07 00 [01:24:25]MH_I2C_Read... [01:24:25]Read from MH i2c: 01 07 00 7A 69 00 00 00 00 00 FF 0F F8 [01:24:25]RasterBufferAndPrint [01:24:25]line Счет N : (3)335420 [01:24:25]line ИНН: 02508201610067 [01:24:25]line Контрольно-Кассовый Чек [01:24:25]line ПРОДАЖА [01:24:25]line Товар: 4630007400358 [01:24:25]line Семечки ДЖИНН 70г [01:24:25]line 1.000 * 70.00 [01:24:25]line = 70.00 [01:24:25]line НДС 12% НСП 1% [01:24:25]line > о реализуемом товаре [01:24:25]line Товар: 48743570 [01:24:25]line Сигареты Winston XStyle Blue [01:24:25]line 1.000 * 144.00 [01:24:25]line = 144.00 [01:24:25]line НДС 12% НСП 1% [01:24:25]line > о реализуемом товаре [01:24:25]line ИТОГО: 214.00 [01:24:25]line НСП 1% : 1.89 [01:24:25]line НДС 12% : 22.72 [01:24:25]line Наличными: 214.00 [01:24:25]line Безнал.: 0.00 [01:24:25]line Место: АЗС № 101 "Партнер Нефть" [01:24:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:24:25]line СНО: Общий режим [01:24:25]line Чек 18 31.10.2024 01:24 [01:24:25]line Смена: 557 ФФД: 1.0 [01:24:25]line ЗНМ: 0300000081 [01:24:25]line РНМ: 0000000000091631 [01:24:25]line Версия ККМ: 001 [01:24:25]line ФМ: 0000000000874669 [01:24:25]line ФД: 139541 [01:24:25]line ФПД: 192706898396639 [01:24:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012431&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139541&fm=192706898396639&tin=02508201610067®Number=0000000000091631&sum=21400 [01:24:25]line 0 [01:24:25]OFD Sender: Processing packet 139541 [packets to send 34, broken 33] [01:24:25]ProducePacketName [01:24:25]name=ofd_packets/00139541 [01:24:25]OFD Sender: To server: pG, [01:24:25]CommunicateWithHost lk.salyk.kg:30040 [01:24:25]ConnectInit lk.salyk.kg [01:24:25]written 0, free lines is 4095 [01:24:25]Connected sock=10 [01:24:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 8B 01 00 00 22 32 83 01 07 C3 5A 03 01 00 03 00 77 01 1E 04 01 00 01 23 04 62 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 35 38 06 04 1E 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 37 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 58 1B 00 00 00 00 13 04 06 00 58 1B 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 98 53 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 BD 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E0 08 00 00 00 00 07 04 06 00 98 53 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 12 00 00 00 F4 03 04 00 4F DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 15 21 02 00 35 04 06 00 AF 44 12 39 85 DF 09 0F 59 0B B3 3E 8F 89 [01:24:26]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 C8 44 47 00 1D 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 38 37 34 36 36 39 10 04 04 00 15 21 02 00 F4 03 04 00 FE 87 22 67 B6 04 01 00 00 7C F1 CB B4 B5 7D 25 C7 [01:24:26]CommunicateWithHost err = 0 [01:24:26]CheckOFDResponse [01:24:26]1017 (14) - 77093643461234 [01:24:26]1041 (16) - 0000000000874669 [01:24:26]1040 (4) - 139541 [01:24:26]1012 (4) - 30.10.2024 19:24 [01:24:26]1206 (1) - 0 [01:24:26]OFD Sender: Remove packet 139541 [01:24:26]ProducePacketName [01:24:26]name=ofd_packets/00139541 [01:24:26]NVStorageDeleteData [01:24:26]Write to MH i2c: 01 00 00 A8 69 11 [01:24:26]Write i2c OK [01:24:26]MH_I2C_Read... [01:24:26]Read from MH i2c: 01 [01:24:26]MH_I2C_Read... [01:24:26]Read from MH i2c: 01 07 00 [01:24:26]MH_I2C_Read... [01:24:26]Read from MH i2c: 01 07 00 A8 69 00 00 00 00 00 C9 0C ED [01:24:26]RasterBufferAndPrint [01:24:26]line [01:24:26]line [01:24:26]line [01:24:26]line [01:24:26]line [01:24:26]written 0, free lines is 3283 [01:24:26]MH_Cut [01:24:26]Write to MH i2c: D1 01 00 AF 69 01 EA [01:24:26]Write i2c OK [01:24:26]MH_I2C_Read... [01:24:26]Read from MH i2c: D1 [01:24:26]MH_I2C_Read... [01:24:26]Read from MH i2c: D1 01 00 [01:24:26]MH_I2C_Read... [01:24:26]Read from MH i2c: D1 01 00 AF 69 00 E9 [01:24:26]Write to MH i2c: 01 00 00 B0 69 19 [01:24:26]Write i2c OK [01:24:26]MH_I2C_Read... [01:24:26]OFD Sender: No OFD packet to send [01:24:27]*** Cut start [01:24:27]*** Partial cut [01:24:27]*** CUTSNS_PIN = 1 [01:24:27]*** CUTSNS_PIN = 0 [01:24:27]*** Brake cut motor [01:24:27]Read from MH i2c: 01 [01:24:27]MH_I2C_Read... [01:24:27]*** Stop cut motor [01:24:27]*** Cut end [01:24:27]Read from MH i2c: 01 07 00 [01:24:27]MH_I2C_Read... [01:24:27]Read from MH i2c: 01 07 00 B0 69 00 00 00 00 00 FF 0F 2E [01:24:27]process_action close_receipt done [01:24:27]requested_data is exist [01:24:27]produce_requested_data [01:24:27]requested_item fm.sn is exist - process it [01:24:27]wFMCommunicate request_size=4 [01:24:27]MH_SAM_APDU [01:24:27]CAPDU: 80 11 00 00 [01:24:27]Write to MH i2c: E2 08 00 B1 69 80 11 00 00 00 00 00 00 94 [01:24:27]Write i2c OK [01:24:27]MH_I2C_Read... [01:24:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:24:27]Read from MH i2c: E2 [01:24:27]MH_I2C_Read... [01:24:27]Read from MH i2c: E2 17 00 [01:24:27]MH_I2C_Read... [01:24:27]Read from MH i2c: E2 17 00 B1 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 EF [01:24:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:24:27]wFMCommunicate OK [01:24:27]requested_item fd.num is exist - process it [01:24:27]SAM_PROTO_GetFieldsCounters [01:24:27]wFMCommunicate request_size=4 [01:24:27]MH_SAM_APDU [01:24:27]CAPDU: 80 13 00 00 [01:24:27]Write to MH i2c: E2 08 00 B2 69 80 13 00 00 00 00 00 00 97 [01:24:27]Write i2c OK [01:24:27]MH_I2C_Read... [01:24:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:24:27]Read from MH i2c: E2 [01:24:27]MH_I2C_Read... [01:24:27]Read from MH i2c: E2 62 00 [01:24:27]MH_I2C_Read... [01:24:27]Read from MH i2c: E2 62 00 B2 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 15 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 58 [01:24:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 15 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 12 00 00 00 5E 04 04 00 12 00 00 00 57 04 04 00 13 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:24:27]wFMCommunicate OK [01:24:27]SAM_PROTO_GetFieldsCounters done [01:24:27]requested_item shift.num is exist - process it [01:24:27]requested_item shift.opened is exist - process it [01:24:27]req_shift_opened [01:24:27]FM_GetShiftState [01:24:27]SAM_PROTO_GetShiftState [01:24:27]wFMCommunicate request_size=4 [01:24:27]MH_SAM_APDU [01:24:27]CAPDU: 80 13 01 00 [01:24:27]Write to MH i2c: E2 08 00 B3 69 80 13 01 00 00 00 00 00 99 [01:24:27]Write i2c OK [01:24:27]MH_I2C_Read... [01:24:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:24:27]Read from MH i2c: E2 [01:24:27]MH_I2C_Read... [01:24:27]Read from MH i2c: E2 0E 00 [01:24:27]MH_I2C_Read... [01:24:27]Read from MH i2c: E2 0E 00 B3 69 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C2 [01:24:27]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:24:27]wFMCommunicate OK [01:24:27]SAM_PROTO_GetShiftState done [01:24:27]FM_GetShiftState done [01:24:27]req_shift_opened done [01:24:27]requested_item shift.open_date is exist - process it [01:24:27]req_shift_open_date [01:24:27]req_shift_open_date done [01:24:27]produce_requested_data done [01:24:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139541,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:24:27]process_action_free close_receipt [01:24:27]json_value_free [01:24:27]json_value_free done [01:24:27]process_json_proto returns [01:24:27]Send response to host [01:24:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139541,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:24:27]free response buf [01:24:27]execute_script done [01:24:27]execute_script returns [01:24:27]free content buf [01:24:27]Sock 8.Close socket [01:24:27]Sock 8.Thread stoped [01:24:31]OFD Sender: No OFD packet to send [01:24:36]OFD Sender: No OFD packet to send [01:24:41]OFD Sender: No OFD packet to send [01:24:46]OFD Sender: No OFD packet to send [01:24:51]OFD Sender: No OFD packet to send [01:24:56]OFD Sender: No OFD packet to send [01:25:01]OFD Sender: No OFD packet to send [01:25:06]OFD Sender: No OFD packet to send [01:25:11]OFD Sender: No OFD packet to send [01:25:16]OFD Sender: No OFD packet to send [01:25:21]OFD Sender: No OFD packet to send [01:25:26]OFD Sender: No OFD packet to send [01:25:31]accept exits with 9 [01:25:31]New connection [01:25:31]New thread 3067141476 created [01:25:31]Thread 3067284836 joined [01:25:31]Waiting for new connection... [01:25:31] Sock 9.Parse request [01:25:31]Sock 9.Check first char [01:25:31]Sock 9.First char is OK [01:25:31]request: POST /json_proto HTTP/1.0 [01:25:31]Method: POST [01:25:31]URL: /json_proto [01:25:31]Method is POST - this is cgi request [01:25:31]url: /json_proto [01:25:31]query_string will be loaded in cgi processing [01:25:31]execute_cgi json_proto POST (null) [01:25:31]execute_cgi path=json_proto method=POST [01:25:31]POST find Content-Length [01:25:31]Host: 172.17.50.196:8080 [01:25:31]Content-Length: 773 [01:25:31]Content-Type: application/json [01:25:31] [01:25:31]POST finish read [01:25:31]Found Content-Length = 773 [01:25:31]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335421", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:31]execute_script... [01:25: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 : (3)335421", "tax_sys" : 0, "items" : [ { "code": "90162602", "name": "\u042D\u043D\u0435\u0440\u0433 \u043D\u0430\u043F\u0438\u0442\u043E\u043A Red bull 0,25\u043B", "price" : 159.00, "quantity" : 1.000, "sum" : 159.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" : 159.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:25:31]POST & json_proto [01:25:31]process_json_proto [01:25:31]json parsed OK: [01:25:31]protocol is kg_v1.0 [01:25:31]action value=close_receipt [01:25:31]process_action close_receipt [01:25:31]cmd_close_receipt [01:25:31]MH_GetDate [01:25:31]Write to MH i2c: F0 00 00 B4 69 0C [01:25:31]Write i2c OK [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: F0 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: F0 09 00 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: F0 09 00 B4 69 00 93 DC 22 67 72 0D 1C 67 0F [01:25:31]GetLastDocTimeStamp 1730337871 [01:25:31]current date 1730337939 [01:25:31]FM_GetShiftState [01:25:31]SAM_PROTO_GetShiftState [01:25:31]wFMCommunicate request_size=4 [01:25:31]MH_SAM_APDU [01:25:31]CAPDU: 80 13 01 00 [01:25:31]Write to MH i2c: E2 08 00 B5 69 80 13 01 00 00 00 00 00 9B [01:25:31]Write i2c OK [01:25:31]MH_I2C_Read... [01:25:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:31]Read from MH i2c: E2 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: E2 0E 00 [01:25:31]MH_I2C_Read... [01:25:31]Read from MH i2c: E2 0E 00 B5 69 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C4 [01:25:31]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:25:31]wFMCommunicate OK [01:25:31]SAM_PROTO_GetShiftState done [01:25:31]FM_GetShiftState done [01:25:31]opened in 1730332621 [01:25:31]opened+sec_in_day 1730419021 [01:25:31]quantity*price = 15900 [01:25:31]sum+1 = 15901 [01:25:31]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 159.00 НСП 1% : 1.41 НДС 12% : 16.88 Наличными: 0.00 Безнал.: 159.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 19 31.10.2024 01:25 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139542 ФПД: 93594228090951 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012539&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139542&fm=93594228090951&tin=02508201610067®Number=0000000000091631&sum=15900 0 [01:25:32]StoreToDocumentArchive [01:25:32]shift 557 fd 139542 [01:25:32]save to /storage/0557/doc_00139542 [01:25:32]save last doc name /storage/0557/doc_00139542 to /storage/kkm_last_doc_name [01:25:32]save OK [01:25:32]Clear old archive folders... [01:25:32]ProcessDocumentItem done err = 0, tmpTLVsize=278 [01:25:32]tlvbuf is 011AD770 [01:25:32]SAM_PROTO_ClearQueue [01:25:32]wFMCommunicate request_size=4 [01:25:32]MH_SAM_APDU [01:25:32]CAPDU: 80 09 00 00 [01:25:32]Write to MH i2c: E2 08 00 C2 69 80 09 00 00 00 00 00 00 9D [01:25:32]Write i2c OK [01:25:32]MH_I2C_Read... [01:25:32]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:25:32]Read from MH i2c: E2 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 03 00 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 03 00 C2 69 00 90 00 9F [01:25:32]RAPDU: 90 00 [01:25:32]wFMCommunicate OK [01:25:32]SAM_PROTO_ClearQueue done [01:25:32]KKMCreateOFDPacket [01:25:32]OFDProtocolAddRootSTLVToBuf [01:25:32]FM_MakeSignedData [01:25:32]FM_MakeSignedData [01:25:32]SAM_PROTO_SignData [01:25:32]wFMCommunicate request_size=4 [01:25:32]MH_SAM_APDU [01:25:32]CAPDU: 80 0D 01 02 [01:25:32]Write to MH i2c: E2 08 00 C3 69 80 0D 01 02 00 00 00 00 A5 [01:25:32]Write i2c OK [01:25:32]MH_I2C_Read... [01:25:32]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:25:32]Read from MH i2c: E2 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 03 00 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 03 00 C3 69 00 90 00 A0 [01:25:32]RAPDU: 90 00 [01:25:32]wFMCommunicate OK [01:25:32]wFMCommunicate request_size=255 [01:25:32]MH_SAM_APDU [01:25:32]CAPDU: 80 0D 02 02 FA 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 93 DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 [01:25:32]Write to MH i2c: E2 02 01 C4 69 80 0D 02 02 FA 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 93 DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 00 00 53 [01:25:32]Write i2c OK [01:25:32]MH_I2C_Read... [01:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:32]Read from MH i2c: E2 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 03 00 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 03 00 C4 69 00 90 00 A1 [01:25:32]RAPDU: 90 00 [01:25:32]wFMCommunicate OK [01:25:32]wFMCommunicate request_size=37 [01:25:32]MH_SAM_APDU [01:25:32]CAPDU: 80 0D 02 02 20 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 16 21 02 00 35 04 06 00 55 1F 9A B7 E8 47 [01:25:32]Write to MH i2c: E2 28 00 C5 69 80 0D 02 02 20 00 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 16 21 02 00 35 04 06 00 55 1F 9A B7 E8 47 00 00 34 [01:25:32]Write i2c OK [01:25:32]MH_I2C_Read... [01:25:32]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:25:32]Read from MH i2c: E2 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 03 00 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 03 00 C5 69 00 90 00 A2 [01:25:32]RAPDU: 90 00 [01:25:32]wFMCommunicate OK [01:25:32]wFMCommunicate request_size=4 [01:25:32]MH_SAM_APDU [01:25:32]CAPDU: 80 0D 03 02 [01:25:32]Write to MH i2c: E2 08 00 C6 69 80 0D 03 02 00 00 00 00 AA [01:25:32]Write i2c OK [01:25:32]MH_I2C_Read... [01:25:32]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:25:32]Read from MH i2c: E2 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 0B 00 [01:25:32]MH_I2C_Read... [01:25:32]Read from MH i2c: E2 0B 00 C6 69 00 BE DB 75 D0 A5 7A 14 1A 90 00 D6 [01:25:32]RAPDU: BE DB 75 D0 A5 7A 14 1A 90 00 [01:25:32]wFMCommunicate OK [01:25:32]SAM_PROTO_SignData done [01:25:32]FM_MakeSignedData done [01:25:32]CreateOFDProtocolMessage [01:25:32]wFMCommunicate request_size=4 [01:25:32]MH_SAM_APDU [01:25:32]CAPDU: 80 11 00 00 [01:25:32]Write to MH i2c: E2 08 00 C7 69 80 11 00 00 00 00 00 00 AA [01:25:32]Write i2c OK [01:25:32]MH_I2C_Read... [01:25:33]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:33]Read from MH i2c: E2 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: E2 17 00 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: E2 17 00 C7 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 05 [01:25:33]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:25:33]wFMCommunicate OK [01:25:33]CreateOFDProtocolMessage done [01:25:33]OFDSenderStorePacket 139542 [01:25:33]StoreOFDPacket docnum=139542 [01:25:33]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 6C 06 22 01 B4 90 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 93 DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 16 21 02 00 35 04 06 00 55 1F 9A B7 E8 47 BE DB 75 D0 A5 7A 14 1A [01:25:33]CheckFolder [01:25:33]dirname=/storage/ofd_packets [01:25:33]CheckFolder done [01:25:33]ProducePacketName [01:25:33]name=ofd_packets/00139542 [01:25:33]NVStorageSaveData ofd_packets/00139542 [01:25:33]File name is /storage/ofd_packets/00139542 [01:25:33]Write 328 bytes [01:25:33]NVStorageSaveData done [01:25:33]OFDSenderStorePacket done [01:25:33]KKMCreateOFDPacket done [01:25:33]NVStorageSaveData kkm_last_timestamp [01:25:33]File name is /storage/kkm_last_timestamp [01:25:33]Write 4 bytes [01:25:33]NVStorageSaveData done [01:25:33]ExternCall_PrintAddStr [01:25:33]wPrintStart [01:25:33]Write to MH i2c: 01 00 00 C8 69 31 [01:25:33]OFD Sender: Processing packet 139542 [packets to send 34, broken 33] [01:25:33]ProducePacketName [01:25:33]name=ofd_packets/00139542 [01:25:33]OFD Sender: To server: pG, [01:25:33]CommunicateWithHost lk.salyk.kg:30040 [01:25:33]ConnectInit lk.salyk.kg [01:25:33]Write i2c OK [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 07 00 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 07 00 C8 69 00 00 00 00 00 FF 0F 46 [01:25:33]RasterBufferAndPrint [01:25:33]line Счет N : (3)335421 [01:25:33]line ИНН: 02508201610067 [01:25:33]line Контрольно-Кассовый Чек [01:25:33]line ПРОДАЖА [01:25:33]line Товар: 90162602 [01:25:33]line Энерг напиток Red bull 0,25л [01:25:33]line 1.000 * 159.00 [01:25:33]line = 159.00 [01:25:33]line НДС 12% НСП 1% [01:25:33]line > о реализуемом товаре [01:25:33]line ИТОГО: 159.00 [01:25:33]line НСП 1% : 1.41 [01:25:33]line НДС 12% : 16.88 [01:25:33]line Наличными: 0.00 [01:25:33]line Безнал.: 159.00 [01:25:33]line Место: АЗС № 101 "Партнер Нефть" [01:25:33]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:25:33]line СНО: Общий режим [01:25:33]line Чек 19 31.10.2024 01:25 [01:25:33]line Смена: 557 ФФД: 1.0 [01:25:33]line ЗНМ: 0300000081 [01:25:33]line РНМ: 0000000000091631 [01:25:33]line Версия ККМ: 001 [01:25:33]line Платежная система: Mbank [01:25:33]line ФМ: 0000000000874669 [01:25:33]line ФД: 139542 [01:25:33]line ФПД: 93594228090951 [01:25:33]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T012539&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139542&fm=93594228090951&tin=02508201610067®Number=0000000000091631&sum=15900 [01:25:33]Connected sock=10 [01:25:33]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2A 01 00 00 6C 06 22 01 B4 90 5A 03 01 00 03 00 16 01 1E 04 01 00 01 23 04 68 00 8A 04 08 00 39 30 31 36 32 36 30 32 06 04 29 00 D0 AD D0 BD D0 B5 D1 80 D0 B3 20 D0 BD D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 52 65 64 20 62 75 6C 6C 20 30 2C 32 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 3E 00 00 00 00 13 04 06 00 1C 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8D 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 98 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 1C 3E 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 13 00 00 00 F4 03 04 00 93 DC 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 16 21 02 00 35 04 06 00 55 1F 9A B7 E8 47 BE DB 75 D0 A5 7A 14 1A [01:25:33]line 0 [01:25:33]written 0, free lines is 4095 [01:25:33]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 CD 3A 47 00 92 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 38 37 34 36 36 39 10 04 04 00 16 21 02 00 F4 03 04 00 42 88 22 67 B6 04 01 00 00 78 8D 1E 87 D3 19 03 D2 [01:25:33]CommunicateWithHost err = 0 [01:25:33]CheckOFDResponse [01:25:33]1017 (14) - 77093643461234 [01:25:33]1041 (16) - 0000000000874669 [01:25:33]1040 (4) - 139542 [01:25:33]1012 (4) - 30.10.2024 19:25 [01:25:33]1206 (1) - 0 [01:25:33]OFD Sender: Remove packet 139542 [01:25:33]ProducePacketName [01:25:33]name=ofd_packets/00139542 [01:25:33]NVStorageDeleteData [01:25:33]Write to MH i2c: 01 00 00 F1 69 5A [01:25:33]Write i2c OK [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 07 00 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: 01 07 00 F1 69 00 00 00 00 00 14 0D 82 [01:25:33]RasterBufferAndPrint [01:25:33]line [01:25:33]line [01:25:33]line [01:25:33]line [01:25:33]line [01:25:33]written 0, free lines is 3358 [01:25:33]MH_Cut [01:25:33]Write to MH i2c: D1 01 00 F8 69 01 33 [01:25:33]Write i2c OK [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: D1 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: D1 01 00 [01:25:33]MH_I2C_Read... [01:25:33]Read from MH i2c: D1 01 00 F8 69 00 32 [01:25:33]Write to MH i2c: 01 00 00 F9 69 62 [01:25:33]Write i2c OK [01:25:33]MH_I2C_Read... [01:25:34]OFD Sender: No OFD packet to send [01:25:34]*** Cut start [01:25:34]*** Partial cut [01:25:34]*** CUTSNS_PIN = 1 [01:25:34]*** CUTSNS_PIN = 0 [01:25:34]*** Brake cut motor [01:25:35]Read from MH i2c: 01 [01:25:35]MH_I2C_Read... [01:25:35]*** Stop cut motor [01:25:35]*** Cut end [01:25:35]Read from MH i2c: 01 07 00 [01:25:35]MH_I2C_Read... [01:25:35]Read from MH i2c: 01 07 00 F9 69 00 00 00 00 00 FF 0F 77 [01:25:35]process_action close_receipt done [01:25:35]requested_data is exist [01:25:35]produce_requested_data [01:25:35]requested_item fm.sn is exist - process it [01:25:35]wFMCommunicate request_size=4 [01:25:35]MH_SAM_APDU [01:25:35]CAPDU: 80 11 00 00 [01:25:35]Write to MH i2c: E2 08 00 FA 69 80 11 00 00 00 00 00 00 DD [01:25:35]Write i2c OK [01:25:35]MH_I2C_Read... [01:25:35]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:25:35]Read from MH i2c: E2 [01:25:35]MH_I2C_Read... [01:25:35]Read from MH i2c: E2 17 00 [01:25:35]MH_I2C_Read... [01:25:35]Read from MH i2c: E2 17 00 FA 69 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 38 [01:25:35]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:25:35]wFMCommunicate OK [01:25:35]requested_item fd.num is exist - process it [01:25:35]SAM_PROTO_GetFieldsCounters [01:25:35]wFMCommunicate request_size=4 [01:25:35]MH_SAM_APDU [01:25:35]CAPDU: 80 13 00 00 [01:25:35]Write to MH i2c: E2 08 00 FB 69 80 13 00 00 00 00 00 00 E0 [01:25:35]Write i2c OK [01:25:35]MH_I2C_Read... [01:25:35]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:25:35]Read from MH i2c: E2 [01:25:35]MH_I2C_Read... [01:25:35]Read from MH i2c: E2 62 00 [01:25:35]MH_I2C_Read... [01:25:35]Read from MH i2c: E2 62 00 FB 69 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 16 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 A5 [01:25:35]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 16 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 13 00 00 00 5E 04 04 00 13 00 00 00 57 04 04 00 14 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:25:35]wFMCommunicate OK [01:25:35]SAM_PROTO_GetFieldsCounters done [01:25:35]requested_item shift.num is exist - process it [01:25:35]requested_item shift.opened is exist - process it [01:25:35]req_shift_opened [01:25:35]FM_GetShiftState [01:25:35]SAM_PROTO_GetShiftState [01:25:35]wFMCommunicate request_size=4 [01:25:35]MH_SAM_APDU [01:25:35]CAPDU: 80 13 01 00 [01:25:35]Write to MH i2c: E2 08 00 FC 69 80 13 01 00 00 00 00 00 E2 [01:25:35]Write i2c OK [01:25:35]MH_I2C_Read... [01:25:35]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:25:35]Read from MH i2c: E2 [01:25:35]MH_I2C_Read... [01:25:35]Read from MH i2c: E2 0E 00 [01:25:35]MH_I2C_Read... [01:25:35]Read from MH i2c: E2 0E 00 FC 69 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0B [01:25:35]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:25:35]wFMCommunicate OK [01:25:35]SAM_PROTO_GetShiftState done [01:25:35]FM_GetShiftState done [01:25:35]req_shift_opened done [01:25:35]requested_item shift.open_date is exist - process it [01:25:35]req_shift_open_date [01:25:35]req_shift_open_date done [01:25:35]produce_requested_data done [01:25:35]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139542,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:25:35]process_action_free close_receipt [01:25:35]json_value_free [01:25:35]json_value_free done [01:25:35]process_json_proto returns [01:25:35]Send response to host [01:25:35]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139542,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:25:35]free response buf [01:25:35]execute_script done [01:25:35]execute_script returns [01:25:35]free content buf [01:25:35]Sock 9.Close socket [01:25:35]Sock 9.Thread stoped [01:25:39]OFD Sender: No OFD packet to send [01:25:44]OFD Sender: No OFD packet to send [01:25:49]OFD Sender: No OFD packet to send [01:25:54]OFD Sender: No OFD packet to send [01:25:59]OFD Sender: No OFD packet to send [01:26:04]OFD Sender: No OFD packet to send [01:26:09]OFD Sender: No OFD packet to send [01:26:14]OFD Sender: No OFD packet to send [01:26:19]OFD Sender: No OFD packet to send [01:26:24]OFD Sender: No OFD packet to send [01:26:29]OFD Sender: No OFD packet to send [01:26:34]OFD Sender: No OFD packet to send [01:26:39]OFD Sender: No OFD packet to send [01:26:44]OFD Sender: No OFD packet to send [01:26:49]OFD Sender: No OFD packet to send [01:26:54]OFD Sender: No OFD packet to send [01:26:59]OFD Sender: No OFD packet to send [01:27:04]OFD Sender: No OFD packet to send [01:27:09]OFD Sender: No OFD packet to send [01:27:14]OFD Sender: No OFD packet to send [01:27:19]OFD Sender: No OFD packet to send [01:27:24]OFD Sender: No OFD packet to send [01:27:29]OFD Sender: No OFD packet to send [01:27:34]OFD Sender: No OFD packet to send [01:27:39]OFD Sender: No OFD packet to send [01:27:44]OFD Sender: No OFD packet to send [01:27:49]OFD Sender: No OFD packet to send [01:27:54]OFD Sender: No OFD packet to send [01:27:59]OFD Sender: No OFD packet to send [01:28:04]OFD Sender: No OFD packet to send [01:28:09]OFD Sender: No OFD packet to send [01:28:14]OFD Sender: No OFD packet to send [01:28:19]OFD Sender: No OFD packet to send [01:28:24]OFD Sender: No OFD packet to send [01:28:29]OFD Sender: No OFD packet to send [01:28:34]OFD Sender: No OFD packet to send [01:28:39]OFD Sender: No OFD packet to send [01:28:44]OFD Sender: No OFD packet to send [01:28:49]OFD Sender: No OFD packet to send [01:28:54]OFD Sender: No OFD packet to send [01:28:59]OFD Sender: No OFD packet to send [01:29:04]OFD Sender: No OFD packet to send [01:29:09]OFD Sender: No OFD packet to send [01:29:14]OFD Sender: No OFD packet to send [01:29:19]OFD Sender: No OFD packet to send [01:29:24]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:18]accept exits with 8 [01:30:18]New connection [01:30:18]New thread 3067284836 created [01:30:18]Thread 3067141476 joined [01:30:18]Waiting for new connection... [01:30:18] Sock 8.Parse request [01:30:18]Sock 8.Check first char [01:30:18]Sock 8.First char is OK [01:30:18]request: POST /json_proto HTTP/1.0 [01:30:18]Method: POST [01:30:18]URL: /json_proto [01:30:18]Method is POST - this is cgi request [01:30:18]url: /json_proto [01:30:18]query_string will be loaded in cgi processing [01:30:18]execute_cgi json_proto POST (null) [01:30:18]execute_cgi path=json_proto method=POST [01:30:18]POST find Content-Length [01:30:18]Host: 172.17.50.196:8080 [01:30:18]Content-Length: 893 [01:30:18]Content-Type: application/json [01:30:18] [01:30:18]POST finish read [01:30:18]Found Content-Length = 893 [01:30:18]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335422", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:18]execute_script... [01: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 : (3)335422", "tax_sys" : 0, "items" : [ { "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 180.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:30:18]POST & json_proto [01:30:18]process_json_proto [01:30:18]json parsed OK: [01:30:18]protocol is kg_v1.0 [01:30:18]action value=close_receipt [01:30:18]process_action close_receipt [01:30:18]cmd_close_receipt [01:30:18]MH_GetDate [01:30:18]Write to MH i2c: F0 00 00 FD 69 55 [01:30:18]Write i2c OK [01:30:18]MH_I2C_Read... [01:30:18]Read from MH i2c: F0 [01:30:18]MH_I2C_Read... [01:30:18]Read from MH i2c: F0 09 00 [01:30:18]MH_I2C_Read... [01:30:18]Read from MH i2c: F0 09 00 FD 69 00 B2 DD 22 67 72 0D 1C 67 78 [01:30:18]GetLastDocTimeStamp 1730337939 [01:30:18]current date 1730338226 [01:30:18]FM_GetShiftState [01:30:18]SAM_PROTO_GetShiftState [01:30:18]wFMCommunicate request_size=4 [01:30:18]MH_SAM_APDU [01:30:18]CAPDU: 80 13 01 00 [01:30:18]Write to MH i2c: E2 08 00 FE 69 80 13 01 00 00 00 00 00 E4 [01:30:18]Write i2c OK [01:30:18]MH_I2C_Read... [01:30:18]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:18]Read from MH i2c: E2 [01:30:18]MH_I2C_Read... [01:30:18]Read from MH i2c: E2 0E 00 [01:30:18]MH_I2C_Read... [01:30:18]Read from MH i2c: E2 0E 00 FE 69 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 0D [01:30:18]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:30:18]wFMCommunicate OK [01:30:18]SAM_PROTO_GetShiftState done [01:30:18]FM_GetShiftState done [01:30:18]opened in 1730332621 [01:30:18]opened+sec_in_day 1730419021 [01:30:18]quantity*price = 5000 [01:30:18]sum+1 = 5001 [01:30:18]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 180.00 НСП 1% : 1.59 НДС 12% : 19.11 Наличными: 180.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 20 31.10.2024 01:30 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139543 ФПД: 110850001057600 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T013026&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139543&fm=110850001057600&tin=02508201610067®Number=0000000000091631&sum=18000 0 [01:30:19]StoreToDocumentArchive [01:30:19]shift 557 fd 139543 [01:30:19]save to /storage/0557/doc_00139543 [01:30:19]save last doc name /storage/0557/doc_00139543 to /storage/kkm_last_doc_name [01:30:19]save OK [01:30:19]Clear old archive folders... [01:30:19]ProcessDocumentItem done err = 0, tmpTLVsize=381 [01:30:19]tlvbuf is 0112D640 [01:30:19]SAM_PROTO_ClearQueue [01:30:19]wFMCommunicate request_size=4 [01:30:19]MH_SAM_APDU [01:30:19]CAPDU: 80 09 00 00 [01:30:19]Write to MH i2c: E2 08 00 0B 6A 80 09 00 00 00 00 00 00 E7 [01:30:19]Write i2c OK [01:30:19]MH_I2C_Read... [01:30:19]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:30:19]Read from MH i2c: E2 [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: E2 03 00 [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: E2 03 00 0B 6A 00 90 00 E9 [01:30:19]RAPDU: 90 00 [01:30:19]wFMCommunicate OK [01:30:19]SAM_PROTO_ClearQueue done [01:30:19]KKMCreateOFDPacket [01:30:19]OFDProtocolAddRootSTLVToBuf [01:30:19]FM_MakeSignedData [01:30:19]FM_MakeSignedData [01:30:19]SAM_PROTO_SignData [01:30:19]wFMCommunicate request_size=4 [01:30:19]MH_SAM_APDU [01:30:19]CAPDU: 80 0D 01 02 [01:30:19]Write to MH i2c: E2 08 00 0C 6A 80 0D 01 02 00 00 00 00 EF [01:30:19]Write i2c OK [01:30:19]MH_I2C_Read... [01:30:19]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:30:19]Read from MH i2c: E2 [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: E2 03 00 [01:30:19]MH_I2C_Read... [01:30:19]Read from MH i2c: E2 03 00 0C 6A 00 90 00 EA [01:30:19]RAPDU: 90 00 [01:30:19]wFMCommunicate OK [01:30:19]wFMCommunicate request_size=255 [01:30:19]MH_SAM_APDU [01:30:19]CAPDU: 80 0D 02 02 FA 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 [01:30:19]Write to MH i2c: E2 02 01 0D 6A 80 0D 02 02 FA 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 B1 [01:30:19]Write i2c OK [01:30:19]MH_I2C_Read... [01:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:20]Read from MH i2c: E2 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 03 00 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 03 00 0D 6A 00 90 00 EB [01:30:20]RAPDU: 90 00 [01:30:20]wFMCommunicate OK [01:30:20]wFMCommunicate request_size=140 [01:30:20]MH_SAM_APDU [01:30:20]CAPDU: 80 0D 02 02 87 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B2 DD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 17 21 02 00 35 04 06 00 64 D1 46 EF B7 40 [01:30:20]Write to MH i2c: E2 8F 00 0E 6A 80 0D 02 02 87 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B2 DD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 17 21 02 00 35 04 06 00 64 D1 46 EF B7 40 00 00 3A [01:30:20]Write i2c OK [01:30:20]MH_I2C_Read... [01:30:20]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:30:20]Read from MH i2c: E2 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 03 00 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 03 00 0E 6A 00 90 00 EC [01:30:20]RAPDU: 90 00 [01:30:20]wFMCommunicate OK [01:30:20]wFMCommunicate request_size=4 [01:30:20]MH_SAM_APDU [01:30:20]CAPDU: 80 0D 03 02 [01:30:20]Write to MH i2c: E2 08 00 0F 6A 80 0D 03 02 00 00 00 00 F4 [01:30:20]Write i2c OK [01:30:20]MH_I2C_Read... [01:30:20]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:30:20]Read from MH i2c: E2 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 0B 00 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 0B 00 0F 6A 00 17 18 B9 81 2E EE A8 AB 90 00 CD [01:30:20]RAPDU: 17 18 B9 81 2E EE A8 AB 90 00 [01:30:20]wFMCommunicate OK [01:30:20]SAM_PROTO_SignData done [01:30:20]FM_MakeSignedData done [01:30:20]CreateOFDProtocolMessage [01:30:20]wFMCommunicate request_size=4 [01:30:20]MH_SAM_APDU [01:30:20]CAPDU: 80 11 00 00 [01:30:20]Write to MH i2c: E2 08 00 10 6A 80 11 00 00 00 00 00 00 F4 [01:30:20]Write i2c OK [01:30:20]MH_I2C_Read... [01:30:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:20]Read from MH i2c: E2 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 17 00 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: E2 17 00 10 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4F [01:30:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:30:20]wFMCommunicate OK [01:30:20]CreateOFDProtocolMessage done [01:30:20]OFDSenderStorePacket 139543 [01:30:20]StoreOFDPacket docnum=139543 [01:30:20]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 91 01 00 00 D3 13 89 01 ED 57 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B2 DD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 17 21 02 00 35 04 06 00 64 D1 46 EF B7 40 17 18 B9 81 2E EE A8 AB [01:30:20]CheckFolder [01:30:20]dirname=/storage/ofd_packets [01:30:20]CheckFolder done [01:30:20]ProducePacketName [01:30:20]name=ofd_packets/00139543 [01:30:20]NVStorageSaveData ofd_packets/00139543 [01:30:20]File name is /storage/ofd_packets/00139543 [01:30:20]Write 431 bytes [01:30:20]NVStorageSaveData done [01:30:20]OFDSenderStorePacket done [01:30:20]KKMCreateOFDPacket done [01:30:20]NVStorageSaveData kkm_last_timestamp [01:30:20]File name is /storage/kkm_last_timestamp [01:30:20]Write 4 bytes [01:30:20]NVStorageSaveData done [01:30:20]ExternCall_PrintAddStr [01:30:20]wPrintStart [01:30:20]Write to MH i2c: 01 00 00 11 6A 7B [01:30:20]Write i2c OK [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: 01 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: 01 07 00 [01:30:20]MH_I2C_Read... [01:30:20]Read from MH i2c: 01 07 00 11 6A 00 00 00 00 00 FF 0F 90 [01:30:20]RasterBufferAndPrint [01:30:20]line Счет N : (3)335422 [01:30:20]line ИНН: 02508201610067 [01:30:20]line Контрольно-Кассовый Чек [01:30:20]line ПРОДАЖА [01:30:20]line Товар: 4700000160358 [01:30:20]line Вода Легенда 1л [01:30:20]line 1.000 * 50.00 [01:30:20]line = 50.00 [01:30:20]line НДС 12% НСП 1% [01:30:20]line > о реализуемом товаре [01:30:20]line Товар: 2000036220012 [01:30:20]line Кофе Капучино XL(GABB TRADE) [01:30:20]line 1.000 * 130.00 [01:30:20]line = 130.00 [01:30:20]line НДС 12% НСП 1% [01:30:20]line > о реализуемом товаре [01:30:20]line ИТОГО: 180.00 [01:30:20]line НСП 1% : 1.59 [01:30:20]line НДС 12% : 19.11 [01:30:20]line Наличными: 180.00 [01:30:20]line Безнал.: 0.00 [01:30:20]line Место: АЗС № 101 "Партнер Нефть" [01:30:20]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:30:20]line СНО: Общий режим [01:30:20]line Чек 20 31.10.2024 01:30 [01:30:20]line Смена: 557 ФФД: 1.0 [01:30:20]line ЗНМ: 0300000081 [01:30:20]line РНМ: 0000000000091631 [01:30:20]line Версия ККМ: 001 [01:30:20]line ФМ: 0000000000874669 [01:30:20]line ФД: 139543 [01:30:20]line ФПД: 110850001057600 [01:30:20]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T013026&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139543&fm=110850001057600&tin=02508201610067®Number=0000000000091631&sum=18000 [01:30:20]line 0 [01:30:20]OFD Sender: Processing packet 139543 [packets to send 34, broken 33] [01:30:20]ProducePacketName [01:30:20]name=ofd_packets/00139543 [01:30:20]OFD Sender: To server: pG, [01:30:20]CommunicateWithHost lk.salyk.kg:30040 [01:30:20]ConnectInit lk.salyk.kg [01:30:20]written 0, free lines is 4095 [01:30:20]Connected sock=10 [01:30:20]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 91 01 00 00 D3 13 89 01 ED 57 5A 03 01 00 03 00 7D 01 1E 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 50 46 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 9F 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 77 07 00 00 00 00 07 04 06 00 50 46 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 14 00 00 00 F4 03 04 00 B2 DD 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 17 21 02 00 35 04 06 00 64 D1 46 EF B7 40 17 18 B9 81 2E EE A8 AB [01:30:20]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DF D8 47 00 BB 9A A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 17 21 02 00 F4 03 04 00 61 89 22 67 B6 04 01 00 00 C4 34 6C B2 4D 57 F8 25 [01:30:20]CommunicateWithHost err = 0 [01:30:20]CheckOFDResponse [01:30:20]1017 (14) - 77093643461234 [01:30:20]1041 (16) - 0000000000874669 [01:30:20]1040 (4) - 139543 [01:30:20]1012 (4) - 30.10.2024 19:30 [01:30:20]1206 (1) - 0 [01:30:20]OFD Sender: Remove packet 139543 [01:30:20]ProducePacketName [01:30:20]name=ofd_packets/00139543 [01:30:20]NVStorageDeleteData [01:30:21]Write to MH i2c: 01 00 00 40 6A AA [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: 01 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: 01 07 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: 01 07 00 40 6A 00 00 00 00 00 BA 0C 77 [01:30:21]RasterBufferAndPrint [01:30:21]line [01:30:21]line [01:30:21]line [01:30:21]line [01:30:21]line [01:30:21]written 0, free lines is 3267 [01:30:21]MH_Cut [01:30:21]Write to MH i2c: D1 01 00 47 6A 01 83 [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: D1 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: D1 01 00 [01:30:21]MH_I2C_Read... [01:30:21]Read from MH i2c: D1 01 00 47 6A 00 82 [01:30:21]Write to MH i2c: 01 00 00 48 6A B2 [01:30:21]Write i2c OK [01:30:21]MH_I2C_Read... [01:30:21]OFD Sender: No OFD packet to send [01:30:21]*** Cut start [01:30:21]*** Partial cut [01:30:21]*** CUTSNS_PIN = 1 [01:30:21]*** CUTSNS_PIN = 0 [01:30:22]*** Brake cut motor [01:30:22]Read from MH i2c: 01 [01:30:22]MH_I2C_Read... [01:30:22]*** Stop cut motor [01:30:22]*** Cut end [01:30:22]Read from MH i2c: 01 07 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: 01 07 00 48 6A 00 00 00 00 00 FF 0F C7 [01:30:22]process_action close_receipt done [01:30:22]requested_data is exist [01:30:22]produce_requested_data [01:30:22]requested_item fm.sn is exist - process it [01:30:22]wFMCommunicate request_size=4 [01:30:22]MH_SAM_APDU [01:30:22]CAPDU: 80 11 00 00 [01:30:22]Write to MH i2c: E2 08 00 49 6A 80 11 00 00 00 00 00 00 2D [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:30:22]Read from MH i2c: E2 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 17 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 17 00 49 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 88 [01:30:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:30:22]wFMCommunicate OK [01:30:22]requested_item fd.num is exist - process it [01:30:22]SAM_PROTO_GetFieldsCounters [01:30:22]wFMCommunicate request_size=4 [01:30:22]MH_SAM_APDU [01:30:22]CAPDU: 80 13 00 00 [01:30:22]Write to MH i2c: E2 08 00 4A 6A 80 13 00 00 00 00 00 00 30 [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:30:22]Read from MH i2c: E2 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 62 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 62 00 4A 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 17 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 F9 [01:30:22]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 17 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 14 00 00 00 5E 04 04 00 14 00 00 00 57 04 04 00 15 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:30:22]wFMCommunicate OK [01:30:22]SAM_PROTO_GetFieldsCounters done [01:30:22]requested_item shift.num is exist - process it [01:30:22]requested_item shift.opened is exist - process it [01:30:22]req_shift_opened [01:30:22]FM_GetShiftState [01:30:22]SAM_PROTO_GetShiftState [01:30:22]wFMCommunicate request_size=4 [01:30:22]MH_SAM_APDU [01:30:22]CAPDU: 80 13 01 00 [01:30:22]Write to MH i2c: E2 08 00 4B 6A 80 13 01 00 00 00 00 00 32 [01:30:22]Write i2c OK [01:30:22]MH_I2C_Read... [01:30:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:30:22]Read from MH i2c: E2 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 0E 00 [01:30:22]MH_I2C_Read... [01:30:22]Read from MH i2c: E2 0E 00 4B 6A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5B [01:30:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:30:22]wFMCommunicate OK [01:30:22]SAM_PROTO_GetShiftState done [01:30:22]FM_GetShiftState done [01:30:22]req_shift_opened done [01:30:22]requested_item shift.open_date is exist - process it [01:30:22]req_shift_open_date [01:30:22]req_shift_open_date done [01:30:22]produce_requested_data done [01:30:22]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139543,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:30:22]process_action_free close_receipt [01:30:22]json_value_free [01:30:22]json_value_free done [01:30:22]process_json_proto returns [01:30:22]Send response to host [01:30:22]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139543,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:30:22]free response buf [01:30:22]execute_script done [01:30:22]execute_script returns [01:30:22]free content buf [01:30:22]Sock 8.Close socket [01:30:22]Sock 8.Thread stoped [01:30:26]OFD Sender: No OFD packet to send [01:30:31]OFD Sender: No OFD packet to send [01:30:36]OFD Sender: No OFD packet to send [01:30:41]OFD Sender: No OFD packet to send [01:30:46]OFD Sender: No OFD packet to send [01:30:51]OFD Sender: No OFD packet to send [01:30:56]OFD Sender: No OFD packet to send [01:31:01]OFD Sender: No OFD packet to send [01:31:06]OFD Sender: No OFD packet to send [01:31:11]OFD Sender: No OFD packet to send [01:31:16]OFD Sender: No OFD packet to send [01:31:21]OFD Sender: No OFD packet to send [01:31:26]OFD Sender: No OFD packet to send [01:31:31]OFD Sender: No OFD packet to send [01:31:36]OFD Sender: No OFD packet to send [01:31:41]OFD Sender: No OFD packet to send [01:31:46]OFD Sender: No OFD packet to send [01:31:50]accept exits with 9 [01:31:50]New connection [01:31:50]New thread 3067141476 created [01:31:50]Thread 3067284836 joined [01:31:50]Waiting for new connection... [01:31:50] Sock 9.Parse request [01:31:50]Sock 9.Check first char [01:31:50]Sock 9.First char is OK [01:31:50]request: POST /json_proto HTTP/1.0 [01:31:50]Method: POST [01:31:50]URL: /json_proto [01:31:50]Method is POST - this is cgi request [01:31:50]url: /json_proto [01:31:50]query_string will be loaded in cgi processing [01:31:50]execute_cgi json_proto POST (null) [01:31:50]execute_cgi path=json_proto method=POST [01:31:50]POST find Content-Length [01:31:50]Host: 172.17.50.196:8080 [01:31:50]Content-Length: 622 [01:31:50]Content-Type: application/json [01:31:50] [01:31:50]POST finish read [01:31:50]Found Content-Length = 622 [01:31:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335423", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:50]execute_script... [01:31: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 : (3)335423", "tax_sys" : 0, "items" : [ { "code": "48741958", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Parliament Aqua Blue", "price" : 160.00, "quantity" : 1.000, "sum" : 160.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 160.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:31:50]POST & json_proto [01:31:50]process_json_proto [01:31:50]json parsed OK: [01:31:50]protocol is kg_v1.0 [01:31:50]action value=close_receipt [01:31:50]process_action close_receipt [01:31:50]cmd_close_receipt [01:31:50]MH_GetDate [01:31:50]Write to MH i2c: F0 00 00 4C 6A A5 [01:31:50]Write i2c OK [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: F0 [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: F0 09 00 [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: F0 09 00 4C 6A 00 0E DE 22 67 72 0D 1C 67 25 [01:31:50]GetLastDocTimeStamp 1730338226 [01:31:50]current date 1730338318 [01:31:50]FM_GetShiftState [01:31:50]SAM_PROTO_GetShiftState [01:31:50]wFMCommunicate request_size=4 [01:31:50]MH_SAM_APDU [01:31:50]CAPDU: 80 13 01 00 [01:31:50]Write to MH i2c: E2 08 00 4D 6A 80 13 01 00 00 00 00 00 34 [01:31:50]Write i2c OK [01:31:50]MH_I2C_Read... [01:31:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:50]Read from MH i2c: E2 [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: E2 0E 00 [01:31:50]MH_I2C_Read... [01:31:50]Read from MH i2c: E2 0E 00 4D 6A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5D [01:31:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:31:50]wFMCommunicate OK [01:31:50]SAM_PROTO_GetShiftState done [01:31:50]FM_GetShiftState done [01:31:50]opened in 1730332621 [01:31:50]opened+sec_in_day 1730419021 [01:31:50]quantity*price = 16000 [01:31:50]sum+1 = 16001 [01:31:50]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 160.00 НСП 1% : 1.42 НДС 12% : 16.99 Наличными: 160.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 21 31.10.2024 01:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139544 ФПД: 212643764727852 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T013158&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139544&fm=212643764727852&tin=02508201610067®Number=0000000000091631&sum=16000 0 [01:31:51]StoreToDocumentArchive [01:31:51]shift 557 fd 139544 [01:31:51]save to /storage/0557/doc_00139544 [01:31:51]save last doc name /storage/0557/doc_00139544 to /storage/kkm_last_doc_name [01:31:51]save OK [01:31:51]Clear old archive folders... [01:31:51]ProcessDocumentItem done err = 0, tmpTLVsize=274 [01:31:51]tlvbuf is 0112FB50 [01:31:51]SAM_PROTO_ClearQueue [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 09 00 00 [01:31:51]Write to MH i2c: E2 08 00 5A 6A 80 09 00 00 00 00 00 00 36 [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 5A 6A 00 90 00 38 [01:31:51]RAPDU: 90 00 [01:31:51]wFMCommunicate OK [01:31:51]SAM_PROTO_ClearQueue done [01:31:51]KKMCreateOFDPacket [01:31:51]OFDProtocolAddRootSTLVToBuf [01:31:51]FM_MakeSignedData [01:31:51]FM_MakeSignedData [01:31:51]SAM_PROTO_SignData [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 0D 01 02 [01:31:51]Write to MH i2c: E2 08 00 5B 6A 80 0D 01 02 00 00 00 00 3E [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 5B 6A 00 90 00 39 [01:31:51]RAPDU: 90 00 [01:31:51]wFMCommunicate OK [01:31:51]wFMCommunicate request_size=255 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 0D 02 02 FA 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 0E DE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 [01:31:51]Write to MH i2c: E2 02 01 5C 6A 80 0D 02 02 FA 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 0E DE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 00 00 43 [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]OFD Sender: No OFD packet to send [01:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 5C 6A 00 90 00 3A [01:31:51]RAPDU: 90 00 [01:31:51]wFMCommunicate OK [01:31:51]wFMCommunicate request_size=33 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 0D 02 02 1C 30 30 30 30 38 37 34 36 36 39 10 04 04 00 18 21 02 00 35 04 06 00 C1 65 FC 0F 70 2C [01:31:51]Write to MH i2c: E2 24 00 5D 6A 80 0D 02 02 1C 00 30 30 30 30 38 37 34 36 36 39 10 04 04 00 18 21 02 00 35 04 06 00 C1 65 FC 0F 70 2C 00 00 E0 [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 03 00 5D 6A 00 90 00 3B [01:31:51]RAPDU: 90 00 [01:31:51]wFMCommunicate OK [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 0D 03 02 [01:31:51]Write to MH i2c: E2 08 00 5E 6A 80 0D 03 02 00 00 00 00 43 [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 0B 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 0B 00 5E 6A 00 06 96 9D 6C EE F3 31 39 90 00 34 [01:31:51]RAPDU: 06 96 9D 6C EE F3 31 39 90 00 [01:31:51]wFMCommunicate OK [01:31:51]SAM_PROTO_SignData done [01:31:51]FM_MakeSignedData done [01:31:51]CreateOFDProtocolMessage [01:31:51]wFMCommunicate request_size=4 [01:31:51]MH_SAM_APDU [01:31:51]CAPDU: 80 11 00 00 [01:31:51]Write to MH i2c: E2 08 00 5F 6A 80 11 00 00 00 00 00 00 43 [01:31:51]Write i2c OK [01:31:51]MH_I2C_Read... [01:31:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:51]Read from MH i2c: E2 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 17 00 [01:31:51]MH_I2C_Read... [01:31:51]Read from MH i2c: E2 17 00 5F 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9E [01:31:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:31:51]wFMCommunicate OK [01:31:51]CreateOFDProtocolMessage done [01:31:51]OFDSenderStorePacket 139544 [01:31:51]StoreOFDPacket docnum=139544 [01:31:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 2F 9E 1E 01 91 E3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 0E DE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 18 21 02 00 35 04 06 00 C1 65 FC 0F 70 2C 06 96 9D 6C EE F3 31 39 [01:31:51]CheckFolder [01:31:51]dirname=/storage/ofd_packets [01:31:51]CheckFolder done [01:31:51]ProducePacketName [01:31:51]name=ofd_packets/00139544 [01:31:51]NVStorageSaveData ofd_packets/00139544 [01:31:51]File name is /storage/ofd_packets/00139544 [01:31:51]Write 324 bytes [01:31:51]NVStorageSaveData done [01:31:51]OFDSenderStorePacket done [01:31:51]KKMCreateOFDPacket done [01:31:51]NVStorageSaveData kkm_last_timestamp [01:31:52]File name is /storage/kkm_last_timestamp [01:31:52]Write 4 bytes [01:31:52]NVStorageSaveData done [01:31:52]ExternCall_PrintAddStr [01:31:52]wPrintStart [01:31:52]Write to MH i2c: 01 00 00 60 6A CA [01:31:52]Write i2c OK [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 07 00 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 07 00 60 6A 00 00 00 00 00 FF 0F DF [01:31:52]RasterBufferAndPrint [01:31:52]line Счет N : (3)335423 [01:31:52]line ИНН: 02508201610067 [01:31:52]line Контрольно-Кассовый Чек [01:31:52]line ПРОДАЖА [01:31:52]line Товар: 48741958 [01:31:52]line Сигареты Parliament Aqua Blue [01:31:52]line 1.000 * 160.00 [01:31:52]line = 160.00 [01:31:52]line НДС 12% НСП 1% [01:31:52]line > о реализуемом товаре [01:31:52]line ИТОГО: 160.00 [01:31:52]line НСП 1% : 1.42 [01:31:52]line НДС 12% : 16.99 [01:31:52]line Наличными: 160.00 [01:31:52]line Безнал.: 0.00 [01:31:52]line Место: АЗС № 101 "Партнер Нефть" [01:31:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:31:52]line СНО: Общий режим [01:31:52]line Чек 21 31.10.2024 01:31 [01:31:52]line Смена: 557 ФФД: 1.0 [01:31:52]line ЗНМ: 0300000081 [01:31:52]line РНМ: 0000000000091631 [01:31:52]line Версия ККМ: 001 [01:31:52]line ФМ: 0000000000874669 [01:31:52]line ФД: 139544 [01:31:52]line ФПД: 212643764727852 [01:31:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T013158&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139544&fm=212643764727852&tin=02508201610067®Number=0000000000091631&sum=16000 [01:31:52]line 0 [01:31:52]OFD Sender: Processing packet 139544 [packets to send 34, broken 33] [01:31:52]ProducePacketName [01:31:52]name=ofd_packets/00139544 [01:31:52]OFD Sender: To server: pG, [01:31:52]CommunicateWithHost lk.salyk.kg:30040 [01:31:52]ConnectInit lk.salyk.kg [01:31:52]written 0, free lines is 4095 [01:31:52]Connected sock=10 [01:31:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 26 01 00 00 2F 9E 1E 01 91 E3 5A 03 01 00 03 00 12 01 1E 04 01 00 01 23 04 64 00 8A 04 08 00 34 38 37 34 31 39 35 38 06 04 25 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 50 61 72 6C 69 61 6D 65 6E 74 20 41 71 75 61 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 80 3E 00 00 00 00 13 04 06 00 80 3E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 80 3E 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 8E 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A3 06 00 00 00 00 07 04 06 00 80 3E 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 15 00 00 00 F4 03 04 00 0E DE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 18 21 02 00 35 04 06 00 C1 65 FC 0F 70 2C 06 96 9D 6C EE F3 31 39 [01:31:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 64 F5 47 00 76 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 38 37 34 36 36 39 10 04 04 00 18 21 02 00 F4 03 04 00 BD 89 22 67 B6 04 01 00 00 70 F4 FB 0B 05 47 CC 5A [01:31:52]CommunicateWithHost err = 0 [01:31:52]CheckOFDResponse [01:31:52]1017 (14) - 77093643461234 [01:31:52]1041 (16) - 0000000000874669 [01:31:52]1040 (4) - 139544 [01:31:52]1012 (4) - 30.10.2024 19:32 [01:31:52]1206 (1) - 0 [01:31:52]OFD Sender: Remove packet 139544 [01:31:52]ProducePacketName [01:31:52]name=ofd_packets/00139544 [01:31:52]NVStorageDeleteData [01:31:52]Write to MH i2c: 01 00 00 89 6A F3 [01:31:52]Write i2c OK [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 07 00 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: 01 07 00 89 6A 00 00 00 00 00 FD 0C 03 [01:31:52]RasterBufferAndPrint [01:31:52]line [01:31:52]line [01:31:52]line [01:31:52]line [01:31:52]line [01:31:52]written 0, free lines is 3334 [01:31:52]MH_Cut [01:31:52]Write to MH i2c: D1 01 00 90 6A 01 CC [01:31:52]Write i2c OK [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: D1 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: D1 01 00 [01:31:52]MH_I2C_Read... [01:31:52]Read from MH i2c: D1 01 00 90 6A 00 CB [01:31:52]Write to MH i2c: 01 00 00 91 6A FB [01:31:52]Write i2c OK [01:31:52]MH_I2C_Read... [01:31:53]OFD Sender: No OFD packet to send [01:31:53]*** Cut start [01:31:53]*** Partial cut [01:31:53]*** CUTSNS_PIN = 1 [01:31:53]*** CUTSNS_PIN = 0 [01:31:53]*** Brake cut motor [01:31:54]Read from MH i2c: 01 [01:31:54]MH_I2C_Read... [01:31:54]*** Stop cut motor [01:31:54]*** Cut end [01:31:54]Read from MH i2c: 01 07 00 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: 01 07 00 91 6A 00 00 00 00 00 FF 0F 10 [01:31:54]process_action close_receipt done [01:31:54]requested_data is exist [01:31:54]produce_requested_data [01:31:54]requested_item fm.sn is exist - process it [01:31:54]wFMCommunicate request_size=4 [01:31:54]MH_SAM_APDU [01:31:54]CAPDU: 80 11 00 00 [01:31:54]Write to MH i2c: E2 08 00 92 6A 80 11 00 00 00 00 00 00 76 [01:31:54]Write i2c OK [01:31:54]MH_I2C_Read... [01:31:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:31:54]Read from MH i2c: E2 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 17 00 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 17 00 92 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D1 [01:31:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:31:54]wFMCommunicate OK [01:31:54]requested_item fd.num is exist - process it [01:31:54]SAM_PROTO_GetFieldsCounters [01:31:54]wFMCommunicate request_size=4 [01:31:54]MH_SAM_APDU [01:31:54]CAPDU: 80 13 00 00 [01:31:54]Write to MH i2c: E2 08 00 93 6A 80 13 00 00 00 00 00 00 79 [01:31:54]Write i2c OK [01:31:54]MH_I2C_Read... [01:31:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:31:54]Read from MH i2c: E2 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 62 00 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 62 00 93 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 18 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 46 [01:31:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 18 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 15 00 00 00 5E 04 04 00 15 00 00 00 57 04 04 00 16 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:31:54]wFMCommunicate OK [01:31:54]SAM_PROTO_GetFieldsCounters done [01:31:54]requested_item shift.num is exist - process it [01:31:54]requested_item shift.opened is exist - process it [01:31:54]req_shift_opened [01:31:54]FM_GetShiftState [01:31:54]SAM_PROTO_GetShiftState [01:31:54]wFMCommunicate request_size=4 [01:31:54]MH_SAM_APDU [01:31:54]CAPDU: 80 13 01 00 [01:31:54]Write to MH i2c: E2 08 00 94 6A 80 13 01 00 00 00 00 00 7B [01:31:54]Write i2c OK [01:31:54]MH_I2C_Read... [01:31:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:31:54]Read from MH i2c: E2 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 0E 00 [01:31:54]MH_I2C_Read... [01:31:54]Read from MH i2c: E2 0E 00 94 6A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A4 [01:31:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:31:54]wFMCommunicate OK [01:31:54]SAM_PROTO_GetShiftState done [01:31:54]FM_GetShiftState done [01:31:54]req_shift_opened done [01:31:54]requested_item shift.open_date is exist - process it [01:31:54]req_shift_open_date [01:31:54]req_shift_open_date done [01:31:54]produce_requested_data done [01:31:54]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139544,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:31:54]process_action_free close_receipt [01:31:54]json_value_free [01:31:54]json_value_free done [01:31:54]process_json_proto returns [01:31:54]Send response to host [01:31:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139544,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:31:54]free response buf [01:31:54]execute_script done [01:31:54]execute_script returns [01:31:54]free content buf [01:31:54]Sock 9.Close socket [01:31:54]Sock 9.Thread stoped [01:31:58]OFD Sender: No OFD packet to send [01:32:03]OFD Sender: No OFD packet to send [01:32:08]OFD Sender: No OFD packet to send [01:32:13]OFD Sender: No OFD packet to send [01:32:18]OFD Sender: No OFD packet to send [01:32:23]OFD Sender: No OFD packet to send [01:32:28]OFD Sender: No OFD packet to send [01:32:33]OFD Sender: No OFD packet to send [01:32:38]OFD Sender: No OFD packet to send [01:32:43]OFD Sender: No OFD packet to send [01:32:48]OFD Sender: No OFD packet to send [01:32:53]OFD Sender: No OFD packet to send [01:32:58]OFD Sender: No OFD packet to send [01:33:03]OFD Sender: No OFD packet to send [01:33:08]OFD Sender: No OFD packet to send [01:33:13]OFD Sender: No OFD packet to send [01:33:18]OFD Sender: No OFD packet to send [01:33:23]OFD Sender: No OFD packet to send [01:33:28]OFD Sender: No OFD packet to send [01:33:33]OFD Sender: No OFD packet to send [01:33:38]OFD Sender: No OFD packet to send [01:33:43]OFD Sender: No OFD packet to send [01:33:48]OFD Sender: No OFD packet to send [01:33:53]OFD Sender: No OFD packet to send [01:33:58]OFD Sender: No OFD packet to send [01:34:03]OFD Sender: No OFD packet to send [01:34:08]OFD Sender: No OFD packet to send [01:34:13]OFD Sender: No OFD packet to send [01:34:18]OFD Sender: No OFD packet to send [01:34:23]OFD Sender: No OFD packet to send [01:34:28]OFD Sender: No OFD packet to send [01:34:33]OFD Sender: No OFD packet to send [01:34:38]OFD Sender: No OFD packet to send [01:34:43]OFD Sender: No OFD packet to send [01:34:46]accept exits with 8 [01:34:46]New connection [01:34:46]New thread 3067284836 created [01:34:46]Thread 3067141476 joined [01:34:46]Waiting for new connection... [01:34:46] Sock 8.Parse request [01:34:46]Sock 8.Check first char [01:34:46]Sock 8.First char is OK [01:34:46]request: POST /json_proto HTTP/1.0 [01:34:46]Method: POST [01:34:46]URL: /json_proto [01:34:46]Method is POST - this is cgi request [01:34:46]url: /json_proto [01:34:46]query_string will be loaded in cgi processing [01:34:46]execute_cgi json_proto POST (null) [01:34:46]execute_cgi path=json_proto method=POST [01:34:46]POST find Content-Length [01:34:46]Host: 172.17.50.196:8080 [01:34:46]Content-Length: 1178 [01:34:46]Content-Type: application/json [01:34:46] [01:34:46]POST finish read [01:34:46]Found Content-Length = 1178 [01:34:46]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335424", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 298.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:46]execute_script... [01:34: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 : (3)335424", "tax_sys" : 0, "items" : [ { "code": "4630007400389", "name": "\u0421\u0435\u043C\u0435\u0447\u043A\u0438 \u0414\u0416\u0418\u041D\u041D 140\u0433", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4603290004862", "name": "\u041F\u0435\u0447.\u0441\u0430\u0445.FORSITE \u0421\u044D\u043D\u0434.\u0448\u043E\u043A-\u043E\u0440.\u0432\u043A", "price" : 93.00, "quantity" : 1.000, "sum" : 93.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "40822938", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 298.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:34:46]POST & json_proto [01:34:46]process_json_proto [01:34:46]json parsed OK: [01:34:46]protocol is kg_v1.0 [01:34:46]action value=close_receipt [01:34:46]process_action close_receipt [01:34:46]cmd_close_receipt [01:34:46]MH_GetDate [01:34:46]Write to MH i2c: F0 00 00 95 6A EE [01:34:46]Write i2c OK [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: F0 [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: F0 09 00 [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: F0 09 00 95 6A 00 BE DE 22 67 72 0D 1C 67 1E [01:34:46]GetLastDocTimeStamp 1730338318 [01:34:46]current date 1730338494 [01:34:46]FM_GetShiftState [01:34:46]SAM_PROTO_GetShiftState [01:34:46]wFMCommunicate request_size=4 [01:34:46]MH_SAM_APDU [01:34:46]CAPDU: 80 13 01 00 [01:34:46]Write to MH i2c: E2 08 00 96 6A 80 13 01 00 00 00 00 00 7D [01:34:46]Write i2c OK [01:34:46]MH_I2C_Read... [01:34:46]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:46]Read from MH i2c: E2 [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: E2 0E 00 [01:34:46]MH_I2C_Read... [01:34:46]Read from MH i2c: E2 0E 00 96 6A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 A6 [01:34:46]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:34:46]wFMCommunicate OK [01:34:46]SAM_PROTO_GetShiftState done [01:34:46]FM_GetShiftState done [01:34:46]opened in 1730332621 [01:34:46]opened+sec_in_day 1730419021 [01:34:46]quantity*price = 13000 [01:34:46]sum+1 = 13001 [01:34:46]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4603290004862 Печ.сах.FORSITE Сэнд.шок-ор.вк 1.000 * 93.00 = 93.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 40822938 Напиток Фанта 0,5л 1.000 * 75.00 = 75.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 298.00 НСП 1% : 2.63 НДС 12% : 31.64 Наличными: 298.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 22 31.10.2024 01:34 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139545 ФПД: 179873095300076 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T013454&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139545&fm=179873095300076&tin=02508201610067®Number=0000000000091631&sum=29800 0 [01:34:47]StoreToDocumentArchive [01:34:47]shift 557 fd 139545 [01:34:47]save to /storage/0557/doc_00139545 [01:34:47]save last doc name /storage/0557/doc_00139545 to /storage/kkm_last_doc_name [01:34:47]save OK [01:34:47]Clear old archive folders... [01:34:47]ProcessDocumentItem done err = 0, tmpTLVsize=490 [01:34:47]tlvbuf is 01244B90 [01:34:47]SAM_PROTO_ClearQueue [01:34:47]wFMCommunicate request_size=4 [01:34:47]MH_SAM_APDU [01:34:47]CAPDU: 80 09 00 00 [01:34:47]Write to MH i2c: E2 08 00 A3 6A 80 09 00 00 00 00 00 00 7F [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]*** iso7816_exchange 80 09 00 00... 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 A3 6A 00 90 00 81 [01:34:47]RAPDU: 90 00 [01:34:47]wFMCommunicate OK [01:34:47]SAM_PROTO_ClearQueue done [01:34:47]KKMCreateOFDPacket [01:34:47]OFDProtocolAddRootSTLVToBuf [01:34:47]FM_MakeSignedData [01:34:47]FM_MakeSignedData [01:34:47]SAM_PROTO_SignData [01:34:47]wFMCommunicate request_size=4 [01:34:47]MH_SAM_APDU [01:34:47]CAPDU: 80 0D 01 02 [01:34:47]Write to MH i2c: E2 08 00 A4 6A 80 0D 01 02 00 00 00 00 87 [01:34:47]Write i2c OK [01:34:47]MH_I2C_Read... [01:34:47]*** iso7816_exchange 80 0D 01 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 A4 6A 00 90 00 82 [01:34:47]RAPDU: 90 00 [01:34:47]wFMCommunicate OK [01:34:47]wFMCommunicate request_size=255 [01:34:47]MH_SAM_APDU [01:34:47]CAPDU: 80 0D 02 02 FA 03 00 EA 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F [01:34:48]Write to MH i2c: E2 02 01 A5 6A 80 0D 02 02 FA 00 03 00 EA 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 00 0A [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:48]OFD Sender: No OFD packet to send [01:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:48]Read from MH i2c: E2 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 03 00 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 03 00 A5 6A 00 90 00 83 [01:34:48]RAPDU: 90 00 [01:34:48]wFMCommunicate OK [01:34:48]wFMCommunicate request_size=249 [01:34:48]MH_SAM_APDU [01:34:48]CAPDU: 80 0D 02 02 F4 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE DE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 19 21 02 00 35 04 06 00 A3 97 F7 F3 33 EC [01:34:48]Write to MH i2c: E2 FC 00 A6 6A 80 0D 02 02 F4 00 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE DE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 19 21 02 00 35 04 06 00 A3 97 F7 F3 33 EC 00 00 C3 [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:34:48]Read from MH i2c: E2 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 03 00 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 03 00 A6 6A 00 90 00 84 [01:34:48]RAPDU: 90 00 [01:34:48]wFMCommunicate OK [01:34:48]wFMCommunicate request_size=4 [01:34:48]MH_SAM_APDU [01:34:48]CAPDU: 80 0D 03 02 [01:34:48]Write to MH i2c: E2 08 00 A7 6A 80 0D 03 02 00 00 00 00 8C [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:34:48]Read from MH i2c: E2 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 0B 00 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 0B 00 A7 6A 00 83 20 89 3F 34 31 25 16 90 00 98 [01:34:48]RAPDU: 83 20 89 3F 34 31 25 16 90 00 [01:34:48]wFMCommunicate OK [01:34:48]SAM_PROTO_SignData done [01:34:48]FM_MakeSignedData done [01:34:48]CreateOFDProtocolMessage [01:34:48]wFMCommunicate request_size=4 [01:34:48]MH_SAM_APDU [01:34:48]CAPDU: 80 11 00 00 [01:34:48]Write to MH i2c: E2 08 00 A8 6A 80 11 00 00 00 00 00 00 8C [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:48]Read from MH i2c: E2 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 17 00 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: E2 17 00 A8 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 E7 [01:34:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:34:48]wFMCommunicate OK [01:34:48]CreateOFDProtocolMessage done [01:34:48]OFDSenderStorePacket 139545 [01:34:48]StoreOFDPacket docnum=139545 [01:34:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 FE 01 00 00 AA F5 F6 01 2D 92 5A 03 01 00 03 00 EA 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE DE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 19 21 02 00 35 04 06 00 A3 97 F7 F3 33 EC 83 20 89 3F 34 31 25 16 [01:34:48]CheckFolder [01:34:48]dirname=/storage/ofd_packets [01:34:48]CheckFolder done [01:34:48]ProducePacketName [01:34:48]name=ofd_packets/00139545 [01:34:48]NVStorageSaveData ofd_packets/00139545 [01:34:48]File name is /storage/ofd_packets/00139545 [01:34:48]Write 540 bytes [01:34:48]NVStorageSaveData done [01:34:48]OFDSenderStorePacket done [01:34:48]KKMCreateOFDPacket done [01:34:48]NVStorageSaveData kkm_last_timestamp [01:34:48]File name is /storage/kkm_last_timestamp [01:34:48]Write 4 bytes [01:34:48]NVStorageSaveData done [01:34:48]ExternCall_PrintAddStr [01:34:48]wPrintStart [01:34:48]Write to MH i2c: 01 00 00 A9 6A 13 [01:34:48]Write i2c OK [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: 01 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: 01 07 00 [01:34:48]MH_I2C_Read... [01:34:48]Read from MH i2c: 01 07 00 A9 6A 00 00 00 00 00 FF 0F 28 [01:34:48]RasterBufferAndPrint [01:34:48]line Счет N : (3)335424 [01:34:48]line ИНН: 02508201610067 [01:34:48]line Контрольно-Кассовый Чек [01:34:48]line ПРОДАЖА [01:34:48]line Товар: 4630007400389 [01:34:48]line Семечки ДЖИНН 140г [01:34:48]line 1.000 * 130.00 [01:34:48]line = 130.00 [01:34:48]line НДС 12% НСП 1% [01:34:48]line > о реализуемом товаре [01:34:48]line Товар: 4603290004862 [01:34:48]line Печ.сах.FORSITE Сэнд.шок-ор.вк [01:34:48]line 1.000 * 93.00 [01:34:48]line = 93.00 [01:34:48]line НДС 12% НСП 1% [01:34:48]line > о реализуемом товаре [01:34:48]line Товар: 40822938 [01:34:48]line Напиток Фанта 0,5л [01:34:48]line 1.000 * 75.00 [01:34:48]line = 75.00 [01:34:48]line НДС 12% НСП 1% [01:34:48]line > о реализуемом товаре [01:34:48]line ИТОГО: 298.00 [01:34:48]line НСП 1% : 2.63 [01:34:48]line НДС 12% : 31.64 [01:34:48]line Наличными: 298.00 [01:34:48]line Безнал.: 0.00 [01:34:48]line Место: АЗС № 101 "Партнер Нефть" [01:34:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:34:48]line СНО: Общий режим [01:34:48]line Чек 22 31.10.2024 01:34 [01:34:48]line Смена: 557 ФФД: 1.0 [01:34:48]line ЗНМ: 0300000081 [01:34:48]line РНМ: 0000000000091631 [01:34:48]line Версия ККМ: 001 [01:34:48]line ФМ: 0000000000874669 [01:34:48]line ФД: 139545 [01:34:48]line ФПД: 179873095300076 [01:34:48]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T013454&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139545&fm=179873095300076&tin=02508201610067®Number=0000000000091631&sum=29800 [01:34:48]line 0 [01:34:48]written 0, free lines is 4095 [01:34:48]OFD Sender: Processing packet 139545 [packets to send 34, broken 33] [01:34:48]ProducePacketName [01:34:48]name=ofd_packets/00139545 [01:34:48]OFD Sender: To server: pG, [01:34:48]CommunicateWithHost lk.salyk.kg:30040 [01:34:48]ConnectInit lk.salyk.kg [01:34:49]Connected sock=10 [01:34:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 FE 01 00 00 AA F5 F6 01 2D 92 5A 03 01 00 03 00 EA 01 1E 04 01 00 01 23 04 63 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 33 38 39 06 04 1F 00 D0 A1 D0 B5 D0 BC D0 B5 D1 87 D0 BA D0 B8 20 D0 94 D0 96 D0 98 D0 9D D0 9D 20 31 34 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 73 00 8A 04 0D 00 34 36 30 33 32 39 30 30 30 34 38 36 32 06 04 2F 00 D0 9F D0 B5 D1 87 2E D1 81 D0 B0 D1 85 2E 46 4F 52 53 49 54 45 20 D0 A1 D1 8D D0 BD D0 B4 2E D1 88 D0 BE D0 BA 2D D0 BE D1 80 2E D0 B2 D0 BA FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 24 00 00 00 00 13 04 06 00 54 24 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5E 00 8A 04 08 00 34 30 38 32 32 39 33 38 06 04 1F 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 74 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 07 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 5C 0C 00 00 00 00 07 04 06 00 68 74 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 16 00 00 00 F4 03 04 00 BE DE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 19 21 02 00 35 04 06 00 A3 97 F7 F3 33 EC 83 20 89 3F 34 31 25 16 [01:34:49]Write to MH i2c: 01 00 00 DE 6A 48 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: 01 [01:34:49]MH_I2C_Read... [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 DE 6A 00 00 00 00 00 61 0C BC [01:34:49]RasterBufferAndPrint [01:34:49]line [01:34:49]line [01:34:49]line [01:34:49]line [01:34:49]line [01:34:49]written 0, free lines is 3179 [01:34:49]MH_Cut [01:34:49]Write to MH i2c: D1 01 00 E5 6A 01 21 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: D1 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: D1 01 00 [01:34:49]MH_I2C_Read... [01:34:49]Read from MH i2c: D1 01 00 E5 6A 00 20 [01:34:49]Write to MH i2c: 01 00 00 E6 6A 50 [01:34:49]Write i2c OK [01:34:49]MH_I2C_Read... [01:34:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 DE F1 47 00 D1 F3 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 19 21 02 00 F4 03 04 00 6E 8A 22 67 B6 04 01 00 00 CC 7C 8E 69 47 B5 E4 D2 [01:34:49]CommunicateWithHost err = 0 [01:34:49]CheckOFDResponse [01:34:49]1017 (14) - 77093643461234 [01:34:49]1041 (16) - 0000000000874669 [01:34:49]1040 (4) - 139545 [01:34:49]1012 (4) - 30.10.2024 19:35 [01:34:49]1206 (1) - 0 [01:34:49]OFD Sender: Remove packet 139545 [01:34:49]ProducePacketName [01:34:49]name=ofd_packets/00139545 [01:34:49]NVStorageDeleteData [01:34:50]OFD Sender: No OFD packet to send [01:34:50]*** Cut start [01:34:50]*** Partial cut [01:34:50]*** CUTSNS_PIN = 1 [01:34:50]*** CUTSNS_PIN = 0 [01:34:50]*** Brake cut motor [01:34:50]Read from MH i2c: 01 [01:34:50]MH_I2C_Read... [01:34:50]*** Stop cut motor [01:34:50]*** Cut end [01:34:50]Read from MH i2c: 01 07 00 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: 01 07 00 E6 6A 00 00 00 00 00 FF 0F 65 [01:34:50]process_action close_receipt done [01:34:50]requested_data is exist [01:34:50]produce_requested_data [01:34:50]requested_item fm.sn is exist - process it [01:34:50]wFMCommunicate request_size=4 [01:34:50]MH_SAM_APDU [01:34:50]CAPDU: 80 11 00 00 [01:34:50]Write to MH i2c: E2 08 00 E7 6A 80 11 00 00 00 00 00 00 CB [01:34:50]Write i2c OK [01:34:50]MH_I2C_Read... [01:34:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:34:50]Read from MH i2c: E2 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 17 00 [01:34:50]MH_I2C_Read... [01:34:50]Read from MH i2c: E2 17 00 E7 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 26 [01:34:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:34:50]wFMCommunicate OK [01:34:50]requested_item fd.num is exist - process it [01:34:50]SAM_PROTO_GetFieldsCounters [01:34:50]wFMCommunicate request_size=4 [01:34:50]MH_SAM_APDU [01:34:50]CAPDU: 80 13 00 00 [01:34:50]Write to MH i2c: E2 08 00 E8 6A 80 13 00 00 00 00 00 00 CE [01:34:50]Write i2c OK [01:34:50]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 62 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 62 00 E8 6A 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 19 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 9F [01:34:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 19 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 16 00 00 00 5E 04 04 00 16 00 00 00 57 04 04 00 17 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:34:51]wFMCommunicate OK [01:34:51]SAM_PROTO_GetFieldsCounters done [01:34:51]requested_item shift.num is exist - process it [01:34:51]requested_item shift.opened is exist - process it [01:34:51]req_shift_opened [01:34:51]FM_GetShiftState [01:34:51]SAM_PROTO_GetShiftState [01:34:51]wFMCommunicate request_size=4 [01:34:51]MH_SAM_APDU [01:34:51]CAPDU: 80 13 01 00 [01:34:51]Write to MH i2c: E2 08 00 E9 6A 80 13 01 00 00 00 00 00 D0 [01:34:51]Write i2c OK [01:34:51]MH_I2C_Read... [01:34:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:34:51]Read from MH i2c: E2 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 0E 00 [01:34:51]MH_I2C_Read... [01:34:51]Read from MH i2c: E2 0E 00 E9 6A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F9 [01:34:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:34:51]wFMCommunicate OK [01:34:51]SAM_PROTO_GetShiftState done [01:34:51]FM_GetShiftState done [01:34:51]req_shift_opened done [01:34:51]requested_item shift.open_date is exist - process it [01:34:51]req_shift_open_date [01:34:51]req_shift_open_date done [01:34:51]produce_requested_data done [01:34:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139545,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:34:51]process_action_free close_receipt [01:34:51]json_value_free [01:34:51]json_value_free done [01:34:51]process_json_proto returns [01:34:51]Send response to host [01:34:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139545,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:34:51]free response buf [01:34:51]execute_script done [01:34:51]execute_script returns [01:34:51]free content buf [01:34:51]Sock 8.Close socket [01:34:51]Sock 8.Thread stoped [01:34:55]OFD Sender: No OFD packet to send [01:35:00]OFD Sender: No OFD packet to send [01:35:05]OFD Sender: No OFD packet to send [01:35:10]OFD Sender: No OFD packet to send [01:35:15]OFD Sender: No OFD packet to send [01:35:20]OFD Sender: No OFD packet to send [01:35:25]OFD Sender: No OFD packet to send [01:35:30]OFD Sender: No OFD packet to send [01:35:35]OFD Sender: No OFD packet to send [01:35:40]OFD Sender: No OFD packet to send [01:35:45]OFD Sender: No OFD packet to send [01:35:50]OFD Sender: No OFD packet to send [01:35:55]OFD Sender: No OFD packet to send [01:36:00]OFD Sender: No OFD packet to send [01:36:05]OFD Sender: No OFD packet to send [01:36:10]OFD Sender: No OFD packet to send [01:36:15]OFD Sender: No OFD packet to send [01:36:20]OFD Sender: No OFD packet to send [01:36:25]OFD Sender: No OFD packet to send [01:36:30]OFD Sender: No OFD packet to send [01:36:35]OFD Sender: No OFD packet to send [01:36:40]OFD Sender: No OFD packet to send [01:36:45]OFD Sender: No OFD packet to send [01:36:50]OFD Sender: No OFD packet to send [01:36:55]OFD Sender: No OFD packet to send [01:37:00]OFD Sender: No OFD packet to send [01:37:05]OFD Sender: No OFD packet to send [01:37:10]OFD Sender: No OFD packet to send [01:37:15]OFD Sender: No OFD packet to send [01:37:20]OFD Sender: No OFD packet to send [01:37:25]OFD Sender: No OFD packet to send [01:37:30]OFD Sender: No OFD packet to send [01:37:35]OFD Sender: No OFD packet to send [01:37:40]OFD Sender: No OFD packet to send [01:37:45]OFD Sender: No OFD packet to send [01:37:50]OFD Sender: No OFD packet to send [01:37:55]OFD Sender: No OFD packet to send [01:38:00]OFD Sender: No OFD packet to send [01:38:05]OFD Sender: No OFD packet to send [01:38:10]OFD Sender: No OFD packet to send [01:38:15]OFD Sender: No OFD packet to send [01:38:20]OFD Sender: No OFD packet to send [01:38:25]OFD Sender: No OFD packet to send [01:38:30]OFD Sender: No OFD packet to send [01:38:35]OFD Sender: No OFD packet to send [01:38:40]OFD Sender: No OFD packet to send [01:38:45]OFD Sender: No OFD packet to send [01:38:50]OFD Sender: No OFD packet to send [01:38:55]OFD Sender: No OFD packet to send [01:39:00]OFD Sender: No OFD packet to send [01:39:05]OFD Sender: No OFD packet to send [01:39:10]OFD Sender: No OFD packet to send [01:39:11]accept exits with 9 [01:39:11]New connection [01:39:11]New thread 3067141476 created [01:39:11]Thread 3067284836 joined [01:39:11]Waiting for new connection... [01:39:11] Sock 9.Parse request [01:39:11]Sock 9.Check first char [01:39:11]Sock 9.First char is OK [01:39:11]request: POST /json_proto HTTP/1.0 [01:39:11]Method: POST [01:39:11]URL: /json_proto [01:39:11]Method is POST - this is cgi request [01:39:11]url: /json_proto [01:39:11]query_string will be loaded in cgi processing [01:39:11]execute_cgi json_proto POST (null) [01:39:11]execute_cgi path=json_proto method=POST [01:39:11]POST find Content-Length [01:39:11]Host: 172.17.50.196:8080 [01:39:11]Content-Length: 620 [01:39:11]Content-Type: application/json [01:39:11] [01:39:11]POST finish read [01:39:11]Found Content-Length = 620 [01:39:11]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335425", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:11]execute_script... [01:39: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 : (3)335425", "tax_sys" : 0, "items" : [ { "code": "4650243871781", "name": "Gorilla \u044D\u043D \u043D\u0430\u043F Orange 0,45 \u0436/\u0431", "price" : 99.00, "quantity" : 1.000, "sum" : 99.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 99.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:39:11]POST & json_proto [01:39:11]process_json_proto [01:39:11]json parsed OK: [01:39:11]protocol is kg_v1.0 [01:39:11]action value=close_receipt [01:39:11]process_action close_receipt [01:39:11]cmd_close_receipt [01:39:11]MH_GetDate [01:39:11]Write to MH i2c: F0 00 00 EA 6A 43 [01:39:11]Write i2c OK [01:39:11]MH_I2C_Read... [01:39:11]Read from MH i2c: F0 [01:39:11]MH_I2C_Read... [01:39:11]Read from MH i2c: F0 09 00 [01:39:11]MH_I2C_Read... [01:39:11]Read from MH i2c: F0 09 00 EA 6A 00 C7 DF 22 67 72 0D 1C 67 7D [01:39:11]GetLastDocTimeStamp 1730338494 [01:39:11]current date 1730338759 [01:39:11]FM_GetShiftState [01:39:11]SAM_PROTO_GetShiftState [01:39:11]wFMCommunicate request_size=4 [01:39:11]MH_SAM_APDU [01:39:11]CAPDU: 80 13 01 00 [01:39:11]Write to MH i2c: E2 08 00 EB 6A 80 13 01 00 00 00 00 00 D2 [01:39:11]Write i2c OK [01:39:11]MH_I2C_Read... [01:39:11]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:11]Read from MH i2c: E2 [01:39:11]MH_I2C_Read... [01:39:11]Read from MH i2c: E2 0E 00 [01:39:11]MH_I2C_Read... [01:39:11]Read from MH i2c: E2 0E 00 EB 6A 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 FB [01:39:11]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:39:11]wFMCommunicate OK [01:39:11]SAM_PROTO_GetShiftState done [01:39:11]FM_GetShiftState done [01:39:11]opened in 1730332621 [01:39:11]opened+sec_in_day 1730419021 [01:39:11]quantity*price = 9900 [01:39:11]sum+1 = 9901 [01:39:11]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 99.00 НСП 1% : 0.88 НДС 12% : 10.51 Наличными: 99.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 23 31.10.2024 01:39 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139546 ФПД: 90812563777841 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T013919&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139546&fm=90812563777841&tin=02508201610067®Number=0000000000091631&sum=9900 0 [01:39:12]StoreToDocumentArchive [01:39:12]shift 557 fd 139546 [01:39:12]save to /storage/0557/doc_00139546 [01:39:12]save last doc name /storage/0557/doc_00139546 to /storage/kkm_last_doc_name [01:39:12]save OK [01:39:12]Clear old archive folders... [01:39:12]ProcessDocumentItem done err = 0, tmpTLVsize=279 [01:39:12]tlvbuf is 0136C040 [01:39:12]SAM_PROTO_ClearQueue [01:39:12]wFMCommunicate request_size=4 [01:39:12]MH_SAM_APDU [01:39:12]CAPDU: 80 09 00 00 [01:39:12]Write to MH i2c: E2 08 00 F8 6A 80 09 00 00 00 00 00 00 D4 [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:39:12]Read from MH i2c: E2 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 03 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 03 00 F8 6A 00 90 00 D6 [01:39:12]RAPDU: 90 00 [01:39:12]wFMCommunicate OK [01:39:12]SAM_PROTO_ClearQueue done [01:39:12]KKMCreateOFDPacket [01:39:12]OFDProtocolAddRootSTLVToBuf [01:39:12]FM_MakeSignedData [01:39:12]FM_MakeSignedData [01:39:12]SAM_PROTO_SignData [01:39:12]wFMCommunicate request_size=4 [01:39:12]MH_SAM_APDU [01:39:12]CAPDU: 80 0D 01 02 [01:39:12]Write to MH i2c: E2 08 00 F9 6A 80 0D 01 02 00 00 00 00 DC [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:39:12]Read from MH i2c: E2 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 03 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 03 00 F9 6A 00 90 00 D7 [01:39:12]RAPDU: 90 00 [01:39:12]wFMCommunicate OK [01:39:12]wFMCommunicate request_size=255 [01:39:12]MH_SAM_APDU [01:39:12]CAPDU: 80 0D 02 02 FA 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C7 DF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 [01:39:12]Write to MH i2c: E2 02 01 FA 6A 80 0D 02 02 FA 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C7 DF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 00 00 90 [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:12]Read from MH i2c: E2 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 03 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 03 00 FA 6A 00 90 00 D8 [01:39:12]RAPDU: 90 00 [01:39:12]wFMCommunicate OK [01:39:12]wFMCommunicate request_size=38 [01:39:12]MH_SAM_APDU [01:39:12]CAPDU: 80 0D 02 02 21 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1A 21 02 00 35 04 06 00 52 97 F2 9A E9 31 [01:39:12]Write to MH i2c: E2 29 00 FB 6A 80 0D 02 02 21 00 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1A 21 02 00 35 04 06 00 52 97 F2 9A E9 31 00 00 3C [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:39:12]Read from MH i2c: E2 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 03 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 03 00 FB 6A 00 90 00 D9 [01:39:12]RAPDU: 90 00 [01:39:12]wFMCommunicate OK [01:39:12]wFMCommunicate request_size=4 [01:39:12]MH_SAM_APDU [01:39:12]CAPDU: 80 0D 03 02 [01:39:12]Write to MH i2c: E2 08 00 FC 6A 80 0D 03 02 00 00 00 00 E1 [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:39:12]Read from MH i2c: E2 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 0B 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 0B 00 FC 6A 00 65 6C 91 86 FF D8 FD CF 90 00 6D [01:39:12]RAPDU: 65 6C 91 86 FF D8 FD CF 90 00 [01:39:12]wFMCommunicate OK [01:39:12]SAM_PROTO_SignData done [01:39:12]FM_MakeSignedData done [01:39:12]CreateOFDProtocolMessage [01:39:12]wFMCommunicate request_size=4 [01:39:12]MH_SAM_APDU [01:39:12]CAPDU: 80 11 00 00 [01:39:12]Write to MH i2c: E2 08 00 FD 6A 80 11 00 00 00 00 00 00 E1 [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:12]Read from MH i2c: E2 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 17 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: E2 17 00 FD 6A 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3C [01:39:12]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:39:12]wFMCommunicate OK [01:39:12]CreateOFDProtocolMessage done [01:39:12]OFDSenderStorePacket 139546 [01:39:12]StoreOFDPacket docnum=139546 [01:39:12]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 85 BB 23 01 A9 8A 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C7 DF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1A 21 02 00 35 04 06 00 52 97 F2 9A E9 31 65 6C 91 86 FF D8 FD CF [01:39:12]CheckFolder [01:39:12]dirname=/storage/ofd_packets [01:39:12]CheckFolder done [01:39:12]ProducePacketName [01:39:12]name=ofd_packets/00139546 [01:39:12]NVStorageSaveData ofd_packets/00139546 [01:39:12]File name is /storage/ofd_packets/00139546 [01:39:12]Write 329 bytes [01:39:12]NVStorageSaveData done [01:39:12]OFDSenderStorePacket done [01:39:12]KKMCreateOFDPacket done [01:39:12]NVStorageSaveData kkm_last_timestamp [01:39:12]File name is /storage/kkm_last_timestamp [01:39:12]Write 4 bytes [01:39:12]NVStorageSaveData done [01:39:12]ExternCall_PrintAddStr [01:39:12]wPrintStart [01:39:12]Write to MH i2c: 01 00 00 FE 6A 68 [01:39:12]Write i2c OK [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: 01 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: 01 07 00 [01:39:12]MH_I2C_Read... [01:39:12]Read from MH i2c: 01 07 00 FE 6A 00 00 00 00 00 FF 0F 7D [01:39:12]RasterBufferAndPrint [01:39:12]line Счет N : (3)335425 [01:39:12]line ИНН: 02508201610067 [01:39:12]line Контрольно-Кассовый Чек [01:39:12]line ПРОДАЖА [01:39:12]line Товар: 4650243871781 [01:39:12]line Gorilla эн нап Orange 0,45 ж/б [01:39:12]line 1.000 * 99.00 [01:39:12]line = 99.00 [01:39:12]line НДС 12% НСП 1% [01:39:12]line > о реализуемом товаре [01:39:12]line ИТОГО: 99.00 [01:39:12]line НСП 1% : 0.88 [01:39:12]line НДС 12% : 10.51 [01:39:12]line Наличными: 99.00 [01:39:12]line Безнал.: 0.00 [01:39:12]line Место: АЗС № 101 "Партнер Нефть" [01:39:12]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:39:12]line СНО: Общий режим [01:39:12]line Чек 23 31.10.2024 01:39 [01:39:12]line Смена: 557 ФФД: 1.0 [01:39:12]line ЗНМ: 0300000081 [01:39:12]line РНМ: 0000000000091631 [01:39:12]line Версия ККМ: 001 [01:39:12]line ФМ: 0000000000874669 [01:39:12]line ФД: 139546 [01:39:12]line ФПД: 90812563777841 [01:39:12]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T013919&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139546&fm=90812563777841&tin=02508201610067®Number=0000000000091631&sum=9900 [01:39:13]OFD Sender: Processing packet 139546 [packets to send 34, broken 33] [01:39:13]ProducePacketName [01:39:13]name=ofd_packets/00139546 [01:39:13]OFD Sender: To server: pG, [01:39:13]CommunicateWithHost lk.salyk.kg:30040 [01:39:13]ConnectInit lk.salyk.kg [01:39:13]line 0 [01:39:13]written 0, free lines is 4095 [01:39:13]Connected sock=10 [01:39:13]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 2B 01 00 00 85 BB 23 01 A9 8A 5A 03 01 00 03 00 17 01 1E 04 01 00 01 23 04 69 00 8A 04 0D 00 34 36 35 30 32 34 33 38 37 31 37 38 31 06 04 25 00 47 6F 72 69 6C 6C 61 20 D1 8D D0 BD 20 D0 BD D0 B0 D0 BF 20 4F 72 61 6E 67 65 20 30 2C 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 AC 26 00 00 00 00 13 04 06 00 AC 26 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 AC 26 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 58 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1B 04 00 00 00 00 07 04 06 00 AC 26 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 17 00 00 00 F4 03 04 00 C7 DF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1A 21 02 00 35 04 06 00 52 97 F2 9A E9 31 65 6C 91 86 FF D8 FD CF [01:39:13]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 1C 5A 47 00 E3 B9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1A 21 02 00 F4 03 04 00 76 8B 22 67 B6 04 01 00 00 B4 92 F3 EE 67 12 09 E0 [01:39:13]CommunicateWithHost err = 0 [01:39:13]CheckOFDResponse [01:39:13]1017 (14) - 77093643461234 [01:39:13]1041 (16) - 0000000000874669 [01:39:13]1040 (4) - 139546 [01:39:13]1012 (4) - 30.10.2024 19:39 [01:39:13]1206 (1) - 0 [01:39:13]OFD Sender: Remove packet 139546 [01:39:13]ProducePacketName [01:39:13]name=ofd_packets/00139546 [01:39:13]NVStorageDeleteData [01:39:13]Write to MH i2c: 01 00 00 26 6B 91 [01:39:13]Write i2c OK [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: 01 [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: 01 07 00 [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: 01 07 00 26 6B 00 00 00 00 00 24 0D C9 [01:39:13]RasterBufferAndPrint [01:39:13]line [01:39:13]line [01:39:13]line [01:39:13]line [01:39:13]line [01:39:13]written 0, free lines is 3370 [01:39:13]MH_Cut [01:39:13]Write to MH i2c: D1 01 00 2D 6B 01 6A [01:39:13]Write i2c OK [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: D1 [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: D1 01 00 [01:39:13]MH_I2C_Read... [01:39:13]Read from MH i2c: D1 01 00 2D 6B 00 69 [01:39:13]Write to MH i2c: 01 00 00 2E 6B 99 [01:39:13]Write i2c OK [01:39:13]MH_I2C_Read... [01:39:14]OFD Sender: No OFD packet to send [01:39:14]*** Cut start [01:39:14]*** Partial cut [01:39:14]*** CUTSNS_PIN = 1 [01:39:14]*** CUTSNS_PIN = 0 [01:39:14]*** Brake cut motor [01:39:14]Read from MH i2c: 01 [01:39:14]MH_I2C_Read... [01:39:14]*** Stop cut motor [01:39:14]*** Cut end [01:39:14]Read from MH i2c: 01 07 00 [01:39:14]MH_I2C_Read... [01:39:14]Read from MH i2c: 01 07 00 2E 6B 00 00 00 00 00 FF 0F AE [01:39:14]process_action close_receipt done [01:39:14]requested_data is exist [01:39:14]produce_requested_data [01:39:14]requested_item fm.sn is exist - process it [01:39:14]wFMCommunicate request_size=4 [01:39:14]MH_SAM_APDU [01:39:14]CAPDU: 80 11 00 00 [01:39:14]Write to MH i2c: E2 08 00 2F 6B 80 11 00 00 00 00 00 00 14 [01:39:14]Write i2c OK [01:39:14]MH_I2C_Read... [01:39:15]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:39:15]Read from MH i2c: E2 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: E2 17 00 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: E2 17 00 2F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6F [01:39:15]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:39:15]wFMCommunicate OK [01:39:15]requested_item fd.num is exist - process it [01:39:15]SAM_PROTO_GetFieldsCounters [01:39:15]wFMCommunicate request_size=4 [01:39:15]MH_SAM_APDU [01:39:15]CAPDU: 80 13 00 00 [01:39:15]Write to MH i2c: E2 08 00 30 6B 80 13 00 00 00 00 00 00 17 [01:39:15]Write i2c OK [01:39:15]MH_I2C_Read... [01:39:15]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:39:15]Read from MH i2c: E2 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: E2 62 00 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: E2 62 00 30 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1A 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 EC [01:39:15]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1A 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 17 00 00 00 5E 04 04 00 17 00 00 00 57 04 04 00 18 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:39:15]wFMCommunicate OK [01:39:15]SAM_PROTO_GetFieldsCounters done [01:39:15]requested_item shift.num is exist - process it [01:39:15]requested_item shift.opened is exist - process it [01:39:15]req_shift_opened [01:39:15]FM_GetShiftState [01:39:15]SAM_PROTO_GetShiftState [01:39:15]wFMCommunicate request_size=4 [01:39:15]MH_SAM_APDU [01:39:15]CAPDU: 80 13 01 00 [01:39:15]Write to MH i2c: E2 08 00 31 6B 80 13 01 00 00 00 00 00 19 [01:39:15]Write i2c OK [01:39:15]MH_I2C_Read... [01:39:15]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:39:15]Read from MH i2c: E2 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: E2 0E 00 [01:39:15]MH_I2C_Read... [01:39:15]Read from MH i2c: E2 0E 00 31 6B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 42 [01:39:15]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:39:15]wFMCommunicate OK [01:39:15]SAM_PROTO_GetShiftState done [01:39:15]FM_GetShiftState done [01:39:15]req_shift_opened done [01:39:15]requested_item shift.open_date is exist - process it [01:39:15]req_shift_open_date [01:39:15]req_shift_open_date done [01:39:15]produce_requested_data done [01:39:15]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139546,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:39:15]process_action_free close_receipt [01:39:15]json_value_free [01:39:15]json_value_free done [01:39:15]process_json_proto returns [01:39:15]Send response to host [01:39:15]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139546,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:39:15]free response buf [01:39:15]execute_script done [01:39:15]execute_script returns [01:39:15]free content buf [01:39:15]Sock 9.Close socket [01:39:15]Sock 9.Thread stoped [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:39]OFD Sender: No OFD packet to send [01:40:44]OFD Sender: No OFD packet to send [01:40:49]OFD Sender: No OFD packet to send [01:40:54]OFD Sender: No OFD packet to send [01:40:59]OFD Sender: No OFD packet to send [01:41:04]OFD Sender: No OFD packet to send [01:41:09]OFD Sender: No OFD packet to send [01:41:14]OFD Sender: No OFD packet to send [01:41:19]OFD Sender: No OFD packet to send [01:41:24]OFD Sender: No OFD packet to send [01:41:29]OFD Sender: No OFD packet to send [01:41:34]OFD Sender: No OFD packet to send [01:41:39]OFD Sender: No OFD packet to send [01:41:44]OFD Sender: No OFD packet to send [01:41:49]OFD Sender: No OFD packet to send [01:41:49]accept exits with 8 [01:41:49]New connection [01:41:49]New thread 3067284836 created [01:41:49]Thread 3067141476 joined [01:41:49]Waiting for new connection... [01:41:49] Sock 8.Parse request [01:41:49]Sock 8.Check first char [01:41:49]Sock 8.First char is OK [01:41:49]request: POST /json_proto HTTP/1.0 [01:41:49]Method: POST [01:41:49]URL: /json_proto [01:41:49]Method is POST - this is cgi request [01:41:49]url: /json_proto [01:41:49]query_string will be loaded in cgi processing [01:41:49]execute_cgi json_proto POST (null) [01:41:49]execute_cgi path=json_proto method=POST [01:41:49]POST find Content-Length [01:41:49]Host: 172.17.50.196:8080 [01:41:49]Content-Length: 774 [01:41:49]Content-Type: application/json [01:41:49] [01:41:49]POST finish read [01:41:49]Found Content-Length = 774 [01:41:49]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335427", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:49]execute_script... [01: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 : (3)335427", "tax_sys" : 0, "items" : [ { "code": "4870001570057", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 0,5\u043B", "price" : 80.00, "quantity" : 1.000, "sum" : 80.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: O! \u0434\u0435\u043D\u044C\u0433\u0438", "payments": [ { "type": 1, "sum" : 80.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:41:49]POST & json_proto [01:41:49]process_json_proto [01:41:49]json parsed OK: [01:41:49]protocol is kg_v1.0 [01:41:49]action value=close_receipt [01:41:49]process_action close_receipt [01:41:49]cmd_close_receipt [01:41:49]MH_GetDate [01:41:49]Write to MH i2c: F0 00 00 32 6B 8C [01:41:49]Write i2c OK [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: F0 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: F0 09 00 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: F0 09 00 32 6B 00 65 E0 22 67 72 0D 1C 67 65 [01:41:49]GetLastDocTimeStamp 1730338759 [01:41:49]current date 1730338917 [01:41:49]FM_GetShiftState [01:41:49]SAM_PROTO_GetShiftState [01:41:49]wFMCommunicate request_size=4 [01:41:49]MH_SAM_APDU [01:41:49]CAPDU: 80 13 01 00 [01:41:49]Write to MH i2c: E2 08 00 33 6B 80 13 01 00 00 00 00 00 1B [01:41:49]Write i2c OK [01:41:49]MH_I2C_Read... [01:41:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:49]Read from MH i2c: E2 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: E2 0E 00 [01:41:49]MH_I2C_Read... [01:41:49]Read from MH i2c: E2 0E 00 33 6B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 44 [01:41:49]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:41:49]wFMCommunicate OK [01:41:49]SAM_PROTO_GetShiftState done [01:41:49]FM_GetShiftState done [01:41:49]opened in 1730332621 [01:41:49]opened+sec_in_day 1730419021 [01:41:49]quantity*price = 8000 [01:41:49]sum+1 = 8001 [01:41:49]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 80.00 НСП 1% : 0.71 НДС 12% : 8.50 Наличными: 0.00 Безнал.: 80.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 24 31.10.2024 01:41 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: O! деньги ФМ: 0000000000874669 ФД: 139547 ФПД: 77528740290755 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T014157&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139547&fm=77528740290755&tin=02508201610067®Number=0000000000091631&sum=8000 0 [01:41:50]StoreToDocumentArchive [01:41:50]shift 557 fd 139547 [01:41:50]save to /storage/0557/doc_00139547 [01:41:50]save last doc name /storage/0557/doc_00139547 to /storage/kkm_last_doc_name [01:41:50]save OK [01:41:50]Clear old archive folders... [01:41:50]ProcessDocumentItem done err = 0, tmpTLVsize=268 [01:41:50]tlvbuf is 0112FA40 [01:41:50]SAM_PROTO_ClearQueue [01:41:50]wFMCommunicate request_size=4 [01:41:50]MH_SAM_APDU [01:41:50]CAPDU: 80 09 00 00 [01:41:50]Write to MH i2c: E2 08 00 40 6B 80 09 00 00 00 00 00 00 1D [01:41:50]Write i2c OK [01:41:50]MH_I2C_Read... [01:41:50]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:41:50]Read from MH i2c: E2 [01:41:50]MH_I2C_Read... [01:41:50]Read from MH i2c: E2 03 00 [01:41:50]MH_I2C_Read... [01:41:50]Read from MH i2c: E2 03 00 40 6B 00 90 00 1F [01:41:50]RAPDU: 90 00 [01:41:50]wFMCommunicate OK [01:41:50]SAM_PROTO_ClearQueue done [01:41:50]KKMCreateOFDPacket [01:41:50]OFDProtocolAddRootSTLVToBuf [01:41:50]FM_MakeSignedData [01:41:50]FM_MakeSignedData [01:41:50]SAM_PROTO_SignData [01:41:50]wFMCommunicate request_size=4 [01:41:50]MH_SAM_APDU [01:41:50]CAPDU: 80 0D 01 02 [01:41:50]Write to MH i2c: E2 08 00 41 6B 80 0D 01 02 00 00 00 00 25 [01:41:50]Write i2c OK [01:41:50]MH_I2C_Read... [01:41:50]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:41:50]Read from MH i2c: E2 [01:41:50]MH_I2C_Read... [01:41:50]Read from MH i2c: E2 03 00 [01:41:50]MH_I2C_Read... [01:41:50]Read from MH i2c: E2 03 00 41 6B 00 90 00 20 [01:41:50]RAPDU: 90 00 [01:41:50]wFMCommunicate OK [01:41:50]wFMCommunicate request_size=255 [01:41:50]MH_SAM_APDU [01:41:50]CAPDU: 80 0D 02 02 FA 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 65 E0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 [01:41:50]Write to MH i2c: E2 02 01 42 6B 80 0D 02 02 FA 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 65 E0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 00 00 48 [01:41:50]Write i2c OK [01:41:50]MH_I2C_Read... [01:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:50]Read from MH i2c: E2 [01:41:50]MH_I2C_Read... [01:41:50]Read from MH i2c: E2 03 00 [01:41:50]MH_I2C_Read... [01:41:50]Read from MH i2c: E2 03 00 42 6B 00 90 00 21 [01:41:50]RAPDU: 90 00 [01:41:50]wFMCommunicate OK [01:41:50]wFMCommunicate request_size=27 [01:41:50]MH_SAM_APDU [01:41:50]CAPDU: 80 0D 02 02 16 34 36 36 39 10 04 04 00 1B 21 02 00 35 04 06 00 46 83 11 06 60 C3 [01:41:50]Write to MH i2c: E2 1E 00 43 6B 80 0D 02 02 16 00 34 36 36 39 10 04 04 00 1B 21 02 00 35 04 06 00 46 83 11 06 60 C3 00 00 C5 [01:41:50]Write i2c OK [01:41:50]MH_I2C_Read... [01:41:50]Read from MH i2c: E2 [01:41:50]MH_I2C_Read... [01:41:50]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:41:50]Read from MH i2c: E2 03 00 [01:41:50]MH_I2C_Read... [01:41:50]Read from MH i2c: E2 03 00 43 6B 00 90 00 22 [01:41:50]RAPDU: 90 00 [01:41:50]wFMCommunicate OK [01:41:50]wFMCommunicate request_size=4 [01:41:50]MH_SAM_APDU [01:41:50]CAPDU: 80 0D 03 02 [01:41:50]Write to MH i2c: E2 08 00 44 6B 80 0D 03 02 00 00 00 00 2A [01:41:50]Write i2c OK [01:41:50]MH_I2C_Read... [01:41:51]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:41:51]Read from MH i2c: E2 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: E2 0B 00 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: E2 0B 00 44 6B 00 6E 69 8F 7C B5 D1 E4 29 90 00 A0 [01:41:51]RAPDU: 6E 69 8F 7C B5 D1 E4 29 90 00 [01:41:51]wFMCommunicate OK [01:41:51]SAM_PROTO_SignData done [01:41:51]FM_MakeSignedData done [01:41:51]CreateOFDProtocolMessage [01:41:51]wFMCommunicate request_size=4 [01:41:51]MH_SAM_APDU [01:41:51]CAPDU: 80 11 00 00 [01:41:51]Write to MH i2c: E2 08 00 45 6B 80 11 00 00 00 00 00 00 2A [01:41:51]Write i2c OK [01:41:51]MH_I2C_Read... [01:41:51]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:51]Read from MH i2c: E2 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: E2 17 00 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: E2 17 00 45 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 85 [01:41:51]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:41:51]wFMCommunicate OK [01:41:51]CreateOFDProtocolMessage done [01:41:51]OFDSenderStorePacket 139547 [01:41:51]StoreOFDPacket docnum=139547 [01:41:51]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 20 01 00 00 8F D9 18 01 CE CB 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 65 E0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1B 21 02 00 35 04 06 00 46 83 11 06 60 C3 6E 69 8F 7C B5 D1 E4 29 [01:41:51]CheckFolder [01:41:51]dirname=/storage/ofd_packets [01:41:51]CheckFolder done [01:41:51]ProducePacketName [01:41:51]name=ofd_packets/00139547 [01:41:51]NVStorageSaveData ofd_packets/00139547 [01:41:51]File name is /storage/ofd_packets/00139547 [01:41:51]Write 318 bytes [01:41:51]NVStorageSaveData done [01:41:51]OFDSenderStorePacket done [01:41:51]KKMCreateOFDPacket done [01:41:51]NVStorageSaveData kkm_last_timestamp [01:41:51]File name is /storage/kkm_last_timestamp [01:41:51]Write 4 bytes [01:41:51]NVStorageSaveData done [01:41:51]ExternCall_PrintAddStr [01:41:51]wPrintStart [01:41:51]Write to MH i2c: 01 00 00 46 6B B1 [01:41:51]Write i2c OK [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: 01 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: 01 07 00 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: 01 07 00 46 6B 00 00 00 00 00 FF 0F C6 [01:41:51]RasterBufferAndPrint [01:41:51]line Счет N : (3)335427 [01:41:51]line ИНН: 02508201610067 [01:41:51]line Контрольно-Кассовый Чек [01:41:51]line ПРОДАЖА [01:41:51]line Товар: 4870001570057 [01:41:51]line Напиток Pepsi 0,5л [01:41:51]line 1.000 * 80.00 [01:41:51]line = 80.00 [01:41:51]line НДС 12% НСП 1% [01:41:51]line > о реализуемом товаре [01:41:51]line ИТОГО: 80.00 [01:41:51]line НСП 1% : 0.71 [01:41:51]line НДС 12% : 8.50 [01:41:51]line Наличными: 0.00 [01:41:51]line Безнал.: 80.00 [01:41:51]line Место: АЗС № 101 "Партнер Нефть" [01:41:51]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:41:51]line СНО: Общий режим [01:41:51]line Чек 24 31.10.2024 01:41 [01:41:51]line Смена: 557 ФФД: 1.0 [01:41:51]line ЗНМ: 0300000081 [01:41:51]line РНМ: 0000000000091631 [01:41:51]line Версия ККМ: 001 [01:41:51]line Платежная система: O! деньги [01:41:51]line ФМ: 0000000000874669 [01:41:51]line ФД: 139547 [01:41:51]line ФПД: 77528740290755 [01:41:51]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T014157&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139547&fm=77528740290755&tin=02508201610067®Number=0000000000091631&sum=8000 [01:41:51]line 0 [01:41:51]written 0, free lines is 4095 [01:41:51]OFD Sender: Processing packet 139547 [packets to send 34, broken 33] [01:41:51]ProducePacketName [01:41:51]name=ofd_packets/00139547 [01:41:51]OFD Sender: To server: pG, [01:41:51]CommunicateWithHost lk.salyk.kg:30040 [01:41:51]ConnectInit lk.salyk.kg [01:41:51]Connected sock=10 [01:41:51]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 20 01 00 00 8F D9 18 01 CE CB 5A 03 01 00 03 00 0C 01 1E 04 01 00 01 23 04 5E 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 35 37 06 04 1A 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 1F 00 00 00 00 13 04 06 00 40 1F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 40 1F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 47 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 52 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 40 1F 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 18 00 00 00 F4 03 04 00 65 E0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1B 21 02 00 35 04 06 00 46 83 11 06 60 C3 6E 69 8F 7C B5 D1 E4 29 [01:41:51]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 6B D4 47 00 1E F8 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1B 21 02 00 F4 03 04 00 14 8C 22 67 B6 04 01 00 00 2A 96 12 84 9F 08 71 2C [01:41:51]CommunicateWithHost err = 0 [01:41:51]CheckOFDResponse [01:41:51]1017 (14) - 77093643461234 [01:41:51]1041 (16) - 0000000000874669 [01:41:51]1040 (4) - 139547 [01:41:51]1012 (4) - 30.10.2024 19:42 [01:41:51]1206 (1) - 0 [01:41:51]OFD Sender: Remove packet 139547 [01:41:51]ProducePacketName [01:41:51]name=ofd_packets/00139547 [01:41:51]NVStorageDeleteData [01:41:51]Write to MH i2c: 01 00 00 70 6B DB [01:41:51]Write i2c OK [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: 01 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: 01 07 00 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: 01 07 00 70 6B 00 00 00 00 00 EE 0C DC [01:41:51]RasterBufferAndPrint [01:41:51]line [01:41:51]line [01:41:51]line [01:41:51]line [01:41:51]line [01:41:51]written 0, free lines is 3317 [01:41:51]MH_Cut [01:41:51]Write to MH i2c: D1 01 00 77 6B 01 B4 [01:41:51]Write i2c OK [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: D1 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: D1 01 00 [01:41:51]MH_I2C_Read... [01:41:51]Read from MH i2c: D1 01 00 77 6B 00 B3 [01:41:51]Write to MH i2c: 01 00 00 78 6B E3 [01:41:51]Write i2c OK [01:41:51]MH_I2C_Read... [01:41:51]OFD Sender: No OFD packet to send [01:41:52]*** Cut start [01:41:52]*** Partial cut [01:41:52]*** CUTSNS_PIN = 1 [01:41:52]*** CUTSNS_PIN = 0 [01:41:52]*** Brake cut motor [01:41:52]Read from MH i2c: 01 [01:41:52]MH_I2C_Read... [01:41:52]*** Stop cut motor [01:41:52]*** Cut end [01:41:52]Read from MH i2c: 01 07 00 [01:41:52]MH_I2C_Read... [01:41:52]Read from MH i2c: 01 07 00 78 6B 00 00 00 00 00 FF 0F F8 [01:41:52]process_action close_receipt done [01:41:52]requested_data is exist [01:41:52]produce_requested_data [01:41:52]requested_item fm.sn is exist - process it [01:41:52]wFMCommunicate request_size=4 [01:41:52]MH_SAM_APDU [01:41:52]CAPDU: 80 11 00 00 [01:41:52]Write to MH i2c: E2 08 00 79 6B 80 11 00 00 00 00 00 00 5E [01:41:52]Write i2c OK [01:41:52]MH_I2C_Read... [01:41:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:41:52]Read from MH i2c: E2 [01:41:52]MH_I2C_Read... [01:41:52]Read from MH i2c: E2 17 00 [01:41:52]MH_I2C_Read... [01:41:52]Read from MH i2c: E2 17 00 79 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B9 [01:41:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:41:52]wFMCommunicate OK [01:41:52]requested_item fd.num is exist - process it [01:41:52]SAM_PROTO_GetFieldsCounters [01:41:52]wFMCommunicate request_size=4 [01:41:52]MH_SAM_APDU [01:41:52]CAPDU: 80 13 00 00 [01:41:52]Write to MH i2c: E2 08 00 7A 6B 80 13 00 00 00 00 00 00 61 [01:41:52]Write i2c OK [01:41:52]MH_I2C_Read... [01:41:53]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:41:53]Read from MH i2c: E2 [01:41:53]MH_I2C_Read... [01:41:53]Read from MH i2c: E2 62 00 [01:41:53]MH_I2C_Read... [01:41:53]Read from MH i2c: E2 62 00 7A 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1B 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 3A [01:41:53]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1B 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 18 00 00 00 5E 04 04 00 18 00 00 00 57 04 04 00 19 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:41:53]wFMCommunicate OK [01:41:53]SAM_PROTO_GetFieldsCounters done [01:41:53]requested_item shift.num is exist - process it [01:41:53]requested_item shift.opened is exist - process it [01:41:53]req_shift_opened [01:41:53]FM_GetShiftState [01:41:53]SAM_PROTO_GetShiftState [01:41:53]wFMCommunicate request_size=4 [01:41:53]MH_SAM_APDU [01:41:53]CAPDU: 80 13 01 00 [01:41:53]Write to MH i2c: E2 08 00 7B 6B 80 13 01 00 00 00 00 00 63 [01:41:53]Write i2c OK [01:41:53]MH_I2C_Read... [01:41:53]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:41:53]Read from MH i2c: E2 [01:41:53]MH_I2C_Read... [01:41:53]Read from MH i2c: E2 0E 00 [01:41:53]MH_I2C_Read... [01:41:53]Read from MH i2c: E2 0E 00 7B 6B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8C [01:41:53]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:41:53]wFMCommunicate OK [01:41:53]SAM_PROTO_GetShiftState done [01:41:53]FM_GetShiftState done [01:41:53]req_shift_opened done [01:41:53]requested_item shift.open_date is exist - process it [01:41:53]req_shift_open_date [01:41:53]req_shift_open_date done [01:41:53]produce_requested_data done [01:41:53]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139547,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:41:53]process_action_free close_receipt [01:41:53]json_value_free [01:41:53]json_value_free done [01:41:53]process_json_proto returns [01:41:53]Send response to host [01:41:53]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139547,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:41:53]free response buf [01:41:53]execute_script done [01:41:53]execute_script returns [01:41:53]free content buf [01:41:53]Sock 8.Close socket [01:41:53]Sock 8.Thread stoped [01:41:56]OFD Sender: No OFD packet to send [01:42:01]OFD Sender: No OFD packet to send [01:42:06]OFD Sender: No OFD packet to send [01:42:11]OFD Sender: No OFD packet to send [01:42:16]OFD Sender: No OFD packet to send [01:42:21]OFD Sender: No OFD packet to send [01:42:26]OFD Sender: No OFD packet to send [01:42:31]OFD Sender: No OFD packet to send [01:42:36]OFD Sender: No OFD packet to send [01:42:41]OFD Sender: No OFD packet to send [01:42:46]OFD Sender: No OFD packet to send [01:42:51]OFD Sender: No OFD packet to send [01:42:56]OFD Sender: No OFD packet to send [01:43:01]OFD Sender: No OFD packet to send [01:43:06]OFD Sender: No OFD packet to send [01:43:11]OFD Sender: No OFD packet to send [01:43:16]OFD Sender: No OFD packet to send [01:43:21]OFD Sender: No OFD packet to send [01:43:26]OFD Sender: No OFD packet to send [01:43:31]OFD Sender: No OFD packet to send [01:43:36]OFD Sender: No OFD packet to send [01:43:41]OFD Sender: No OFD packet to send [01:43:46]OFD Sender: No OFD packet to send [01:43:52]OFD Sender: No OFD packet to send [01:43:57]OFD Sender: No OFD packet to send [01:44:02]OFD Sender: No OFD packet to send [01:44:07]OFD Sender: No OFD packet to send [01:44:12]OFD Sender: No OFD packet to send [01:44:17]OFD Sender: No OFD packet to send [01:44:22]OFD Sender: No OFD packet to send [01:44:27]OFD Sender: No OFD packet to send [01:44:32]OFD Sender: No OFD packet to send [01:44:37]OFD Sender: No OFD packet to send [01:44:42]OFD Sender: No OFD packet to send [01:44:47]OFD Sender: No OFD packet to send [01:44:52]OFD Sender: No OFD packet to send [01:44:57]OFD Sender: No OFD packet to send [01:45:02]OFD Sender: No OFD packet to send [01:45:07]OFD Sender: No OFD packet to send [01:45:12]OFD Sender: No OFD packet to send [01:45:17]OFD Sender: No OFD packet to send [01:45:22]OFD Sender: No OFD packet to send [01:45:27]OFD Sender: No OFD packet to send [01:45:32]OFD Sender: No OFD packet to send [01:45:37]OFD Sender: No OFD packet to send [01:45:42]OFD Sender: No OFD packet to send [01:45:47]OFD Sender: No OFD packet to send [01:45:52]OFD Sender: No OFD packet to send [01:45:57]OFD Sender: No OFD packet to send [01:46:02]OFD Sender: No OFD packet to send [01:46:07]OFD Sender: No OFD packet to send [01:46:12]OFD Sender: No OFD packet to send [01:46:17]OFD Sender: No OFD packet to send [01:46:22]OFD Sender: No OFD packet to send [01:46:27]OFD Sender: No OFD packet to send [01:46:32]OFD Sender: No OFD packet to send [01:46:37]OFD Sender: No OFD packet to send [01:46:42]OFD Sender: No OFD packet to send [01:46:47]OFD Sender: No OFD packet to send [01:46:52]OFD Sender: No OFD packet to send [01:46:57]OFD Sender: No OFD packet to send [01:47:02]OFD Sender: No OFD packet to send [01:47:07]OFD Sender: No OFD packet to send [01:47:12]OFD Sender: No OFD packet to send [01:47:17]OFD Sender: No OFD packet to send [01:47:22]OFD Sender: No OFD packet to send [01:47:27]OFD Sender: No OFD packet to send [01:47:32]OFD Sender: No OFD packet to send [01:47:37]OFD Sender: No OFD packet to send [01:47:42]OFD Sender: No OFD packet to send [01:47:47]OFD Sender: No OFD packet to send [01:47:52]OFD Sender: No OFD packet to send [01:47:57]OFD Sender: No OFD packet to send [01:48:02]OFD Sender: No OFD packet to send [01:48:07]OFD Sender: No OFD packet to send [01:48:12]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:23]accept exits with 9 [01:49:23]New connection [01:49:23]New thread 3067141476 created [01:49:23]Thread 3067284836 joined [01:49:23]Waiting for new connection... [01:49:23] Sock 9.Parse request [01:49:23]Sock 9.Check first char [01:49:23]Sock 9.First char is OK [01:49:23]request: POST /json_proto HTTP/1.0 [01:49:23]Method: POST [01:49:23]URL: /json_proto [01:49:23]Method is POST - this is cgi request [01:49:23]url: /json_proto [01:49:23]query_string will be loaded in cgi processing [01:49:23]execute_cgi json_proto POST (null) [01:49:23]execute_cgi path=json_proto method=POST [01:49:23]POST find Content-Length [01:49:23]Host: 172.17.50.196:8080 [01:49:23]Content-Length: 851 [01:49:23]Content-Type: application/json [01:49:23] [01:49:23]POST finish read [01:49:23]Found Content-Length = 851 [01:49:23]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335428", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 263.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:49:23]execute_script... [01:49: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 : (3)335428", "tax_sys" : 0, "items" : [ { "code": "48743570", "name": "\u0421\u0438\u0433\u0430\u0440\u0435\u0442\u044B Winston XStyle Blue", "price" : 144.00, "quantity" : 1.000, "sum" : 144.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870001570071", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 1\u043B", "price" : 119.00, "quantity" : 1.000, "sum" : 119.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 263.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:49:23]POST & json_proto [01:49:23]process_json_proto [01:49:23]json parsed OK: [01:49:23]protocol is kg_v1.0 [01:49:23]action value=close_receipt [01:49:23]process_action close_receipt [01:49:23]cmd_close_receipt [01:49:23]MH_GetDate [01:49:23]Write to MH i2c: F0 00 00 7C 6B D6 [01:49:23]Write i2c OK [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: F0 [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: F0 09 00 [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: F0 09 00 7C 6B 00 2B E2 22 67 72 0D 1C 67 77 [01:49:23]GetLastDocTimeStamp 1730338917 [01:49:23]current date 1730339371 [01:49:23]FM_GetShiftState [01:49:23]SAM_PROTO_GetShiftState [01:49:23]wFMCommunicate request_size=4 [01:49:23]MH_SAM_APDU [01:49:23]CAPDU: 80 13 01 00 [01:49:23]Write to MH i2c: E2 08 00 7D 6B 80 13 01 00 00 00 00 00 65 [01:49:23]Write i2c OK [01:49:23]MH_I2C_Read... [01:49:23]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:23]Read from MH i2c: E2 [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: E2 0E 00 [01:49:23]MH_I2C_Read... [01:49:23]Read from MH i2c: E2 0E 00 7D 6B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8E [01:49:23]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:49:23]wFMCommunicate OK [01:49:23]SAM_PROTO_GetShiftState done [01:49:23]FM_GetShiftState done [01:49:23]opened in 1730332621 [01:49:23]opened+sec_in_day 1730419021 [01:49:23]quantity*price = 14400 [01:49:23]sum+1 = 14401 [01:49:23]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870001570071 Напиток Pepsi 1л 1.000 * 119.00 = 119.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 263.00 НСП 1% : 2.32 НДС 12% : 27.93 Наличными: 263.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 25 31.10.2024 01:49 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139548 ФПД: 49767789055080 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T014931&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139548&fm=49767789055080&tin=02508201610067®Number=0000000000091631&sum=26300 0 [01:49:24]StoreToDocumentArchive [01:49:24]shift 557 fd 139548 [01:49:24]save to /storage/0557/doc_00139548 [01:49:24]save last doc name /storage/0557/doc_00139548 to /storage/kkm_last_doc_name [01:49:24]save OK [01:49:24]Clear old archive folders... [01:49:24]ProcessDocumentItem done err = 0, tmpTLVsize=369 [01:49:24]tlvbuf is 0129CBB0 [01:49:24]SAM_PROTO_ClearQueue [01:49:24]wFMCommunicate request_size=4 [01:49:24]MH_SAM_APDU [01:49:24]CAPDU: 80 09 00 00 [01:49:24]Write to MH i2c: E2 08 00 8A 6B 80 09 00 00 00 00 00 00 67 [01:49:24]Write i2c OK [01:49:24]MH_I2C_Read... [01:49:24]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:49:24]Read from MH i2c: E2 [01:49:24]MH_I2C_Read... [01:49:24]Read from MH i2c: E2 03 00 [01:49:24]MH_I2C_Read... [01:49:24]Read from MH i2c: E2 03 00 8A 6B 00 90 00 69 [01:49:24]RAPDU: 90 00 [01:49:24]wFMCommunicate OK [01:49:24]SAM_PROTO_ClearQueue done [01:49:24]KKMCreateOFDPacket [01:49:24]OFDProtocolAddRootSTLVToBuf [01:49:24]FM_MakeSignedData [01:49:24]FM_MakeSignedData [01:49:24]SAM_PROTO_SignData [01:49:24]wFMCommunicate request_size=4 [01:49:24]MH_SAM_APDU [01:49:24]CAPDU: 80 0D 01 02 [01:49:24]Write to MH i2c: E2 08 00 8B 6B 80 0D 01 02 00 00 00 00 6F [01:49:24]Write i2c OK [01:49:24]MH_I2C_Read... [01:49:24]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:49:24]Read from MH i2c: E2 [01:49:24]MH_I2C_Read... [01:49:24]Read from MH i2c: E2 03 00 [01:49:24]MH_I2C_Read... [01:49:24]Read from MH i2c: E2 03 00 8B 6B 00 90 00 6A [01:49:24]RAPDU: 90 00 [01:49:24]wFMCommunicate OK [01:49:24]wFMCommunicate request_size=255 [01:49:24]MH_SAM_APDU [01:49:24]CAPDU: 80 0D 02 02 FA 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 [01:49:24]Write to MH i2c: E2 02 01 8C 6B 80 0D 02 02 FA 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 00 00 69 [01:49:24]Write i2c OK [01:49:24]MH_I2C_Read... [01:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:49:25]Read from MH i2c: E2 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 03 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 03 00 8C 6B 00 90 00 6B [01:49:25]RAPDU: 90 00 [01:49:25]wFMCommunicate OK [01:49:25]wFMCommunicate request_size=128 [01:49:25]MH_SAM_APDU [01:49:25]CAPDU: 80 0D 02 02 7B F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2B E2 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1C 21 02 00 35 04 06 00 2D 43 77 63 4C 68 [01:49:25]Write to MH i2c: E2 83 00 8D 6B 80 0D 02 02 7B 00 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2B E2 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1C 21 02 00 35 04 06 00 2D 43 77 63 4C 68 00 00 D1 [01:49:25]Write i2c OK [01:49:25]MH_I2C_Read... [01:49:25]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:49:25]Read from MH i2c: E2 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 03 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 03 00 8D 6B 00 90 00 6C [01:49:25]RAPDU: 90 00 [01:49:25]wFMCommunicate OK [01:49:25]wFMCommunicate request_size=4 [01:49:25]MH_SAM_APDU [01:49:25]CAPDU: 80 0D 03 02 [01:49:25]Write to MH i2c: E2 08 00 8E 6B 80 0D 03 02 00 00 00 00 74 [01:49:25]Write i2c OK [01:49:25]MH_I2C_Read... [01:49:25]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:49:25]Read from MH i2c: E2 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 0B 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 0B 00 8E 6B 00 75 A8 08 BA 5C 07 F1 AF 90 00 57 [01:49:25]RAPDU: 75 A8 08 BA 5C 07 F1 AF 90 00 [01:49:25]wFMCommunicate OK [01:49:25]SAM_PROTO_SignData done [01:49:25]FM_MakeSignedData done [01:49:25]CreateOFDProtocolMessage [01:49:25]wFMCommunicate request_size=4 [01:49:25]MH_SAM_APDU [01:49:25]CAPDU: 80 11 00 00 [01:49:25]Write to MH i2c: E2 08 00 8F 6B 80 11 00 00 00 00 00 00 74 [01:49:25]Write i2c OK [01:49:25]MH_I2C_Read... [01:49:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:49:25]Read from MH i2c: E2 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 17 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: E2 17 00 8F 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 CF [01:49:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:49:25]wFMCommunicate OK [01:49:25]CreateOFDProtocolMessage done [01:49:25]OFDSenderStorePacket 139548 [01:49:25]StoreOFDPacket docnum=139548 [01:49:25]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 85 01 00 00 0A 47 7D 01 CC 0E 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2B E2 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1C 21 02 00 35 04 06 00 2D 43 77 63 4C 68 75 A8 08 BA 5C 07 F1 AF [01:49:25]CheckFolder [01:49:25]dirname=/storage/ofd_packets [01:49:25]CheckFolder done [01:49:25]ProducePacketName [01:49:25]name=ofd_packets/00139548 [01:49:25]NVStorageSaveData ofd_packets/00139548 [01:49:25]File name is /storage/ofd_packets/00139548 [01:49:25]Write 419 bytes [01:49:25]NVStorageSaveData done [01:49:25]OFDSenderStorePacket done [01:49:25]KKMCreateOFDPacket done [01:49:25]NVStorageSaveData kkm_last_timestamp [01:49:25]File name is /storage/kkm_last_timestamp [01:49:25]Write 4 bytes [01:49:25]NVStorageSaveData done [01:49:25]ExternCall_PrintAddStr [01:49:25]wPrintStart [01:49:25]Write to MH i2c: 01 00 00 90 6B FB [01:49:25]Write i2c OK [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: 01 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: 01 07 00 [01:49:25]MH_I2C_Read... [01:49:25]Read from MH i2c: 01 07 00 90 6B 00 00 00 00 00 FF 0F 10 [01:49:25]RasterBufferAndPrint [01:49:25]line Счет N : (3)335428 [01:49:25]line ИНН: 02508201610067 [01:49:25]line Контрольно-Кассовый Чек [01:49:25]line ПРОДАЖА [01:49:25]line Товар: 48743570 [01:49:25]line Сигареты Winston XStyle Blue [01:49:25]line 1.000 * 144.00 [01:49:25]line = 144.00 [01:49:25]line НДС 12% НСП 1% [01:49:25]line > о реализуемом товаре [01:49:25]line Товар: 4870001570071 [01:49:25]line Напиток Pepsi 1л [01:49:25]line 1.000 * 119.00 [01:49:25]line = 119.00 [01:49:25]line НДС 12% НСП 1% [01:49:25]line > о реализуемом товаре [01:49:25]line ИТОГО: 263.00 [01:49:25]line НСП 1% : 2.32 [01:49:25]line НДС 12% : 27.93 [01:49:25]line Наличными: 263.00 [01:49:25]line Безнал.: 0.00 [01:49:25]line Место: АЗС № 101 "Партнер Нефть" [01:49:25]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:49:25]line СНО: Общий режим [01:49:25]line Чек 25 31.10.2024 01:49 [01:49:25]line Смена: 557 ФФД: 1.0 [01:49:25]line ЗНМ: 0300000081 [01:49:25]line РНМ: 0000000000091631 [01:49:25]line Версия ККМ: 001 [01:49:25]line ФМ: 0000000000874669 [01:49:25]line ФД: 139548 [01:49:25]line ФПД: 49767789055080 [01:49:25]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T014931&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139548&fm=49767789055080&tin=02508201610067®Number=0000000000091631&sum=26300 [01:49:25]line 0 [01:49:25]OFD Sender: Processing packet 139548 [packets to send 34, broken 33] [01:49:25]ProducePacketName [01:49:25]name=ofd_packets/00139548 [01:49:25]OFD Sender: To server: pG, [01:49:25]CommunicateWithHost lk.salyk.kg:30040 [01:49:25]ConnectInit lk.salyk.kg [01:49:25]written 0, free lines is 4095 [01:49:25]Connected sock=10 [01:49:25]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 85 01 00 00 0A 47 7D 01 CC 0E 5A 03 01 00 03 00 71 01 1E 04 01 00 01 23 04 63 00 8A 04 08 00 34 38 37 34 33 35 37 30 06 04 24 00 D0 A1 D0 B8 D0 B3 D0 B0 D1 80 D0 B5 D1 82 D1 8B 20 57 69 6E 73 74 6F 6E 20 58 53 74 79 6C 65 20 42 6C 75 65 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 40 38 00 00 00 00 13 04 06 00 40 38 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5C 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 30 30 37 31 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 7C 2E 00 00 00 00 13 04 06 00 7C 2E 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 BC 66 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 E8 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E9 0A 00 00 00 00 07 04 06 00 BC 66 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 19 00 00 00 F4 03 04 00 2B E2 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1C 21 02 00 35 04 06 00 2D 43 77 63 4C 68 75 A8 08 BA 5C 07 F1 AF [01:49:25]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D9 2B 47 00 BE 8B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1C 21 02 00 F4 03 04 00 DA 8D 22 67 B6 04 01 00 00 1A AF CF 38 6D 47 7C 2F [01:49:25]CommunicateWithHost err = 0 [01:49:25]CheckOFDResponse [01:49:25]1017 (14) - 77093643461234 [01:49:25]1041 (16) - 0000000000874669 [01:49:25]1040 (4) - 139548 [01:49:25]1012 (4) - 30.10.2024 19:49 [01:49:25]1206 (1) - 0 [01:49:25]OFD Sender: Remove packet 139548 [01:49:25]ProducePacketName [01:49:25]name=ofd_packets/00139548 [01:49:25]NVStorageDeleteData [01:49:26]Write to MH i2c: 01 00 00 BE 6B 29 [01:49:26]Write i2c OK [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: 01 [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: 01 07 00 [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: 01 07 00 BE 6B 00 00 00 00 00 D1 0C 0D [01:49:26]RasterBufferAndPrint [01:49:26]line [01:49:26]line [01:49:26]line [01:49:26]line [01:49:26]line [01:49:26]written 0, free lines is 3290 [01:49:26]MH_Cut [01:49:26]Write to MH i2c: D1 01 00 C5 6B 01 02 [01:49:26]Write i2c OK [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: D1 [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: D1 01 00 [01:49:26]MH_I2C_Read... [01:49:26]Read from MH i2c: D1 01 00 C5 6B 00 01 [01:49:26]Write to MH i2c: 01 00 00 C6 6B 31 [01:49:26]Write i2c OK [01:49:26]MH_I2C_Read... [01:49:26]OFD Sender: No OFD packet to send [01:49:26]*** Cut start [01:49:26]*** Partial cut [01:49:26]*** CUTSNS_PIN = 1 [01:49:26]*** CUTSNS_PIN = 0 [01:49:27]*** Brake cut motor [01:49:27]Read from MH i2c: 01 [01:49:27]MH_I2C_Read... [01:49:27]*** Stop cut motor [01:49:27]*** Cut end [01:49:27]Read from MH i2c: 01 07 00 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: 01 07 00 C6 6B 00 00 00 00 00 FF 0F 46 [01:49:27]process_action close_receipt done [01:49:27]requested_data is exist [01:49:27]produce_requested_data [01:49:27]requested_item fm.sn is exist - process it [01:49:27]wFMCommunicate request_size=4 [01:49:27]MH_SAM_APDU [01:49:27]CAPDU: 80 11 00 00 [01:49:27]Write to MH i2c: E2 08 00 C7 6B 80 11 00 00 00 00 00 00 AC [01:49:27]Write i2c OK [01:49:27]MH_I2C_Read... [01:49:27]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:49:27]Read from MH i2c: E2 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: E2 17 00 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: E2 17 00 C7 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 07 [01:49:27]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:49:27]wFMCommunicate OK [01:49:27]requested_item fd.num is exist - process it [01:49:27]SAM_PROTO_GetFieldsCounters [01:49:27]wFMCommunicate request_size=4 [01:49:27]MH_SAM_APDU [01:49:27]CAPDU: 80 13 00 00 [01:49:27]Write to MH i2c: E2 08 00 C8 6B 80 13 00 00 00 00 00 00 AF [01:49:27]Write i2c OK [01:49:27]MH_I2C_Read... [01:49:27]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:49:27]Read from MH i2c: E2 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: E2 62 00 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: E2 62 00 C8 6B 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1C 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 8C [01:49:27]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1C 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 19 00 00 00 5E 04 04 00 19 00 00 00 57 04 04 00 1A 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:49:27]wFMCommunicate OK [01:49:27]SAM_PROTO_GetFieldsCounters done [01:49:27]requested_item shift.num is exist - process it [01:49:27]requested_item shift.opened is exist - process it [01:49:27]req_shift_opened [01:49:27]FM_GetShiftState [01:49:27]SAM_PROTO_GetShiftState [01:49:27]wFMCommunicate request_size=4 [01:49:27]MH_SAM_APDU [01:49:27]CAPDU: 80 13 01 00 [01:49:27]Write to MH i2c: E2 08 00 C9 6B 80 13 01 00 00 00 00 00 B1 [01:49:27]Write i2c OK [01:49:27]MH_I2C_Read... [01:49:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:49:27]Read from MH i2c: E2 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: E2 0E 00 [01:49:27]MH_I2C_Read... [01:49:27]Read from MH i2c: E2 0E 00 C9 6B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DA [01:49:27]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:49:27]wFMCommunicate OK [01:49:27]SAM_PROTO_GetShiftState done [01:49:27]FM_GetShiftState done [01:49:27]req_shift_opened done [01:49:27]requested_item shift.open_date is exist - process it [01:49:27]req_shift_open_date [01:49:27]req_shift_open_date done [01:49:27]produce_requested_data done [01:49:27]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139548,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:49:27]process_action_free close_receipt [01:49:27]json_value_free [01:49:27]json_value_free done [01:49:27]process_json_proto returns [01:49:27]Send response to host [01:49:27]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139548,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:49:27]free response buf [01:49:27]execute_script done [01:49:27]execute_script returns [01:49:27]free content buf [01:49:27]Sock 9.Close socket [01:49:27]Sock 9.Thread stoped [01:49:31]OFD Sender: No OFD packet to send [01:49:36]OFD Sender: No OFD packet to send [01:49:41]OFD Sender: No OFD packet to send [01:49:46]OFD Sender: No OFD packet to send [01:49:51]OFD Sender: No OFD packet to send [01:49:56]OFD Sender: No OFD packet to send [01:50:01]OFD Sender: No OFD packet to send [01:50:06]OFD Sender: No OFD packet to send [01:50:11]OFD Sender: No OFD packet to send [01:50:16]OFD Sender: No OFD packet to send [01:50:21]OFD Sender: No OFD packet to send [01:50:26]OFD Sender: No OFD packet to send [01:50:31]OFD Sender: No OFD packet to send [01:50:36]OFD Sender: No OFD packet to send [01:50:41]OFD Sender: No OFD packet to send [01:50:46]OFD Sender: No OFD packet to send [01:50:51]OFD Sender: No OFD packet to send [01:50:56]OFD Sender: No OFD packet to send [01:51:01]OFD Sender: No OFD packet to send [01:51:06]OFD Sender: No OFD packet to send [01:51:11]OFD Sender: No OFD packet to send [01:51:16]OFD Sender: No OFD packet to send [01:51:21]OFD Sender: No OFD packet to send [01:51:26]OFD Sender: No OFD packet to send [01:51:31]OFD Sender: No OFD packet to send [01:51:36]OFD Sender: No OFD packet to send [01:51:41]OFD Sender: No OFD packet to send [01:51:46]OFD Sender: No OFD packet to send [01:51:51]OFD Sender: No OFD packet to send [01:51:56]OFD Sender: No OFD packet to send [01:52:01]OFD Sender: No OFD packet to send [01:52:06]OFD Sender: No OFD packet to send [01:52:11]OFD Sender: No OFD packet to send [01:52:16]OFD Sender: No OFD packet to send [01:52:21]OFD Sender: No OFD packet to send [01:52:26]OFD Sender: No OFD packet to send [01:52:31]OFD Sender: No OFD packet to send [01:52:36]OFD Sender: No OFD packet to send [01:52:41]OFD Sender: No OFD packet to send [01:52:46]OFD Sender: No OFD packet to send [01:52:51]OFD Sender: No OFD packet to send [01:52:56]OFD Sender: No OFD packet to send [01:53:01]OFD Sender: No OFD packet to send [01:53:06]OFD Sender: No OFD packet to send [01:53:11]OFD Sender: No OFD packet to send [01:53:16]OFD Sender: No OFD packet to send [01:53:21]OFD Sender: No OFD packet to send [01:53:26]OFD Sender: No OFD packet to send [01:53:31]OFD Sender: No OFD packet to send [01:53:36]OFD Sender: No OFD packet to send [01:53:41]OFD Sender: No OFD packet to send [01:53:46]OFD Sender: No OFD packet to send [01:53:50]accept exits with 8 [01:53:50]New connection [01:53:50]New thread 3067284836 created [01:53:50]Thread 3067141476 joined [01:53:50]Waiting for new connection... [01:53:50] Sock 8.Parse request [01:53:50]Sock 8.Check first char [01:53:50]Sock 8.First char is OK [01:53:50]request: POST /json_proto HTTP/1.0 [01:53:50]Method: POST [01:53:50]URL: /json_proto [01:53:50]Method is POST - this is cgi request [01:53:50]url: /json_proto [01:53:50]query_string will be loaded in cgi processing [01:53:50]execute_cgi json_proto POST (null) [01:53:50]execute_cgi path=json_proto method=POST [01:53:50]POST find Content-Length [01:53:50]Host: 172.17.50.196:8080 [01:53:50]Content-Length: 870 [01:53:50]Content-Type: application/json [01:53:50] [01:53:50]POST finish read [01:53:50]Found Content-Length = 870 [01:53:50]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335429", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48700011155490", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:50]execute_script... [01:53: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 : (3)335429", "tax_sys" : 0, "items" : [ { "code": "5449000006271", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u0424\u0430\u043D\u0442\u0430 1\u043B", "price" : 125.00, "quantity" : 1.000, "sum" : 125.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "48700011155490", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A Pepsi 2\u043B", "price" : 210.00, "quantity" : 1.000, "sum" : 210.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 335.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:53:50]POST & json_proto [01:53:50]process_json_proto [01:53:50]json parsed OK: [01:53:50]protocol is kg_v1.0 [01:53:50]action value=close_receipt [01:53:50]process_action close_receipt [01:53:50]cmd_close_receipt [01:53:50]MH_GetDate [01:53:50]Write to MH i2c: F0 00 00 CA 6B 24 [01:53:50]Write i2c OK [01:53:50]MH_I2C_Read... [01:53:50]Read from MH i2c: F0 [01:53:50]MH_I2C_Read... [01:53:50]Read from MH i2c: F0 09 00 [01:53:50]MH_I2C_Read... [01:53:50]Read from MH i2c: F0 09 00 CA 6B 00 36 E3 22 67 72 0D 1C 67 D1 [01:53:50]GetLastDocTimeStamp 1730339371 [01:53:50]current date 1730339638 [01:53:50]FM_GetShiftState [01:53:50]SAM_PROTO_GetShiftState [01:53:50]wFMCommunicate request_size=4 [01:53:50]MH_SAM_APDU [01:53:50]CAPDU: 80 13 01 00 [01:53:50]Write to MH i2c: E2 08 00 CB 6B 80 13 01 00 00 00 00 00 B3 [01:53:50]Write i2c OK [01:53:50]MH_I2C_Read... [01:53:50]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:50]Read from MH i2c: E2 [01:53:50]MH_I2C_Read... [01:53:50]Read from MH i2c: E2 0E 00 [01:53:50]MH_I2C_Read... [01:53:50]Read from MH i2c: E2 0E 00 CB 6B 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 DC [01:53:50]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:53:50]wFMCommunicate OK [01:53:50]SAM_PROTO_GetShiftState done [01:53:50]FM_GetShiftState done [01:53:50]opened in 1730332621 [01:53:50]opened+sec_in_day 1730419021 [01:53:50]quantity*price = 12500 [01:53:50]sum+1 = 12501 [01:53:50]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 48700011155490 Напиток Pepsi 2л 1.000 * 210.00 = 210.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 335.00 НСП 1% : 2.97 НДС 12% : 35.57 Наличными: 335.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 26 31.10.2024 01:53 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139549 ФПД: 79275314651873 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015358&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139549&fm=79275314651873&tin=02508201610067®Number=0000000000091631&sum=33500 0 [01:53:51]StoreToDocumentArchive [01:53:51]shift 557 fd 139549 [01:53:51]save to /storage/0557/doc_00139549 [01:53:51]save last doc name /storage/0557/doc_00139549 to /storage/kkm_last_doc_name [01:53:51]save OK [01:53:51]Clear old archive folders... [01:53:51]ProcessDocumentItem done err = 0, tmpTLVsize=368 [01:53:51]tlvbuf is 012631F0 [01:53:51]SAM_PROTO_ClearQueue [01:53:51]wFMCommunicate request_size=4 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 09 00 00 [01:53:51]Write to MH i2c: E2 08 00 D8 6B 80 09 00 00 00 00 00 00 B5 [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 D8 6B 00 90 00 B7 [01:53:51]RAPDU: 90 00 [01:53:51]wFMCommunicate OK [01:53:51]SAM_PROTO_ClearQueue done [01:53:51]KKMCreateOFDPacket [01:53:51]OFDProtocolAddRootSTLVToBuf [01:53:51]FM_MakeSignedData [01:53:51]FM_MakeSignedData [01:53:51]SAM_PROTO_SignData [01:53:51]wFMCommunicate request_size=4 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 0D 01 02 [01:53:51]Write to MH i2c: E2 08 00 D9 6B 80 0D 01 02 00 00 00 00 BD [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 D9 6B 00 90 00 B8 [01:53:51]RAPDU: 90 00 [01:53:51]wFMCommunicate OK [01:53:51]wFMCommunicate request_size=255 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 0D 02 02 FA 03 00 70 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0E 00 34 38 37 30 30 30 31 31 31 35 35 34 39 30 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 [01:53:51]Write to MH i2c: E2 02 01 DA 6B 80 0D 02 02 FA 00 03 00 70 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0E 00 34 38 37 30 30 30 31 31 31 35 35 34 39 30 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 00 00 BE [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:51]OFD Sender: No OFD packet to send [01:53:51]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:51]Read from MH i2c: E2 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 [01:53:51]MH_I2C_Read... [01:53:51]Read from MH i2c: E2 03 00 DA 6B 00 90 00 B9 [01:53:51]RAPDU: 90 00 [01:53:51]wFMCommunicate OK [01:53:51]wFMCommunicate request_size=127 [01:53:51]MH_SAM_APDU [01:53:51]CAPDU: 80 0D 02 02 7A 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 36 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 21 02 00 35 04 06 00 48 19 B8 F8 22 E1 [01:53:51]Write to MH i2c: E2 82 00 DB 6B 80 0D 02 02 7A 00 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 36 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 21 02 00 35 04 06 00 48 19 B8 F8 22 E1 00 00 89 [01:53:51]Write i2c OK [01:53:51]MH_I2C_Read... [01:53:52]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:53:52]Read from MH i2c: E2 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: E2 03 00 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: E2 03 00 DB 6B 00 90 00 BA [01:53:52]RAPDU: 90 00 [01:53:52]wFMCommunicate OK [01:53:52]wFMCommunicate request_size=4 [01:53:52]MH_SAM_APDU [01:53:52]CAPDU: 80 0D 03 02 [01:53:52]Write to MH i2c: E2 08 00 DC 6B 80 0D 03 02 00 00 00 00 C2 [01:53:52]Write i2c OK [01:53:52]MH_I2C_Read... [01:53:52]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:53:52]Read from MH i2c: E2 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: E2 0B 00 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: E2 0B 00 DC 6B 00 0C A6 F5 0E 36 DC 5C 29 90 00 0F [01:53:52]RAPDU: 0C A6 F5 0E 36 DC 5C 29 90 00 [01:53:52]wFMCommunicate OK [01:53:52]SAM_PROTO_SignData done [01:53:52]FM_MakeSignedData done [01:53:52]CreateOFDProtocolMessage [01:53:52]wFMCommunicate request_size=4 [01:53:52]MH_SAM_APDU [01:53:52]CAPDU: 80 11 00 00 [01:53:52]Write to MH i2c: E2 08 00 DD 6B 80 11 00 00 00 00 00 00 C2 [01:53:52]Write i2c OK [01:53:52]MH_I2C_Read... [01:53:52]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:52]Read from MH i2c: E2 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: E2 17 00 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: E2 17 00 DD 6B 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 1D [01:53:52]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:53:52]wFMCommunicate OK [01:53:52]CreateOFDProtocolMessage done [01:53:52]OFDSenderStorePacket 139549 [01:53:52]StoreOFDPacket docnum=139549 [01:53:52]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 84 01 00 00 49 17 7C 01 74 7C 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0E 00 34 38 37 30 30 30 31 31 31 35 35 34 39 30 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 36 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 21 02 00 35 04 06 00 48 19 B8 F8 22 E1 0C A6 F5 0E 36 DC 5C 29 [01:53:52]CheckFolder [01:53:52]dirname=/storage/ofd_packets [01:53:52]CheckFolder done [01:53:52]ProducePacketName [01:53:52]name=ofd_packets/00139549 [01:53:52]NVStorageSaveData ofd_packets/00139549 [01:53:52]File name is /storage/ofd_packets/00139549 [01:53:52]Write 418 bytes [01:53:52]NVStorageSaveData done [01:53:52]OFDSenderStorePacket done [01:53:52]KKMCreateOFDPacket done [01:53:52]NVStorageSaveData kkm_last_timestamp [01:53:52]File name is /storage/kkm_last_timestamp [01:53:52]Write 4 bytes [01:53:52]NVStorageSaveData done [01:53:52]ExternCall_PrintAddStr [01:53:52]wPrintStart [01:53:52]Write to MH i2c: 01 00 00 DE 6B 49 [01:53:52]Write i2c OK [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: 01 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: 01 07 00 [01:53:52]MH_I2C_Read... [01:53:52]Read from MH i2c: 01 07 00 DE 6B 00 00 00 00 00 FF 0F 5E [01:53:52]RasterBufferAndPrint [01:53:52]line Счет N : (3)335429 [01:53:52]line ИНН: 02508201610067 [01:53:52]line Контрольно-Кассовый Чек [01:53:52]line ПРОДАЖА [01:53:52]line Товар: 5449000006271 [01:53:52]line Напиток Фанта 1л [01:53:52]line 1.000 * 125.00 [01:53:52]line = 125.00 [01:53:52]line НДС 12% НСП 1% [01:53:52]line > о реализуемом товаре [01:53:52]line Товар: 48700011155490 [01:53:52]line Напиток Pepsi 2л [01:53:52]line 1.000 * 210.00 [01:53:52]line = 210.00 [01:53:52]line НДС 12% НСП 1% [01:53:52]line > о реализуемом товаре [01:53:52]line ИТОГО: 335.00 [01:53:52]line НСП 1% : 2.97 [01:53:52]line НДС 12% : 35.57 [01:53:52]line Наличными: 335.00 [01:53:52]line Безнал.: 0.00 [01:53:52]line Место: АЗС № 101 "Партнер Нефть" [01:53:52]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:53:52]line СНО: Общий режим [01:53:52]line Чек 26 31.10.2024 01:53 [01:53:52]line Смена: 557 ФФД: 1.0 [01:53:52]line ЗНМ: 0300000081 [01:53:52]line РНМ: 0000000000091631 [01:53:52]line Версия ККМ: 001 [01:53:52]line ФМ: 0000000000874669 [01:53:52]line ФД: 139549 [01:53:52]line ФПД: 79275314651873 [01:53:52]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015358&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139549&fm=79275314651873&tin=02508201610067®Number=0000000000091631&sum=33500 [01:53:52]line 0 [01:53:52]OFD Sender: Processing packet 139549 [packets to send 34, broken 33] [01:53:52]ProducePacketName [01:53:52]name=ofd_packets/00139549 [01:53:52]OFD Sender: To server: pG, [01:53:52]CommunicateWithHost lk.salyk.kg:30040 [01:53:52]ConnectInit lk.salyk.kg [01:53:52]written 0, free lines is 4095 [01:53:52]Connected sock=10 [01:53:52]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 84 01 00 00 49 17 7C 01 74 7C 5A 03 01 00 03 00 70 01 1E 04 01 00 01 23 04 61 00 8A 04 0D 00 35 34 34 39 30 30 30 30 30 36 32 37 31 06 04 1D 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 A4 D0 B0 D0 BD D1 82 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D4 30 00 00 00 00 13 04 06 00 D4 30 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5D 00 8A 04 0E 00 34 38 37 30 30 30 31 31 31 35 35 34 39 30 06 04 18 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 50 65 70 73 69 20 32 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 08 52 00 00 00 00 13 04 06 00 08 52 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 DC 82 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 29 01 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 E5 0D 00 00 00 00 07 04 06 00 DC 82 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1A 00 00 00 F4 03 04 00 36 E3 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 21 02 00 35 04 06 00 48 19 B8 F8 22 E1 0C A6 F5 0E 36 DC 5C 29 [01:53:52]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D9 47 47 00 7D 1B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1D 21 02 00 F4 03 04 00 E5 8E 22 67 B6 04 01 00 00 6F AA 82 80 DF 9F 38 B0 [01:53:52]CommunicateWithHost err = 0 [01:53:52]CheckOFDResponse [01:53:52]1017 (14) - 77093643461234 [01:53:52]1041 (16) - 0000000000874669 [01:53:52]1040 (4) - 139549 [01:53:52]1012 (4) - 30.10.2024 19:54 [01:53:52]1206 (1) - 0 [01:53:52]OFD Sender: Remove packet 139549 [01:53:52]ProducePacketName [01:53:52]name=ofd_packets/00139549 [01:53:52]NVStorageDeleteData [01:53:53]Write to MH i2c: 01 00 00 0C 6C 78 [01:53:53]Write i2c OK [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: 01 [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: 01 07 00 [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: 01 07 00 0C 6C 00 00 00 00 00 C6 0C 51 [01:53:53]RasterBufferAndPrint [01:53:53]line [01:53:53]line [01:53:53]line [01:53:53]line [01:53:53]line [01:53:53]written 0, free lines is 3277 [01:53:53]MH_Cut [01:53:53]Write to MH i2c: D1 01 00 13 6C 01 51 [01:53:53]Write i2c OK [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: D1 [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: D1 01 00 [01:53:53]MH_I2C_Read... [01:53:53]Read from MH i2c: D1 01 00 13 6C 00 50 [01:53:53]Write to MH i2c: 01 00 00 14 6C 80 [01:53:53]Write i2c OK [01:53:53]MH_I2C_Read... [01:53:53]OFD Sender: No OFD packet to send [01:53:53]*** Cut start [01:53:53]*** Partial cut [01:53:53]*** CUTSNS_PIN = 1 [01:53:53]*** CUTSNS_PIN = 0 [01:53:54]*** Brake cut motor [01:53:54]Read from MH i2c: 01 [01:53:54]MH_I2C_Read... [01:53:54]*** Stop cut motor [01:53:54]*** Cut end [01:53:54]Read from MH i2c: 01 07 00 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: 01 07 00 14 6C 00 00 00 00 00 FF 0F 95 [01:53:54]process_action close_receipt done [01:53:54]requested_data is exist [01:53:54]produce_requested_data [01:53:54]requested_item fm.sn is exist - process it [01:53:54]wFMCommunicate request_size=4 [01:53:54]MH_SAM_APDU [01:53:54]CAPDU: 80 11 00 00 [01:53:54]Write to MH i2c: E2 08 00 15 6C 80 11 00 00 00 00 00 00 FB [01:53:54]Write i2c OK [01:53:54]MH_I2C_Read... [01:53:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:53:54]Read from MH i2c: E2 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 17 00 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 17 00 15 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 56 [01:53:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:53:54]wFMCommunicate OK [01:53:54]requested_item fd.num is exist - process it [01:53:54]SAM_PROTO_GetFieldsCounters [01:53:54]wFMCommunicate request_size=4 [01:53:54]MH_SAM_APDU [01:53:54]CAPDU: 80 13 00 00 [01:53:54]Write to MH i2c: E2 08 00 16 6C 80 13 00 00 00 00 00 00 FE [01:53:54]Write i2c OK [01:53:54]MH_I2C_Read... [01:53:54]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:53:54]Read from MH i2c: E2 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 62 00 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 62 00 16 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1D 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 DF [01:53:54]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1D 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1A 00 00 00 5E 04 04 00 1A 00 00 00 57 04 04 00 1B 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:53:54]wFMCommunicate OK [01:53:54]SAM_PROTO_GetFieldsCounters done [01:53:54]requested_item shift.num is exist - process it [01:53:54]requested_item shift.opened is exist - process it [01:53:54]req_shift_opened [01:53:54]FM_GetShiftState [01:53:54]SAM_PROTO_GetShiftState [01:53:54]wFMCommunicate request_size=4 [01:53:54]MH_SAM_APDU [01:53:54]CAPDU: 80 13 01 00 [01:53:54]Write to MH i2c: E2 08 00 17 6C 80 13 01 00 00 00 00 00 00 [01:53:54]Write i2c OK [01:53:54]MH_I2C_Read... [01:53:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:53:54]Read from MH i2c: E2 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 0E 00 [01:53:54]MH_I2C_Read... [01:53:54]Read from MH i2c: E2 0E 00 17 6C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 29 [01:53:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:53:54]wFMCommunicate OK [01:53:54]SAM_PROTO_GetShiftState done [01:53:54]FM_GetShiftState done [01:53:54]req_shift_opened done [01:53:54]requested_item shift.open_date is exist - process it [01:53:54]req_shift_open_date [01:53:54]req_shift_open_date done [01:53:54]produce_requested_data done [01:53:54]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139549,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:53:54]process_action_free close_receipt [01:53:54]json_value_free [01:53:54]json_value_free done [01:53:54]process_json_proto returns [01:53:54]Send response to host [01:53:54]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139549,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:53:54]free response buf [01:53:54]execute_script done [01:53:54]execute_script returns [01:53:54]free content buf [01:53:54]Sock 8.Close socket [01:53:54]Sock 8.Thread stoped [01:53:58]OFD Sender: No OFD packet to send [01:54:03]OFD Sender: No OFD packet to send [01:54:08]OFD Sender: No OFD packet to send [01:54:13]OFD Sender: No OFD packet to send [01:54:18]OFD Sender: No OFD packet to send [01:54:23]OFD Sender: No OFD packet to send [01:54:28]OFD Sender: No OFD packet to send [01:54:33]OFD Sender: No OFD packet to send [01:54:38]OFD Sender: No OFD packet to send [01:54:43]OFD Sender: No OFD packet to send [01:54:48]OFD Sender: No OFD packet to send [01:54:53]OFD Sender: No OFD packet to send [01:54:58]OFD Sender: No OFD packet to send [01:55:03]OFD Sender: No OFD packet to send [01:55:08]OFD Sender: No OFD packet to send [01:55:13]OFD Sender: No OFD packet to send [01:55:18]OFD Sender: No OFD packet to send [01:55:23]OFD Sender: No OFD packet to send [01:55:28]OFD Sender: No OFD packet to send [01:55:33]OFD Sender: No OFD packet to send [01:55:38]OFD Sender: No OFD packet to send [01:55:43]OFD Sender: No OFD packet to send [01:55:48]OFD Sender: No OFD packet to send [01:55:53]OFD Sender: No OFD packet to send [01:56:03]OFD Sender: No OFD packet to send [01:56:08]OFD Sender: No OFD packet to send [01:56:13]OFD Sender: No OFD packet to send [01:56:18]OFD Sender: No OFD packet to send [01:56:23]OFD Sender: No OFD packet to send [01:56:28]OFD Sender: No OFD packet to send [01:56:33]OFD Sender: No OFD packet to send [01:56:38]OFD Sender: No OFD packet to send [01:56:43]OFD Sender: No OFD packet to send [01:56:48]OFD Sender: No OFD packet to send [01:56:53]OFD Sender: No OFD packet to send [01:56:58]OFD Sender: No OFD packet to send [01:57:03]OFD Sender: No OFD packet to send [01:57:08]OFD Sender: No OFD packet to send [01:57:13]OFD Sender: No OFD packet to send [01:57:18]OFD Sender: No OFD packet to send [01:57:23]OFD Sender: No OFD packet to send [01:57:28]OFD Sender: No OFD packet to send [01:57:33]OFD Sender: No OFD packet to send [01:57:38]OFD Sender: No OFD packet to send [01:57:43]OFD Sender: No OFD packet to send [01:57:48]OFD Sender: No OFD packet to send [01:57:53]OFD Sender: No OFD packet to send [01:57:58]OFD Sender: No OFD packet to send [01:58:03]OFD Sender: No OFD packet to send [01:58:08]OFD Sender: No OFD packet to send [01:58:09]accept exits with 9 [01:58:09]New connection [01:58:09]New thread 3067141476 created [01:58:09]Thread 3067284836 joined [01:58:09]Waiting for new connection... [01:58:09] Sock 9.Parse request [01:58:09]Sock 9.Check first char [01:58:09]Sock 9.First char is OK [01:58:09]request: POST /json_proto HTTP/1.0 [01:58:09]Method: POST [01:58:09]URL: /json_proto [01:58:09]Method is POST - this is cgi request [01:58:09]url: /json_proto [01:58:09]query_string will be loaded in cgi processing [01:58:09]execute_cgi json_proto POST (null) [01:58:09]execute_cgi path=json_proto method=POST [01:58:09]POST find Content-Length [01:58:09]Host: 172.17.50.196:8080 [01:58:09]Content-Length: 755 [01:58:09]Content-Type: application/json [01:58:09] [01:58:09]POST finish read [01:58:09]Found Content-Length = 755 [01:58:09]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335430", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:58:09]execute_script... [01:58: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 : (3)335430", "tax_sys" : 0, "items" : [ { "code": "4630007400976", "name": "\u0410\u0440\u0430\u0445\u0438\u0441 \u0436\u0430\u0440\u0435\u043D \u041A\u0430\u0440\u0430\u0432\u0430\u043D \u043E\u0440\u0435\u0445\u043E\u0432 \u0421\u0442\u0430\u043D\u0434\u0430\u0440\u0442 90 ", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:58:09]POST & json_proto [01:58:09]process_json_proto [01:58:09]json parsed OK: [01:58:09]protocol is kg_v1.0 [01:58:09]action value=close_receipt [01:58:09]process_action close_receipt [01:58:09]cmd_close_receipt [01:58:09]MH_GetDate [01:58:09]Write to MH i2c: F0 00 00 18 6C 73 [01:58:09]Write i2c OK [01:58:09]MH_I2C_Read... [01:58:09]Read from MH i2c: F0 [01:58:09]MH_I2C_Read... [01:58:09]Read from MH i2c: F0 09 00 [01:58:09]MH_I2C_Read... [01:58:09]Read from MH i2c: F0 09 00 18 6C 00 39 E4 22 67 72 0D 1C 67 24 [01:58:09]GetLastDocTimeStamp 1730339638 [01:58:09]current date 1730339897 [01:58:09]FM_GetShiftState [01:58:09]SAM_PROTO_GetShiftState [01:58:09]wFMCommunicate request_size=4 [01:58:09]MH_SAM_APDU [01:58:09]CAPDU: 80 13 01 00 [01:58:09]Write to MH i2c: E2 08 00 19 6C 80 13 01 00 00 00 00 00 02 [01:58:09]Write i2c OK [01:58:09]MH_I2C_Read... [01:58:09]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:58:09]Read from MH i2c: E2 [01:58:09]MH_I2C_Read... [01:58:09]Read from MH i2c: E2 0E 00 [01:58:09]MH_I2C_Read... [01:58:09]Read from MH i2c: E2 0E 00 19 6C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 2B [01:58:09]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:58:09]wFMCommunicate OK [01:58:09]SAM_PROTO_GetShiftState done [01:58:09]FM_GetShiftState done [01:58:09]opened in 1730332621 [01:58:09]opened+sec_in_day 1730419021 [01:58:09]quantity*price = 7500 [01:58:09]sum+1 = 7501 [01:58:09]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 27 31.10.2024 01:58 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139550 ФПД: 63263394908721 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015817&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139550&fm=63263394908721&tin=02508201610067®Number=0000000000091631&sum=7500 0 [01:58:10]StoreToDocumentArchive [01:58:10]shift 557 fd 139550 [01:58:10]save to /storage/0557/doc_00139550 [01:58:10]save last doc name /storage/0557/doc_00139550 to /storage/kkm_last_doc_name [01:58:10]save OK [01:58:10]Clear old archive folders... [01:58:10]ProcessDocumentItem done err = 0, tmpTLVsize=314 [01:58:10]tlvbuf is 01124B00 [01:58:10]SAM_PROTO_ClearQueue [01:58:10]wFMCommunicate request_size=4 [01:58:10]MH_SAM_APDU [01:58:10]CAPDU: 80 09 00 00 [01:58:10]Write to MH i2c: E2 08 00 26 6C 80 09 00 00 00 00 00 00 04 [01:58:10]Write i2c OK [01:58:10]MH_I2C_Read... [01:58:10]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:58:10]Read from MH i2c: E2 [01:58:10]MH_I2C_Read... [01:58:10]Read from MH i2c: E2 03 00 [01:58:10]MH_I2C_Read... [01:58:10]Read from MH i2c: E2 03 00 26 6C 00 90 00 06 [01:58:10]RAPDU: 90 00 [01:58:10]wFMCommunicate OK [01:58:10]SAM_PROTO_ClearQueue done [01:58:10]KKMCreateOFDPacket [01:58:10]OFDProtocolAddRootSTLVToBuf [01:58:10]FM_MakeSignedData [01:58:10]FM_MakeSignedData [01:58:10]SAM_PROTO_SignData [01:58:10]wFMCommunicate request_size=4 [01:58:10]MH_SAM_APDU [01:58:10]CAPDU: 80 0D 01 02 [01:58:10]Write to MH i2c: E2 08 00 27 6C 80 0D 01 02 00 00 00 00 0C [01:58:10]Write i2c OK [01:58:10]MH_I2C_Read... [01:58:10]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:58:10]Read from MH i2c: E2 [01:58:10]MH_I2C_Read... [01:58:10]Read from MH i2c: E2 03 00 [01:58:10]MH_I2C_Read... [01:58:10]Read from MH i2c: E2 03 00 27 6C 00 90 00 07 [01:58:10]RAPDU: 90 00 [01:58:10]wFMCommunicate OK [01:58:10]wFMCommunicate request_size=255 [01:58:10]MH_SAM_APDU [01:58:10]CAPDU: 80 0D 02 02 FA 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 39 E4 22 67 0E 04 04 [01:58:10]Write to MH i2c: E2 02 01 28 6C 80 0D 02 02 FA 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 39 E4 22 67 0E 04 04 00 00 A0 [01:58:10]Write i2c OK [01:58:10]MH_I2C_Read... [01:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:58:10]Read from MH i2c: E2 [01:58:10]MH_I2C_Read... [01:58:10]Read from MH i2c: E2 03 00 [01:58:10]MH_I2C_Read... [01:58:10]Read from MH i2c: E2 03 00 28 6C 00 90 00 08 [01:58:10]RAPDU: 90 00 [01:58:10]wFMCommunicate OK [01:58:10]wFMCommunicate request_size=73 [01:58:10]MH_SAM_APDU [01:58:10]CAPDU: 80 0D 02 02 44 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1E 21 02 00 35 04 06 00 39 89 A8 2E 4A 31 [01:58:10]Write to MH i2c: E2 4C 00 29 6C 80 0D 02 02 44 00 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1E 21 02 00 35 04 06 00 39 89 A8 2E 4A 31 00 00 B2 [01:58:10]Write i2c OK [01:58:10]MH_I2C_Read... [01:58:10]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:58:10]Read from MH i2c: E2 [01:58:10]MH_I2C_Read... [01:58:10]Read from MH i2c: E2 03 00 [01:58:10]MH_I2C_Read... [01:58:10]Read from MH i2c: E2 03 00 29 6C 00 90 00 09 [01:58:10]RAPDU: 90 00 [01:58:10]wFMCommunicate OK [01:58:10]wFMCommunicate request_size=4 [01:58:10]MH_SAM_APDU [01:58:10]CAPDU: 80 0D 03 02 [01:58:10]Write to MH i2c: E2 08 00 2A 6C 80 0D 03 02 00 00 00 00 11 [01:58:10]Write i2c OK [01:58:10]MH_I2C_Read... [01:58:11]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:58:11]Read from MH i2c: E2 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: E2 0B 00 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: E2 0B 00 2A 6C 00 40 AF EB 75 67 D3 87 43 90 00 65 [01:58:11]RAPDU: 40 AF EB 75 67 D3 87 43 90 00 [01:58:11]wFMCommunicate OK [01:58:11]SAM_PROTO_SignData done [01:58:11]FM_MakeSignedData done [01:58:11]CreateOFDProtocolMessage [01:58:11]wFMCommunicate request_size=4 [01:58:11]MH_SAM_APDU [01:58:11]CAPDU: 80 11 00 00 [01:58:11]Write to MH i2c: E2 08 00 2B 6C 80 11 00 00 00 00 00 00 11 [01:58:11]Write i2c OK [01:58:11]MH_I2C_Read... [01:58:11]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:58:11]Read from MH i2c: E2 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: E2 17 00 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: E2 17 00 2B 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 6C [01:58:11]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:58:11]wFMCommunicate OK [01:58:11]CreateOFDProtocolMessage done [01:58:11]OFDSenderStorePacket 139550 [01:58:11]StoreOFDPacket docnum=139550 [01:58:11]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4E 01 00 00 87 1F 46 01 C6 9E 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 39 E4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1E 21 02 00 35 04 06 00 39 89 A8 2E 4A 31 40 AF EB 75 67 D3 87 43 [01:58:11]CheckFolder [01:58:11]dirname=/storage/ofd_packets [01:58:11]CheckFolder done [01:58:11]ProducePacketName [01:58:11]name=ofd_packets/00139550 [01:58:11]NVStorageSaveData ofd_packets/00139550 [01:58:11]File name is /storage/ofd_packets/00139550 [01:58:11]Write 364 bytes [01:58:11]NVStorageSaveData done [01:58:11]OFDSenderStorePacket done [01:58:11]KKMCreateOFDPacket done [01:58:11]NVStorageSaveData kkm_last_timestamp [01:58:11]File name is /storage/kkm_last_timestamp [01:58:11]Write 4 bytes [01:58:11]NVStorageSaveData done [01:58:11]ExternCall_PrintAddStr [01:58:11]wPrintStart [01:58:11]Write to MH i2c: 01 00 00 2C 6C 98 [01:58:11]Write i2c OK [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: 01 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: 01 07 00 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: 01 07 00 2C 6C 00 00 00 00 00 FF 0F AD [01:58:11]RasterBufferAndPrint [01:58:11]line Счет N : (3)335430 [01:58:11]line ИНН: 02508201610067 [01:58:11]line Контрольно-Кассовый Чек [01:58:11]line ПРОДАЖА [01:58:11]line Товар: 4630007400976 [01:58:11]line Арахис жарен Караван орехов Стандарт 90 [01:58:11]line 1.000 * 75.00 [01:58:11]line = 75.00 [01:58:11]line НДС 12% НСП 1% [01:58:11]line > о реализуемом товаре [01:58:11]line ИТОГО: 75.00 [01:58:11]line НСП 1% : 0.66 [01:58:11]line НДС 12% : 7.96 [01:58:11]line Наличными: 75.00 [01:58:11]line Безнал.: 0.00 [01:58:11]line Место: АЗС № 101 "Партнер Нефть" [01:58:11]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:58:11]line СНО: Общий режим [01:58:11]line Чек 27 31.10.2024 01:58 [01:58:11]line Смена: 557 ФФД: 1.0 [01:58:11]line ЗНМ: 0300000081 [01:58:11]line РНМ: 0000000000091631 [01:58:11]line Версия ККМ: 001 [01:58:11]line ФМ: 0000000000874669 [01:58:11]line ФД: 139550 [01:58:11]line ФПД: 63263394908721 [01:58:11]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015817&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139550&fm=63263394908721&tin=02508201610067®Number=0000000000091631&sum=7500 [01:58:11]line 0 [01:58:11]OFD Sender: Processing packet 139550 [packets to send 34, broken 33] [01:58:11]ProducePacketName [01:58:11]name=ofd_packets/00139550 [01:58:11]OFD Sender: To server: pG, [01:58:11]CommunicateWithHost lk.salyk.kg:30040 [01:58:11]ConnectInit lk.salyk.kg [01:58:11]written 0, free lines is 4095 [01:58:11]Write to MH i2c: 01 00 00 55 6C C1 [01:58:11]Write i2c OK [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: 01 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: 01 07 00 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: 01 07 00 55 6C 00 00 00 00 00 FA 0C CE [01:58:11]RasterBufferAndPrint [01:58:11]line [01:58:11]line [01:58:11]line [01:58:11]line [01:58:11]line [01:58:11]written 0, free lines is 3332 [01:58:11]MH_Cut [01:58:11]Write to MH i2c: D1 01 00 5C 6C 01 9A [01:58:11]Write i2c OK [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: D1 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: D1 01 00 [01:58:11]MH_I2C_Read... [01:58:11]Read from MH i2c: D1 01 00 5C 6C 00 99 [01:58:11]Write to MH i2c: 01 00 00 5D 6C C9 [01:58:11]Write i2c OK [01:58:11]MH_I2C_Read... [01:58:12]*** Cut start [01:58:12]*** Partial cut [01:58:12]*** CUTSNS_PIN = 1 [01:58:12]*** CUTSNS_PIN = 0 [01:58:12]*** Brake cut motor [01:58:13]Read from MH i2c: 01 [01:58:13]MH_I2C_Read... [01:58:13]*** Stop cut motor [01:58:13]*** Cut end [01:58:13]Read from MH i2c: 01 07 00 [01:58:13]MH_I2C_Read... [01:58:13]Read from MH i2c: 01 07 00 5D 6C 00 00 00 00 00 FF 0F DE [01:58:13]process_action close_receipt done [01:58:13]requested_data is exist [01:58:13]produce_requested_data [01:58:13]requested_item fm.sn is exist - process it [01:58:13]wFMCommunicate request_size=4 [01:58:13]MH_SAM_APDU [01:58:13]CAPDU: 80 11 00 00 [01:58:13]Write to MH i2c: E2 08 00 5E 6C 80 11 00 00 00 00 00 00 44 [01:58:13]Write i2c OK [01:58:13]MH_I2C_Read... [01:58:13]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:58:13]Read from MH i2c: E2 [01:58:13]MH_I2C_Read... [01:58:13]Read from MH i2c: E2 17 00 [01:58:13]MH_I2C_Read... [01:58:13]Read from MH i2c: E2 17 00 5E 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9F [01:58:13]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:58:13]wFMCommunicate OK [01:58:13]requested_item fd.num is exist - process it [01:58:13]SAM_PROTO_GetFieldsCounters [01:58:13]wFMCommunicate request_size=4 [01:58:13]MH_SAM_APDU [01:58:13]CAPDU: 80 13 00 00 [01:58:13]Write to MH i2c: E2 08 00 5F 6C 80 13 00 00 00 00 00 00 47 [01:58:13]Write i2c OK [01:58:13]MH_I2C_Read... [01:58:13]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:58:13]Read from MH i2c: E2 [01:58:13]MH_I2C_Read... [01:58:13]Read from MH i2c: E2 62 00 [01:58:13]MH_I2C_Read... [01:58:13]Read from MH i2c: E2 62 00 5F 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1E 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 2C [01:58:13]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1E 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1B 00 00 00 5E 04 04 00 1B 00 00 00 57 04 04 00 1C 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:58:13]wFMCommunicate OK [01:58:13]SAM_PROTO_GetFieldsCounters done [01:58:13]requested_item shift.num is exist - process it [01:58:13]requested_item shift.opened is exist - process it [01:58:13]req_shift_opened [01:58:13]FM_GetShiftState [01:58:13]SAM_PROTO_GetShiftState [01:58:13]wFMCommunicate request_size=4 [01:58:13]MH_SAM_APDU [01:58:13]CAPDU: 80 13 01 00 [01:58:13]Write to MH i2c: E2 08 00 60 6C 80 13 01 00 00 00 00 00 49 [01:58:13]Write i2c OK [01:58:13]MH_I2C_Read... [01:58:13]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:58:13]Read from MH i2c: E2 [01:58:13]MH_I2C_Read... [01:58:13]Read from MH i2c: E2 0E 00 [01:58:13]MH_I2C_Read... [01:58:13]Read from MH i2c: E2 0E 00 60 6C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 72 [01:58:13]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:58:13]wFMCommunicate OK [01:58:13]SAM_PROTO_GetShiftState done [01:58:13]FM_GetShiftState done [01:58:13]req_shift_opened done [01:58:13]requested_item shift.open_date is exist - process it [01:58:13]req_shift_open_date [01:58:13]req_shift_open_date done [01:58:13]produce_requested_data done [01:58:13]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139550,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:58:13]process_action_free close_receipt [01:58:13]json_value_free [01:58:13]json_value_free done [01:58:13]process_json_proto returns [01:58:13]Send response to host [01:58:13]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139550,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:58:13]free response buf [01:58:13]execute_script done [01:58:13]execute_script returns [01:58:13]free content buf [01:58:13]Sock 9.Close socket [01:58:13]Sock 9.Thread stoped [01:58:14]ConnectInit Can't connect to host [01:58:16]ConnectInit Can't take IP for lk.salyk.kg [01:58:16]CommunicateWithHost connect error [01:58:16]CommunicateWithHost err = -1 [01:58:16]OFD Sender: Server communicate error [01:58:21]OFD Sender: Processing packet 139550 [packets to send 34, broken 33] [01:58:21]ProducePacketName [01:58:21]name=ofd_packets/00139550 [01:58:21]OFD Sender: To server: pG, [01:58:21]CommunicateWithHost lk.salyk.kg:30040 [01:58:21]ConnectInit lk.salyk.kg [01:58:26]ConnectInit Can't take IP for lk.salyk.kg [01:58:26]CommunicateWithHost connect error [01:58:26]CommunicateWithHost err = -1 [01:58:26]OFD Sender: Server communicate error [01:58:31]OFD Sender: Processing packet 139550 [packets to send 34, broken 33] [01:58:31]ProducePacketName [01:58:31]name=ofd_packets/00139550 [01:58:31]OFD Sender: To server: pG, [01:58:31]CommunicateWithHost lk.salyk.kg:30040 [01:58:31]ConnectInit lk.salyk.kg [01:58:34]Connected sock=9 [01:58:34]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4E 01 00 00 87 1F 46 01 C6 9E 5A 03 01 00 03 00 3A 01 1E 04 01 00 01 23 04 8C 00 8A 04 0D 00 34 36 33 30 30 30 37 34 30 30 39 37 36 06 04 48 00 D0 90 D1 80 D0 B0 D1 85 D0 B8 D1 81 20 D0 B6 D0 B0 D1 80 D0 B5 D0 BD 20 D0 9A D0 B0 D1 80 D0 B0 D0 B2 D0 B0 D0 BD 20 D0 BE D1 80 D0 B5 D1 85 D0 BE D0 B2 20 D0 A1 D1 82 D0 B0 D0 BD D0 B4 D0 B0 D1 80 D1 82 20 39 30 20 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1B 00 00 00 F4 03 04 00 39 E4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1E 21 02 00 35 04 06 00 39 89 A8 2E 4A 31 40 AF EB 75 67 D3 87 43 [01:58:34]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 55 70 47 00 77 BE A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1E 21 02 00 F4 03 04 00 FF 8F 22 67 B6 04 01 00 00 8E AE D2 F8 DB C8 E9 9F [01:58:34]CommunicateWithHost err = 0 [01:58:34]CheckOFDResponse [01:58:34]1017 (14) - 77093643461234 [01:58:34]1041 (16) - 0000000000874669 [01:58:34]1040 (4) - 139550 [01:58:34]1012 (4) - 30.10.2024 19:58 [01:58:34]1206 (1) - 0 [01:58:34]OFD Sender: Remove packet 139550 [01:58:34]ProducePacketName [01:58:34]name=ofd_packets/00139550 [01:58:34]NVStorageDeleteData [01:58:34]OFD Sender: No OFD packet to send [01:58:39]OFD Sender: No OFD packet to send [01:58:44]OFD Sender: No OFD packet to send [01:58:49]OFD Sender: No OFD packet to send [01:58:54]OFD Sender: No OFD packet to send [01:58:59]OFD Sender: No OFD packet to send [01:59:04]OFD Sender: No OFD packet to send [01:59:09]OFD Sender: No OFD packet to send [01:59:14]OFD Sender: No OFD packet to send [01:59:19]OFD Sender: No OFD packet to send [01:59:24]OFD Sender: No OFD packet to send [01:59:29]OFD Sender: No OFD packet to send [01:59:34]OFD Sender: No OFD packet to send [01:59:39]OFD Sender: No OFD packet to send [01:59:40]accept exits with 10 [01:59:40]New connection [01:59:40]New thread 3067284836 created [01:59:40]Thread 3067141476 joined [01:59:40]Waiting for new connection... [01:59:40] Sock 10.Parse request [01:59:40]Sock 10.Check first char [01:59:40]Sock 10.First char is OK [01:59:40]request: POST /json_proto HTTP/1.0 [01:59:40]Method: POST [01:59:40]URL: /json_proto [01:59:40]Method is POST - this is cgi request [01:59:40]url: /json_proto [01:59:40]query_string will be loaded in cgi processing [01:59:40]execute_cgi json_proto POST (null) [01:59:40]execute_cgi path=json_proto method=POST [01:59:40]POST find Content-Length [01:59:40]Host: 172.17.50.196:8080 [01:59:40]Content-Length: 1216 [01:59:40]Content-Type: application/json [01:59:40] [01:59:40]POST finish read [01:59:40]Found Content-Length = 1216 [01:59:40]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335431", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744595", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u041A\u0440\u0430\u0431 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:40]execute_script... [01:59: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 : (3)335431", "tax_sys" : 0, "items" : [ { "code": "4870235681376", "name": "\u0427\u0418\u041F\u0421\u042B SLANG \u0421\u041E \u0412\u041A\u0423\u0421\u041E\u041C \u041A\u0420\u0410\u0411 60\u0413", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4870209744595", "name": "\u0421\u0443\u0445\u0430\u0440\u0438\u043A\u0438 \u0424\u043B\u0438\u043D\u0442 \u041A\u0440\u0430\u0431 100 \u0433\u0440", "price" : 60.00, "quantity" : 1.000, "sum" : 60.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "4700000160358", "name": "\u0412\u043E\u0434\u0430 \u041B\u0435\u0433\u0435\u043D\u0434\u0430 1\u043B", "price" : 50.00, "quantity" : 1.000, "sum" : 50.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 205.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [01:59:40]POST & json_proto [01:59:40]process_json_proto [01:59:40]json parsed OK: [01:59:40]protocol is kg_v1.0 [01:59:40]action value=close_receipt [01:59:40]process_action close_receipt [01:59:40]cmd_close_receipt [01:59:40]MH_GetDate [01:59:40]Write to MH i2c: F0 00 00 61 6C BC [01:59:40]Write i2c OK [01:59:40]MH_I2C_Read... [01:59:40]Read from MH i2c: F0 [01:59:40]MH_I2C_Read... [01:59:40]Read from MH i2c: F0 09 00 [01:59:40]MH_I2C_Read... [01:59:40]Read from MH i2c: F0 09 00 61 6C 00 94 E4 22 67 72 0D 1C 67 C8 [01:59:40]GetLastDocTimeStamp 1730339897 [01:59:40]current date 1730339988 [01:59:40]FM_GetShiftState [01:59:40]SAM_PROTO_GetShiftState [01:59:40]wFMCommunicate request_size=4 [01:59:40]MH_SAM_APDU [01:59:40]CAPDU: 80 13 01 00 [01:59:40]Write to MH i2c: E2 08 00 62 6C 80 13 01 00 00 00 00 00 4B [01:59:40]Write i2c OK [01:59:40]MH_I2C_Read... [01:59:40]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:40]Read from MH i2c: E2 [01:59:40]MH_I2C_Read... [01:59:40]Read from MH i2c: E2 0E 00 [01:59:40]MH_I2C_Read... [01:59:40]Read from MH i2c: E2 0E 00 62 6C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 74 [01:59:40]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:59:40]wFMCommunicate OK [01:59:40]SAM_PROTO_GetShiftState done [01:59:40]FM_GetShiftState done [01:59:40]opened in 1730332621 [01:59:40]opened+sec_in_day 1730419021 [01:59:40]quantity*price = 9500 [01:59:40]sum+1 = 9501 [01:59:40]Check (price>sum+1) || (price+1sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 4870209744595 Сухарики Флинт Краб 100 гр 1.000 * 60.00 = 60.00 НДС 12% НСП 1% > о реализуемом товаре Товар: 4700000160358 Вода Легенда 1л 1.000 * 50.00 = 50.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 205.00 НСП 1% : 1.81 НДС 12% : 21.77 Наличными: 205.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 28 31.10.2024 01:59 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139551 ФПД: 260621344999637 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015948&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139551&fm=260621344999637&tin=02508201610067®Number=0000000000091631&sum=20500 0 [01:59:41]StoreToDocumentArchive [01:59:41]shift 557 fd 139551 [01:59:41]save to /storage/0557/doc_00139551 [01:59:41]save last doc name /storage/0557/doc_00139551 to /storage/kkm_last_doc_name [01:59:41]save OK [01:59:41]Clear old archive folders... [01:59:41]ProcessDocumentItem done err = 0, tmpTLVsize=506 [01:59:41]tlvbuf is 0116B9E0 [01:59:41]SAM_PROTO_ClearQueue [01:59:41]wFMCommunicate request_size=4 [01:59:41]MH_SAM_APDU [01:59:41]CAPDU: 80 09 00 00 [01:59:41]Write to MH i2c: E2 08 00 6F 6C 80 09 00 00 00 00 00 00 4D [01:59:41]Write i2c OK [01:59:41]MH_I2C_Read... [01:59:41]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [01:59:41]Read from MH i2c: E2 [01:59:41]MH_I2C_Read... [01:59:41]Read from MH i2c: E2 03 00 [01:59:41]MH_I2C_Read... [01:59:41]Read from MH i2c: E2 03 00 6F 6C 00 90 00 4F [01:59:41]RAPDU: 90 00 [01:59:41]wFMCommunicate OK [01:59:41]SAM_PROTO_ClearQueue done [01:59:41]KKMCreateOFDPacket [01:59:41]OFDProtocolAddRootSTLVToBuf [01:59:41]FM_MakeSignedData [01:59:41]FM_MakeSignedData [01:59:41]SAM_PROTO_SignData [01:59:41]wFMCommunicate request_size=4 [01:59:41]MH_SAM_APDU [01:59:41]CAPDU: 80 0D 01 02 [01:59:41]Write to MH i2c: E2 08 00 70 6C 80 0D 01 02 00 00 00 00 55 [01:59:41]Write i2c OK [01:59:41]MH_I2C_Read... [01:59:41]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [01:59:41]Read from MH i2c: E2 [01:59:41]MH_I2C_Read... [01:59:41]Read from MH i2c: E2 03 00 [01:59:41]MH_I2C_Read... [01:59:41]Read from MH i2c: E2 03 00 70 6C 00 90 00 50 [01:59:41]RAPDU: 90 00 [01:59:41]wFMCommunicate OK [01:59:41]wFMCommunicate request_size=255 [01:59:41]MH_SAM_APDU [01:59:41]CAPDU: 80 0D 02 02 FA 03 00 FA 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 [01:59:42]Write to MH i2c: E2 02 01 71 6C 80 0D 02 02 FA 00 03 00 FA 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 00 00 78 [01:59:42]Write i2c OK [01:59:42]MH_I2C_Read... [01:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:42]Read from MH i2c: E2 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 03 00 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 03 00 71 6C 00 90 00 51 [01:59:42]RAPDU: 90 00 [01:59:42]wFMCommunicate OK [01:59:42]wFMCommunicate request_size=255 [01:59:42]MH_SAM_APDU [01:59:42]CAPDU: 80 0D 02 02 FA 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 94 E4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 21 02 00 [01:59:42]Write to MH i2c: E2 02 01 72 6C 80 0D 02 02 FA 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 94 E4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 21 02 00 00 00 F2 [01:59:42]Write i2c OK [01:59:42]MH_I2C_Read... [01:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:42]Read from MH i2c: E2 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 03 00 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 03 00 72 6C 00 90 00 52 [01:59:42]RAPDU: 90 00 [01:59:42]wFMCommunicate OK [01:59:42]wFMCommunicate request_size=15 [01:59:42]MH_SAM_APDU [01:59:42]CAPDU: 80 0D 02 02 0A 35 04 06 00 ED 08 A2 B0 88 D5 [01:59:42]Write to MH i2c: E2 12 00 73 6C 80 0D 02 02 0A 00 35 04 06 00 ED 08 A2 B0 88 D5 00 00 50 [01:59:42]Write i2c OK [01:59:42]MH_I2C_Read... [01:59:42]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [01:59:42]Read from MH i2c: E2 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 03 00 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 03 00 73 6C 00 90 00 53 [01:59:42]RAPDU: 90 00 [01:59:42]wFMCommunicate OK [01:59:42]wFMCommunicate request_size=4 [01:59:42]MH_SAM_APDU [01:59:42]CAPDU: 80 0D 03 02 [01:59:42]Write to MH i2c: E2 08 00 74 6C 80 0D 03 02 00 00 00 00 5B [01:59:42]Write i2c OK [01:59:42]MH_I2C_Read... [01:59:42]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [01:59:42]Read from MH i2c: E2 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 0B 00 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 0B 00 74 6C 00 4C F7 6B 9D 7C C8 88 CF 90 00 42 [01:59:42]RAPDU: 4C F7 6B 9D 7C C8 88 CF 90 00 [01:59:42]wFMCommunicate OK [01:59:42]SAM_PROTO_SignData done [01:59:42]FM_MakeSignedData done [01:59:42]CreateOFDProtocolMessage [01:59:42]wFMCommunicate request_size=4 [01:59:42]MH_SAM_APDU [01:59:42]CAPDU: 80 11 00 00 [01:59:42]Write to MH i2c: E2 08 00 75 6C 80 11 00 00 00 00 00 00 5B [01:59:42]Write i2c OK [01:59:42]MH_I2C_Read... [01:59:42]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:42]Read from MH i2c: E2 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 17 00 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: E2 17 00 75 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 B6 [01:59:42]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:59:42]wFMCommunicate OK [01:59:42]CreateOFDProtocolMessage done [01:59:42]OFDSenderStorePacket 139551 [01:59:42]StoreOFDPacket docnum=139551 [01:59:42]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 02 00 00 79 C8 06 02 89 60 5A 03 01 00 03 00 FA 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 94 E4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 21 02 00 35 04 06 00 ED 08 A2 B0 88 D5 4C F7 6B 9D 7C C8 88 CF [01:59:42]CheckFolder [01:59:42]dirname=/storage/ofd_packets [01:59:42]CheckFolder done [01:59:42]ProducePacketName [01:59:42]name=ofd_packets/00139551 [01:59:42]NVStorageSaveData ofd_packets/00139551 [01:59:42]File name is /storage/ofd_packets/00139551 [01:59:42]Write 556 bytes [01:59:42]NVStorageSaveData done [01:59:42]OFDSenderStorePacket done [01:59:42]KKMCreateOFDPacket done [01:59:42]NVStorageSaveData kkm_last_timestamp [01:59:42]File name is /storage/kkm_last_timestamp [01:59:42]Write 4 bytes [01:59:42]NVStorageSaveData done [01:59:42]ExternCall_PrintAddStr [01:59:42]wPrintStart [01:59:42]Write to MH i2c: 01 00 00 76 6C E2 [01:59:42]Write i2c OK [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: 01 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: 01 07 00 [01:59:42]MH_I2C_Read... [01:59:42]Read from MH i2c: 01 07 00 76 6C 00 00 00 00 00 FF 0F F7 [01:59:42]RasterBufferAndPrint [01:59:42]line Счет N : (3)335431 [01:59:42]line ИНН: 02508201610067 [01:59:42]line Контрольно-Кассовый Чек [01:59:42]line ПРОДАЖА [01:59:42]line Товар: 4870235681376 [01:59:42]line ЧИПСЫ SLANG СО ВКУСОМ КРАБ 60Г [01:59:42]line 1.000 * 95.00 [01:59:42]line = 95.00 [01:59:42]line НДС 12% НСП 1% [01:59:42]line > о реализуемом товаре [01:59:42]line Товар: 4870209744595 [01:59:42]line Сухарики Флинт Краб 100 гр [01:59:42]line 1.000 * 60.00 [01:59:42]line = 60.00 [01:59:42]line НДС 12% НСП 1% [01:59:42]line > о реализуемом товаре [01:59:42]line Товар: 4700000160358 [01:59:42]line Вода Легенда 1л [01:59:42]line 1.000 * 50.00 [01:59:42]line = 50.00 [01:59:42]line НДС 12% НСП 1% [01:59:42]line > о реализуемом товаре [01:59:42]line ИТОГО: 205.00 [01:59:42]line НСП 1% : 1.81 [01:59:42]line НДС 12% : 21.77 [01:59:42]line Наличными: 205.00 [01:59:42]line Безнал.: 0.00 [01:59:42]line Место: АЗС № 101 "Партнер Нефть" [01:59:42]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [01:59:42]line СНО: Общий режим [01:59:42]line Чек 28 31.10.2024 01:59 [01:59:42]line Смена: 557 ФФД: 1.0 [01:59:42]line ЗНМ: 0300000081 [01:59:42]line РНМ: 0000000000091631 [01:59:42]line Версия ККМ: 001 [01:59:42]line ФМ: 0000000000874669 [01:59:42]line ФД: 139551 [01:59:42]line ФПД: 260621344999637 [01:59:43]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T015948&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139551&fm=260621344999637&tin=02508201610067®Number=0000000000091631&sum=20500 [01:59:43]line 0 [01:59:43]OFD Sender: Processing packet 139551 [packets to send 34, broken 33] [01:59:43]ProducePacketName [01:59:43]name=ofd_packets/00139551 [01:59:43]OFD Sender: To server: pG, [01:59:43]CommunicateWithHost lk.salyk.kg:30040 [01:59:43]ConnectInit lk.salyk.kg [01:59:43]written 0, free lines is 4095 [01:59:43]Connected sock=9 [01:59:43]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0E 02 00 00 79 C8 06 02 89 60 5A 03 01 00 03 00 FA 01 1E 04 01 00 01 23 04 74 00 8A 04 0D 00 34 38 37 30 32 33 35 36 38 31 33 37 36 06 04 30 00 D0 A7 D0 98 D0 9F D0 A1 D0 AB 20 53 4C 41 4E 47 20 D0 A1 D0 9E 20 D0 92 D0 9A D0 A3 D0 A1 D0 9E D0 9C 20 D0 9A D0 A0 D0 90 D0 91 20 36 30 D0 93 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 71 00 8A 04 0D 00 34 38 37 30 32 30 39 37 34 34 35 39 35 06 04 2D 00 D0 A1 D1 83 D1 85 D0 B0 D1 80 D0 B8 D0 BA D0 B8 20 D0 A4 D0 BB D0 B8 D0 BD D1 82 20 D0 9A D1 80 D0 B0 D0 B1 20 31 30 30 20 D0 B3 D1 80 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 70 17 00 00 00 00 13 04 06 00 70 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 5F 00 8A 04 0D 00 34 37 30 30 30 30 30 31 36 30 33 35 38 06 04 1B 00 D0 92 D0 BE D0 B4 D0 B0 20 D0 9B D0 B5 D0 B3 D0 B5 D0 BD D0 B4 D0 B0 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 88 13 00 00 00 00 13 04 06 00 88 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 14 50 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 B5 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 81 08 00 00 00 00 07 04 06 00 14 50 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1C 00 00 00 F4 03 04 00 94 E4 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 21 02 00 35 04 06 00 ED 08 A2 B0 88 D5 4C F7 6B 9D 7C C8 88 CF [01:59:43]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 A4 48 47 00 09 C9 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 1F 21 02 00 F4 03 04 00 44 90 22 67 B6 04 01 00 00 07 03 FC 33 73 60 6E BC [01:59:43]CommunicateWithHost err = 0 [01:59:43]CheckOFDResponse [01:59:43]1017 (14) - 77093643461234 [01:59:43]1041 (16) - 0000000000874669 [01:59:43]1040 (4) - 139551 [01:59:43]1012 (4) - 30.10.2024 20:00 [01:59:43]1206 (1) - 0 [01:59:43]OFD Sender: Remove packet 139551 [01:59:43]ProducePacketName [01:59:43]name=ofd_packets/00139551 [01:59:43]NVStorageDeleteData [01:59:43]Write to MH i2c: 01 00 00 AB 6C 17 [01:59:43]Write i2c OK [01:59:43]MH_I2C_Read... [01:59:43]Read from MH i2c: 01 [01:59:43]MH_I2C_Read... [01:59:43]Read from MH i2c: 01 07 00 [01:59:43]MH_I2C_Read... [01:59:43]Read from MH i2c: 01 07 00 AB 6C 00 00 00 00 00 73 0C 9D [01:59:43]RasterBufferAndPrint [01:59:43]line [01:59:43]line [01:59:43]line [01:59:43]line [01:59:43]line [01:59:43]written 0, free lines is 3196 [01:59:43]MH_Cut [01:59:43]Write to MH i2c: D1 01 00 B2 6C 01 F0 [01:59:43]Write i2c OK [01:59:43]MH_I2C_Read... [01:59:43]Read from MH i2c: D1 [01:59:43]MH_I2C_Read... [01:59:43]Read from MH i2c: D1 01 00 [01:59:43]MH_I2C_Read... [01:59:43]Read from MH i2c: D1 01 00 B2 6C 00 EF [01:59:43]Write to MH i2c: 01 00 00 B3 6C 1F [01:59:43]Write i2c OK [01:59:43]MH_I2C_Read... [01:59:44]OFD Sender: No OFD packet to send [01:59:44]*** Cut start [01:59:44]*** Partial cut [01:59:44]*** CUTSNS_PIN = 1 [01:59:44]*** CUTSNS_PIN = 0 [01:59:44]*** Brake cut motor [01:59:45]Read from MH i2c: 01 [01:59:45]MH_I2C_Read... [01:59:45]*** Stop cut motor [01:59:45]*** Cut end [01:59:45]Read from MH i2c: 01 07 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: 01 07 00 B3 6C 00 00 00 00 00 FF 0F 34 [01:59:45]process_action close_receipt done [01:59:45]requested_data is exist [01:59:45]produce_requested_data [01:59:45]requested_item fm.sn is exist - process it [01:59:45]wFMCommunicate request_size=4 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 11 00 00 [01:59:45]Write to MH i2c: E2 08 00 B4 6C 80 11 00 00 00 00 00 00 9A [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [01:59:45]Read from MH i2c: E2 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 17 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 17 00 B4 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F5 [01:59:45]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [01:59:45]wFMCommunicate OK [01:59:45]requested_item fd.num is exist - process it [01:59:45]SAM_PROTO_GetFieldsCounters [01:59:45]wFMCommunicate request_size=4 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 13 00 00 [01:59:45]Write to MH i2c: E2 08 00 B5 6C 80 13 00 00 00 00 00 00 9D [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [01:59:45]Read from MH i2c: E2 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 62 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 62 00 B5 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1F 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 86 [01:59:45]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 1F 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1C 00 00 00 5E 04 04 00 1C 00 00 00 57 04 04 00 1D 00 00 00 19 04 04 00 00 00 00 00 90 00 [01:59:45]wFMCommunicate OK [01:59:45]SAM_PROTO_GetFieldsCounters done [01:59:45]requested_item shift.num is exist - process it [01:59:45]requested_item shift.opened is exist - process it [01:59:45]req_shift_opened [01:59:45]FM_GetShiftState [01:59:45]SAM_PROTO_GetShiftState [01:59:45]wFMCommunicate request_size=4 [01:59:45]MH_SAM_APDU [01:59:45]CAPDU: 80 13 01 00 [01:59:45]Write to MH i2c: E2 08 00 B6 6C 80 13 01 00 00 00 00 00 9F [01:59:45]Write i2c OK [01:59:45]MH_I2C_Read... [01:59:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [01:59:45]Read from MH i2c: E2 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 0E 00 [01:59:45]MH_I2C_Read... [01:59:45]Read from MH i2c: E2 0E 00 B6 6C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 C8 [01:59:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [01:59:45]wFMCommunicate OK [01:59:45]SAM_PROTO_GetShiftState done [01:59:45]FM_GetShiftState done [01:59:45]req_shift_opened done [01:59:45]requested_item shift.open_date is exist - process it [01:59:45]req_shift_open_date [01:59:45]req_shift_open_date done [01:59:45]produce_requested_data done [01:59:45]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139551,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [01:59:45]process_action_free close_receipt [01:59:45]json_value_free [01:59:45]json_value_free done [01:59:45]process_json_proto returns [01:59:45]Send response to host [01:59:45]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139551,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [01:59:45]free response buf [01:59:45]execute_script done [01:59:45]execute_script returns [01:59:45]free content buf [01:59:45]Sock 10.Close socket [01:59:45]Sock 10.Thread stoped [01:59:49]OFD Sender: No OFD packet to send [01:59:54]OFD Sender: No OFD packet to send [01:59:59]OFD Sender: No OFD packet to send [02:00:04]OFD Sender: No OFD packet to send [02:00:09]OFD Sender: No OFD packet to send [02:00:14]OFD Sender: No OFD packet to send [02:00:19]OFD Sender: No OFD packet to send [02:00:24]OFD Sender: No OFD packet to send [02:00:29]OFD Sender: No OFD packet to send [02:00:34]OFD Sender: No OFD packet to send [02:00:39]OFD Sender: No OFD packet to send [02:00:44]OFD Sender: No OFD packet to send [02:00:49]OFD Sender: No OFD packet to send [02:00:54]OFD Sender: No OFD packet to send [02:00:59]OFD Sender: No OFD packet to send [02:01:04]OFD Sender: No OFD packet to send [02:01:09]OFD Sender: No OFD packet to send [02:01:14]OFD Sender: No OFD packet to send [02:01:19]OFD Sender: No OFD packet to send [02:01:24]OFD Sender: No OFD packet to send [02:01:29]OFD Sender: No OFD packet to send [02:01:34]OFD Sender: No OFD packet to send [02:01:39]OFD Sender: No OFD packet to send [02:01:44]OFD Sender: No OFD packet to send [02:01:49]OFD Sender: No OFD packet to send [02:01:54]OFD Sender: No OFD packet to send [02:01:59]OFD Sender: No OFD packet to send [02:02:04]OFD Sender: No OFD packet to send [02:02:09]OFD Sender: No OFD packet to send [02:02:14]OFD Sender: No OFD packet to send [02:02:19]OFD Sender: No OFD packet to send [02:02:24]OFD Sender: No OFD packet to send [02:02:29]OFD Sender: No OFD packet to send [02:02:34]OFD Sender: No OFD packet to send [02:02:39]OFD Sender: No OFD packet to send [02:02:44]OFD Sender: No OFD packet to send [02:02:49]OFD Sender: No OFD packet to send [02:02:54]OFD Sender: No OFD packet to send [02:02:59]OFD Sender: No OFD packet to send [02:03:04]OFD Sender: No OFD packet to send [02:03:09]OFD Sender: No OFD packet to send [02:03:14]OFD Sender: No OFD packet to send [02:03:19]OFD Sender: No OFD packet to send [02:03:24]OFD Sender: No OFD packet to send [02:03:29]OFD Sender: No OFD packet to send [02:03:34]OFD Sender: No OFD packet to send [02:03:39]OFD Sender: No OFD packet to send [02:03:44]OFD Sender: No OFD packet to send [02:03:49]OFD Sender: No OFD packet to send [02:03:54]OFD Sender: No OFD packet to send [02:03:59]OFD Sender: No OFD packet to send [02:04:04]OFD Sender: No OFD packet to send [02:04:09]OFD Sender: No OFD packet to send [02:04:14]OFD Sender: No OFD packet to send [02:04:19]OFD Sender: No OFD packet to send [02:04:24]OFD Sender: No OFD packet to send [02:04:29]OFD Sender: No OFD packet to send [02:04:34]OFD Sender: No OFD packet to send [02:04:39]OFD Sender: No OFD packet to send [02:04:44]OFD Sender: No OFD packet to send [02:04:49]OFD Sender: No OFD packet to send [02:04:54]OFD Sender: No OFD packet to send [02:04:58]accept exits with 8 [02:04:58]New connection [02:04:58]New thread 3067141476 created [02:04:58]Thread 3067284836 joined [02:04:58]Waiting for new connection... [02:04:58] Sock 8.Parse request [02:04:58]Sock 8.Check first char [02:04:58]Sock 8.First char is OK [02:04:58]request: POST /json_proto HTTP/1.0 [02:04:58]Method: POST [02:04:58]URL: /json_proto [02:04:58]Method is POST - this is cgi request [02:04:58]url: /json_proto [02:04:58]query_string will be loaded in cgi processing [02:04:58]execute_cgi json_proto POST (null) [02:04:58]execute_cgi path=json_proto method=POST [02:04:58]POST find Content-Length [02:04:58]Host: 172.17.50.196:8080 [02:04:58]Content-Length: 652 [02:04:58]Content-Type: application/json [02:04:58] [02:04:58]POST finish read [02:04:58]Found Content-Length = 652 [02:04:58]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335432", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:04:58]execute_script... [02: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 : (3)335432", "tax_sys" : 0, "items" : [ { "code": "54491472", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u041A\u043E\u043A\u0430-\u041A\u043E\u043B\u0430 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:04:58]POST & json_proto [02:04:58]process_json_proto [02:04:58]json parsed OK: [02:04:58]protocol is kg_v1.0 [02:04:58]action value=close_receipt [02:04:58]process_action close_receipt [02:04:58]cmd_close_receipt [02:04:58]MH_GetDate [02:04:58]Write to MH i2c: F0 00 00 B7 6C 12 [02:04:58]Write i2c OK [02:04:58]MH_I2C_Read... [02:04:58]Read from MH i2c: F0 [02:04:58]MH_I2C_Read... [02:04:58]Read from MH i2c: F0 09 00 [02:04:58]MH_I2C_Read... [02:04:58]Read from MH i2c: F0 09 00 B7 6C 00 D2 E5 22 67 72 0D 1C 67 5D [02:04:58]GetLastDocTimeStamp 1730339988 [02:04:58]current date 1730340306 [02:04:58]FM_GetShiftState [02:04:58]SAM_PROTO_GetShiftState [02:04:58]wFMCommunicate request_size=4 [02:04:58]MH_SAM_APDU [02:04:58]CAPDU: 80 13 01 00 [02:04:58]Write to MH i2c: E2 08 00 B8 6C 80 13 01 00 00 00 00 00 A1 [02:04:58]Write i2c OK [02:04:58]MH_I2C_Read... [02:04:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:04:58]Read from MH i2c: E2 [02:04:58]MH_I2C_Read... [02:04:58]Read from MH i2c: E2 0E 00 [02:04:58]MH_I2C_Read... [02:04:58]Read from MH i2c: E2 0E 00 B8 6C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 CA [02:04:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:04:58]wFMCommunicate OK [02:04:58]SAM_PROTO_GetShiftState done [02:04:58]FM_GetShiftState done [02:04:58]opened in 1730332621 [02:04:58]opened+sec_in_day 1730419021 [02:04:58]quantity*price = 7500 [02:04:58]sum+1 = 7501 [02:04:58]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 75.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 29 31.10.2024 02:05 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139552 ФПД: 80680154141822 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T020506&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139552&fm=80680154141822&tin=02508201610067®Number=0000000000091631&sum=7500 0 [02:04:59]StoreToDocumentArchive [02:04:59]shift 557 fd 139552 [02:04:59]save to /storage/0557/doc_00139552 [02:04:59]save last doc name /storage/0557/doc_00139552 to /storage/kkm_last_doc_name [02:04:59]save OK [02:04:59]Clear old archive folders... [02:04:59]ProcessDocumentItem done err = 0, tmpTLVsize=275 [02:04:59]tlvbuf is 01305B40 [02:04:59]SAM_PROTO_ClearQueue [02:04:59]wFMCommunicate request_size=4 [02:04:59]MH_SAM_APDU [02:04:59]CAPDU: 80 09 00 00 [02:04:59]Write to MH i2c: E2 08 00 C5 6C 80 09 00 00 00 00 00 00 A3 [02:04:59]Write i2c OK [02:04:59]MH_I2C_Read... [02:04:59]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:04:59]Read from MH i2c: E2 [02:04:59]MH_I2C_Read... [02:04:59]Read from MH i2c: E2 03 00 [02:04:59]MH_I2C_Read... [02:04:59]Read from MH i2c: E2 03 00 C5 6C 00 90 00 A5 [02:04:59]RAPDU: 90 00 [02:04:59]wFMCommunicate OK [02:04:59]SAM_PROTO_ClearQueue done [02:04:59]KKMCreateOFDPacket [02:04:59]OFDProtocolAddRootSTLVToBuf [02:04:59]FM_MakeSignedData [02:04:59]FM_MakeSignedData [02:04:59]SAM_PROTO_SignData [02:04:59]wFMCommunicate request_size=4 [02:04:59]MH_SAM_APDU [02:04:59]CAPDU: 80 0D 01 02 [02:04:59]Write to MH i2c: E2 08 00 C6 6C 80 0D 01 02 00 00 00 00 AB [02:04:59]Write i2c OK [02:04:59]MH_I2C_Read... [02:04:59]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:04:59]Read from MH i2c: E2 [02:04:59]MH_I2C_Read... [02:04:59]Read from MH i2c: E2 03 00 [02:04:59]MH_I2C_Read... [02:04:59]Read from MH i2c: E2 03 00 C6 6C 00 90 00 A6 [02:04:59]RAPDU: 90 00 [02:04:59]wFMCommunicate OK [02:04:59]wFMCommunicate request_size=255 [02:04:59]MH_SAM_APDU [02:04:59]CAPDU: 80 0D 02 02 FA 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D2 E5 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 [02:04:59]Write to MH i2c: E2 02 01 C7 6C 80 0D 02 02 FA 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D2 E5 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 00 00 21 [02:04:59]Write i2c OK [02:04:59]MH_I2C_Read... [02:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:59]Read from MH i2c: E2 [02:04:59]MH_I2C_Read... [02:04:59]Read from MH i2c: E2 03 00 [02:04:59]MH_I2C_Read... [02:04:59]Read from MH i2c: E2 03 00 C7 6C 00 90 00 A7 [02:04:59]RAPDU: 90 00 [02:04:59]wFMCommunicate OK [02:04:59]wFMCommunicate request_size=34 [02:04:59]MH_SAM_APDU [02:04:59]CAPDU: 80 0D 02 02 1D 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 21 02 00 35 04 06 00 49 60 CF ED 94 7E [02:04:59]Write to MH i2c: E2 25 00 C8 6C 80 0D 02 02 1D 00 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 21 02 00 35 04 06 00 49 60 CF ED 94 7E 00 00 31 [02:04:59]Write i2c OK [02:04:59]MH_I2C_Read... [02:04:59]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:04:59]Read from MH i2c: E2 [02:04:59]MH_I2C_Read... [02:04:59]Read from MH i2c: E2 03 00 [02:04:59]MH_I2C_Read... [02:04:59]Read from MH i2c: E2 03 00 C8 6C 00 90 00 A8 [02:04:59]RAPDU: 90 00 [02:04:59]wFMCommunicate OK [02:04:59]wFMCommunicate request_size=4 [02:04:59]MH_SAM_APDU [02:04:59]CAPDU: 80 0D 03 02 [02:04:59]Write to MH i2c: E2 08 00 C9 6C 80 0D 03 02 00 00 00 00 B0 [02:04:59]Write i2c OK [02:04:59]MH_I2C_Read... [02:04:59]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:05:00]Read from MH i2c: E2 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: E2 0B 00 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: E2 0B 00 C9 6C 00 80 57 4C 31 F7 A6 78 61 90 00 7B [02:05:00]RAPDU: 80 57 4C 31 F7 A6 78 61 90 00 [02:05:00]wFMCommunicate OK [02:05:00]SAM_PROTO_SignData done [02:05:00]FM_MakeSignedData done [02:05:00]CreateOFDProtocolMessage [02:05:00]wFMCommunicate request_size=4 [02:05:00]MH_SAM_APDU [02:05:00]CAPDU: 80 11 00 00 [02:05:00]Write to MH i2c: E2 08 00 CA 6C 80 11 00 00 00 00 00 00 B0 [02:05:00]Write i2c OK [02:05:00]MH_I2C_Read... [02:05:00]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:00]Read from MH i2c: E2 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: E2 17 00 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: E2 17 00 CA 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 0B [02:05:00]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:05:00]wFMCommunicate OK [02:05:00]CreateOFDProtocolMessage done [02:05:00]OFDSenderStorePacket 139552 [02:05:00]StoreOFDPacket docnum=139552 [02:05:00]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 3D 59 1F 01 5B 76 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D2 E5 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 21 02 00 35 04 06 00 49 60 CF ED 94 7E 80 57 4C 31 F7 A6 78 61 [02:05:00]CheckFolder [02:05:00]dirname=/storage/ofd_packets [02:05:00]CheckFolder done [02:05:00]ProducePacketName [02:05:00]name=ofd_packets/00139552 [02:05:00]NVStorageSaveData ofd_packets/00139552 [02:05:00]File name is /storage/ofd_packets/00139552 [02:05:00]Write 325 bytes [02:05:00]NVStorageSaveData done [02:05:00]OFDSenderStorePacket done [02:05:00]KKMCreateOFDPacket done [02:05:00]NVStorageSaveData kkm_last_timestamp [02:05:00]File name is /storage/kkm_last_timestamp [02:05:00]Write 4 bytes [02:05:00]NVStorageSaveData done [02:05:00]ExternCall_PrintAddStr [02:05:00]wPrintStart [02:05:00]Write to MH i2c: 01 00 00 CB 6C 37 [02:05:00]OFD Sender: Processing packet 139552 [packets to send 34, broken 33] [02:05:00]ProducePacketName [02:05:00]name=ofd_packets/00139552 [02:05:00]OFD Sender: To server: pG, [02:05:00]CommunicateWithHost lk.salyk.kg:30040 [02:05:00]ConnectInit lk.salyk.kg [02:05:00]Write i2c OK [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: 01 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: 01 07 00 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: 01 07 00 CB 6C 00 00 00 00 00 FF 0F 4C [02:05:00]RasterBufferAndPrint [02:05:00]line Счет N : (3)335432 [02:05:00]line ИНН: 02508201610067 [02:05:00]line Контрольно-Кассовый Чек [02:05:00]line ПРОДАЖА [02:05:00]line Товар: 54491472 [02:05:00]line Напиток Кока-Кола 0,5л [02:05:00]line 1.000 * 75.00 [02:05:00]line = 75.00 [02:05:00]line НДС 12% НСП 1% [02:05:00]line > о реализуемом товаре [02:05:00]line ИТОГО: 75.00 [02:05:00]line НСП 1% : 0.66 [02:05:00]line НДС 12% : 7.96 [02:05:00]line Наличными: 75.00 [02:05:00]line Безнал.: 0.00 [02:05:00]line Место: АЗС № 101 "Партнер Нефть" [02:05:00]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:05:00]line СНО: Общий режим [02:05:00]line Чек 29 31.10.2024 02:05 [02:05:00]line Смена: 557 ФФД: 1.0 [02:05:00]line ЗНМ: 0300000081 [02:05:00]line РНМ: 0000000000091631 [02:05:00]line Версия ККМ: 001 [02:05:00]line ФМ: 0000000000874669 [02:05:00]line ФД: 139552 [02:05:00]line ФПД: 80680154141822 [02:05:00]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T020506&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139552&fm=80680154141822&tin=02508201610067®Number=0000000000091631&sum=7500 [02:05:00]line 0 [02:05:00]written 0, free lines is 4095 [02:05:00]Connected sock=10 [02:05:00]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 27 01 00 00 3D 59 1F 01 5B 76 5A 03 01 00 03 00 13 01 1E 04 01 00 01 23 04 65 00 8A 04 08 00 35 34 34 39 31 34 37 32 06 04 26 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D0 9A D0 BE D0 BA D0 B0 2D D0 9A D0 BE D0 BB D0 B0 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 4C 1D 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1D 00 00 00 F4 03 04 00 D2 E5 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 20 21 02 00 35 04 06 00 49 60 CF ED 94 7E 80 57 4C 31 F7 A6 78 61 [02:05:00]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 F4 3C 47 00 1F 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 38 37 34 36 36 39 10 04 04 00 20 21 02 00 F4 03 04 00 81 91 22 67 B6 04 01 00 00 CE 3D F7 31 8A C6 73 72 [02:05:00]CommunicateWithHost err = 0 [02:05:00]CheckOFDResponse [02:05:00]1017 (14) - 77093643461234 [02:05:00]1041 (16) - 0000000000874669 [02:05:00]1040 (4) - 139552 [02:05:00]1012 (4) - 30.10.2024 20:05 [02:05:00]1206 (1) - 0 [02:05:00]OFD Sender: Remove packet 139552 [02:05:00]ProducePacketName [02:05:00]name=ofd_packets/00139552 [02:05:00]NVStorageDeleteData [02:05:00]Write to MH i2c: 01 00 00 F3 6C 5F [02:05:00]Write i2c OK [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: 01 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: 01 07 00 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: 01 07 00 F3 6C 00 00 00 00 00 08 0D 7B [02:05:00]RasterBufferAndPrint [02:05:00]line [02:05:00]line [02:05:00]line [02:05:00]line [02:05:00]line [02:05:00]written 0, free lines is 3342 [02:05:00]MH_Cut [02:05:00]Write to MH i2c: D1 01 00 FA 6C 01 38 [02:05:00]Write i2c OK [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: D1 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: D1 01 00 [02:05:00]MH_I2C_Read... [02:05:00]Read from MH i2c: D1 01 00 FA 6C 00 37 [02:05:00]Write to MH i2c: 01 00 00 FB 6C 67 [02:05:00]Write i2c OK [02:05:00]MH_I2C_Read... [02:05:01]OFD Sender: No OFD packet to send [02:05:01]*** Cut start [02:05:01]*** Partial cut [02:05:01]*** CUTSNS_PIN = 1 [02:05:01]*** CUTSNS_PIN = 0 [02:05:01]*** Brake cut motor [02:05:02]Read from MH i2c: 01 [02:05:02]MH_I2C_Read... [02:05:02]*** Stop cut motor [02:05:02]*** Cut end [02:05:02]Read from MH i2c: 01 07 00 [02:05:02]MH_I2C_Read... [02:05:02]Read from MH i2c: 01 07 00 FB 6C 00 00 00 00 00 FF 0F 7C [02:05:02]process_action close_receipt done [02:05:02]requested_data is exist [02:05:02]produce_requested_data [02:05:02]requested_item fm.sn is exist - process it [02:05:02]wFMCommunicate request_size=4 [02:05:02]MH_SAM_APDU [02:05:02]CAPDU: 80 11 00 00 [02:05:02]Write to MH i2c: E2 08 00 FC 6C 80 11 00 00 00 00 00 00 E2 [02:05:02]Write i2c OK [02:05:02]MH_I2C_Read... [02:05:02]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:05:02]Read from MH i2c: E2 [02:05:02]MH_I2C_Read... [02:05:02]Read from MH i2c: E2 17 00 [02:05:02]MH_I2C_Read... [02:05:02]Read from MH i2c: E2 17 00 FC 6C 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 3D [02:05:02]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:05:02]wFMCommunicate OK [02:05:02]requested_item fd.num is exist - process it [02:05:02]SAM_PROTO_GetFieldsCounters [02:05:02]wFMCommunicate request_size=4 [02:05:02]MH_SAM_APDU [02:05:02]CAPDU: 80 13 00 00 [02:05:02]Write to MH i2c: E2 08 00 FD 6C 80 13 00 00 00 00 00 00 E5 [02:05:02]Write i2c OK [02:05:02]MH_I2C_Read... [02:05:02]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:05:02]Read from MH i2c: E2 [02:05:02]MH_I2C_Read... [02:05:02]Read from MH i2c: E2 62 00 [02:05:02]MH_I2C_Read... [02:05:02]Read from MH i2c: E2 62 00 FD 6C 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 20 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 D2 [02:05:02]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 20 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1D 00 00 00 5E 04 04 00 1D 00 00 00 57 04 04 00 1E 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:05:02]wFMCommunicate OK [02:05:02]SAM_PROTO_GetFieldsCounters done [02:05:02]requested_item shift.num is exist - process it [02:05:02]requested_item shift.opened is exist - process it [02:05:02]req_shift_opened [02:05:02]FM_GetShiftState [02:05:02]SAM_PROTO_GetShiftState [02:05:02]wFMCommunicate request_size=4 [02:05:02]MH_SAM_APDU [02:05:02]CAPDU: 80 13 01 00 [02:05:02]Write to MH i2c: E2 08 00 FE 6C 80 13 01 00 00 00 00 00 E7 [02:05:02]Write i2c OK [02:05:02]MH_I2C_Read... [02:05:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:05:02]Read from MH i2c: E2 [02:05:02]MH_I2C_Read... [02:05:02]Read from MH i2c: E2 0E 00 [02:05:02]MH_I2C_Read... [02:05:02]Read from MH i2c: E2 0E 00 FE 6C 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 10 [02:05:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:05:02]wFMCommunicate OK [02:05:02]SAM_PROTO_GetShiftState done [02:05:02]FM_GetShiftState done [02:05:02]req_shift_opened done [02:05:02]requested_item shift.open_date is exist - process it [02:05:02]req_shift_open_date [02:05:02]req_shift_open_date done [02:05:02]produce_requested_data done [02:05:02]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139552,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:05:02]process_action_free close_receipt [02:05:02]json_value_free [02:05:02]json_value_free done [02:05:02]process_json_proto returns [02:05:02]Send response to host [02:05:02]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139552,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:05:02]free response buf [02:05:02]execute_script done [02:05:02]execute_script returns [02:05:02]free content buf [02:05:02]Sock 8.Close socket [02:05:02]Sock 8.Thread stoped [02:05:06]OFD Sender: No OFD packet to send [02:05:11]OFD Sender: No OFD packet to send [02:05:16]OFD Sender: No OFD packet to send [02:05:21]OFD Sender: No OFD packet to send [02:05:26]OFD Sender: No OFD packet to send [02:05:31]OFD Sender: No OFD packet to send [02:05:36]OFD Sender: No OFD packet to send [02:05:41]OFD Sender: No OFD packet to send [02:05:46]OFD Sender: No OFD packet to send [02:05:51]OFD Sender: No OFD packet to send [02:05:56]OFD Sender: No OFD packet to send [02:06:01]OFD Sender: No OFD packet to send [02:06:06]OFD Sender: No OFD packet to send [02:06:11]OFD Sender: No OFD packet to send [02:06:16]OFD Sender: No OFD packet to send [02:06:21]OFD Sender: No OFD packet to send [02:06:26]OFD Sender: No OFD packet to send [02:06:27]accept exits with 9 [02:06:27]New connection [02:06:27]New thread 3067284836 created [02:06:27]Thread 3067141476 joined [02:06:27]Waiting for new connection... [02:06:27] Sock 9.Parse request [02:06:27]Sock 9.Check first char [02:06:27]Sock 9.First char is OK [02:06:27]request: POST /json_proto HTTP/1.0 [02:06:27]Method: POST [02:06:27]URL: /json_proto [02:06:27]Method is POST - this is cgi request [02:06:27]url: /json_proto [02:06:27]query_string will be loaded in cgi processing [02:06:27]execute_cgi json_proto POST (null) [02:06:27]execute_cgi path=json_proto method=POST [02:06:27]POST find Content-Length [02:06:27]Host: 172.17.50.196:8080 [02:06:27]Content-Length: 724 [02:06:27]Content-Type: application/json [02:06:27] [02:06:27]POST finish read [02:06:27]Found Content-Length = 724 [02:06:27]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335433", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:06:27]execute_script... [02:06: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 : (3)335433", "tax_sys" : 0, "items" : [ { "code": "8901086040022", "name": "\u0416\u0438\u0434\u043A\u043E\u0441\u0442\u044C \u0441\u0442\u0435\u043A\u043B\u043E\u043E\u043C\u044B\u0432\u0430\u044E\u0449\u0430\u044F \u041F\u041D -20 4,5\u043B", "price" : 285.00, "quantity" : 1.000, "sum" : 285.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 285.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:06:27]POST & json_proto [02:06:27]process_json_proto [02:06:27]json parsed OK: [02:06:27]protocol is kg_v1.0 [02:06:27]action value=close_receipt [02:06:27]process_action close_receipt [02:06:27]cmd_close_receipt [02:06:27]MH_GetDate [02:06:27]Write to MH i2c: F0 00 00 FF 6C 5A [02:06:27]Write i2c OK [02:06:27]MH_I2C_Read... [02:06:27]Read from MH i2c: F0 [02:06:27]MH_I2C_Read... [02:06:27]Read from MH i2c: F0 09 00 [02:06:27]MH_I2C_Read... [02:06:27]Read from MH i2c: F0 09 00 FF 6C 00 2B E6 22 67 72 0D 1C 67 FF [02:06:27]GetLastDocTimeStamp 1730340306 [02:06:27]current date 1730340395 [02:06:27]FM_GetShiftState [02:06:27]SAM_PROTO_GetShiftState [02:06:27]wFMCommunicate request_size=4 [02:06:27]MH_SAM_APDU [02:06:27]CAPDU: 80 13 01 00 [02:06:27]Write to MH i2c: E2 08 00 00 6D 80 13 01 00 00 00 00 00 EA [02:06:27]Write i2c OK [02:06:27]MH_I2C_Read... [02:06:27]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:06:27]Read from MH i2c: E2 [02:06:27]MH_I2C_Read... [02:06:27]Read from MH i2c: E2 0E 00 [02:06:27]MH_I2C_Read... [02:06:27]Read from MH i2c: E2 0E 00 00 6D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 13 [02:06:27]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:06:27]wFMCommunicate OK [02:06:27]SAM_PROTO_GetShiftState done [02:06:27]FM_GetShiftState done [02:06:27]opened in 1730332621 [02:06:27]opened+sec_in_day 1730419021 [02:06:27]quantity*price = 28500 [02:06:27]sum+1 = 28501 [02:06:27]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 285.00 НСП 1% : 2.52 НДС 12% : 30.26 Наличными: 285.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 30 31.10.2024 02:06 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139553 ФПД: 145153592490257 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T020635&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139553&fm=145153592490257&tin=02508201610067®Number=0000000000091631&sum=28500 0 [02:06:28]StoreToDocumentArchive [02:06:28]shift 557 fd 139553 [02:06:28]save to /storage/0557/doc_00139553 [02:06:28]save last doc name /storage/0557/doc_00139553 to /storage/kkm_last_doc_name [02:06:28]save OK [02:06:28]Clear old archive folders... [02:06:28]ProcessDocumentItem done err = 0, tmpTLVsize=304 [02:06:28]tlvbuf is 013669C0 [02:06:28]SAM_PROTO_ClearQueue [02:06:28]wFMCommunicate request_size=4 [02:06:28]MH_SAM_APDU [02:06:28]CAPDU: 80 09 00 00 [02:06:28]Write to MH i2c: E2 08 00 0D 6D 80 09 00 00 00 00 00 00 EC [02:06:28]Write i2c OK [02:06:28]MH_I2C_Read... [02:06:28]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:06:28]Read from MH i2c: E2 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 03 00 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 03 00 0D 6D 00 90 00 EE [02:06:28]RAPDU: 90 00 [02:06:28]wFMCommunicate OK [02:06:28]SAM_PROTO_ClearQueue done [02:06:28]KKMCreateOFDPacket [02:06:28]OFDProtocolAddRootSTLVToBuf [02:06:28]FM_MakeSignedData [02:06:28]FM_MakeSignedData [02:06:28]SAM_PROTO_SignData [02:06:28]wFMCommunicate request_size=4 [02:06:28]MH_SAM_APDU [02:06:28]CAPDU: 80 0D 01 02 [02:06:28]Write to MH i2c: E2 08 00 0E 6D 80 0D 01 02 00 00 00 00 F4 [02:06:28]Write i2c OK [02:06:28]MH_I2C_Read... [02:06:28]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:06:28]Read from MH i2c: E2 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 03 00 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 03 00 0E 6D 00 90 00 EF [02:06:28]RAPDU: 90 00 [02:06:28]wFMCommunicate OK [02:06:28]wFMCommunicate request_size=255 [02:06:28]MH_SAM_APDU [02:06:28]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2B E6 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 [02:06:28]Write to MH i2c: E2 02 01 0F 6D 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2B E6 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 00 00 1E [02:06:28]Write i2c OK [02:06:28]MH_I2C_Read... [02:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:06:28]Read from MH i2c: E2 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 03 00 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 03 00 0F 6D 00 90 00 F0 [02:06:28]RAPDU: 90 00 [02:06:28]wFMCommunicate OK [02:06:28]wFMCommunicate request_size=63 [02:06:28]MH_SAM_APDU [02:06:28]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 21 02 00 35 04 06 00 84 04 34 51 79 11 [02:06:28]Write to MH i2c: E2 42 00 10 6D 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 21 02 00 35 04 06 00 84 04 34 51 79 11 00 00 1F [02:06:28]Write i2c OK [02:06:28]MH_I2C_Read... [02:06:28]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:06:28]Read from MH i2c: E2 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 03 00 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 03 00 10 6D 00 90 00 F1 [02:06:28]RAPDU: 90 00 [02:06:28]wFMCommunicate OK [02:06:28]wFMCommunicate request_size=4 [02:06:28]MH_SAM_APDU [02:06:28]CAPDU: 80 0D 03 02 [02:06:28]Write to MH i2c: E2 08 00 11 6D 80 0D 03 02 00 00 00 00 F9 [02:06:28]Write i2c OK [02:06:28]MH_I2C_Read... [02:06:28]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:06:28]Read from MH i2c: E2 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 0B 00 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 0B 00 11 6D 00 CB 82 EA 22 D4 CA A0 C8 90 00 59 [02:06:28]RAPDU: CB 82 EA 22 D4 CA A0 C8 90 00 [02:06:28]wFMCommunicate OK [02:06:28]SAM_PROTO_SignData done [02:06:28]FM_MakeSignedData done [02:06:28]CreateOFDProtocolMessage [02:06:28]wFMCommunicate request_size=4 [02:06:28]MH_SAM_APDU [02:06:28]CAPDU: 80 11 00 00 [02:06:28]Write to MH i2c: E2 08 00 12 6D 80 11 00 00 00 00 00 00 F9 [02:06:28]Write i2c OK [02:06:28]MH_I2C_Read... [02:06:28]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:06:28]Read from MH i2c: E2 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 17 00 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: E2 17 00 12 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 54 [02:06:28]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:06:28]wFMCommunicate OK [02:06:28]CreateOFDProtocolMessage done [02:06:28]OFDSenderStorePacket 139553 [02:06:28]StoreOFDPacket docnum=139553 [02:06:28]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 30 CB 3C 01 11 C7 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2B E6 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 21 02 00 35 04 06 00 84 04 34 51 79 11 CB 82 EA 22 D4 CA A0 C8 [02:06:28]CheckFolder [02:06:28]dirname=/storage/ofd_packets [02:06:28]CheckFolder done [02:06:28]ProducePacketName [02:06:28]name=ofd_packets/00139553 [02:06:28]NVStorageSaveData ofd_packets/00139553 [02:06:28]File name is /storage/ofd_packets/00139553 [02:06:28]Write 354 bytes [02:06:28]NVStorageSaveData done [02:06:28]OFDSenderStorePacket done [02:06:28]KKMCreateOFDPacket done [02:06:28]NVStorageSaveData kkm_last_timestamp [02:06:28]File name is /storage/kkm_last_timestamp [02:06:28]Write 4 bytes [02:06:28]NVStorageSaveData done [02:06:28]ExternCall_PrintAddStr [02:06:28]wPrintStart [02:06:28]Write to MH i2c: 01 00 00 13 6D 80 [02:06:28]OFD Sender: Processing packet 139553 [packets to send 34, broken 33] [02:06:28]ProducePacketName [02:06:28]name=ofd_packets/00139553 [02:06:28]OFD Sender: To server: pG, [02:06:28]CommunicateWithHost lk.salyk.kg:30040 [02:06:28]ConnectInit lk.salyk.kg [02:06:28]Write i2c OK [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: 01 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: 01 07 00 [02:06:28]MH_I2C_Read... [02:06:28]Read from MH i2c: 01 07 00 13 6D 00 00 00 00 00 FF 0F 95 [02:06:28]RasterBufferAndPrint [02:06:28]line Счет N : (3)335433 [02:06:28]line ИНН: 02508201610067 [02:06:28]line Контрольно-Кассовый Чек [02:06:28]line ПРОДАЖА [02:06:28]line Товар: 8901086040022 [02:06:28]line Жидкость стеклоомывающая ПН -20 4,5л [02:06:28]line 1.000 * 285.00 [02:06:28]line = 285.00 [02:06:28]line НДС 12% НСП 1% [02:06:28]line > о реализуемом товаре [02:06:28]line ИТОГО: 285.00 [02:06:28]line НСП 1% : 2.52 [02:06:28]line НДС 12% : 30.26 [02:06:28]line Наличными: 285.00 [02:06:28]line Безнал.: 0.00 [02:06:28]line Место: АЗС № 101 "Партнер Нефть" [02:06:28]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:06:28]line СНО: Общий режим [02:06:28]line Чек 30 31.10.2024 02:06 [02:06:28]line Смена: 557 ФФД: 1.0 [02:06:28]line ЗНМ: 0300000081 [02:06:28]line РНМ: 0000000000091631 [02:06:28]line Версия ККМ: 001 [02:06:28]line ФМ: 0000000000874669 [02:06:28]line ФД: 139553 [02:06:28]line ФПД: 145153592490257 [02:06:29]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T020635&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139553&fm=145153592490257&tin=02508201610067®Number=0000000000091631&sum=28500 [02:06:29]line 0 [02:06:29]Connected sock=10 [02:06:29]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 30 CB 3C 01 11 C7 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 38 39 30 31 30 38 36 30 34 30 30 32 32 06 04 3E 00 D0 96 D0 B8 D0 B4 D0 BA D0 BE D1 81 D1 82 D1 8C 20 D1 81 D1 82 D0 B5 D0 BA D0 BB D0 BE D0 BE D0 BC D1 8B D0 B2 D0 B0 D1 8E D1 89 D0 B0 D1 8F 20 D0 9F D0 9D 20 2D 32 30 20 34 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 54 6F 00 00 00 00 13 04 06 00 54 6F 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 54 6F 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 FC 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D2 0B 00 00 00 00 07 04 06 00 54 6F 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1E 00 00 00 F4 03 04 00 2B E6 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 21 21 02 00 35 04 06 00 84 04 34 51 79 11 CB 82 EA 22 D4 CA A0 C8 [02:06:29]written 0, free lines is 4095 [02:06:29]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 1C 66 47 00 F1 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 38 37 34 36 36 39 10 04 04 00 21 21 02 00 F4 03 04 00 DA 91 22 67 B6 04 01 00 00 F0 70 60 82 63 DF 7C 2D [02:06:29]CommunicateWithHost err = 0 [02:06:29]CheckOFDResponse [02:06:29]1017 (14) - 77093643461234 [02:06:29]1041 (16) - 0000000000874669 [02:06:29]1040 (4) - 139553 [02:06:29]1012 (4) - 30.10.2024 20:06 [02:06:29]1206 (1) - 0 [02:06:29]OFD Sender: Remove packet 139553 [02:06:29]ProducePacketName [02:06:29]name=ofd_packets/00139553 [02:06:29]NVStorageDeleteData [02:06:29]Write to MH i2c: 01 00 00 3C 6D A9 [02:06:29]Write i2c OK [02:06:29]MH_I2C_Read... [02:06:29]Read from MH i2c: 01 [02:06:29]MH_I2C_Read... [02:06:29]Read from MH i2c: 01 07 00 [02:06:29]MH_I2C_Read... [02:06:29]Read from MH i2c: 01 07 00 3C 6D 00 00 00 00 00 03 0D C0 [02:06:29]RasterBufferAndPrint [02:06:29]line [02:06:29]line [02:06:29]line [02:06:29]line [02:06:29]line [02:06:29]written 0, free lines is 3340 [02:06:29]MH_Cut [02:06:29]Write to MH i2c: D1 01 00 43 6D 01 82 [02:06:29]Write i2c OK [02:06:29]MH_I2C_Read... [02:06:29]Read from MH i2c: D1 [02:06:29]MH_I2C_Read... [02:06:29]Read from MH i2c: D1 01 00 [02:06:29]MH_I2C_Read... [02:06:29]Read from MH i2c: D1 01 00 43 6D 00 81 [02:06:29]Write to MH i2c: 01 00 00 44 6D B1 [02:06:29]Write i2c OK [02:06:29]MH_I2C_Read... [02:06:29]OFD Sender: No OFD packet to send [02:06:30]*** Cut start [02:06:30]*** Partial cut [02:06:30]*** CUTSNS_PIN = 1 [02:06:30]*** CUTSNS_PIN = 0 [02:06:30]*** Brake cut motor [02:06:30]Read from MH i2c: 01 [02:06:30]MH_I2C_Read... [02:06:30]*** Stop cut motor [02:06:30]*** Cut end [02:06:30]Read from MH i2c: 01 07 00 [02:06:30]MH_I2C_Read... [02:06:30]Read from MH i2c: 01 07 00 44 6D 00 00 00 00 00 FF 0F C6 [02:06:30]process_action close_receipt done [02:06:30]requested_data is exist [02:06:30]produce_requested_data [02:06:30]requested_item fm.sn is exist - process it [02:06:30]wFMCommunicate request_size=4 [02:06:30]MH_SAM_APDU [02:06:30]CAPDU: 80 11 00 00 [02:06:30]Write to MH i2c: E2 08 00 45 6D 80 11 00 00 00 00 00 00 2C [02:06:30]Write i2c OK [02:06:30]MH_I2C_Read... [02:06:31]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:06:31]Read from MH i2c: E2 [02:06:31]MH_I2C_Read... [02:06:31]Read from MH i2c: E2 17 00 [02:06:31]MH_I2C_Read... [02:06:31]Read from MH i2c: E2 17 00 45 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 87 [02:06:31]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:06:31]wFMCommunicate OK [02:06:31]requested_item fd.num is exist - process it [02:06:31]SAM_PROTO_GetFieldsCounters [02:06:31]wFMCommunicate request_size=4 [02:06:31]MH_SAM_APDU [02:06:31]CAPDU: 80 13 00 00 [02:06:31]Write to MH i2c: E2 08 00 46 6D 80 13 00 00 00 00 00 00 2F [02:06:31]Write i2c OK [02:06:31]MH_I2C_Read... [02:06:31]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:06:31]Read from MH i2c: E2 [02:06:31]MH_I2C_Read... [02:06:31]Read from MH i2c: E2 62 00 [02:06:31]MH_I2C_Read... [02:06:31]Read from MH i2c: E2 62 00 46 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 21 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 20 [02:06:31]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 21 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1E 00 00 00 5E 04 04 00 1E 00 00 00 57 04 04 00 1F 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:06:31]wFMCommunicate OK [02:06:31]SAM_PROTO_GetFieldsCounters done [02:06:31]requested_item shift.num is exist - process it [02:06:31]requested_item shift.opened is exist - process it [02:06:31]req_shift_opened [02:06:31]FM_GetShiftState [02:06:31]SAM_PROTO_GetShiftState [02:06:31]wFMCommunicate request_size=4 [02:06:31]MH_SAM_APDU [02:06:31]CAPDU: 80 13 01 00 [02:06:31]Write to MH i2c: E2 08 00 47 6D 80 13 01 00 00 00 00 00 31 [02:06:31]Write i2c OK [02:06:31]MH_I2C_Read... [02:06:31]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:06:31]Read from MH i2c: E2 [02:06:31]MH_I2C_Read... [02:06:31]Read from MH i2c: E2 0E 00 [02:06:31]MH_I2C_Read... [02:06:31]Read from MH i2c: E2 0E 00 47 6D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5A [02:06:31]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:06:31]wFMCommunicate OK [02:06:31]SAM_PROTO_GetShiftState done [02:06:31]FM_GetShiftState done [02:06:31]req_shift_opened done [02:06:31]requested_item shift.open_date is exist - process it [02:06:31]req_shift_open_date [02:06:31]req_shift_open_date done [02:06:31]produce_requested_data done [02:06:31]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139553,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:06:31]process_action_free close_receipt [02:06:31]json_value_free [02:06:31]json_value_free done [02:06:31]process_json_proto returns [02:06:31]Send response to host [02:06:31]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139553,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:06:31]free response buf [02:06:31]execute_script done [02:06:31]execute_script returns [02:06:31]free content buf [02:06:31]Sock 9.Close socket [02:06:31]Sock 9.Thread stoped [02:06:34]OFD Sender: No OFD packet to send [02:06:39]OFD Sender: No OFD packet to send [02:06:44]OFD Sender: No OFD packet to send [02:06:49]OFD Sender: No OFD packet to send [02:06:54]OFD Sender: No OFD packet to send [02:06:59]OFD Sender: No OFD packet to send [02:07:04]OFD Sender: No OFD packet to send [02:07:09]OFD Sender: No OFD packet to send [02:07:14]OFD Sender: No OFD packet to send [02:07:19]OFD Sender: No OFD packet to send [02:07:24]OFD Sender: No OFD packet to send [02:07:29]OFD Sender: No OFD packet to send [02:07:34]OFD Sender: No OFD packet to send [02:07:40]OFD Sender: No OFD packet to send [02:07:45]OFD Sender: No OFD packet to send [02:07:50]OFD Sender: No OFD packet to send [02:07:55]OFD Sender: No OFD packet to send [02:08:00]OFD Sender: No OFD packet to send [02:08:05]OFD Sender: No OFD packet to send [02:08:10]OFD Sender: No OFD packet to send [02:08:15]OFD Sender: No OFD packet to send [02:08:20]OFD Sender: No OFD packet to send [02:08:25]OFD Sender: No OFD packet to send [02:08:30]OFD Sender: No OFD packet to send [02:08:35]OFD Sender: No OFD packet to send [02:08:40]OFD Sender: No OFD packet to send [02:08:45]OFD Sender: No OFD packet to send [02:08:50]OFD Sender: No OFD packet to send [02:08:55]OFD Sender: No OFD packet to send [02:09:00]OFD Sender: No OFD packet to send [02:09:05]OFD Sender: No OFD packet to send [02:09:10]OFD Sender: No OFD packet to send [02:09:15]OFD Sender: No OFD packet to send [02:09:20]OFD Sender: No OFD packet to send [02:09:25]OFD Sender: No OFD packet to send [02:09:30]OFD Sender: No OFD packet to send [02:09:35]OFD Sender: No OFD packet to send [02:09:40]OFD Sender: No OFD packet to send [02:09:45]OFD Sender: No OFD packet to send [02:09:50]OFD Sender: No OFD packet to send [02:09:55]OFD Sender: No OFD packet to send [02:10:00]OFD Sender: No OFD packet to send [02:10:05]OFD Sender: No OFD packet to send [02:10:10]OFD Sender: No OFD packet to send [02:10:15]OFD Sender: No OFD packet to send [02:10:20]OFD Sender: No OFD packet to send [02:10:25]OFD Sender: No OFD packet to send [02:10:30]OFD Sender: No OFD packet to send [02:10:35]OFD Sender: No OFD packet to send [02:10:40]OFD Sender: No OFD packet to send [02:10:45]OFD Sender: No OFD packet to send [02:10:50]OFD Sender: No OFD packet to send [02:10:55]OFD Sender: No OFD packet to send [02:11:00]OFD Sender: No OFD packet to send [02:11:05]OFD Sender: No OFD packet to send [02:11:10]OFD Sender: No OFD packet to send [02:11:15]OFD Sender: No OFD packet to send [02:11:20]OFD Sender: No OFD packet to send [02:11:25]OFD Sender: No OFD packet to send [02:11:30]OFD Sender: No OFD packet to send [02:11:35]OFD Sender: No OFD packet to send [02:11:40]OFD Sender: No OFD packet to send [02:11:45]OFD Sender: No OFD packet to send [02:11:50]OFD Sender: No OFD packet to send [02:11:55]OFD Sender: No OFD packet to send [02:12:00]OFD Sender: No OFD packet to send [02:12:05]OFD Sender: No OFD packet to send [02:12:10]OFD Sender: No OFD packet to send [02:12:15]OFD Sender: No OFD packet to send [02:12:20]OFD Sender: No OFD packet to send [02:12:25]OFD Sender: No OFD packet to send [02:12:30]OFD Sender: No OFD packet to send [02:12:35]OFD Sender: No OFD packet to send [02:12:40]OFD Sender: No OFD packet to send [02:12:45]OFD Sender: No OFD packet to send [02:12:50]OFD Sender: No OFD packet to send [02:12:55]OFD Sender: No OFD packet to send [02:13:00]OFD Sender: No OFD packet to send [02:13:05]OFD Sender: No OFD packet to send [02:13:10]OFD Sender: No OFD packet to send [02:13:15]OFD Sender: No OFD packet to send [02:13:20]OFD Sender: No OFD packet to send [02:13:25]OFD Sender: No OFD packet to send [02:13:30]OFD Sender: No OFD packet to send [02:13:35]OFD Sender: No OFD packet to send [02:13:40]OFD Sender: No OFD packet to send [02:13:45]OFD Sender: No OFD packet to send [02:13:50]OFD Sender: No OFD packet to send [02:13:55]OFD Sender: No OFD packet to send [02:14:00]OFD Sender: No OFD packet to send [02:14:05]OFD Sender: No OFD packet to send [02:14:10]OFD Sender: No OFD packet to send [02:14:15]OFD Sender: No OFD packet to send [02:14:20]OFD Sender: No OFD packet to send [02:14:25]OFD Sender: No OFD packet to send [02:14:30]OFD Sender: No OFD packet to send [02:14:35]OFD Sender: No OFD packet to send [02:14:40]OFD Sender: No OFD packet to send [02:14:45]OFD Sender: No OFD packet to send [02:14:50]OFD Sender: No OFD packet to send [02:14:55]OFD Sender: No OFD packet to send [02:15:00]OFD Sender: No OFD packet to send [02:15:05]OFD Sender: No OFD packet to send [02:15:10]OFD Sender: No OFD packet to send [02:15:15]OFD Sender: No OFD packet to send [02:15:20]OFD Sender: No OFD packet to send [02:15:25]OFD Sender: No OFD packet to send [02:15:30]OFD Sender: No OFD packet to send [02:15:35]OFD Sender: No OFD packet to send [02:15:40]OFD Sender: No OFD packet to send [02:15:45]OFD Sender: No OFD packet to send [02:15:50]OFD Sender: No OFD packet to send [02:15:55]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:50]OFD Sender: No OFD packet to send [02:19:55]OFD Sender: No OFD packet to send [02:20:00]OFD Sender: No OFD packet to send [02:20:05]OFD Sender: No OFD packet to send [02:20:10]OFD Sender: No OFD packet to send [02:20:15]OFD Sender: No OFD packet to send [02:20:20]OFD Sender: No OFD packet to send [02:20:25]OFD Sender: No OFD packet to send [02:20:30]OFD Sender: No OFD packet to send [02:20:35]OFD Sender: No OFD packet to send [02:20:40]OFD Sender: No OFD packet to send [02:20:45]OFD Sender: No OFD packet to send [02:20:50]OFD Sender: No OFD packet to send [02:20:55]OFD Sender: No OFD packet to send [02:21:00]OFD Sender: No OFD packet to send [02:21:05]OFD Sender: No OFD packet to send [02:21:10]OFD Sender: No OFD packet to send [02:21:15]OFD Sender: No OFD packet to send [02:21:20]OFD Sender: No OFD packet to send [02:21:25]OFD Sender: No OFD packet to send [02:21:30]OFD Sender: No OFD packet to send [02:21:35]OFD Sender: No OFD packet to send [02:21:40]OFD Sender: No OFD packet to send [02:21:45]OFD Sender: No OFD packet to send [02:21:50]OFD Sender: No OFD packet to send [02:21:55]OFD Sender: No OFD packet to send [02:22:00]OFD Sender: No OFD packet to send [02:22:05]OFD Sender: No OFD packet to send [02:22:10]OFD Sender: No OFD packet to send [02:22:15]OFD Sender: No OFD packet to send [02:22:20]OFD Sender: No OFD packet to send [02:22:25]OFD Sender: No OFD packet to send [02:22:30]OFD Sender: No OFD packet to send [02:22:35]OFD Sender: No OFD packet to send [02:22:40]OFD Sender: No OFD packet to send [02:22:45]OFD Sender: No OFD packet to send [02:22:50]OFD Sender: No OFD packet to send [02:22:55]OFD Sender: No OFD packet to send [02:23:00]OFD Sender: No OFD packet to send [02:23:05]OFD Sender: No OFD packet to send [02:23:10]OFD Sender: No OFD packet to send [02:23:15]OFD Sender: No OFD packet to send [02:23:16]accept exits with 8 [02:23:16]New connection [02:23:16]New thread 3067141476 created [02:23:16]Thread 3067284836 joined [02:23:16]Waiting for new connection... [02:23:16] Sock 8.Parse request [02:23:16]Sock 8.Check first char [02:23:16]Sock 8.First char is OK [02:23:16]request: POST /json_proto HTTP/1.0 [02:23:16]Method: POST [02:23:16]URL: /json_proto [02:23:16]Method is POST - this is cgi request [02:23:16]url: /json_proto [02:23:16]query_string will be loaded in cgi processing [02:23:16]execute_cgi json_proto POST (null) [02:23:16]execute_cgi path=json_proto method=POST [02:23:16]POST find Content-Length [02:23:16]Host: 172.17.50.196:8080 [02:23:16]Content-Length: 1008 [02:23:16]Content-Type: application/json [02:23:16] [02:23:16]POST finish read [02:23:16]Found Content-Length = 1008 [02:23:16]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335434", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:16]execute_script... [02:23: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 : (3)335434", "tax_sys" : 0, "items" : [ { "code": "46214645", "name": "\u0420/\u0436 mentos pure white \u043A\u043B\u0443\u0431 16/15,5\u0433", "price" : 49.00, "quantity" : 1.000, "sum" : 49.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036210013", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E (GABB TRADE)", "price" : 115.00, "quantity" : 1.000, "sum" : 115.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" : 164.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:23:16]POST & json_proto [02:23:16]process_json_proto [02:23:16]json parsed OK: [02:23:16]protocol is kg_v1.0 [02:23:16]action value=close_receipt [02:23:16]process_action close_receipt [02:23:16]cmd_close_receipt [02:23:16]MH_GetDate [02:23:16]Write to MH i2c: F0 00 00 48 6D A4 [02:23:16]Write i2c OK [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: F0 [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: F0 09 00 [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: F0 09 00 48 6D 00 1C EA 22 67 72 0D 1C 67 3E [02:23:16]GetLastDocTimeStamp 1730340395 [02:23:16]current date 1730341404 [02:23:16]FM_GetShiftState [02:23:16]SAM_PROTO_GetShiftState [02:23:16]wFMCommunicate request_size=4 [02:23:16]MH_SAM_APDU [02:23:16]CAPDU: 80 13 01 00 [02:23:16]Write to MH i2c: E2 08 00 49 6D 80 13 01 00 00 00 00 00 33 [02:23:16]Write i2c OK [02:23:16]MH_I2C_Read... [02:23:16]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:16]Read from MH i2c: E2 [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: E2 0E 00 [02:23:16]MH_I2C_Read... [02:23:16]Read from MH i2c: E2 0E 00 49 6D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 5C [02:23:16]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:23:16]wFMCommunicate OK [02:23:16]SAM_PROTO_GetShiftState done [02:23:16]FM_GetShiftState done [02:23:16]opened in 1730332621 [02:23:16]opened+sec_in_day 1730419021 [02:23:16]quantity*price = 4900 [02:23:16]sum+1 = 4901 [02:23:16]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036210013 Кофе Капучино (GABB TRADE) 1.000 * 115.00 = 115.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 164.00 НСП 1% : 1.45 НДС 12% : 17.41 Наличными: 0.00 Безнал.: 164.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 31 31.10.2024 02:23 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139554 ФПД: 29725331669975 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T022324&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139554&fm=29725331669975&tin=02508201610067®Number=0000000000091631&sum=16400 0 [02:23:17]StoreToDocumentArchive [02:23:17]shift 557 fd 139554 [02:23:17]save to /storage/0557/doc_00139554 [02:23:17]save last doc name /storage/0557/doc_00139554 to /storage/kkm_last_doc_name [02:23:17]save OK [02:23:17]Clear old archive folders... [02:23:17]ProcessDocumentItem done err = 0, tmpTLVsize=389 [02:23:17]tlvbuf is 01265840 [02:23:17]SAM_PROTO_ClearQueue [02:23:17]wFMCommunicate request_size=4 [02:23:17]MH_SAM_APDU [02:23:17]CAPDU: 80 09 00 00 [02:23:17]Write to MH i2c: E2 08 00 56 6D 80 09 00 00 00 00 00 00 35 [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]*** iso7816_exchange 80 09 00 00... 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 56 6D 00 90 00 37 [02:23:17]RAPDU: 90 00 [02:23:17]wFMCommunicate OK [02:23:17]SAM_PROTO_ClearQueue done [02:23:17]KKMCreateOFDPacket [02:23:17]OFDProtocolAddRootSTLVToBuf [02:23:17]FM_MakeSignedData [02:23:17]FM_MakeSignedData [02:23:17]SAM_PROTO_SignData [02:23:17]wFMCommunicate request_size=4 [02:23:17]MH_SAM_APDU [02:23:17]CAPDU: 80 0D 01 02 [02:23:17]Write to MH i2c: E2 08 00 57 6D 80 0D 01 02 00 00 00 00 3D [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:17]*** iso7816_exchange 80 0D 01 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 57 6D 00 90 00 38 [02:23:17]RAPDU: 90 00 [02:23:17]wFMCommunicate OK [02:23:17]wFMCommunicate request_size=255 [02:23:17]MH_SAM_APDU [02:23:17]CAPDU: 80 0D 02 02 FA 03 00 85 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 [02:23:17]Write to MH i2c: E2 02 01 58 6D 80 0D 02 02 FA 00 03 00 85 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 00 00 98 [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 58 6D 00 90 00 39 [02:23:17]RAPDU: 90 00 [02:23:17]wFMCommunicate OK [02:23:17]wFMCommunicate request_size=148 [02:23:17]MH_SAM_APDU [02:23:17]CAPDU: 80 0D 02 02 8F 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1C EA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 21 02 00 35 04 06 00 1B 08 F7 D5 C3 D7 [02:23:17]Write to MH i2c: E2 97 00 59 6D 80 0D 02 02 8F 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1C EA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 21 02 00 35 04 06 00 1B 08 F7 D5 C3 D7 00 00 EE [02:23:17]Write i2c OK [02:23:17]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 03 00 59 6D 00 90 00 3A [02:23:18]RAPDU: 90 00 [02:23:18]wFMCommunicate OK [02:23:18]wFMCommunicate request_size=4 [02:23:18]MH_SAM_APDU [02:23:18]CAPDU: 80 0D 03 02 [02:23:18]Write to MH i2c: E2 08 00 5A 6D 80 0D 03 02 00 00 00 00 42 [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 0B 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 0B 00 5A 6D 00 67 01 9C 60 6C 34 26 52 90 00 BF [02:23:18]RAPDU: 67 01 9C 60 6C 34 26 52 90 00 [02:23:18]wFMCommunicate OK [02:23:18]SAM_PROTO_SignData done [02:23:18]FM_MakeSignedData done [02:23:18]CreateOFDProtocolMessage [02:23:18]wFMCommunicate request_size=4 [02:23:18]MH_SAM_APDU [02:23:18]CAPDU: 80 11 00 00 [02:23:18]Write to MH i2c: E2 08 00 5B 6D 80 11 00 00 00 00 00 00 42 [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:18]Read from MH i2c: E2 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 17 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: E2 17 00 5B 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 9D [02:23:18]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:23:18]wFMCommunicate OK [02:23:18]CreateOFDProtocolMessage done [02:23:18]OFDSenderStorePacket 139554 [02:23:18]StoreOFDPacket docnum=139554 [02:23:18]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 99 01 00 00 CF 1F 91 01 2E D3 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1C EA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 21 02 00 35 04 06 00 1B 08 F7 D5 C3 D7 67 01 9C 60 6C 34 26 52 [02:23:18]CheckFolder [02:23:18]dirname=/storage/ofd_packets [02:23:18]CheckFolder done [02:23:18]ProducePacketName [02:23:18]name=ofd_packets/00139554 [02:23:18]NVStorageSaveData ofd_packets/00139554 [02:23:18]File name is /storage/ofd_packets/00139554 [02:23:18]Write 439 bytes [02:23:18]NVStorageSaveData done [02:23:18]OFDSenderStorePacket done [02:23:18]KKMCreateOFDPacket done [02:23:18]NVStorageSaveData kkm_last_timestamp [02:23:18]File name is /storage/kkm_last_timestamp [02:23:18]Write 4 bytes [02:23:18]NVStorageSaveData done [02:23:18]ExternCall_PrintAddStr [02:23:18]wPrintStart [02:23:18]Write to MH i2c: 01 00 00 5C 6D C9 [02:23:18]Write i2c OK [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: 01 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: 01 07 00 [02:23:18]MH_I2C_Read... [02:23:18]Read from MH i2c: 01 07 00 5C 6D 00 00 00 00 00 FF 0F DE [02:23:18]RasterBufferAndPrint [02:23:18]line Счет N : (3)335434 [02:23:18]line ИНН: 02508201610067 [02:23:18]line Контрольно-Кассовый Чек [02:23:18]line ПРОДАЖА [02:23:18]line Товар: 46214645 [02:23:18]line Р/ж mentos pure white клуб 16/15,5г [02:23:18]line 1.000 * 49.00 [02:23:18]line = 49.00 [02:23:18]line НДС 12% НСП 1% [02:23:18]line > о реализуемом товаре [02:23:18]line Товар: 2000036210013 [02:23:18]line Кофе Капучино (GABB TRADE) [02:23:18]line 1.000 * 115.00 [02:23:18]line = 115.00 [02:23:18]line НДС 12% НСП 1% [02:23:18]line > о реализуемом товаре [02:23:18]line ИТОГО: 164.00 [02:23:18]line НСП 1% : 1.45 [02:23:18]line НДС 12% : 17.41 [02:23:18]line Наличными: 0.00 [02:23:18]line Безнал.: 164.00 [02:23:18]line Место: АЗС № 101 "Партнер Нефть" [02:23:18]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:23:18]line СНО: Общий режим [02:23:18]line Чек 31 31.10.2024 02:23 [02:23:18]line Смена: 557 ФФД: 1.0 [02:23:18]line ЗНМ: 0300000081 [02:23:18]line РНМ: 0000000000091631 [02:23:18]line Версия ККМ: 001 [02:23:18]line Платежная система: Mbank [02:23:18]line ФМ: 0000000000874669 [02:23:18]line ФД: 139554 [02:23:18]line ФПД: 29725331669975 [02:23:18]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T022324&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139554&fm=29725331669975&tin=02508201610067®Number=0000000000091631&sum=16400 [02:23:18]OFD Sender: Processing packet 139554 [packets to send 34, broken 33] [02:23:18]ProducePacketName [02:23:18]name=ofd_packets/00139554 [02:23:18]OFD Sender: To server: pG, [02:23:18]CommunicateWithHost lk.salyk.kg:30040 [02:23:18]ConnectInit lk.salyk.kg [02:23:18]line 0 [02:23:18]written 0, free lines is 4095 [02:23:18]Connected sock=10 [02:23:18]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 99 01 00 00 CF 1F 91 01 2E D3 5A 03 01 00 03 00 85 01 1E 04 01 00 01 23 04 69 00 8A 04 08 00 34 36 32 31 34 36 34 35 06 04 2A 00 D0 A0 2F D0 B6 20 6D 65 6E 74 6F 73 20 70 75 72 65 20 77 68 69 74 65 20 D0 BA D0 BB D1 83 D0 B1 20 31 36 2F 31 35 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 24 13 00 00 00 00 13 04 06 00 24 13 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6A 00 8A 04 0D 00 32 30 30 30 30 33 36 32 31 30 30 31 33 06 04 26 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 EC 2C 00 00 00 00 13 04 06 00 EC 2C 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 10 40 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 91 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 CD 06 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 10 40 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 1F 00 00 00 F4 03 04 00 1C EA 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 21 02 00 35 04 06 00 1B 08 F7 D5 C3 D7 67 01 9C 60 6C 34 26 52 [02:23:18]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 BD 46 47 00 1C 79 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 22 21 02 00 F4 03 04 00 CB 95 22 67 B6 04 01 00 00 A9 BB FB E8 F2 E9 DE 1F [02:23:18]CommunicateWithHost err = 0 [02:23:18]CheckOFDResponse [02:23:18]1017 (14) - 77093643461234 [02:23:18]1041 (16) - 0000000000874669 [02:23:18]1040 (4) - 139554 [02:23:18]1012 (4) - 30.10.2024 20:23 [02:23:18]1206 (1) - 0 [02:23:18]OFD Sender: Remove packet 139554 [02:23:18]ProducePacketName [02:23:18]name=ofd_packets/00139554 [02:23:18]NVStorageDeleteData [02:23:19]Write to MH i2c: 01 00 00 8C 6D F9 [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: 01 [02:23:19]MH_I2C_Read... [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 8C 6D 00 00 00 00 00 C0 0C CC [02:23:19]RasterBufferAndPrint [02:23:19]line [02:23:19]line [02:23:19]line [02:23:19]line [02:23:19]line [02:23:19]written 0, free lines is 3273 [02:23:19]MH_Cut [02:23:19]Write to MH i2c: D1 01 00 93 6D 01 D2 [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: D1 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: D1 01 00 [02:23:19]MH_I2C_Read... [02:23:19]Read from MH i2c: D1 01 00 93 6D 00 D1 [02:23:19]Write to MH i2c: 01 00 00 94 6D 01 [02:23:19]Write i2c OK [02:23:19]MH_I2C_Read... [02:23:19]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:20]Read from MH i2c: 01 [02:23:20]MH_I2C_Read... [02:23:20]*** Stop cut motor [02:23:20]*** Cut end [02:23:20]Read from MH i2c: 01 07 00 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: 01 07 00 94 6D 00 00 00 00 00 FF 0F 16 [02:23:20]process_action close_receipt done [02:23:20]requested_data is exist [02:23:20]produce_requested_data [02:23:20]requested_item fm.sn is exist - process it [02:23:20]wFMCommunicate request_size=4 [02:23:20]MH_SAM_APDU [02:23:20]CAPDU: 80 11 00 00 [02:23:20]Write to MH i2c: E2 08 00 95 6D 80 11 00 00 00 00 00 00 7C [02:23:20]Write i2c OK [02:23:20]MH_I2C_Read... [02:23:20]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:23:20]Read from MH i2c: E2 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: E2 17 00 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: E2 17 00 95 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D7 [02:23:20]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:23:20]wFMCommunicate OK [02:23:20]requested_item fd.num is exist - process it [02:23:20]SAM_PROTO_GetFieldsCounters [02:23:20]wFMCommunicate request_size=4 [02:23:20]MH_SAM_APDU [02:23:20]CAPDU: 80 13 00 00 [02:23:20]Write to MH i2c: E2 08 00 96 6D 80 13 00 00 00 00 00 00 7F [02:23:20]Write i2c OK [02:23:20]MH_I2C_Read... [02:23:20]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:23:20]Read from MH i2c: E2 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: E2 62 00 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: E2 62 00 96 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 22 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 74 [02:23:20]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 22 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 1F 00 00 00 5E 04 04 00 1F 00 00 00 57 04 04 00 20 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:23:20]wFMCommunicate OK [02:23:20]SAM_PROTO_GetFieldsCounters done [02:23:20]requested_item shift.num is exist - process it [02:23:20]requested_item shift.opened is exist - process it [02:23:20]req_shift_opened [02:23:20]FM_GetShiftState [02:23:20]SAM_PROTO_GetShiftState [02:23:20]wFMCommunicate request_size=4 [02:23:20]MH_SAM_APDU [02:23:20]CAPDU: 80 13 01 00 [02:23:20]Write to MH i2c: E2 08 00 97 6D 80 13 01 00 00 00 00 00 81 [02:23:20]Write i2c OK [02:23:20]MH_I2C_Read... [02:23:20]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:23:20]Read from MH i2c: E2 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: E2 0E 00 [02:23:20]MH_I2C_Read... [02:23:20]Read from MH i2c: E2 0E 00 97 6D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AA [02:23:20]RAPDU: 09 00 01 CD C7 22 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":"0000000000874669","fd.num":139554,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [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":"0000000000874669","fd.num":139554,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [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 8.Close socket [02:23:20]Sock 8.Thread stoped [02:23:24]OFD Sender: No OFD packet to send [02:23:29]OFD Sender: No OFD packet to send [02:23:34]OFD Sender: No OFD packet to send [02:23:39]OFD Sender: No OFD packet to send [02:23:44]OFD Sender: No OFD packet to send [02:23:49]OFD Sender: No OFD packet to send [02:23:54]OFD Sender: No OFD packet to send [02:23:59]OFD Sender: No OFD packet to send [02:24:04]OFD Sender: No OFD packet to send [02:24:09]OFD Sender: No OFD packet to send [02:24:14]OFD Sender: No OFD packet to send [02:24:19]OFD Sender: No OFD packet to send [02:24:24]OFD Sender: No OFD packet to send [02:24:29]OFD Sender: No OFD packet to send [02:24:34]OFD Sender: No OFD packet to send [02:24:39]OFD Sender: No OFD packet to send [02:24:44]OFD Sender: No OFD packet to send [02:24:49]OFD Sender: No OFD packet to send [02:24:54]OFD Sender: No OFD packet to send [02:24:59]OFD Sender: No OFD packet to send [02:25:04]OFD Sender: No OFD packet to send [02:25:09]OFD Sender: No OFD packet to send [02:25:14]OFD Sender: No OFD packet to send [02:25:19]OFD Sender: No OFD packet to send [02:25:24]OFD Sender: No OFD packet to send [02:25:29]OFD Sender: No OFD packet to send [02:25:34]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:29]OFD Sender: No OFD packet to send [02:29:34]OFD Sender: No OFD packet to send [02:29:39]OFD Sender: No OFD packet to send [02:29:44]OFD Sender: No OFD packet to send [02:29:49]OFD Sender: No OFD packet to send [02:29:54]OFD Sender: No OFD packet to send [02:29:59]OFD Sender: No OFD packet to send [02:30:04]OFD Sender: No OFD packet to send [02:30:09]OFD Sender: No OFD packet to send [02:30:14]OFD Sender: No OFD packet to send [02:30:19]OFD Sender: No OFD packet to send [02:30:24]OFD Sender: No OFD packet to send [02:30:29]OFD Sender: No OFD packet to send [02:30:34]OFD Sender: No OFD packet to send [02:30:39]OFD Sender: No OFD packet to send [02:30:44]OFD Sender: No OFD packet to send [02:30:49]OFD Sender: No OFD packet to send [02:30:54]accept exits with 9 [02:30:54]New connection [02:30:54]New thread 3067284836 created [02:30:54]Thread 3067141476 joined [02:30:54]Waiting for new connection... [02:30:54] Sock 9.Parse request [02:30:54]Sock 9.Check first char [02:30:54]Sock 9.First char is OK [02:30:54]request: POST /json_proto HTTP/1.0 [02:30:54]Method: POST [02:30:54]URL: /json_proto [02:30:54]Method is POST - this is cgi request [02:30:54]url: /json_proto [02:30:54]query_string will be loaded in cgi processing [02:30:54]execute_cgi json_proto POST (null) [02:30:54]execute_cgi path=json_proto method=POST [02:30:54]POST find Content-Length [02:30:54]Host: 172.17.50.196:8080 [02:30:54]Content-Length: 665 [02:30:54]Content-Type: application/json [02:30:54] [02:30:54]POST finish read [02:30:54]Found Content-Length = 665 [02:30:54]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335436", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:30:54]execute_script... [02:30: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 : (3)335436", "tax_sys" : 0, "items" : [ { "code": "4631150682851", "name": "\u041D\u0430\u043F En Dragon Mojito \u043B\u0430\u0439\u043C,\u043A\u043B\u0443\u0431 \u0436/\u0431 0,45\u043B", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:30:54]POST & json_proto [02:30:54]process_json_proto [02:30:54]json parsed OK: [02:30:54]protocol is kg_v1.0 [02:30:54]action value=close_receipt [02:30:54]process_action close_receipt [02:30:54]cmd_close_receipt [02:30:54]MH_GetDate [02:30:54]Write to MH i2c: F0 00 00 98 6D F4 [02:30:54]Write i2c OK [02:30:54]MH_I2C_Read... [02:30:54]Read from MH i2c: F0 [02:30:54]MH_I2C_Read... [02:30:54]Read from MH i2c: F0 09 00 [02:30:54]MH_I2C_Read... [02:30:54]Read from MH i2c: F0 09 00 98 6D 00 E6 EB 22 67 72 0D 1C 67 59 [02:30:54]GetLastDocTimeStamp 1730341404 [02:30:54]current date 1730341862 [02:30:54]FM_GetShiftState [02:30:54]SAM_PROTO_GetShiftState [02:30:54]wFMCommunicate request_size=4 [02:30:54]MH_SAM_APDU [02:30:54]CAPDU: 80 13 01 00 [02:30:54]Write to MH i2c: E2 08 00 99 6D 80 13 01 00 00 00 00 00 83 [02:30:54]Write i2c OK [02:30:54]MH_I2C_Read... [02:30:54]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:54]Read from MH i2c: E2 [02:30:54]MH_I2C_Read... [02:30:54]Read from MH i2c: E2 0E 00 [02:30:54]MH_I2C_Read... [02:30:54]Read from MH i2c: E2 0E 00 99 6D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 AC [02:30:54]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:30:54]wFMCommunicate OK [02:30:54]SAM_PROTO_GetShiftState done [02:30:54]FM_GetShiftState done [02:30:54]opened in 1730332621 [02:30:54]opened+sec_in_day 1730419021 [02:30:54]quantity*price = 9500 [02:30:54]sum+1 = 9501 [02:30:54]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 32 31.10.2024 02:31 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139555 ФПД: 207539348366214 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T023102&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139555&fm=207539348366214&tin=02508201610067®Number=0000000000091631&sum=9500 0 [02:30:55]StoreToDocumentArchive [02:30:55]shift 557 fd 139555 [02:30:55]save to /storage/0557/doc_00139555 [02:30:55]save last doc name /storage/0557/doc_00139555 to /storage/kkm_last_doc_name [02:30:55]save OK [02:30:55]Clear old archive folders... [02:30:55]ProcessDocumentItem done err = 0, tmpTLVsize=296 [02:30:55]tlvbuf is 011637C0 [02:30:55]SAM_PROTO_ClearQueue [02:30:55]wFMCommunicate request_size=4 [02:30:55]MH_SAM_APDU [02:30:55]CAPDU: 80 09 00 00 [02:30:55]Write to MH i2c: E2 08 00 A6 6D 80 09 00 00 00 00 00 00 85 [02:30:55]Write i2c OK [02:30:55]MH_I2C_Read... [02:30:55]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:30:55]Read from MH i2c: E2 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 03 00 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 03 00 A6 6D 00 90 00 87 [02:30:55]RAPDU: 90 00 [02:30:55]wFMCommunicate OK [02:30:55]SAM_PROTO_ClearQueue done [02:30:55]KKMCreateOFDPacket [02:30:55]OFDProtocolAddRootSTLVToBuf [02:30:55]FM_MakeSignedData [02:30:55]FM_MakeSignedData [02:30:55]SAM_PROTO_SignData [02:30:55]wFMCommunicate request_size=4 [02:30:55]MH_SAM_APDU [02:30:55]CAPDU: 80 0D 01 02 [02:30:55]Write to MH i2c: E2 08 00 A7 6D 80 0D 01 02 00 00 00 00 8D [02:30:55]Write i2c OK [02:30:55]MH_I2C_Read... [02:30:55]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:30:55]Read from MH i2c: E2 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 03 00 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 03 00 A7 6D 00 90 00 88 [02:30:55]RAPDU: 90 00 [02:30:55]wFMCommunicate OK [02:30:55]wFMCommunicate request_size=255 [02:30:55]MH_SAM_APDU [02:30:55]CAPDU: 80 0D 02 02 FA 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 20 00 00 00 F4 03 04 00 E6 EB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 [02:30:55]Write to MH i2c: E2 02 01 A8 6D 80 0D 02 02 FA 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 20 00 00 00 F4 03 04 00 E6 EB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 00 00 B6 [02:30:55]Write i2c OK [02:30:55]MH_I2C_Read... [02:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:55]Read from MH i2c: E2 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 03 00 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 03 00 A8 6D 00 90 00 89 [02:30:55]RAPDU: 90 00 [02:30:55]wFMCommunicate OK [02:30:55]wFMCommunicate request_size=55 [02:30:55]MH_SAM_APDU [02:30:55]CAPDU: 80 0D 02 02 32 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 21 02 00 35 04 06 00 BC C1 85 22 E3 86 [02:30:55]Write to MH i2c: E2 3A 00 A9 6D 80 0D 02 02 32 00 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 21 02 00 35 04 06 00 BC C1 85 22 E3 86 00 00 BF [02:30:55]Write i2c OK [02:30:55]MH_I2C_Read... [02:30:55]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:30:55]Read from MH i2c: E2 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 03 00 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 03 00 A9 6D 00 90 00 8A [02:30:55]RAPDU: 90 00 [02:30:55]wFMCommunicate OK [02:30:55]wFMCommunicate request_size=4 [02:30:55]MH_SAM_APDU [02:30:55]CAPDU: 80 0D 03 02 [02:30:55]Write to MH i2c: E2 08 00 AA 6D 80 0D 03 02 00 00 00 00 92 [02:30:55]Write i2c OK [02:30:55]MH_I2C_Read... [02:30:55]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:30:55]Read from MH i2c: E2 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 0B 00 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 0B 00 AA 6D 00 9A C5 87 6D 3D 4A 74 5D 90 00 3E [02:30:55]RAPDU: 9A C5 87 6D 3D 4A 74 5D 90 00 [02:30:55]wFMCommunicate OK [02:30:55]SAM_PROTO_SignData done [02:30:55]FM_MakeSignedData done [02:30:55]CreateOFDProtocolMessage [02:30:55]wFMCommunicate request_size=4 [02:30:55]MH_SAM_APDU [02:30:55]CAPDU: 80 11 00 00 [02:30:55]Write to MH i2c: E2 08 00 AB 6D 80 11 00 00 00 00 00 00 92 [02:30:55]Write i2c OK [02:30:55]MH_I2C_Read... [02:30:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:55]Read from MH i2c: E2 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 17 00 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: E2 17 00 AB 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 ED [02:30:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:30:55]wFMCommunicate OK [02:30:55]CreateOFDProtocolMessage done [02:30:55]OFDSenderStorePacket 139555 [02:30:55]StoreOFDPacket docnum=139555 [02:30:55]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 96 29 34 01 8A 22 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 20 00 00 00 F4 03 04 00 E6 EB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 21 02 00 35 04 06 00 BC C1 85 22 E3 86 9A C5 87 6D 3D 4A 74 5D [02:30:55]CheckFolder [02:30:55]dirname=/storage/ofd_packets [02:30:55]CheckFolder done [02:30:55]ProducePacketName [02:30:55]name=ofd_packets/00139555 [02:30:55]NVStorageSaveData ofd_packets/00139555 [02:30:55]File name is /storage/ofd_packets/00139555 [02:30:55]Write 346 bytes [02:30:55]NVStorageSaveData done [02:30:55]OFDSenderStorePacket done [02:30:55]KKMCreateOFDPacket done [02:30:55]NVStorageSaveData kkm_last_timestamp [02:30:55]File name is /storage/kkm_last_timestamp [02:30:55]Write 4 bytes [02:30:55]NVStorageSaveData done [02:30:55]ExternCall_PrintAddStr [02:30:55]wPrintStart [02:30:55]Write to MH i2c: 01 00 00 AC 6D 19 [02:30:55]Write i2c OK [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: 01 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: 01 07 00 [02:30:55]MH_I2C_Read... [02:30:55]Read from MH i2c: 01 07 00 AC 6D 00 00 00 00 00 FF 0F 2E [02:30:55]RasterBufferAndPrint [02:30:55]line Счет N : (3)335436 [02:30:55]line ИНН: 02508201610067 [02:30:55]line Контрольно-Кассовый Чек [02:30:55]line ПРОДАЖА [02:30:55]line Товар: 4631150682851 [02:30:55]line Нап En Dragon Mojito лайм,клуб ж/б 0,45л [02:30:55]line 1.000 * 95.00 [02:30:55]line = 95.00 [02:30:55]line НДС 12% НСП 1% [02:30:55]line > о реализуемом товаре [02:30:55]line ИТОГО: 95.00 [02:30:55]line НСП 1% : 0.84 [02:30:55]line НДС 12% : 10.09 [02:30:55]line Наличными: 95.00 [02:30:55]line Безнал.: 0.00 [02:30:55]line Место: АЗС № 101 "Партнер Нефть" [02:30:55]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:30:55]line СНО: Общий режим [02:30:55]line Чек 32 31.10.2024 02:31 [02:30:55]line Смена: 557 ФФД: 1.0 [02:30:55]line ЗНМ: 0300000081 [02:30:55]line РНМ: 0000000000091631 [02:30:55]line Версия ККМ: 001 [02:30:55]line ФМ: 0000000000874669 [02:30:55]line ФД: 139555 [02:30:55]line ФПД: 207539348366214 [02:30:56]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T023102&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139555&fm=207539348366214&tin=02508201610067®Number=0000000000091631&sum=9500 [02:30:56]line 0 [02:30:56]OFD Sender: Processing packet 139555 [packets to send 34, broken 33] [02:30:56]ProducePacketName [02:30:56]name=ofd_packets/00139555 [02:30:56]OFD Sender: To server: pG, [02:30:56]CommunicateWithHost lk.salyk.kg:30040 [02:30:56]ConnectInit lk.salyk.kg [02:30:56]written 0, free lines is 4095 [02:30:56]Connected sock=10 [02:30:56]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 3C 01 00 00 96 29 34 01 8A 22 5A 03 01 00 03 00 28 01 1E 04 01 00 01 23 04 7A 00 8A 04 0D 00 34 36 33 31 31 35 30 36 38 32 38 35 31 06 04 36 00 D0 9D D0 B0 D0 BF 20 45 6E 20 44 72 61 67 6F 6E 20 4D 6F 6A 69 74 6F 20 D0 BB D0 B0 D0 B9 D0 BC 2C D0 BA D0 BB D1 83 D0 B1 20 D0 B6 2F D0 B1 20 30 2C 34 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 20 00 00 00 F4 03 04 00 E6 EB 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 21 02 00 35 04 06 00 BC C1 85 22 E3 86 9A C5 87 6D 3D 4A 74 5D [02:30:56]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 95 9D 47 00 9F 6B A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 23 21 02 00 F4 03 04 00 95 97 22 67 B6 04 01 00 00 99 DE 52 E9 0E FA 66 A1 [02:30:56]CommunicateWithHost err = 0 [02:30:56]CheckOFDResponse [02:30:56]1017 (14) - 77093643461234 [02:30:56]1041 (16) - 0000000000874669 [02:30:56]1040 (4) - 139555 [02:30:56]1012 (4) - 30.10.2024 20:31 [02:30:56]1206 (1) - 0 [02:30:56]OFD Sender: Remove packet 139555 [02:30:56]ProducePacketName [02:30:56]name=ofd_packets/00139555 [02:30:56]NVStorageDeleteData [02:30:56]Write to MH i2c: 01 00 00 D5 6D 42 [02:30:56]Write i2c OK [02:30:56]MH_I2C_Read... [02:30:56]Read from MH i2c: 01 [02:30:56]MH_I2C_Read... [02:30:56]Read from MH i2c: 01 07 00 [02:30:56]MH_I2C_Read... [02:30:56]Read from MH i2c: 01 07 00 D5 6D 00 00 00 00 00 F6 0C 4B [02:30:56]RasterBufferAndPrint [02:30:56]line [02:30:56]line [02:30:56]line [02:30:56]line [02:30:56]line [02:30:56]written 0, free lines is 3328 [02:30:56]MH_Cut [02:30:56]Write to MH i2c: D1 01 00 DC 6D 01 1B [02:30:56]Write i2c OK [02:30:56]MH_I2C_Read... [02:30:56]Read from MH i2c: D1 [02:30:56]MH_I2C_Read... [02:30:56]Read from MH i2c: D1 01 00 [02:30:56]MH_I2C_Read... [02:30:56]Read from MH i2c: D1 01 00 DC 6D 00 1A [02:30:56]Write to MH i2c: 01 00 00 DD 6D 4A [02:30:56]Write i2c OK [02:30:56]MH_I2C_Read... [02:30:56]OFD Sender: No OFD packet to send [02:30:57]*** Cut start [02:30:57]*** Partial cut [02:30:57]*** CUTSNS_PIN = 1 [02:30:57]*** CUTSNS_PIN = 0 [02:30:57]*** Brake cut motor [02:30:57]Read from MH i2c: 01 [02:30:57]MH_I2C_Read... [02:30:57]*** Stop cut motor [02:30:57]*** Cut end [02:30:57]Read from MH i2c: 01 07 00 [02:30:57]MH_I2C_Read... [02:30:57]Read from MH i2c: 01 07 00 DD 6D 00 00 00 00 00 FF 0F 5F [02:30:57]process_action close_receipt done [02:30:57]requested_data is exist [02:30:57]produce_requested_data [02:30:57]requested_item fm.sn is exist - process it [02:30:57]wFMCommunicate request_size=4 [02:30:57]MH_SAM_APDU [02:30:57]CAPDU: 80 11 00 00 [02:30:57]Write to MH i2c: E2 08 00 DE 6D 80 11 00 00 00 00 00 00 C5 [02:30:57]Write i2c OK [02:30:57]MH_I2C_Read... [02:30:57]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:30:57]Read from MH i2c: E2 [02:30:57]MH_I2C_Read... [02:30:57]Read from MH i2c: E2 17 00 [02:30:57]MH_I2C_Read... [02:30:57]Read from MH i2c: E2 17 00 DE 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 20 [02:30:57]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:30:57]wFMCommunicate OK [02:30:57]requested_item fd.num is exist - process it [02:30:57]SAM_PROTO_GetFieldsCounters [02:30:57]wFMCommunicate request_size=4 [02:30:57]MH_SAM_APDU [02:30:57]CAPDU: 80 13 00 00 [02:30:57]Write to MH i2c: E2 08 00 DF 6D 80 13 00 00 00 00 00 00 C8 [02:30:57]Write i2c OK [02:30:57]MH_I2C_Read... [02:30:58]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:30:58]Read from MH i2c: E2 [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: E2 62 00 [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: E2 62 00 DF 6D 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 23 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 C1 [02:30:58]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 23 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 20 00 00 00 5E 04 04 00 20 00 00 00 57 04 04 00 21 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:30:58]wFMCommunicate OK [02:30:58]SAM_PROTO_GetFieldsCounters done [02:30:58]requested_item shift.num is exist - process it [02:30:58]requested_item shift.opened is exist - process it [02:30:58]req_shift_opened [02:30:58]FM_GetShiftState [02:30:58]SAM_PROTO_GetShiftState [02:30:58]wFMCommunicate request_size=4 [02:30:58]MH_SAM_APDU [02:30:58]CAPDU: 80 13 01 00 [02:30:58]Write to MH i2c: E2 08 00 E0 6D 80 13 01 00 00 00 00 00 CA [02:30:58]Write i2c OK [02:30:58]MH_I2C_Read... [02:30:58]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:30:58]Read from MH i2c: E2 [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: E2 0E 00 [02:30:58]MH_I2C_Read... [02:30:58]Read from MH i2c: E2 0E 00 E0 6D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F3 [02:30:58]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:30:58]wFMCommunicate OK [02:30:58]SAM_PROTO_GetShiftState done [02:30:58]FM_GetShiftState done [02:30:58]req_shift_opened done [02:30:58]requested_item shift.open_date is exist - process it [02:30:58]req_shift_open_date [02:30:58]req_shift_open_date done [02:30:58]produce_requested_data done [02:30:58]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139555,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:30:58]process_action_free close_receipt [02:30:58]json_value_free [02:30:58]json_value_free done [02:30:58]process_json_proto returns [02:30:58]Send response to host [02:30:58]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139555,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:30:58]free response buf [02:30:58]execute_script done [02:30:58]execute_script returns [02:30:58]free content buf [02:30:58]Sock 9.Close socket [02:30:58]Sock 9.Thread stoped [02:31:01]OFD Sender: No OFD packet to send [02:31:06]OFD Sender: No OFD packet to send [02:31:11]OFD Sender: No OFD packet to send [02:31:16]OFD Sender: No OFD packet to send [02:31:21]OFD Sender: No OFD packet to send [02:31:26]OFD Sender: No OFD packet to send [02:31:31]OFD Sender: No OFD packet to send [02:31:36]OFD Sender: No OFD packet to send [02:31:41]OFD Sender: No OFD packet to send [02:31:46]OFD Sender: No OFD packet to send [02:31:51]OFD Sender: No OFD packet to send [02:31:56]OFD Sender: No OFD packet to send [02:32:01]OFD Sender: No OFD packet to send [02:32:07]OFD Sender: No OFD packet to send [02:32:12]OFD Sender: No OFD packet to send [02:32:17]OFD Sender: No OFD packet to send [02:32:22]OFD Sender: No OFD packet to send [02:32:27]OFD Sender: No OFD packet to send [02:32:32]OFD Sender: No OFD packet to send [02:32:37]OFD Sender: No OFD packet to send [02:32:42]OFD Sender: No OFD packet to send [02:32:47]OFD Sender: No OFD packet to send [02:32:52]OFD Sender: No OFD packet to send [02:32:57]OFD Sender: No OFD packet to send [02:33:02]OFD Sender: No OFD packet to send [02:33:07]OFD Sender: No OFD packet to send [02:33:12]OFD Sender: No OFD packet to send [02:33:17]OFD Sender: No OFD packet to send [02:33:22]OFD Sender: No OFD packet to send [02:33:27]OFD Sender: No OFD packet to send [02:33:32]OFD Sender: No OFD packet to send [02:33:37]OFD Sender: No OFD packet to send [02:33:42]OFD Sender: No OFD packet to send [02:33:47]OFD Sender: No OFD packet to send [02:33:52]OFD Sender: No OFD packet to send [02:33:57]OFD Sender: No OFD packet to send [02:34:02]OFD Sender: No OFD packet to send [02:34:07]OFD Sender: No OFD packet to send [02:34:12]OFD Sender: No OFD packet to send [02:34:17]OFD Sender: No OFD packet to send [02:34:22]OFD Sender: No OFD packet to send [02:34:27]OFD Sender: No OFD packet to send [02:34:32]OFD Sender: No OFD packet to send [02:34:37]OFD Sender: No OFD packet to send [02:34:42]OFD Sender: No OFD packet to send [02:34:47]OFD Sender: No OFD packet to send [02:34:52]OFD Sender: No OFD packet to send [02:34:57]OFD Sender: No OFD packet to send [02:35:02]OFD Sender: No OFD packet to send [02:35:07]OFD Sender: No OFD packet to send [02:35:12]OFD Sender: No OFD packet to send [02:35:17]OFD Sender: No OFD packet to send [02:35:22]OFD Sender: No OFD packet to send [02:35:27]OFD Sender: No OFD packet to send [02:35:32]OFD Sender: No OFD packet to send [02:35:37]OFD Sender: No OFD packet to send [02:35:42]OFD Sender: No OFD packet to send [02:35:44]accept exits with 8 [02:35:44]New connection [02:35:44]New thread 3067141476 created [02:35:44]Thread 3067284836 joined [02:35:44]Waiting for new connection... [02:35:44] Sock 8.Parse request [02:35:44]Sock 8.Check first char [02:35:44]Sock 8.First char is OK [02:35:44]request: POST /json_proto HTTP/1.0 [02:35:44]Method: POST [02:35:44]URL: /json_proto [02:35:44]Method is POST - this is cgi request [02:35:44]url: /json_proto [02:35:44]query_string will be loaded in cgi processing [02:35:44]execute_cgi json_proto POST (null) [02:35:44]execute_cgi path=json_proto method=POST [02:35:44]POST find Content-Length [02:35:44]Host: 172.17.50.196:8080 [02:35:44]Content-Length: 905 [02:35:44]Content-Type: application/json [02:35:44] [02:35:44]POST finish read [02:35:44]Found Content-Length = 905 [02:35:44]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335437", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:44]execute_script... [02:35: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 : (3)335437", "tax_sys" : 0, "items" : [ { "code": "4607065001445", "name": "\u0428\u043E\u043A \u0431\u0430\u0442\u043E\u043D\u0447\u0438\u043A Snickers 50,5\u0433", "price" : 59.00, "quantity" : 1.000, "sum" : 59.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 189.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:35:44]POST & json_proto [02:35:44]process_json_proto [02:35:44]json parsed OK: [02:35:44]protocol is kg_v1.0 [02:35:44]action value=close_receipt [02:35:44]process_action close_receipt [02:35:44]cmd_close_receipt [02:35:44]MH_GetDate [02:35:44]Write to MH i2c: F0 00 00 E1 6D 3D [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: F0 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: F0 09 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: F0 09 00 E1 6D 00 08 ED 22 67 72 0D 1C 67 C6 [02:35:44]GetLastDocTimeStamp 1730341862 [02:35:44]current date 1730342152 [02:35:44]FM_GetShiftState [02:35:44]SAM_PROTO_GetShiftState [02:35:44]wFMCommunicate request_size=4 [02:35:44]MH_SAM_APDU [02:35:44]CAPDU: 80 13 01 00 [02:35:44]Write to MH i2c: E2 08 00 E2 6D 80 13 01 00 00 00 00 00 CC [02:35:44]Write i2c OK [02:35:44]MH_I2C_Read... [02:35:44]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:44]Read from MH i2c: E2 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 0E 00 [02:35:44]MH_I2C_Read... [02:35:44]Read from MH i2c: E2 0E 00 E2 6D 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 F5 [02:35:44]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:35:44]wFMCommunicate OK [02:35:44]SAM_PROTO_GetShiftState done [02:35:44]FM_GetShiftState done [02:35:44]opened in 1730332621 [02:35:44]opened+sec_in_day 1730419021 [02:35:44]quantity*price = 5900 [02:35:44]sum+1 = 5901 [02:35:44]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 189.00 НСП 1% : 1.67 НДС 12% : 20.06 Наличными: 189.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 33 31.10.2024 02:35 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139556 ФПД: 168963323739879 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T023552&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139556&fm=168963323739879&tin=02508201610067®Number=0000000000091631&sum=18900 0 [02:35:45]StoreToDocumentArchive [02:35:45]shift 557 fd 139556 [02:35:45]save to /storage/0557/doc_00139556 [02:35:45]save last doc name /storage/0557/doc_00139556 to /storage/kkm_last_doc_name [02:35:45]save OK [02:35:45]Clear old archive folders... [02:35:45]ProcessDocumentItem done err = 0, tmpTLVsize=393 [02:35:45]tlvbuf is 01262C60 [02:35:45]SAM_PROTO_ClearQueue [02:35:45]wFMCommunicate request_size=4 [02:35:45]MH_SAM_APDU [02:35:45]CAPDU: 80 09 00 00 [02:35:45]Write to MH i2c: E2 08 00 EF 6D 80 09 00 00 00 00 00 00 CE [02:35:45]Write i2c OK [02:35:45]MH_I2C_Read... [02:35:45]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:35:45]Read from MH i2c: E2 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: E2 03 00 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: E2 03 00 EF 6D 00 90 00 D0 [02:35:45]RAPDU: 90 00 [02:35:45]wFMCommunicate OK [02:35:45]SAM_PROTO_ClearQueue done [02:35:45]KKMCreateOFDPacket [02:35:45]OFDProtocolAddRootSTLVToBuf [02:35:45]FM_MakeSignedData [02:35:45]FM_MakeSignedData [02:35:45]SAM_PROTO_SignData [02:35:45]wFMCommunicate request_size=4 [02:35:45]MH_SAM_APDU [02:35:45]CAPDU: 80 0D 01 02 [02:35:45]Write to MH i2c: E2 08 00 F0 6D 80 0D 01 02 00 00 00 00 D6 [02:35:45]Write i2c OK [02:35:45]MH_I2C_Read... [02:35:45]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:35:45]Read from MH i2c: E2 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: E2 03 00 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: E2 03 00 F0 6D 00 90 00 D1 [02:35:45]RAPDU: 90 00 [02:35:45]wFMCommunicate OK [02:35:45]wFMCommunicate request_size=255 [02:35:45]MH_SAM_APDU [02:35:45]CAPDU: 80 0D 02 02 FA 03 00 89 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 [02:35:45]Write to MH i2c: E2 02 01 F1 6D 80 0D 02 02 FA 00 03 00 89 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 00 00 9C [02:35:45]Write i2c OK [02:35:45]MH_I2C_Read... [02:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:45]Read from MH i2c: E2 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: E2 03 00 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: E2 03 00 F1 6D 00 90 00 D2 [02:35:45]RAPDU: 90 00 [02:35:45]wFMCommunicate OK [02:35:45]wFMCommunicate request_size=152 [02:35:45]MH_SAM_APDU [02:35:45]CAPDU: 80 0D 02 02 93 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 07 00 00 00 00 07 04 06 00 D4 49 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 00 00 00 F4 03 04 00 08 ED 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 21 02 00 35 04 06 00 99 AB D6 E4 3E E7 [02:35:45]Write to MH i2c: E2 9B 00 F2 6D 80 0D 02 02 93 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 07 00 00 00 00 07 04 06 00 D4 49 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 00 00 00 F4 03 04 00 08 ED 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 21 02 00 35 04 06 00 99 AB D6 E4 3E E7 00 00 03 [02:35:45]Write i2c OK [02:35:45]MH_I2C_Read... [02:35:45]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:35:45]Read from MH i2c: E2 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: E2 03 00 [02:35:45]MH_I2C_Read... [02:35:45]Read from MH i2c: E2 03 00 F2 6D 00 90 00 D3 [02:35:45]RAPDU: 90 00 [02:35:45]wFMCommunicate OK [02:35:45]wFMCommunicate request_size=4 [02:35:45]MH_SAM_APDU [02:35:45]CAPDU: 80 0D 03 02 [02:35:45]Write to MH i2c: E2 08 00 F3 6D 80 0D 03 02 00 00 00 00 DB [02:35:45]Write i2c OK [02:35:45]MH_I2C_Read... [02:35:45]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:35:46]Read from MH i2c: E2 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: E2 0B 00 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: E2 0B 00 F3 6D 00 ED 01 C1 C7 0A 10 02 60 90 00 CE [02:35:46]RAPDU: ED 01 C1 C7 0A 10 02 60 90 00 [02:35:46]wFMCommunicate OK [02:35:46]SAM_PROTO_SignData done [02:35:46]FM_MakeSignedData done [02:35:46]CreateOFDProtocolMessage [02:35:46]wFMCommunicate request_size=4 [02:35:46]MH_SAM_APDU [02:35:46]CAPDU: 80 11 00 00 [02:35:46]Write to MH i2c: E2 08 00 F4 6D 80 11 00 00 00 00 00 00 DB [02:35:46]Write i2c OK [02:35:46]MH_I2C_Read... [02:35:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:46]Read from MH i2c: E2 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: E2 17 00 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: E2 17 00 F4 6D 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 36 [02:35:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:35:46]wFMCommunicate OK [02:35:46]CreateOFDProtocolMessage done [02:35:46]OFDSenderStorePacket 139556 [02:35:46]StoreOFDPacket docnum=139556 [02:35:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9D 01 00 00 13 B9 95 01 8D 49 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 07 00 00 00 00 07 04 06 00 D4 49 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 00 00 00 F4 03 04 00 08 ED 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 21 02 00 35 04 06 00 99 AB D6 E4 3E E7 ED 01 C1 C7 0A 10 02 60 [02:35:46]CheckFolder [02:35:46]dirname=/storage/ofd_packets [02:35:46]CheckFolder done [02:35:46]ProducePacketName [02:35:46]name=ofd_packets/00139556 [02:35:46]NVStorageSaveData ofd_packets/00139556 [02:35:46]File name is /storage/ofd_packets/00139556 [02:35:46]Write 443 bytes [02:35:46]NVStorageSaveData done [02:35:46]OFDSenderStorePacket done [02:35:46]KKMCreateOFDPacket done [02:35:46]NVStorageSaveData kkm_last_timestamp [02:35:46]File name is /storage/kkm_last_timestamp [02:35:46]Write 4 bytes [02:35:46]NVStorageSaveData done [02:35:46]ExternCall_PrintAddStr [02:35:46]wPrintStart [02:35:46]Write to MH i2c: 01 00 00 F5 6D 62 [02:35:46]Write i2c OK [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: 01 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: 01 07 00 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: 01 07 00 F5 6D 00 00 00 00 00 FF 0F 77 [02:35:46]RasterBufferAndPrint [02:35:46]line Счет N : (3)335437 [02:35:46]line ИНН: 02508201610067 [02:35:46]line Контрольно-Кассовый Чек [02:35:46]line ПРОДАЖА [02:35:46]line Товар: 4607065001445 [02:35:46]line Шок батончик Snickers 50,5г [02:35:46]line 1.000 * 59.00 [02:35:46]line = 59.00 [02:35:46]line НДС 12% НСП 1% [02:35:46]line > о реализуемом товаре [02:35:46]line Товар: 2000036220012 [02:35:46]line Кофе Капучино XL(GABB TRADE) [02:35:46]line 1.000 * 130.00 [02:35:46]line = 130.00 [02:35:46]line НДС 12% НСП 1% [02:35:46]line > о реализуемом товаре [02:35:46]line ИТОГО: 189.00 [02:35:46]line НСП 1% : 1.67 [02:35:46]line НДС 12% : 20.06 [02:35:46]line Наличными: 189.00 [02:35:46]line Безнал.: 0.00 [02:35:46]line Место: АЗС № 101 "Партнер Нефть" [02:35:46]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:35:46]line СНО: Общий режим [02:35:46]line Чек 33 31.10.2024 02:35 [02:35:46]line Смена: 557 ФФД: 1.0 [02:35:46]line ЗНМ: 0300000081 [02:35:46]line РНМ: 0000000000091631 [02:35:46]line Версия ККМ: 001 [02:35:46]line ФМ: 0000000000874669 [02:35:46]line ФД: 139556 [02:35:46]line ФПД: 168963323739879 [02:35:46]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T023552&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139556&fm=168963323739879&tin=02508201610067®Number=0000000000091631&sum=18900 [02:35:46]OFD Sender: Processing packet 139556 [packets to send 34, broken 33] [02:35:46]ProducePacketName [02:35:46]name=ofd_packets/00139556 [02:35:46]OFD Sender: To server: pG, [02:35:46]CommunicateWithHost lk.salyk.kg:30040 [02:35:46]ConnectInit lk.salyk.kg [02:35:46]line 0 [02:35:46]written 0, free lines is 4095 [02:35:46]Connected sock=10 [02:35:46]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 9D 01 00 00 13 B9 95 01 8D 49 5A 03 01 00 03 00 89 01 1E 04 01 00 01 23 04 6B 00 8A 04 0D 00 34 36 30 37 30 36 35 30 30 31 34 34 35 06 04 27 00 D0 A8 D0 BE D0 BA 20 D0 B1 D0 B0 D1 82 D0 BE D0 BD D1 87 D0 B8 D0 BA 20 53 6E 69 63 6B 65 72 73 20 35 30 2C 35 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 0C 17 00 00 00 00 13 04 06 00 0C 17 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D4 49 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A7 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 D6 07 00 00 00 00 07 04 06 00 D4 49 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 00 00 00 F4 03 04 00 08 ED 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 21 02 00 35 04 06 00 99 AB D6 E4 3E E7 ED 01 C1 C7 0A 10 02 60 [02:35:46]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 5A D3 47 00 BB D0 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 24 21 02 00 F4 03 04 00 B7 98 22 67 B6 04 01 00 00 E0 CB C3 30 40 AE 5C A1 [02:35:46]CommunicateWithHost err = 0 [02:35:46]CheckOFDResponse [02:35:46]1017 (14) - 77093643461234 [02:35:46]1041 (16) - 0000000000874669 [02:35:46]1040 (4) - 139556 [02:35:46]1012 (4) - 30.10.2024 20:36 [02:35:46]1206 (1) - 0 [02:35:46]OFD Sender: Remove packet 139556 [02:35:46]ProducePacketName [02:35:46]name=ofd_packets/00139556 [02:35:46]NVStorageDeleteData [02:35:46]Write to MH i2c: 01 00 00 24 6E 92 [02:35:46]Write i2c OK [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: 01 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: 01 07 00 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: 01 07 00 24 6E 00 00 00 00 00 C3 0C 68 [02:35:46]RasterBufferAndPrint [02:35:46]line [02:35:46]line [02:35:46]line [02:35:46]line [02:35:46]line [02:35:46]written 0, free lines is 3273 [02:35:46]MH_Cut [02:35:46]Write to MH i2c: D1 01 00 2B 6E 01 6B [02:35:46]Write i2c OK [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: D1 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: D1 01 00 [02:35:46]MH_I2C_Read... [02:35:46]Read from MH i2c: D1 01 00 2B 6E 00 6A [02:35:46]Write to MH i2c: 01 00 00 2C 6E 9A [02:35:46]Write i2c OK [02:35:46]MH_I2C_Read... [02:35:47]OFD Sender: No OFD packet to send [02:35:47]*** Cut start [02:35:47]*** Partial cut [02:35:47]*** CUTSNS_PIN = 1 [02:35:47]*** CUTSNS_PIN = 0 [02:35:47]*** Brake cut motor [02:35:48]Read from MH i2c: 01 [02:35:48]MH_I2C_Read... [02:35:48]*** Stop cut motor [02:35:48]*** Cut end [02:35:48]Read from MH i2c: 01 07 00 [02:35:48]MH_I2C_Read... [02:35:48]Read from MH i2c: 01 07 00 2C 6E 00 00 00 00 00 FF 0F AF [02:35:48]process_action close_receipt done [02:35:48]requested_data is exist [02:35:48]produce_requested_data [02:35:48]requested_item fm.sn is exist - process it [02:35:48]wFMCommunicate request_size=4 [02:35:48]MH_SAM_APDU [02:35:48]CAPDU: 80 11 00 00 [02:35:48]Write to MH i2c: E2 08 00 2D 6E 80 11 00 00 00 00 00 00 15 [02:35:48]Write i2c OK [02:35:48]MH_I2C_Read... [02:35:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:35:48]Read from MH i2c: E2 [02:35:48]MH_I2C_Read... [02:35:48]Read from MH i2c: E2 17 00 [02:35:48]MH_I2C_Read... [02:35:48]Read from MH i2c: E2 17 00 2D 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 70 [02:35:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:35:48]wFMCommunicate OK [02:35:48]requested_item fd.num is exist - process it [02:35:48]SAM_PROTO_GetFieldsCounters [02:35:48]wFMCommunicate request_size=4 [02:35:48]MH_SAM_APDU [02:35:48]CAPDU: 80 13 00 00 [02:35:48]Write to MH i2c: E2 08 00 2E 6E 80 13 00 00 00 00 00 00 18 [02:35:48]Write i2c OK [02:35:48]MH_I2C_Read... [02:35:48]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:35:48]Read from MH i2c: E2 [02:35:48]MH_I2C_Read... [02:35:48]Read from MH i2c: E2 62 00 [02:35:48]MH_I2C_Read... [02:35:48]Read from MH i2c: E2 62 00 2E 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 24 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 15 [02:35:48]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 24 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 21 00 00 00 5E 04 04 00 21 00 00 00 57 04 04 00 22 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:35:48]wFMCommunicate OK [02:35:48]SAM_PROTO_GetFieldsCounters done [02:35:48]requested_item shift.num is exist - process it [02:35:48]requested_item shift.opened is exist - process it [02:35:48]req_shift_opened [02:35:48]FM_GetShiftState [02:35:48]SAM_PROTO_GetShiftState [02:35:48]wFMCommunicate request_size=4 [02:35:48]MH_SAM_APDU [02:35:48]CAPDU: 80 13 01 00 [02:35:48]Write to MH i2c: E2 08 00 2F 6E 80 13 01 00 00 00 00 00 1A [02:35:48]Write i2c OK [02:35:48]MH_I2C_Read... [02:35:48]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:35:48]Read from MH i2c: E2 [02:35:48]MH_I2C_Read... [02:35:48]Read from MH i2c: E2 0E 00 [02:35:48]MH_I2C_Read... [02:35:48]Read from MH i2c: E2 0E 00 2F 6E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 43 [02:35:48]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:35:48]wFMCommunicate OK [02:35:48]SAM_PROTO_GetShiftState done [02:35:48]FM_GetShiftState done [02:35:48]req_shift_opened done [02:35:48]requested_item shift.open_date is exist - process it [02:35:48]req_shift_open_date [02:35:48]req_shift_open_date done [02:35:48]produce_requested_data done [02:35:48]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139556,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:35:48]process_action_free close_receipt [02:35:48]json_value_free [02:35:48]json_value_free done [02:35:48]process_json_proto returns [02:35:48]Send response to host [02:35:48]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139556,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:35:48]free response buf [02:35:48]execute_script done [02:35:48]execute_script returns [02:35:48]free content buf [02:35:48]Sock 8.Close socket [02:35:48]Sock 8.Thread stoped [02:35:52]OFD Sender: No OFD packet to send [02:35:57]OFD Sender: No OFD packet to send [02:36:02]OFD Sender: No OFD packet to send [02:36:07]OFD Sender: No OFD packet to send [02:36:12]OFD Sender: No OFD packet to send [02:36:17]OFD Sender: No OFD packet to send [02:36:22]OFD Sender: No OFD packet to send [02:36:27]OFD Sender: No OFD packet to send [02:36:32]OFD Sender: No OFD packet to send [02:36:37]OFD Sender: No OFD packet to send [02:36:42]OFD Sender: No OFD packet to send [02:36:47]OFD Sender: No OFD packet to send [02:36:52]OFD Sender: No OFD packet to send [02:36:57]OFD Sender: No OFD packet to send [02:37:02]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]accept exits with 9 [02:38:02]New connection [02:38:02]New thread 3067284836 created [02:38:02]Thread 3067141476 joined [02:38:02]Waiting for new connection... [02:38:02] Sock 9.Parse request [02:38:02]Sock 9.Check first char [02:38:02]Sock 9.First char is OK [02:38:02]request: POST /json_proto HTTP/1.0 [02:38:02]Method: POST [02:38:02]URL: /json_proto [02:38:02]Method is POST - this is cgi request [02:38:02]url: /json_proto [02:38:02]query_string will be loaded in cgi processing [02:38:02]execute_cgi json_proto POST (null) [02:38:02]execute_cgi path=json_proto method=POST [02:38:02]POST find Content-Length [02:38:02]Host: 172.17.50.196:8080 [02:38:02]Content-Length: 795 [02:38:02]Content-Type: application/json [02:38:02] [02:38:02]POST finish read [02:38:02]Found Content-Length = 795 [02:38:02]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335438", "tax_sys" : 0, "items" : [ { "code": "5449000189301", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:02]execute_script... [02:38:02]execute_script path=json_proto method=POST query_string={ "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335438", "tax_sys" : 0, "items" : [ { "code": "5449000189301", "name": "\u0425\u043E\u043B\u043E\u0434\u043D\u044B\u0439 \u0447\u0430\u0439 Fuse \u043B\u0438\u043C\u043E\u043D 0,5\u043B", "price" : 75.00, "quantity" : 1.000, "sum" : 75.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" : 75.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:38:02]POST & json_proto [02:38:02]process_json_proto [02:38:02]json parsed OK: [02:38:02]protocol is kg_v1.0 [02:38:02]action value=close_receipt [02:38:02]process_action close_receipt [02:38:02]cmd_close_receipt [02:38:02]MH_GetDate [02:38:02]Write to MH i2c: F0 00 00 30 6E 8D [02:38:02]Write i2c OK [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: F0 [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: F0 09 00 [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: F0 09 00 30 6E 00 92 ED 22 67 72 0D 1C 67 A0 [02:38:02]GetLastDocTimeStamp 1730342152 [02:38:02]current date 1730342290 [02:38:02]FM_GetShiftState [02:38:02]SAM_PROTO_GetShiftState [02:38:02]wFMCommunicate request_size=4 [02:38:02]MH_SAM_APDU [02:38:02]CAPDU: 80 13 01 00 [02:38:02]Write to MH i2c: E2 08 00 31 6E 80 13 01 00 00 00 00 00 1C [02:38:02]Write i2c OK [02:38:02]MH_I2C_Read... [02:38:02]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:02]Read from MH i2c: E2 [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: E2 0E 00 [02:38:02]MH_I2C_Read... [02:38:02]Read from MH i2c: E2 0E 00 31 6E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 45 [02:38:02]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:38:02]wFMCommunicate OK [02:38:02]SAM_PROTO_GetShiftState done [02:38:02]FM_GetShiftState done [02:38:02]opened in 1730332621 [02:38:02]opened+sec_in_day 1730419021 [02:38:02]quantity*price = 7500 [02:38:02]sum+1 = 7501 [02:38:02]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 75.00 НСП 1% : 0.66 НДС 12% : 7.96 Наличными: 0.00 Безнал.: 75.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 34 31.10.2024 02:38 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 Платежная система: Mbank ФМ: 0000000000874669 ФД: 139557 ФПД: 49317363860871 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T023810&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139557&fm=49317363860871&tin=02508201610067®Number=0000000000091631&sum=7500 0 [02:38:03]StoreToDocumentArchive [02:38:03]shift 557 fd 139557 [02:38:03]save to /storage/0557/doc_00139557 [02:38:03]save last doc name /storage/0557/doc_00139557 to /storage/kkm_last_doc_name [02:38:03]save OK [02:38:03]Clear old archive folders... [02:38:03]ProcessDocumentItem done err = 0, tmpTLVsize=287 [02:38:03]tlvbuf is 01163FC0 [02:38:03]SAM_PROTO_ClearQueue [02:38:03]wFMCommunicate request_size=4 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 09 00 00 [02:38:03]Write to MH i2c: E2 08 00 3E 6E 80 09 00 00 00 00 00 00 1E [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 3E 6E 00 90 00 20 [02:38:03]RAPDU: 90 00 [02:38:03]wFMCommunicate OK [02:38:03]SAM_PROTO_ClearQueue done [02:38:03]KKMCreateOFDPacket [02:38:03]OFDProtocolAddRootSTLVToBuf [02:38:03]FM_MakeSignedData [02:38:03]FM_MakeSignedData [02:38:03]SAM_PROTO_SignData [02:38:03]wFMCommunicate request_size=4 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 0D 01 02 [02:38:03]Write to MH i2c: E2 08 00 3F 6E 80 0D 01 02 00 00 00 00 26 [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 3F 6E 00 90 00 21 [02:38:03]RAPDU: 90 00 [02:38:03]wFMCommunicate OK [02:38:03]wFMCommunicate request_size=255 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 92 ED 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [02:38:03]Write to MH i2c: E2 02 01 40 6E 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 92 ED 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 35 [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 40 6E 00 90 00 22 [02:38:03]RAPDU: 90 00 [02:38:03]wFMCommunicate OK [02:38:03]wFMCommunicate request_size=46 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 0D 02 02 29 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 25 21 02 00 35 04 06 00 2C DA 97 F4 45 87 [02:38:03]Write to MH i2c: E2 31 00 41 6E 80 0D 02 02 29 00 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 25 21 02 00 35 04 06 00 2C DA 97 F4 45 87 00 00 5E [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 03 00 41 6E 00 90 00 23 [02:38:03]RAPDU: 90 00 [02:38:03]wFMCommunicate OK [02:38:03]wFMCommunicate request_size=4 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 0D 03 02 [02:38:03]Write to MH i2c: E2 08 00 42 6E 80 0D 03 02 00 00 00 00 2B [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 0B 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 0B 00 42 6E 00 1D F1 31 FB 24 01 33 25 90 00 E3 [02:38:03]RAPDU: 1D F1 31 FB 24 01 33 25 90 00 [02:38:03]wFMCommunicate OK [02:38:03]SAM_PROTO_SignData done [02:38:03]FM_MakeSignedData done [02:38:03]CreateOFDProtocolMessage [02:38:03]wFMCommunicate request_size=4 [02:38:03]MH_SAM_APDU [02:38:03]CAPDU: 80 11 00 00 [02:38:03]Write to MH i2c: E2 08 00 43 6E 80 11 00 00 00 00 00 00 2B [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:03]Read from MH i2c: E2 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 17 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: E2 17 00 43 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 86 [02:38:03]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:38:03]wFMCommunicate OK [02:38:03]CreateOFDProtocolMessage done [02:38:03]OFDSenderStorePacket 139557 [02:38:03]StoreOFDPacket docnum=139557 [02:38:03]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 33 01 00 00 7A 2B 2B 01 BD BF 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 92 ED 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 25 21 02 00 35 04 06 00 2C DA 97 F4 45 87 1D F1 31 FB 24 01 33 25 [02:38:03]CheckFolder [02:38:03]dirname=/storage/ofd_packets [02:38:03]CheckFolder done [02:38:03]ProducePacketName [02:38:03]name=ofd_packets/00139557 [02:38:03]NVStorageSaveData ofd_packets/00139557 [02:38:03]File name is /storage/ofd_packets/00139557 [02:38:03]Write 337 bytes [02:38:03]NVStorageSaveData done [02:38:03]OFDSenderStorePacket done [02:38:03]KKMCreateOFDPacket done [02:38:03]NVStorageSaveData kkm_last_timestamp [02:38:03]File name is /storage/kkm_last_timestamp [02:38:03]Write 4 bytes [02:38:03]NVStorageSaveData done [02:38:03]ExternCall_PrintAddStr [02:38:03]wPrintStart [02:38:03]Write to MH i2c: 01 00 00 44 6E B2 [02:38:03]Write i2c OK [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: 01 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: 01 07 00 [02:38:03]MH_I2C_Read... [02:38:03]Read from MH i2c: 01 07 00 44 6E 00 00 00 00 00 FF 0F C7 [02:38:03]RasterBufferAndPrint [02:38:03]line Счет N : (3)335438 [02:38:03]line ИНН: 02508201610067 [02:38:03]line Контрольно-Кассовый Чек [02:38:03]line ПРОДАЖА [02:38:03]line Товар: 5449000189301 [02:38:03]line Холодный чай Fuse лимон 0,5л [02:38:03]line 1.000 * 75.00 [02:38:03]line = 75.00 [02:38:03]line НДС 12% НСП 1% [02:38:03]line > о реализуемом товаре [02:38:03]line ИТОГО: 75.00 [02:38:03]line НСП 1% : 0.66 [02:38:03]line НДС 12% : 7.96 [02:38:03]line Наличными: 0.00 [02:38:03]line Безнал.: 75.00 [02:38:03]line Место: АЗС № 101 "Партнер Нефть" [02:38:03]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:38:03]line СНО: Общий режим [02:38:03]line Чек 34 31.10.2024 02:38 [02:38:03]line Смена: 557 ФФД: 1.0 [02:38:03]line ЗНМ: 0300000081 [02:38:03]line РНМ: 0000000000091631 [02:38:03]line Версия ККМ: 001 [02:38:03]line Платежная система: Mbank [02:38:03]line ФМ: 0000000000874669 [02:38:03]line ФД: 139557 [02:38:03]line ФПД: 49317363860871 [02:38:04]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T023810&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139557&fm=49317363860871&tin=02508201610067®Number=0000000000091631&sum=7500 [02:38:04]line 0 [02:38:04]OFD Sender: Processing packet 139557 [packets to send 34, broken 33] [02:38:04]ProducePacketName [02:38:04]name=ofd_packets/00139557 [02:38:04]OFD Sender: To server: pG, [02:38:04]CommunicateWithHost lk.salyk.kg:30040 [02:38:04]ConnectInit lk.salyk.kg [02:38:04]written 0, free lines is 4095 [02:38:04]Connected sock=10 [02:38:04]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 33 01 00 00 7A 2B 2B 01 BD BF 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 38 39 33 30 31 06 04 2D 00 D0 A5 D0 BE D0 BB D0 BE D0 B4 D0 BD D1 8B D0 B9 20 D1 87 D0 B0 D0 B9 20 46 75 73 65 20 D0 BB D0 B8 D0 BC D0 BE D0 BD 20 30 2C 35 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 4C 1D 00 00 00 00 13 04 06 00 4C 1D 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 4C 1D 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 42 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 1C 03 00 00 00 00 07 04 06 00 00 00 00 00 00 00 39 04 06 00 4C 1D 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 22 00 00 00 F4 03 04 00 92 ED 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 25 21 02 00 35 04 06 00 2C DA 97 F4 45 87 1D F1 31 FB 24 01 33 25 [02:38:04]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 49 B2 47 00 40 54 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 25 21 02 00 F4 03 04 00 41 99 22 67 B6 04 01 00 00 39 B7 AD 3F 46 A5 44 50 [02:38:04]CommunicateWithHost err = 0 [02:38:04]CheckOFDResponse [02:38:04]1017 (14) - 77093643461234 [02:38:04]1041 (16) - 0000000000874669 [02:38:04]1040 (4) - 139557 [02:38:04]1012 (4) - 30.10.2024 20:38 [02:38:04]1206 (1) - 0 [02:38:04]OFD Sender: Remove packet 139557 [02:38:04]ProducePacketName [02:38:04]name=ofd_packets/00139557 [02:38:04]NVStorageDeleteData [02:38:04]Write to MH i2c: 01 00 00 6E 6E DC [02:38:04]Write i2c OK [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: 01 [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: 01 07 00 [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: 01 07 00 6E 6E 00 00 00 00 00 EF 0C DE [02:38:04]RasterBufferAndPrint [02:38:04]line [02:38:04]line [02:38:04]line [02:38:04]line [02:38:04]line [02:38:04]written 0, free lines is 3320 [02:38:04]MH_Cut [02:38:04]Write to MH i2c: D1 01 00 75 6E 01 B5 [02:38:04]Write i2c OK [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: D1 [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: D1 01 00 [02:38:04]MH_I2C_Read... [02:38:04]Read from MH i2c: D1 01 00 75 6E 00 B4 [02:38:04]Write to MH i2c: 01 00 00 76 6E E4 [02:38:04]Write i2c OK [02:38:04]MH_I2C_Read... [02:38:04]OFD Sender: No OFD packet to send [02:38:05]*** Cut start [02:38:05]*** Partial cut [02:38:05]*** CUTSNS_PIN = 1 [02:38:05]*** CUTSNS_PIN = 0 [02:38:05]*** Brake cut motor [02:38:05]Read from MH i2c: 01 [02:38:05]MH_I2C_Read... [02:38:05]*** Stop cut motor [02:38:05]*** Cut end [02:38:05]Read from MH i2c: 01 07 00 [02:38:05]MH_I2C_Read... [02:38:05]Read from MH i2c: 01 07 00 76 6E 00 00 00 00 00 FF 0F F9 [02:38:05]process_action close_receipt done [02:38:05]requested_data is exist [02:38:05]produce_requested_data [02:38:05]requested_item fm.sn is exist - process it [02:38:05]wFMCommunicate request_size=4 [02:38:05]MH_SAM_APDU [02:38:05]CAPDU: 80 11 00 00 [02:38:05]Write to MH i2c: E2 08 00 77 6E 80 11 00 00 00 00 00 00 5F [02:38:05]Write i2c OK [02:38:05]MH_I2C_Read... [02:38:05]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:38:05]Read from MH i2c: E2 [02:38:05]MH_I2C_Read... [02:38:05]Read from MH i2c: E2 17 00 [02:38:05]MH_I2C_Read... [02:38:05]Read from MH i2c: E2 17 00 77 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 BA [02:38:05]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:38:05]wFMCommunicate OK [02:38:05]requested_item fd.num is exist - process it [02:38:05]SAM_PROTO_GetFieldsCounters [02:38:05]wFMCommunicate request_size=4 [02:38:05]MH_SAM_APDU [02:38:05]CAPDU: 80 13 00 00 [02:38:05]Write to MH i2c: E2 08 00 78 6E 80 13 00 00 00 00 00 00 62 [02:38:05]Write i2c OK [02:38:05]MH_I2C_Read... [02:38:06]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:38:06]Read from MH i2c: E2 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 62 00 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 62 00 78 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 25 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 63 [02:38:06]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 25 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 22 00 00 00 5E 04 04 00 22 00 00 00 57 04 04 00 23 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:38:06]wFMCommunicate OK [02:38:06]SAM_PROTO_GetFieldsCounters done [02:38:06]requested_item shift.num is exist - process it [02:38:06]requested_item shift.opened is exist - process it [02:38:06]req_shift_opened [02:38:06]FM_GetShiftState [02:38:06]SAM_PROTO_GetShiftState [02:38:06]wFMCommunicate request_size=4 [02:38:06]MH_SAM_APDU [02:38:06]CAPDU: 80 13 01 00 [02:38:06]Write to MH i2c: E2 08 00 79 6E 80 13 01 00 00 00 00 00 64 [02:38:06]Write i2c OK [02:38:06]MH_I2C_Read... [02:38:06]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:38:06]Read from MH i2c: E2 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 0E 00 [02:38:06]MH_I2C_Read... [02:38:06]Read from MH i2c: E2 0E 00 79 6E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8D [02:38:06]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:38:06]wFMCommunicate OK [02:38:06]SAM_PROTO_GetShiftState done [02:38:06]FM_GetShiftState done [02:38:06]req_shift_opened done [02:38:06]requested_item shift.open_date is exist - process it [02:38:06]req_shift_open_date [02:38:06]req_shift_open_date done [02:38:06]produce_requested_data done [02:38:06]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139557,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:38:06]process_action_free close_receipt [02:38:06]json_value_free [02:38:06]json_value_free done [02:38:06]process_json_proto returns [02:38:06]Send response to host [02:38:06]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139557,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:38:06]free response buf [02:38:06]execute_script done [02:38:06]execute_script returns [02:38:06]free content buf [02:38:06]Sock 9.Close socket [02:38:06]Sock 9.Thread stoped [02:38:09]OFD Sender: No OFD packet to send [02:38:14]OFD Sender: No OFD packet to send [02:38:19]OFD Sender: No OFD packet to send [02:38:24]OFD Sender: No OFD packet to send [02:38:29]OFD Sender: No OFD packet to send [02:38:34]OFD Sender: No OFD packet to send [02:38:39]OFD Sender: No OFD packet to send [02:38:44]OFD Sender: No OFD packet to send [02:38:49]OFD Sender: No OFD packet to send [02:38:54]OFD Sender: No OFD packet to send [02:38:59]OFD Sender: No OFD packet to send [02:39:04]OFD Sender: No OFD packet to send [02:39:10]OFD Sender: No OFD packet to send [02:39:15]OFD Sender: No OFD packet to send [02:39:20]OFD Sender: No OFD packet to send [02:39:25]OFD Sender: No OFD packet to send [02:39:30]OFD Sender: No OFD packet to send [02:39:35]OFD Sender: No OFD packet to send [02:39:40]OFD Sender: No OFD packet to send [02:39:45]OFD Sender: No OFD packet to send [02:39:50]OFD Sender: No OFD packet to send [02:39:55]OFD Sender: No OFD packet to send [02:40:00]OFD Sender: No OFD packet to send [02:40:05]OFD Sender: No OFD packet to send [02:40:10]OFD Sender: No OFD packet to send [02:40:15]OFD Sender: No OFD packet to send [02:40:20]OFD Sender: No OFD packet to send [02:40:25]OFD Sender: No OFD packet to send [02:40:30]OFD Sender: No OFD packet to send [02:40:35]OFD Sender: No OFD packet to send [02:40:40]OFD Sender: No OFD packet to send [02:40:45]OFD Sender: No OFD packet to send [02:40:50]OFD Sender: No OFD packet to send [02:40:55]OFD Sender: No OFD packet to send [02:41:00]OFD Sender: No OFD packet to send [02:41:05]OFD Sender: No OFD packet to send [02:41:10]OFD Sender: No OFD packet to send [02:41:15]OFD Sender: No OFD packet to send [02:41:20]OFD Sender: No OFD packet to send [02:41:25]OFD Sender: No OFD packet to send [02:41:30]OFD Sender: No OFD packet to send [02:41:35]OFD Sender: No OFD packet to send [02:41:40]OFD Sender: No OFD packet to send [02:41:45]OFD Sender: No OFD packet to send [02:41:50]OFD Sender: No OFD packet to send [02:41:55]OFD Sender: No OFD packet to send [02:42:00]OFD Sender: No OFD packet to send [02:42:05]OFD Sender: No OFD packet to send [02:42:10]OFD Sender: No OFD packet to send [02:42:15]OFD Sender: No OFD packet to send [02:42:20]OFD Sender: No OFD packet to send [02:42:25]OFD Sender: No OFD packet to send [02:42:30]OFD Sender: No OFD packet to send [02:42:35]OFD Sender: No OFD packet to send [02:42:40]OFD Sender: No OFD packet to send [02:42:45]OFD Sender: No OFD packet to send [02:42:50]OFD Sender: No OFD packet to send [02:42:55]OFD Sender: No OFD packet to send [02:43:00]OFD Sender: No OFD packet to send [02:43:05]OFD Sender: No OFD packet to send [02:43:10]OFD Sender: No OFD packet to send [02:43:15]OFD Sender: No OFD packet to send [02:43:20]OFD Sender: No OFD packet to send [02:43:25]OFD Sender: No OFD packet to send [02:43:30]OFD Sender: No OFD packet to send [02:43:35]OFD Sender: No OFD packet to send [02:43:40]OFD Sender: No OFD packet to send [02:43:45]OFD Sender: No OFD packet to send [02:43:47]accept exits with 8 [02:43:47]New connection [02:43:47]New thread 3067141476 created [02:43:47]Thread 3067284836 joined [02:43:47]Waiting for new connection... [02:43:47] Sock 8.Parse request [02:43:47]Sock 8.Check first char [02:43:47]Sock 8.First char is OK [02:43:47]request: POST /json_proto HTTP/1.0 [02:43:47]Method: POST [02:43:47]URL: /json_proto [02:43:47]Method is POST - this is cgi request [02:43:47]url: /json_proto [02:43:47]query_string will be loaded in cgi processing [02:43:47]execute_cgi json_proto POST (null) [02:43:47]execute_cgi path=json_proto method=POST [02:43:47]POST find Content-Length [02:43:47]Host: 172.17.50.196:8080 [02:43:47]Content-Length: 608 [02:43:47]Content-Type: application/json [02:43:47] [02:43:47]POST finish read [02:43:47]Found Content-Length = 608 [02:43:47]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335439", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:47]execute_script... [02:43: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 : (3)335439", "tax_sys" : 0, "items" : [ { "code": "46231529", "name": "Mentos \u041F\u0424 \u0410\u0440\u0431\u0443\u0437 6*100*2", "price" : 10.00, "quantity" : 1.000, "sum" : 10.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 10.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:47]POST & json_proto [02:43:47]process_json_proto [02:43:47]json parsed OK: [02:43:47]protocol is kg_v1.0 [02:43:47]action value=close_receipt [02:43:47]process_action close_receipt [02:43:47]cmd_close_receipt [02:43:47]MH_GetDate [02:43:47]Write to MH i2c: F0 00 00 7A 6E D7 [02:43:47]Write i2c OK [02:43:47]MH_I2C_Read... [02:43:47]Read from MH i2c: F0 [02:43:47]MH_I2C_Read... [02:43:47]Read from MH i2c: F0 09 00 [02:43:47]MH_I2C_Read... [02:43:47]Read from MH i2c: F0 09 00 7A 6E 00 EB EE 22 67 72 0D 1C 67 44 [02:43:47]GetLastDocTimeStamp 1730342290 [02:43:47]current date 1730342635 [02:43:47]FM_GetShiftState [02:43:47]SAM_PROTO_GetShiftState [02:43:47]wFMCommunicate request_size=4 [02:43:47]MH_SAM_APDU [02:43:47]CAPDU: 80 13 01 00 [02:43:47]Write to MH i2c: E2 08 00 7B 6E 80 13 01 00 00 00 00 00 66 [02:43:47]Write i2c OK [02:43:47]MH_I2C_Read... [02:43:47]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:47]Read from MH i2c: E2 [02:43:47]MH_I2C_Read... [02:43:47]Read from MH i2c: E2 0E 00 [02:43:47]MH_I2C_Read... [02:43:47]Read from MH i2c: E2 0E 00 7B 6E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 8F [02:43:47]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:43:47]wFMCommunicate OK [02:43:47]SAM_PROTO_GetShiftState done [02:43:47]FM_GetShiftState done [02:43:47]opened in 1730332621 [02:43:47]opened+sec_in_day 1730419021 [02:43:47]quantity*price = 1000 [02:43:47]sum+1 = 1001 [02:43:47]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 10.00 НСП 1% : 0.09 НДС 12% : 1.06 Наличными: 10.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 35 31.10.2024 02:43 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139558 ФПД: 145938037497225 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024355&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139558&fm=145938037497225&tin=02508201610067®Number=0000000000091631&sum=1000 0 [02:43:48]StoreToDocumentArchive [02:43:48]shift 557 fd 139558 [02:43:48]save to /storage/0557/doc_00139558 [02:43:48]save last doc name /storage/0557/doc_00139558 to /storage/kkm_last_doc_name [02:43:48]save OK [02:43:48]Clear old archive folders... [02:43:48]ProcessDocumentItem done err = 0, tmpTLVsize=267 [02:43:48]tlvbuf is 0129C9A0 [02:43:48]SAM_PROTO_ClearQueue [02:43:48]wFMCommunicate request_size=4 [02:43:48]MH_SAM_APDU [02:43:48]CAPDU: 80 09 00 00 [02:43:48]Write to MH i2c: E2 08 00 88 6E 80 09 00 00 00 00 00 00 68 [02:43:48]Write i2c OK [02:43:48]MH_I2C_Read... [02:43:48]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:43:48]Read from MH i2c: E2 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 03 00 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 03 00 88 6E 00 90 00 6A [02:43:48]RAPDU: 90 00 [02:43:48]wFMCommunicate OK [02:43:48]SAM_PROTO_ClearQueue done [02:43:48]KKMCreateOFDPacket [02:43:48]OFDProtocolAddRootSTLVToBuf [02:43:48]FM_MakeSignedData [02:43:48]FM_MakeSignedData [02:43:48]SAM_PROTO_SignData [02:43:48]wFMCommunicate request_size=4 [02:43:48]MH_SAM_APDU [02:43:48]CAPDU: 80 0D 01 02 [02:43:48]Write to MH i2c: E2 08 00 89 6E 80 0D 01 02 00 00 00 00 70 [02:43:48]Write i2c OK [02:43:48]MH_I2C_Read... [02:43:48]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:43:48]Read from MH i2c: E2 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 03 00 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 03 00 89 6E 00 90 00 6B [02:43:48]RAPDU: 90 00 [02:43:48]wFMCommunicate OK [02:43:48]wFMCommunicate request_size=255 [02:43:48]MH_SAM_APDU [02:43:48]CAPDU: 80 0D 02 02 FA 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 EB EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 [02:43:48]Write to MH i2c: E2 02 01 8A 6E 80 0D 02 02 FA 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 EB EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 00 00 B5 [02:43:48]Write i2c OK [02:43:48]MH_I2C_Read... [02:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:48]Read from MH i2c: E2 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 03 00 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 03 00 8A 6E 00 90 00 6C [02:43:48]RAPDU: 90 00 [02:43:48]wFMCommunicate OK [02:43:48]wFMCommunicate request_size=26 [02:43:48]MH_SAM_APDU [02:43:48]CAPDU: 80 0D 02 02 15 36 36 39 10 04 04 00 26 21 02 00 35 04 06 00 84 BA D8 E2 5D 89 [02:43:48]Write to MH i2c: E2 1D 00 8B 6E 80 0D 02 02 15 00 36 36 39 10 04 04 00 26 21 02 00 35 04 06 00 84 BA D8 E2 5D 89 00 00 C0 [02:43:48]Write i2c OK [02:43:48]MH_I2C_Read... [02:43:48]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:48]Read from MH i2c: E2 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 03 00 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 03 00 8B 6E 00 90 00 6D [02:43:48]RAPDU: 90 00 [02:43:48]wFMCommunicate OK [02:43:48]wFMCommunicate request_size=4 [02:43:48]MH_SAM_APDU [02:43:48]CAPDU: 80 0D 03 02 [02:43:48]Write to MH i2c: E2 08 00 8C 6E 80 0D 03 02 00 00 00 00 75 [02:43:48]Write i2c OK [02:43:48]MH_I2C_Read... [02:43:48]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:43:48]Read from MH i2c: E2 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 0B 00 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 0B 00 8C 6E 00 66 E5 F0 74 7E 84 7A 30 90 00 D1 [02:43:48]RAPDU: 66 E5 F0 74 7E 84 7A 30 90 00 [02:43:48]wFMCommunicate OK [02:43:48]SAM_PROTO_SignData done [02:43:48]FM_MakeSignedData done [02:43:48]CreateOFDProtocolMessage [02:43:48]wFMCommunicate request_size=4 [02:43:48]MH_SAM_APDU [02:43:48]CAPDU: 80 11 00 00 [02:43:48]Write to MH i2c: E2 08 00 8D 6E 80 11 00 00 00 00 00 00 75 [02:43:48]Write i2c OK [02:43:48]MH_I2C_Read... [02:43:48]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:48]Read from MH i2c: E2 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 17 00 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: E2 17 00 8D 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 D0 [02:43:48]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:43:48]wFMCommunicate OK [02:43:48]CreateOFDProtocolMessage done [02:43:48]OFDSenderStorePacket 139558 [02:43:48]StoreOFDPacket docnum=139558 [02:43:48]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1F 01 00 00 E3 AB 17 01 22 7F 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 EB EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 26 21 02 00 35 04 06 00 84 BA D8 E2 5D 89 66 E5 F0 74 7E 84 7A 30 [02:43:48]CheckFolder [02:43:48]dirname=/storage/ofd_packets [02:43:48]CheckFolder done [02:43:48]ProducePacketName [02:43:48]name=ofd_packets/00139558 [02:43:48]NVStorageSaveData ofd_packets/00139558 [02:43:48]File name is /storage/ofd_packets/00139558 [02:43:48]Write 317 bytes [02:43:48]NVStorageSaveData done [02:43:48]OFDSenderStorePacket done [02:43:48]KKMCreateOFDPacket done [02:43:48]NVStorageSaveData kkm_last_timestamp [02:43:48]File name is /storage/kkm_last_timestamp [02:43:48]Write 4 bytes [02:43:48]NVStorageSaveData done [02:43:48]ExternCall_PrintAddStr [02:43:48]wPrintStart [02:43:48]Write to MH i2c: 01 00 00 8E 6E FC [02:43:48]Write i2c OK [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: 01 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: 01 07 00 [02:43:48]MH_I2C_Read... [02:43:48]Read from MH i2c: 01 07 00 8E 6E 00 00 00 00 00 FF 0F 11 [02:43:48]RasterBufferAndPrint [02:43:48]line Счет N : (3)335439 [02:43:48]line ИНН: 02508201610067 [02:43:48]line Контрольно-Кассовый Чек [02:43:48]line ПРОДАЖА [02:43:48]line Товар: 46231529 [02:43:48]line Mentos ПФ Арбуз 6*100*2 [02:43:48]line 1.000 * 10.00 [02:43:48]line = 10.00 [02:43:48]line НДС 12% НСП 1% [02:43:48]line > о реализуемом товаре [02:43:48]line ИТОГО: 10.00 [02:43:48]line НСП 1% : 0.09 [02:43:48]line НДС 12% : 1.06 [02:43:48]line Наличными: 10.00 [02:43:48]line Безнал.: 0.00 [02:43:48]line Место: АЗС № 101 "Партнер Нефть" [02:43:48]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:43:48]line СНО: Общий режим [02:43:48]line Чек 35 31.10.2024 02:43 [02:43:48]line Смена: 557 ФФД: 1.0 [02:43:48]line ЗНМ: 0300000081 [02:43:48]line РНМ: 0000000000091631 [02:43:48]line Версия ККМ: 001 [02:43:48]line ФМ: 0000000000874669 [02:43:48]line ФД: 139558 [02:43:48]line ФПД: 145938037497225 [02:43:49]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024355&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139558&fm=145938037497225&tin=02508201610067®Number=0000000000091631&sum=1000 [02:43:49]line 0 [02:43:49]OFD Sender: Processing packet 139558 [packets to send 34, broken 33] [02:43:49]ProducePacketName [02:43:49]name=ofd_packets/00139558 [02:43:49]OFD Sender: To server: pG, [02:43:49]CommunicateWithHost lk.salyk.kg:30040 [02:43:49]ConnectInit lk.salyk.kg [02:43:49]written 0, free lines is 4095 [02:43:49]Connected sock=10 [02:43:49]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 1F 01 00 00 E3 AB 17 01 22 7F 5A 03 01 00 03 00 0B 01 1E 04 01 00 01 23 04 5D 00 8A 04 08 00 34 36 32 33 31 35 32 39 06 04 1E 00 4D 65 6E 74 6F 73 20 D0 9F D0 A4 20 D0 90 D1 80 D0 B1 D1 83 D0 B7 20 36 2A 31 30 30 2A 32 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 E8 03 00 00 00 00 13 04 06 00 E8 03 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E8 03 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 09 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 6A 00 00 00 00 00 07 04 06 00 E8 03 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 EB EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 26 21 02 00 35 04 06 00 84 BA D8 E2 5D 89 66 E5 F0 74 7E 84 7A 30 [02:43:49]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 95 89 47 00 D7 DC A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 26 21 02 00 F4 03 04 00 9A 9A 22 67 B6 04 01 00 00 2C A2 33 8D 78 50 B4 FB [02:43:49]CommunicateWithHost err = 0 [02:43:49]CheckOFDResponse [02:43:49]1017 (14) - 77093643461234 [02:43:49]1041 (16) - 0000000000874669 [02:43:49]1040 (4) - 139558 [02:43:49]1012 (4) - 30.10.2024 20:44 [02:43:49]1206 (1) - 0 [02:43:49]OFD Sender: Remove packet 139558 [02:43:49]ProducePacketName [02:43:49]name=ofd_packets/00139558 [02:43:49]NVStorageDeleteData [02:43:49]Write to MH i2c: 01 00 00 B6 6E 24 [02:43:49]Write i2c OK [02:43:49]MH_I2C_Read... [02:43:49]Read from MH i2c: 01 [02:43:49]MH_I2C_Read... [02:43:49]Read from MH i2c: 01 07 00 [02:43:49]MH_I2C_Read... [02:43:49]Read from MH i2c: 01 07 00 B6 6E 00 00 00 00 00 06 0D 3E [02:43:49]RasterBufferAndPrint [02:43:49]line [02:43:49]line [02:43:49]line [02:43:49]line [02:43:49]line [02:43:49]written 0, free lines is 3343 [02:43:49]MH_Cut [02:43:49]Write to MH i2c: D1 01 00 BD 6E 01 FD [02:43:49]Write i2c OK [02:43:49]MH_I2C_Read... [02:43:49]Read from MH i2c: D1 [02:43:49]MH_I2C_Read... [02:43:49]Read from MH i2c: D1 01 00 [02:43:49]MH_I2C_Read... [02:43:49]Read from MH i2c: D1 01 00 BD 6E 00 FC [02:43:49]Write to MH i2c: 01 00 00 BE 6E 2C [02:43:49]Write i2c OK [02:43:49]MH_I2C_Read... [02:43:49]OFD Sender: No OFD packet to send [02:43:50]*** Cut start [02:43:50]*** Partial cut [02:43:50]*** CUTSNS_PIN = 1 [02:43:50]*** CUTSNS_PIN = 0 [02:43:50]*** Brake cut motor [02:43:50]Read from MH i2c: 01 [02:43:50]MH_I2C_Read... [02:43:50]*** Stop cut motor [02:43:50]*** Cut end [02:43:50]Read from MH i2c: 01 07 00 [02:43:50]MH_I2C_Read... [02:43:50]Read from MH i2c: 01 07 00 BE 6E 00 00 00 00 00 FF 0F 41 [02:43:50]process_action close_receipt done [02:43:50]requested_data is exist [02:43:50]produce_requested_data [02:43:50]requested_item fm.sn is exist - process it [02:43:50]wFMCommunicate request_size=4 [02:43:50]MH_SAM_APDU [02:43:50]CAPDU: 80 11 00 00 [02:43:50]Write to MH i2c: E2 08 00 BF 6E 80 11 00 00 00 00 00 00 A7 [02:43:50]Write i2c OK [02:43:50]MH_I2C_Read... [02:43:50]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:50]Read from MH i2c: E2 [02:43:50]MH_I2C_Read... [02:43:50]Read from MH i2c: E2 17 00 [02:43:50]MH_I2C_Read... [02:43:50]Read from MH i2c: E2 17 00 BF 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 02 [02:43:50]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:43:50]wFMCommunicate OK [02:43:50]requested_item fd.num is exist - process it [02:43:50]SAM_PROTO_GetFieldsCounters [02:43:50]wFMCommunicate request_size=4 [02:43:50]MH_SAM_APDU [02:43:50]CAPDU: 80 13 00 00 [02:43:50]Write to MH i2c: E2 08 00 C0 6E 80 13 00 00 00 00 00 00 AA [02:43:50]Write i2c OK [02:43:50]MH_I2C_Read... [02:43:51]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:43:51]Read from MH i2c: E2 [02:43:51]MH_I2C_Read... [02:43:51]Read from MH i2c: E2 62 00 [02:43:51]MH_I2C_Read... [02:43:51]Read from MH i2c: E2 62 00 C0 6E 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 26 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 AF [02:43:51]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 26 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 23 00 00 00 5E 04 04 00 23 00 00 00 57 04 04 00 24 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:43:51]wFMCommunicate OK [02:43:51]SAM_PROTO_GetFieldsCounters done [02:43:51]requested_item shift.num is exist - process it [02:43:51]requested_item shift.opened is exist - process it [02:43:51]req_shift_opened [02:43:51]FM_GetShiftState [02:43:51]SAM_PROTO_GetShiftState [02:43:51]wFMCommunicate request_size=4 [02:43:51]MH_SAM_APDU [02:43:51]CAPDU: 80 13 01 00 [02:43:51]Write to MH i2c: E2 08 00 C1 6E 80 13 01 00 00 00 00 00 AC [02:43:51]Write i2c OK [02:43:51]MH_I2C_Read... [02:43:51]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:51]Read from MH i2c: E2 [02:43:51]MH_I2C_Read... [02:43:51]Read from MH i2c: E2 0E 00 [02:43:51]MH_I2C_Read... [02:43:51]Read from MH i2c: E2 0E 00 C1 6E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D5 [02:43:51]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:43:51]wFMCommunicate OK [02:43:51]SAM_PROTO_GetShiftState done [02:43:51]FM_GetShiftState done [02:43:51]req_shift_opened done [02:43:51]requested_item shift.open_date is exist - process it [02:43:51]req_shift_open_date [02:43:51]req_shift_open_date done [02:43:51]produce_requested_data done [02:43:51]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139558,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:43:51]process_action_free close_receipt [02:43:51]json_value_free [02:43:51]json_value_free done [02:43:51]process_json_proto returns [02:43:51]Send response to host [02:43:51]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139558,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:43:51]free response buf [02:43:51]execute_script done [02:43:51]execute_script returns [02:43:51]free content buf [02:43:51]Sock 8.Close socket [02:43:51]Sock 8.Thread stoped [02:43:51]accept exits with 9 [02:43:51]New connection [02:43:51]New thread 3067284836 created [02:43:51]Thread 3067141476 joined [02:43:51]Waiting for new connection... [02:43:51] Sock 9.Parse request [02:43:51]Sock 9.Check first char [02:43:51]Sock 9.First char is OK [02:43:51]request: POST /json_proto HTTP/1.0 [02:43:51]Method: POST [02:43:51]URL: /json_proto [02:43:51]Method is POST - this is cgi request [02:43:51]url: /json_proto [02:43:51]query_string will be loaded in cgi processing [02:43:51]execute_cgi json_proto POST (null) [02:43:51]execute_cgi path=json_proto method=POST [02:43:51]POST find Content-Length [02:43:51]Host: 172.17.50.196:8080 [02:43:51]Content-Length: 709 [02:43:51]Content-Type: application/json [02:43:51] [02:43:51]POST finish read [02:43:51]Found Content-Length = 709 [02:43:51]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335440", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:51]execute_script... [02:43: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 : (3)335440", "tax_sys" : 0, "items" : [ { "code": "4700000480302", "name": "\u041D\u0430\u043F\u0438\u0442\u043E\u043A \u044D\u043D\u0435\u0440\u0433 Nitro \u043C\u0430\u043D\u0433\u043E-\u043A\u043B\u0443\u0431 0.45 \u0436/\u0431", "price" : 95.00, "quantity" : 1.000, "sum" : 95.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 95.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:43:51]POST & json_proto [02:43:51]process_json_proto [02:43:51]json parsed OK: [02:43:51]protocol is kg_v1.0 [02:43:51]action value=close_receipt [02:43:51]process_action close_receipt [02:43:51]cmd_close_receipt [02:43:51]MH_GetDate [02:43:51]Write to MH i2c: F0 00 00 C2 6E 1F [02:43:51]Write i2c OK [02:43:51]MH_I2C_Read... [02:43:51]Read from MH i2c: F0 [02:43:51]MH_I2C_Read... [02:43:51]Read from MH i2c: F0 09 00 [02:43:51]MH_I2C_Read... [02:43:51]Read from MH i2c: F0 09 00 C2 6E 00 F0 EE 22 67 72 0D 1C 67 91 [02:43:51]GetLastDocTimeStamp 1730342635 [02:43:51]current date 1730342640 [02:43:51]FM_GetShiftState [02:43:51]SAM_PROTO_GetShiftState [02:43:51]wFMCommunicate request_size=4 [02:43:51]MH_SAM_APDU [02:43:51]CAPDU: 80 13 01 00 [02:43:51]Write to MH i2c: E2 08 00 C3 6E 80 13 01 00 00 00 00 00 AE [02:43:51]Write i2c OK [02:43:51]MH_I2C_Read... [02:43:52]Read from MH i2c: E2 [02:43:52]MH_I2C_Read... [02:43:52]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:52]Read from MH i2c: E2 0E 00 [02:43:52]MH_I2C_Read... [02:43:52]Read from MH i2c: E2 0E 00 C3 6E 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 D7 [02:43:52]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:43:52]wFMCommunicate OK [02:43:52]SAM_PROTO_GetShiftState done [02:43:52]FM_GetShiftState done [02:43:52]opened in 1730332621 [02:43:52]opened+sec_in_day 1730419021 [02:43:52]quantity*price = 9500 [02:43:52]sum+1 = 9501 [02:43:52]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 95.00 НСП 1% : 0.84 НДС 12% : 10.09 Наличными: 95.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 36 31.10.2024 02:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139559 ФПД: 141499791928224 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139559&fm=141499791928224&tin=02508201610067®Number=0000000000091631&sum=9500 0 [02:43:53]StoreToDocumentArchive [02:43:53]shift 557 fd 139559 [02:43:53]save to /storage/0557/doc_00139559 [02:43:53]save last doc name /storage/0557/doc_00139559 to /storage/kkm_last_doc_name [02:43:53]save OK [02:43:53]Clear old archive folders... [02:43:53]ProcessDocumentItem done err = 0, tmpTLVsize=304 [02:43:53]tlvbuf is 01163B60 [02:43:53]SAM_PROTO_ClearQueue [02:43:53]wFMCommunicate request_size=4 [02:43:53]MH_SAM_APDU [02:43:53]CAPDU: 80 09 00 00 [02:43:53]Write to MH i2c: E2 08 00 D0 6E 80 09 00 00 00 00 00 00 B0 [02:43:53]Write i2c OK [02:43:53]MH_I2C_Read... [02:43:53]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:43:53]Read from MH i2c: E2 [02:43:53]MH_I2C_Read... [02:43:53]Read from MH i2c: E2 03 00 [02:43:53]MH_I2C_Read... [02:43:53]Read from MH i2c: E2 03 00 D0 6E 00 90 00 B2 [02:43:53]RAPDU: 90 00 [02:43:53]wFMCommunicate OK [02:43:53]SAM_PROTO_ClearQueue done [02:43:53]KKMCreateOFDPacket [02:43:53]OFDProtocolAddRootSTLVToBuf [02:43:53]FM_MakeSignedData [02:43:53]FM_MakeSignedData [02:43:53]SAM_PROTO_SignData [02:43:53]wFMCommunicate request_size=4 [02:43:53]MH_SAM_APDU [02:43:53]CAPDU: 80 0D 01 02 [02:43:53]Write to MH i2c: E2 08 00 D1 6E 80 0D 01 02 00 00 00 00 B8 [02:43:53]Write i2c OK [02:43:53]MH_I2C_Read... [02:43:53]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:43:53]Read from MH i2c: E2 [02:43:53]MH_I2C_Read... [02:43:53]Read from MH i2c: E2 03 00 [02:43:53]MH_I2C_Read... [02:43:53]Read from MH i2c: E2 03 00 D1 6E 00 90 00 B3 [02:43:53]RAPDU: 90 00 [02:43:53]wFMCommunicate OK [02:43:53]wFMCommunicate request_size=255 [02:43:53]MH_SAM_APDU [02:43:53]CAPDU: 80 0D 02 02 FA 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 24 00 00 00 F4 03 04 00 F0 EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 [02:43:53]Write to MH i2c: E2 02 01 D2 6E 80 0D 02 02 FA 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 24 00 00 00 F4 03 04 00 F0 EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 00 00 B8 [02:43:53]Write i2c OK [02:43:53]MH_I2C_Read... [02:43:53]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:53]Read from MH i2c: E2 [02:43:53]MH_I2C_Read... [02:43:53]Read from MH i2c: E2 03 00 [02:43:53]MH_I2C_Read... [02:43:53]Read from MH i2c: E2 03 00 D2 6E 00 90 00 B4 [02:43:53]RAPDU: 90 00 [02:43:53]wFMCommunicate OK [02:43:53]wFMCommunicate request_size=63 [02:43:53]MH_SAM_APDU [02:43:53]CAPDU: 80 0D 02 02 3A 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 21 02 00 35 04 06 00 80 B1 7C D5 6B A0 [02:43:53]Write to MH i2c: E2 42 00 D3 6E 80 0D 02 02 3A 00 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 21 02 00 35 04 06 00 80 B1 7C D5 6B A0 00 00 DF [02:43:53]Write i2c OK [02:43:53]MH_I2C_Read... [02:43:54]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:43:54]Read from MH i2c: E2 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: E2 03 00 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: E2 03 00 D3 6E 00 90 00 B5 [02:43:54]RAPDU: 90 00 [02:43:54]wFMCommunicate OK [02:43:54]wFMCommunicate request_size=4 [02:43:54]MH_SAM_APDU [02:43:54]CAPDU: 80 0D 03 02 [02:43:54]Write to MH i2c: E2 08 00 D4 6E 80 0D 03 02 00 00 00 00 BD [02:43:54]Write i2c OK [02:43:54]MH_I2C_Read... [02:43:54]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:43:54]Read from MH i2c: E2 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: E2 0B 00 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: E2 0B 00 D4 6E 00 BC 66 51 FD DC C6 7E F6 90 00 44 [02:43:54]RAPDU: BC 66 51 FD DC C6 7E F6 90 00 [02:43:54]wFMCommunicate OK [02:43:54]SAM_PROTO_SignData done [02:43:54]FM_MakeSignedData done [02:43:54]CreateOFDProtocolMessage [02:43:54]wFMCommunicate request_size=4 [02:43:54]MH_SAM_APDU [02:43:54]CAPDU: 80 11 00 00 [02:43:54]Write to MH i2c: E2 08 00 D5 6E 80 11 00 00 00 00 00 00 BD [02:43:54]Write i2c OK [02:43:54]MH_I2C_Read... [02:43:54]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:54]Read from MH i2c: E2 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: E2 17 00 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: E2 17 00 D5 6E 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 18 [02:43:54]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:43:54]wFMCommunicate OK [02:43:54]CreateOFDProtocolMessage done [02:43:54]OFDSenderStorePacket 139559 [02:43:54]StoreOFDPacket docnum=139559 [02:43:54]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 D9 4D 3C 01 0E 6D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 24 00 00 00 F4 03 04 00 F0 EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 21 02 00 35 04 06 00 80 B1 7C D5 6B A0 BC 66 51 FD DC C6 7E F6 [02:43:54]CheckFolder [02:43:54]dirname=/storage/ofd_packets [02:43:54]CheckFolder done [02:43:54]ProducePacketName [02:43:54]name=ofd_packets/00139559 [02:43:54]NVStorageSaveData ofd_packets/00139559 [02:43:54]File name is /storage/ofd_packets/00139559 [02:43:54]Write 354 bytes [02:43:54]NVStorageSaveData done [02:43:54]OFDSenderStorePacket done [02:43:54]KKMCreateOFDPacket done [02:43:54]NVStorageSaveData kkm_last_timestamp [02:43:54]File name is /storage/kkm_last_timestamp [02:43:54]Write 4 bytes [02:43:54]NVStorageSaveData done [02:43:54]ExternCall_PrintAddStr [02:43:54]wPrintStart [02:43:54]Write to MH i2c: 01 00 00 D6 6E 44 [02:43:54]Write i2c OK [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: 01 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: 01 07 00 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: 01 07 00 D6 6E 00 00 00 00 00 FF 0F 59 [02:43:54]RasterBufferAndPrint [02:43:54]line Счет N : (3)335440 [02:43:54]line ИНН: 02508201610067 [02:43:54]line Контрольно-Кассовый Чек [02:43:54]line ПРОДАЖА [02:43:54]line Товар: 4700000480302 [02:43:54]line Напиток энерг Nitro манго-клуб 0.45 ж/б [02:43:54]line 1.000 * 95.00 [02:43:54]line = 95.00 [02:43:54]line НДС 12% НСП 1% [02:43:54]line > о реализуемом товаре [02:43:54]line ИТОГО: 95.00 [02:43:54]line НСП 1% : 0.84 [02:43:54]line НДС 12% : 10.09 [02:43:54]line Наличными: 95.00 [02:43:54]line Безнал.: 0.00 [02:43:54]line Место: АЗС № 101 "Партнер Нефть" [02:43:54]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:43:54]line СНО: Общий режим [02:43:54]line Чек 36 31.10.2024 02:44 [02:43:54]line Смена: 557 ФФД: 1.0 [02:43:54]line ЗНМ: 0300000081 [02:43:54]line РНМ: 0000000000091631 [02:43:54]line Версия ККМ: 001 [02:43:54]line ФМ: 0000000000874669 [02:43:54]line ФД: 139559 [02:43:54]line ФПД: 141499791928224 [02:43:54]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024400&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139559&fm=141499791928224&tin=02508201610067®Number=0000000000091631&sum=9500 [02:43:54]line 0 [02:43:54]written 0, free lines is 4095 [02:43:54]OFD Sender: Processing packet 139559 [packets to send 34, broken 33] [02:43:54]ProducePacketName [02:43:54]name=ofd_packets/00139559 [02:43:54]OFD Sender: To server: pG, [02:43:54]CommunicateWithHost lk.salyk.kg:30040 [02:43:54]ConnectInit lk.salyk.kg [02:43:54]Connected sock=10 [02:43:54]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 44 01 00 00 D9 4D 3C 01 0E 6D 5A 03 01 00 03 00 30 01 1E 04 01 00 01 23 04 82 00 8A 04 0D 00 34 37 30 30 30 30 30 34 38 30 33 30 32 06 04 3E 00 D0 9D D0 B0 D0 BF D0 B8 D1 82 D0 BE D0 BA 20 D1 8D D0 BD D0 B5 D1 80 D0 B3 20 4E 69 74 72 6F 20 D0 BC D0 B0 D0 BD D0 B3 D0 BE 2D D0 BA D0 BB D1 83 D0 B1 20 30 2E 34 35 20 D0 B6 2F D0 B1 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 1C 25 00 00 00 00 13 04 06 00 1C 25 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 1C 25 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 54 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 F1 03 00 00 00 00 07 04 06 00 1C 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 24 00 00 00 F4 03 04 00 F0 EE 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 27 21 02 00 35 04 06 00 80 B1 7C D5 6B A0 BC 66 51 FD DC C6 7E F6 [02:43:54]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 D3 3F 47 00 2F 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 38 37 34 36 36 39 10 04 04 00 27 21 02 00 F4 03 04 00 9F 9A 22 67 B6 04 01 00 00 36 FD 51 9C D9 2C 43 0A [02:43:54]CommunicateWithHost err = 0 [02:43:54]CheckOFDResponse [02:43:54]1017 (14) - 77093643461234 [02:43:54]1041 (16) - 0000000000874669 [02:43:54]1040 (4) - 139559 [02:43:54]1012 (4) - 30.10.2024 20:44 [02:43:54]1206 (1) - 0 [02:43:54]OFD Sender: Remove packet 139559 [02:43:54]ProducePacketName [02:43:54]name=ofd_packets/00139559 [02:43:54]NVStorageDeleteData [02:43:54]Write to MH i2c: 01 00 00 FF 6E 6D [02:43:54]Write i2c OK [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: 01 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: 01 07 00 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: 01 07 00 FF 6E 00 00 00 00 00 04 0D 85 [02:43:54]RasterBufferAndPrint [02:43:54]line [02:43:54]line [02:43:54]line [02:43:54]line [02:43:54]line [02:43:54]written 0, free lines is 3347 [02:43:54]MH_Cut [02:43:54]Write to MH i2c: D1 01 00 06 6F 01 47 [02:43:54]Write i2c OK [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: D1 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: D1 01 00 [02:43:54]MH_I2C_Read... [02:43:54]Read from MH i2c: D1 01 00 06 6F 00 46 [02:43:54]Write to MH i2c: 01 00 00 07 6F 76 [02:43:54]Write i2c OK [02:43:54]MH_I2C_Read... [02:43:55]OFD Sender: No OFD packet to send [02:43:55]*** Cut start [02:43:55]*** Partial cut [02:43:55]*** CUTSNS_PIN = 1 [02:43:55]*** CUTSNS_PIN = 0 [02:43:55]*** Brake cut motor [02:43:55]Read from MH i2c: 01 [02:43:55]MH_I2C_Read... [02:43:55]*** Stop cut motor [02:43:55]*** Cut end [02:43:55]Read from MH i2c: 01 07 00 [02:43:55]MH_I2C_Read... [02:43:55]Read from MH i2c: 01 07 00 07 6F 00 00 00 00 00 FF 0F 8B [02:43:55]process_action close_receipt done [02:43:55]requested_data is exist [02:43:55]produce_requested_data [02:43:55]requested_item fm.sn is exist - process it [02:43:55]wFMCommunicate request_size=4 [02:43:55]MH_SAM_APDU [02:43:55]CAPDU: 80 11 00 00 [02:43:55]Write to MH i2c: E2 08 00 08 6F 80 11 00 00 00 00 00 00 F1 [02:43:55]Write i2c OK [02:43:55]MH_I2C_Read... [02:43:55]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:43:55]Read from MH i2c: E2 [02:43:55]MH_I2C_Read... [02:43:55]Read from MH i2c: E2 17 00 [02:43:55]MH_I2C_Read... [02:43:55]Read from MH i2c: E2 17 00 08 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 4C [02:43:55]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:43:55]wFMCommunicate OK [02:43:55]requested_item fd.num is exist - process it [02:43:55]SAM_PROTO_GetFieldsCounters [02:43:55]wFMCommunicate request_size=4 [02:43:55]MH_SAM_APDU [02:43:55]CAPDU: 80 13 00 00 [02:43:55]Write to MH i2c: E2 08 00 09 6F 80 13 00 00 00 00 00 00 F4 [02:43:55]Write i2c OK [02:43:55]MH_I2C_Read... [02:43:56]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:43:56]Read from MH i2c: E2 [02:43:56]MH_I2C_Read... [02:43:56]Read from MH i2c: E2 62 00 [02:43:56]MH_I2C_Read... [02:43:56]Read from MH i2c: E2 62 00 09 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 27 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 FD [02:43:56]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 27 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 24 00 00 00 5E 04 04 00 24 00 00 00 57 04 04 00 25 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:43:56]wFMCommunicate OK [02:43:56]SAM_PROTO_GetFieldsCounters done [02:43:56]requested_item shift.num is exist - process it [02:43:56]requested_item shift.opened is exist - process it [02:43:56]req_shift_opened [02:43:56]FM_GetShiftState [02:43:56]SAM_PROTO_GetShiftState [02:43:56]wFMCommunicate request_size=4 [02:43:56]MH_SAM_APDU [02:43:56]CAPDU: 80 13 01 00 [02:43:56]Write to MH i2c: E2 08 00 0A 6F 80 13 01 00 00 00 00 00 F6 [02:43:56]Write i2c OK [02:43:56]MH_I2C_Read... [02:43:56]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:43:56]Read from MH i2c: E2 [02:43:56]MH_I2C_Read... [02:43:56]Read from MH i2c: E2 0E 00 [02:43:56]MH_I2C_Read... [02:43:56]Read from MH i2c: E2 0E 00 0A 6F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 1F [02:43:56]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:43:56]wFMCommunicate OK [02:43:56]SAM_PROTO_GetShiftState done [02:43:56]FM_GetShiftState done [02:43:56]req_shift_opened done [02:43:56]requested_item shift.open_date is exist - process it [02:43:56]req_shift_open_date [02:43:56]req_shift_open_date done [02:43:56]produce_requested_data done [02:43:56]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139559,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:43:56]process_action_free close_receipt [02:43:56]json_value_free [02:43:56]json_value_free done [02:43:56]process_json_proto returns [02:43:56]Send response to host [02:43:56]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139559,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:43:56]free response buf [02:43:56]execute_script done [02:43:56]execute_script returns [02:43:56]free content buf [02:43:56]Sock 9.Close socket [02:43:56]Sock 9.Thread stoped [02:44:00]OFD Sender: No OFD packet to send [02:44:05]OFD Sender: No OFD packet to send [02:44:10]OFD Sender: No OFD packet to send [02:44:15]OFD Sender: No OFD packet to send [02:44:20]OFD Sender: No OFD packet to send [02:44:22]accept exits with 8 [02:44:22]New connection [02:44:22]New thread 3067141476 created [02:44:22]Thread 3067284836 joined [02:44:22]Waiting for new connection... [02:44:22] Sock 8.Parse request [02:44:22]Sock 8.Check first char [02:44:22]Sock 8.First char is OK [02:44:22]request: POST /json_proto HTTP/1.0 [02:44:22]Method: POST [02:44:22]URL: /json_proto [02:44:22]Method is POST - this is cgi request [02:44:22]url: /json_proto [02:44:22]query_string will be loaded in cgi processing [02:44:22]execute_cgi json_proto POST (null) [02:44:22]execute_cgi path=json_proto method=POST [02:44:22]POST find Content-Length [02:44:22]Host: 172.17.50.196:8080 [02:44:22]Content-Length: 711 [02:44:22]Content-Type: application/json [02:44:22] [02:44:22]POST finish read [02:44:22]Found Content-Length = 711 [02:44:22]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335441", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:22]execute_script... [02:44: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 : (3)335441", "tax_sys" : 0, "items" : [ { "code": "4870001571030", "name": "\u0412\u043E\u0434\u0430 ASU \u043F\u0438\u0442 \u043D.\u0433\u0430\u0437 \u043A\u043B\u0443\u0431\u043D,\u043A\u0438\u0432\u0438 \u041F\u042D\u0422 1\u043B", "price" : 84.00, "quantity" : 1.000, "sum" : 84.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 84.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:44:22]POST & json_proto [02:44:22]process_json_proto [02:44:22]json parsed OK: [02:44:22]protocol is kg_v1.0 [02:44:22]action value=close_receipt [02:44:22]process_action close_receipt [02:44:22]cmd_close_receipt [02:44:22]MH_GetDate [02:44:22]Write to MH i2c: F0 00 00 0B 6F 69 [02:44:22]Write i2c OK [02:44:22]MH_I2C_Read... [02:44:22]Read from MH i2c: F0 [02:44:22]MH_I2C_Read... [02:44:22]Read from MH i2c: F0 09 00 [02:44:22]MH_I2C_Read... [02:44:22]Read from MH i2c: F0 09 00 0B 6F 00 0E EF 22 67 72 0D 1C 67 FA [02:44:22]GetLastDocTimeStamp 1730342640 [02:44:22]current date 1730342670 [02:44:22]FM_GetShiftState [02:44:22]SAM_PROTO_GetShiftState [02:44:22]wFMCommunicate request_size=4 [02:44:22]MH_SAM_APDU [02:44:22]CAPDU: 80 13 01 00 [02:44:22]Write to MH i2c: E2 08 00 0C 6F 80 13 01 00 00 00 00 00 F8 [02:44:22]Write i2c OK [02:44:22]MH_I2C_Read... [02:44:22]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:22]Read from MH i2c: E2 [02:44:22]MH_I2C_Read... [02:44:22]Read from MH i2c: E2 0E 00 [02:44:22]MH_I2C_Read... [02:44:22]Read from MH i2c: E2 0E 00 0C 6F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 21 [02:44:22]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:44:22]wFMCommunicate OK [02:44:22]SAM_PROTO_GetShiftState done [02:44:22]FM_GetShiftState done [02:44:22]opened in 1730332621 [02:44:22]opened+sec_in_day 1730419021 [02:44:22]quantity*price = 8400 [02:44:22]sum+1 = 8401 [02:44:22]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 84.00 НСП 1% : 0.74 НДС 12% : 8.92 Наличными: 84.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 37 31.10.2024 02:44 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139560 ФПД: 257988025400074 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024430&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139560&fm=257988025400074&tin=02508201610067®Number=0000000000091631&sum=8400 0 [02:44:23]StoreToDocumentArchive [02:44:23]shift 557 fd 139560 [02:44:23]save to /storage/0557/doc_00139560 [02:44:23]save last doc name /storage/0557/doc_00139560 to /storage/kkm_last_doc_name [02:44:23]save OK [02:44:23]Clear old archive folders... [02:44:23]ProcessDocumentItem done err = 0, tmpTLVsize=302 [02:44:23]tlvbuf is 0133B5D0 [02:44:23]SAM_PROTO_ClearQueue [02:44:23]wFMCommunicate request_size=4 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 09 00 00 [02:44:23]Write to MH i2c: E2 08 00 19 6F 80 09 00 00 00 00 00 00 FA [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 03 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 03 00 19 6F 00 90 00 FC [02:44:23]RAPDU: 90 00 [02:44:23]wFMCommunicate OK [02:44:23]SAM_PROTO_ClearQueue done [02:44:23]KKMCreateOFDPacket [02:44:23]OFDProtocolAddRootSTLVToBuf [02:44:23]FM_MakeSignedData [02:44:23]FM_MakeSignedData [02:44:23]SAM_PROTO_SignData [02:44:23]wFMCommunicate request_size=4 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 0D 01 02 [02:44:23]Write to MH i2c: E2 08 00 1A 6F 80 0D 01 02 00 00 00 00 02 [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 03 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 03 00 1A 6F 00 90 00 FD [02:44:23]RAPDU: 90 00 [02:44:23]wFMCommunicate OK [02:44:23]wFMCommunicate request_size=255 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 0D 02 02 FA 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 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 0E EF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 [02:44:23]Write to MH i2c: E2 02 01 1B 6F 80 0D 02 02 FA 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 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 0E EF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 00 00 7A [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 03 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 03 00 1B 6F 00 90 00 FE [02:44:23]RAPDU: 90 00 [02:44:23]wFMCommunicate OK [02:44:23]wFMCommunicate request_size=61 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 0D 02 02 38 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 28 21 02 00 35 04 06 00 EA A3 84 9C 3B 0A [02:44:23]Write to MH i2c: E2 40 00 1C 6F 80 0D 02 02 38 00 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 28 21 02 00 35 04 06 00 EA A3 84 9C 3B 0A 00 00 7A [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 03 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 03 00 1C 6F 00 90 00 FF [02:44:23]RAPDU: 90 00 [02:44:23]wFMCommunicate OK [02:44:23]wFMCommunicate request_size=4 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 0D 03 02 [02:44:23]Write to MH i2c: E2 08 00 1D 6F 80 0D 03 02 00 00 00 00 07 [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 0B 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 0B 00 1D 6F 00 D6 98 52 D5 35 60 3D 8F 90 00 FE [02:44:23]RAPDU: D6 98 52 D5 35 60 3D 8F 90 00 [02:44:23]wFMCommunicate OK [02:44:23]SAM_PROTO_SignData done [02:44:23]FM_MakeSignedData done [02:44:23]CreateOFDProtocolMessage [02:44:23]wFMCommunicate request_size=4 [02:44:23]MH_SAM_APDU [02:44:23]CAPDU: 80 11 00 00 [02:44:23]Write to MH i2c: E2 08 00 1E 6F 80 11 00 00 00 00 00 00 07 [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:23]Read from MH i2c: E2 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 17 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: E2 17 00 1E 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 62 [02:44:23]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:44:23]wFMCommunicate OK [02:44:23]CreateOFDProtocolMessage done [02:44:23]OFDSenderStorePacket 139560 [02:44:23]StoreOFDPacket docnum=139560 [02:44:23]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 42 01 00 00 4A DE 3A 01 93 25 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 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 0E EF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 28 21 02 00 35 04 06 00 EA A3 84 9C 3B 0A D6 98 52 D5 35 60 3D 8F [02:44:23]CheckFolder [02:44:23]dirname=/storage/ofd_packets [02:44:23]CheckFolder done [02:44:23]ProducePacketName [02:44:23]name=ofd_packets/00139560 [02:44:23]NVStorageSaveData ofd_packets/00139560 [02:44:23]File name is /storage/ofd_packets/00139560 [02:44:23]Write 352 bytes [02:44:23]NVStorageSaveData done [02:44:23]OFDSenderStorePacket done [02:44:23]KKMCreateOFDPacket done [02:44:23]NVStorageSaveData kkm_last_timestamp [02:44:23]File name is /storage/kkm_last_timestamp [02:44:23]Write 4 bytes [02:44:23]NVStorageSaveData done [02:44:23]ExternCall_PrintAddStr [02:44:23]wPrintStart [02:44:23]Write to MH i2c: 01 00 00 1F 6F 8E [02:44:23]Write i2c OK [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: 01 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: 01 07 00 [02:44:23]MH_I2C_Read... [02:44:23]Read from MH i2c: 01 07 00 1F 6F 00 00 00 00 00 FF 0F A3 [02:44:23]RasterBufferAndPrint [02:44:23]line Счет N : (3)335441 [02:44:23]line ИНН: 02508201610067 [02:44:23]line Контрольно-Кассовый Чек [02:44:23]line ПРОДАЖА [02:44:23]line Товар: 4870001571030 [02:44:23]line Вода ASU пит н.газ клубн,киви ПЭТ 1л [02:44:23]line 1.000 * 84.00 [02:44:23]line = 84.00 [02:44:23]line НДС 12% НСП 1% [02:44:23]line > о реализуемом товаре [02:44:23]line ИТОГО: 84.00 [02:44:23]line НСП 1% : 0.74 [02:44:23]line НДС 12% : 8.92 [02:44:23]line Наличными: 84.00 [02:44:23]line Безнал.: 0.00 [02:44:23]line Место: АЗС № 101 "Партнер Нефть" [02:44:23]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:44:23]line СНО: Общий режим [02:44:23]line Чек 37 31.10.2024 02:44 [02:44:23]line Смена: 557 ФФД: 1.0 [02:44:23]line ЗНМ: 0300000081 [02:44:23]line РНМ: 0000000000091631 [02:44:23]line Версия ККМ: 001 [02:44:23]line ФМ: 0000000000874669 [02:44:23]line ФД: 139560 [02:44:23]line ФПД: 257988025400074 [02:44:24]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024430&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139560&fm=257988025400074&tin=02508201610067®Number=0000000000091631&sum=8400 [02:44:24]line 0 [02:44:24]OFD Sender: Processing packet 139560 [packets to send 34, broken 33] [02:44:24]ProducePacketName [02:44:24]name=ofd_packets/00139560 [02:44:24]OFD Sender: To server: pG, [02:44:24]CommunicateWithHost lk.salyk.kg:30040 [02:44:24]ConnectInit lk.salyk.kg [02:44:24]written 0, free lines is 4095 [02:44:24]Connected sock=10 [02:44:24]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 42 01 00 00 4A DE 3A 01 93 25 5A 03 01 00 03 00 2E 01 1E 04 01 00 01 23 04 80 00 8A 04 0D 00 34 38 37 30 30 30 31 35 37 31 30 33 30 06 04 3C 00 D0 92 D0 BE D0 B4 D0 B0 20 41 53 55 20 D0 BF D0 B8 D1 82 20 D0 BD 2E D0 B3 D0 B0 D0 B7 20 D0 BA D0 BB D1 83 D0 B1 D0 BD 2C D0 BA D0 B8 D0 B2 D0 B8 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 D0 20 00 00 00 00 13 04 06 00 D0 20 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 D0 20 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 4A 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 7C 03 00 00 00 00 07 04 06 00 D0 20 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 0E EF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 28 21 02 00 35 04 06 00 EA A3 84 9C 3B 0A D6 98 52 D5 35 60 3D 8F [02:44:24]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 FB 06 47 00 D0 9D A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 28 21 02 00 F4 03 04 00 BD 9A 22 67 B6 04 01 00 00 AC DD 6B F7 1C 6E D1 6D [02:44:24]CommunicateWithHost err = 0 [02:44:24]CheckOFDResponse [02:44:24]1017 (14) - 77093643461234 [02:44:24]1041 (16) - 0000000000874669 [02:44:24]1040 (4) - 139560 [02:44:24]1012 (4) - 30.10.2024 20:44 [02:44:24]1206 (1) - 0 [02:44:24]OFD Sender: Remove packet 139560 [02:44:24]ProducePacketName [02:44:24]name=ofd_packets/00139560 [02:44:24]NVStorageDeleteData [02:44:24]Write to MH i2c: 01 00 00 48 6F B7 [02:44:24]Write i2c OK [02:44:24]MH_I2C_Read... [02:44:24]Read from MH i2c: 01 [02:44:24]MH_I2C_Read... [02:44:24]Read from MH i2c: 01 07 00 [02:44:24]MH_I2C_Read... [02:44:24]Read from MH i2c: 01 07 00 48 6F 00 00 00 00 00 FA 0C C4 [02:44:24]RasterBufferAndPrint [02:44:24]line [02:44:24]line [02:44:24]line [02:44:24]line [02:44:24]line [02:44:24]written 0, free lines is 3328 [02:44:24]MH_Cut [02:44:24]Write to MH i2c: D1 01 00 4F 6F 01 90 [02:44:24]Write i2c OK [02:44:24]MH_I2C_Read... [02:44:24]Read from MH i2c: D1 [02:44:24]MH_I2C_Read... [02:44:24]Read from MH i2c: D1 01 00 [02:44:24]MH_I2C_Read... [02:44:24]Read from MH i2c: D1 01 00 4F 6F 00 8F [02:44:24]Write to MH i2c: 01 00 00 50 6F BF [02:44:24]Write i2c OK [02:44:24]MH_I2C_Read... [02:44:24]OFD Sender: No OFD packet to send [02:44:25]*** Cut start [02:44:25]*** Partial cut [02:44:25]*** CUTSNS_PIN = 1 [02:44:25]*** CUTSNS_PIN = 0 [02:44:25]*** Brake cut motor [02:44:25]Read from MH i2c: 01 [02:44:25]MH_I2C_Read... [02:44:25]*** Stop cut motor [02:44:25]*** Cut end [02:44:25]Read from MH i2c: 01 07 00 [02:44:25]MH_I2C_Read... [02:44:25]Read from MH i2c: 01 07 00 50 6F 00 00 00 00 00 FF 0F D4 [02:44:25]process_action close_receipt done [02:44:25]requested_data is exist [02:44:25]produce_requested_data [02:44:25]requested_item fm.sn is exist - process it [02:44:25]wFMCommunicate request_size=4 [02:44:25]MH_SAM_APDU [02:44:25]CAPDU: 80 11 00 00 [02:44:25]Write to MH i2c: E2 08 00 51 6F 80 11 00 00 00 00 00 00 3A [02:44:25]Write i2c OK [02:44:25]MH_I2C_Read... [02:44:25]Read from MH i2c: E2 [02:44:25]MH_I2C_Read... [02:44:25]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:44:25]Read from MH i2c: E2 17 00 [02:44:25]MH_I2C_Read... [02:44:25]Read from MH i2c: E2 17 00 51 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 95 [02:44:25]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:44:25]wFMCommunicate OK [02:44:25]requested_item fd.num is exist - process it [02:44:25]SAM_PROTO_GetFieldsCounters [02:44:25]wFMCommunicate request_size=4 [02:44:25]MH_SAM_APDU [02:44:25]CAPDU: 80 13 00 00 [02:44:25]Write to MH i2c: E2 08 00 52 6F 80 13 00 00 00 00 00 00 3D [02:44:25]Write i2c OK [02:44:25]MH_I2C_Read... [02:44:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:44:26]Read from MH i2c: E2 [02:44:26]MH_I2C_Read... [02:44:26]Read from MH i2c: E2 62 00 [02:44:26]MH_I2C_Read... [02:44:26]Read from MH i2c: E2 62 00 52 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 28 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 4A [02:44:26]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 28 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 25 00 00 00 5E 04 04 00 25 00 00 00 57 04 04 00 26 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:44:26]wFMCommunicate OK [02:44:26]SAM_PROTO_GetFieldsCounters done [02:44:26]requested_item shift.num is exist - process it [02:44:26]requested_item shift.opened is exist - process it [02:44:26]req_shift_opened [02:44:26]FM_GetShiftState [02:44:26]SAM_PROTO_GetShiftState [02:44:26]wFMCommunicate request_size=4 [02:44:26]MH_SAM_APDU [02:44:26]CAPDU: 80 13 01 00 [02:44:26]Write to MH i2c: E2 08 00 53 6F 80 13 01 00 00 00 00 00 3F [02:44:26]Write i2c OK [02:44:26]MH_I2C_Read... [02:44:26]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:44:26]Read from MH i2c: E2 [02:44:26]MH_I2C_Read... [02:44:26]Read from MH i2c: E2 0E 00 [02:44:26]MH_I2C_Read... [02:44:26]Read from MH i2c: E2 0E 00 53 6F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 68 [02:44:26]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:44:26]wFMCommunicate OK [02:44:26]SAM_PROTO_GetShiftState done [02:44:26]FM_GetShiftState done [02:44:26]req_shift_opened done [02:44:26]requested_item shift.open_date is exist - process it [02:44:26]req_shift_open_date [02:44:26]req_shift_open_date done [02:44:26]produce_requested_data done [02:44:26]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139560,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:44:26]process_action_free close_receipt [02:44:26]json_value_free [02:44:26]json_value_free done [02:44:26]process_json_proto returns [02:44:26]Send response to host [02:44:26]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139560,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:44:26]free response buf [02:44:26]execute_script done [02:44:26]execute_script returns [02:44:26]free content buf [02:44:26]Sock 8.Close socket [02:44:26]Sock 8.Thread stoped [02:44:29]OFD Sender: No OFD packet to send [02:44:34]OFD Sender: No OFD packet to send [02:44:39]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:21]accept exits with 9 [02:46:21]New connection [02:46:21]New thread 3067284836 created [02:46:21]Thread 3067141476 joined [02:46:21]Waiting for new connection... [02:46:21] Sock 9.Parse request [02:46:21]Sock 9.Check first char [02:46:21]Sock 9.First char is OK [02:46:21]request: POST /json_proto HTTP/1.0 [02:46:21]Method: POST [02:46:21]URL: /json_proto [02:46:21]Method is POST - this is cgi request [02:46:21]url: /json_proto [02:46:21]query_string will be loaded in cgi processing [02:46:21]execute_cgi json_proto POST (null) [02:46:21]execute_cgi path=json_proto method=POST [02:46:21]POST find Content-Length [02:46:21]Host: 172.17.50.196:8080 [02:46:21]Content-Length: 663 [02:46:21]Content-Type: application/json [02:46:21] [02:46:21]POST finish read [02:46:21]Found Content-Length = 663 [02:46:21]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335442", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:46:21]execute_script... [02: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 : (3)335442", "tax_sys" : 0, "items" : [ { "code": "5449000176448", "name": "\u0421\u043E\u043A Piko Pulpy \u0430\u043F\u0435\u043B\u044C\u0441\u0438\u043D \u041F\u042D\u0422 1\u043B", "price" : 170.00, "quantity" : 1.000, "sum" : 170.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 170.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:46:21]POST & json_proto [02:46:21]process_json_proto [02:46:21]json parsed OK: [02:46:21]protocol is kg_v1.0 [02:46:21]action value=close_receipt [02:46:21]process_action close_receipt [02:46:21]cmd_close_receipt [02:46:21]MH_GetDate [02:46:21]Write to MH i2c: F0 00 00 54 6F B2 [02:46:21]Write i2c OK [02:46:21]MH_I2C_Read... [02:46:21]Read from MH i2c: F0 [02:46:21]MH_I2C_Read... [02:46:21]Read from MH i2c: F0 09 00 [02:46:21]MH_I2C_Read... [02:46:21]Read from MH i2c: F0 09 00 54 6F 00 85 EF 22 67 72 0D 1C 67 BA [02:46:21]GetLastDocTimeStamp 1730342670 [02:46:21]current date 1730342789 [02:46:21]FM_GetShiftState [02:46:21]SAM_PROTO_GetShiftState [02:46:21]wFMCommunicate request_size=4 [02:46:21]MH_SAM_APDU [02:46:21]CAPDU: 80 13 01 00 [02:46:21]Write to MH i2c: E2 08 00 55 6F 80 13 01 00 00 00 00 00 41 [02:46:21]Write i2c OK [02:46:21]MH_I2C_Read... [02:46:21]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:46:21]Read from MH i2c: E2 [02:46:21]MH_I2C_Read... [02:46:21]Read from MH i2c: E2 0E 00 [02:46:21]MH_I2C_Read... [02:46:21]Read from MH i2c: E2 0E 00 55 6F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 6A [02:46:21]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:46:21]wFMCommunicate OK [02:46:21]SAM_PROTO_GetShiftState done [02:46:21]FM_GetShiftState done [02:46:21]opened in 1730332621 [02:46:21]opened+sec_in_day 1730419021 [02:46:21]quantity*price = 17000 [02:46:21]sum+1 = 17001 [02:46:21]Check (price>sum+1) || (price+1 о реализуемом товаре ИТОГО: 170.00 НСП 1% : 1.50 НДС 12% : 18.05 Наличными: 170.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 38 31.10.2024 02:46 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139561 ФПД: 195705746344078 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024629&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139561&fm=195705746344078&tin=02508201610067®Number=0000000000091631&sum=17000 0 [02:46:22]StoreToDocumentArchive [02:46:22]shift 557 fd 139561 [02:46:22]save to /storage/0557/doc_00139561 [02:46:22]save last doc name /storage/0557/doc_00139561 to /storage/kkm_last_doc_name [02:46:22]save OK [02:46:22]Clear old archive folders... [02:46:22]ProcessDocumentItem done err = 0, tmpTLVsize=287 [02:46:22]tlvbuf is 0111A750 [02:46:22]SAM_PROTO_ClearQueue [02:46:22]wFMCommunicate request_size=4 [02:46:22]MH_SAM_APDU [02:46:22]CAPDU: 80 09 00 00 [02:46:22]Write to MH i2c: E2 08 00 62 6F 80 09 00 00 00 00 00 00 43 [02:46:22]Write i2c OK [02:46:22]MH_I2C_Read... [02:46:22]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:46:22]Read from MH i2c: E2 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 03 00 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 03 00 62 6F 00 90 00 45 [02:46:22]RAPDU: 90 00 [02:46:22]wFMCommunicate OK [02:46:22]SAM_PROTO_ClearQueue done [02:46:22]KKMCreateOFDPacket [02:46:22]OFDProtocolAddRootSTLVToBuf [02:46:22]FM_MakeSignedData [02:46:22]FM_MakeSignedData [02:46:22]SAM_PROTO_SignData [02:46:22]wFMCommunicate request_size=4 [02:46:22]MH_SAM_APDU [02:46:22]CAPDU: 80 0D 01 02 [02:46:22]Write to MH i2c: E2 08 00 63 6F 80 0D 01 02 00 00 00 00 4B [02:46:22]Write i2c OK [02:46:22]MH_I2C_Read... [02:46:22]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:46:22]Read from MH i2c: E2 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 03 00 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 03 00 63 6F 00 90 00 46 [02:46:22]RAPDU: 90 00 [02:46:22]wFMCommunicate OK [02:46:22]wFMCommunicate request_size=255 [02:46:22]MH_SAM_APDU [02:46:22]CAPDU: 80 0D 02 02 FA 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 85 EF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 [02:46:22]Write to MH i2c: E2 02 01 64 6F 80 0D 02 02 FA 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 85 EF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 00 00 1F [02:46:22]Write i2c OK [02:46:22]MH_I2C_Read... [02:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:46:22]Read from MH i2c: E2 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 03 00 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 03 00 64 6F 00 90 00 47 [02:46:22]RAPDU: 90 00 [02:46:22]wFMCommunicate OK [02:46:22]wFMCommunicate request_size=46 [02:46:22]MH_SAM_APDU [02:46:22]CAPDU: 80 0D 02 02 29 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 29 21 02 00 35 04 06 00 B1 FE 4B 7D C8 8E [02:46:22]Write to MH i2c: E2 31 00 65 6F 80 0D 02 02 29 00 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 29 21 02 00 35 04 06 00 B1 FE 4B 7D C8 8E 00 00 F7 [02:46:22]Write i2c OK [02:46:22]MH_I2C_Read... [02:46:22]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:46:22]Read from MH i2c: E2 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 03 00 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 03 00 65 6F 00 90 00 48 [02:46:22]RAPDU: 90 00 [02:46:22]wFMCommunicate OK [02:46:22]wFMCommunicate request_size=4 [02:46:22]MH_SAM_APDU [02:46:22]CAPDU: 80 0D 03 02 [02:46:22]Write to MH i2c: E2 08 00 66 6F 80 0D 03 02 00 00 00 00 50 [02:46:22]Write i2c OK [02:46:22]MH_I2C_Read... [02:46:22]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:46:22]Read from MH i2c: E2 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 0B 00 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 0B 00 66 6F 00 E7 4E F7 FE BC 25 EE 6C 90 00 B6 [02:46:22]RAPDU: E7 4E F7 FE BC 25 EE 6C 90 00 [02:46:22]wFMCommunicate OK [02:46:22]SAM_PROTO_SignData done [02:46:22]FM_MakeSignedData done [02:46:22]CreateOFDProtocolMessage [02:46:22]wFMCommunicate request_size=4 [02:46:22]MH_SAM_APDU [02:46:22]CAPDU: 80 11 00 00 [02:46:22]Write to MH i2c: E2 08 00 67 6F 80 11 00 00 00 00 00 00 50 [02:46:22]Write i2c OK [02:46:22]MH_I2C_Read... [02:46:22]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:46:22]Read from MH i2c: E2 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 17 00 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: E2 17 00 67 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 AB [02:46:22]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:46:22]wFMCommunicate OK [02:46:22]CreateOFDProtocolMessage done [02:46:22]OFDSenderStorePacket 139561 [02:46:22]StoreOFDPacket docnum=139561 [02:46:22]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 33 01 00 00 1A 33 2B 01 1A 58 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 85 EF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 29 21 02 00 35 04 06 00 B1 FE 4B 7D C8 8E E7 4E F7 FE BC 25 EE 6C [02:46:22]CheckFolder [02:46:22]dirname=/storage/ofd_packets [02:46:22]CheckFolder done [02:46:22]ProducePacketName [02:46:22]name=ofd_packets/00139561 [02:46:22]NVStorageSaveData ofd_packets/00139561 [02:46:22]File name is /storage/ofd_packets/00139561 [02:46:22]Write 337 bytes [02:46:22]NVStorageSaveData done [02:46:22]OFDSenderStorePacket done [02:46:22]KKMCreateOFDPacket done [02:46:22]NVStorageSaveData kkm_last_timestamp [02:46:22]File name is /storage/kkm_last_timestamp [02:46:22]Write 4 bytes [02:46:22]NVStorageSaveData done [02:46:22]ExternCall_PrintAddStr [02:46:22]wPrintStart [02:46:22]Write to MH i2c: 01 00 00 68 6F D7 [02:46:22]Write i2c OK [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: 01 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: 01 07 00 [02:46:22]MH_I2C_Read... [02:46:22]Read from MH i2c: 01 07 00 68 6F 00 00 00 00 00 FF 0F EC [02:46:22]RasterBufferAndPrint [02:46:22]line Счет N : (3)335442 [02:46:22]line ИНН: 02508201610067 [02:46:22]line Контрольно-Кассовый Чек [02:46:22]line ПРОДАЖА [02:46:22]line Товар: 5449000176448 [02:46:22]line Сок Piko Pulpy апельсин ПЭТ 1л [02:46:22]line 1.000 * 170.00 [02:46:22]line = 170.00 [02:46:22]line НДС 12% НСП 1% [02:46:22]line > о реализуемом товаре [02:46:22]line ИТОГО: 170.00 [02:46:22]line НСП 1% : 1.50 [02:46:22]line НДС 12% : 18.05 [02:46:22]line Наличными: 170.00 [02:46:22]line Безнал.: 0.00 [02:46:22]line Место: АЗС № 101 "Партнер Нефть" [02:46:22]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:46:22]line СНО: Общий режим [02:46:22]line Чек 38 31.10.2024 02:46 [02:46:22]line Смена: 557 ФФД: 1.0 [02:46:22]line ЗНМ: 0300000081 [02:46:22]line РНМ: 0000000000091631 [02:46:22]line Версия ККМ: 001 [02:46:22]line ФМ: 0000000000874669 [02:46:22]line ФД: 139561 [02:46:22]line ФПД: 195705746344078 [02:46:23]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T024629&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139561&fm=195705746344078&tin=02508201610067®Number=0000000000091631&sum=17000 [02:46:23]line 0 [02:46:23]OFD Sender: Processing packet 139561 [packets to send 34, broken 33] [02:46:23]ProducePacketName [02:46:23]name=ofd_packets/00139561 [02:46:23]OFD Sender: To server: pG, [02:46:23]CommunicateWithHost lk.salyk.kg:30040 [02:46:23]ConnectInit lk.salyk.kg [02:46:23]written 0, free lines is 4095 [02:46:23]Connected sock=10 [02:46:23]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 33 01 00 00 1A 33 2B 01 1A 58 5A 03 01 00 03 00 1F 01 1E 04 01 00 01 23 04 71 00 8A 04 0D 00 35 34 34 39 30 30 30 31 37 36 34 34 38 06 04 2D 00 D0 A1 D0 BE D0 BA 20 50 69 6B 6F 20 50 75 6C 70 79 20 D0 B0 D0 BF D0 B5 D0 BB D1 8C D1 81 D0 B8 D0 BD 20 D0 9F D0 AD D0 A2 20 31 D0 BB FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 68 42 00 00 00 00 13 04 06 00 68 42 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 68 42 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 96 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 0D 07 00 00 00 00 07 04 06 00 68 42 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 26 00 00 00 F4 03 04 00 85 EF 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 29 21 02 00 35 04 06 00 B1 FE 4B 7D C8 8E E7 4E F7 FE BC 25 EE 6C [02:46:23]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 98 50 47 00 95 00 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 29 21 02 00 F4 03 04 00 34 9B 22 67 B6 04 01 00 00 E2 47 8F F1 B4 2C 66 34 [02:46:23]CommunicateWithHost err = 0 [02:46:23]CheckOFDResponse [02:46:23]1017 (14) - 77093643461234 [02:46:23]1041 (16) - 0000000000874669 [02:46:23]1040 (4) - 139561 [02:46:23]1012 (4) - 30.10.2024 20:46 [02:46:23]1206 (1) - 0 [02:46:23]OFD Sender: Remove packet 139561 [02:46:23]ProducePacketName [02:46:23]name=ofd_packets/00139561 [02:46:23]NVStorageDeleteData [02:46:23]Write to MH i2c: 01 00 00 91 6F 00 [02:46:23]Write i2c OK [02:46:23]MH_I2C_Read... [02:46:23]Read from MH i2c: 01 [02:46:23]MH_I2C_Read... [02:46:23]Read from MH i2c: 01 07 00 [02:46:23]MH_I2C_Read... [02:46:23]Read from MH i2c: 01 07 00 91 6F 00 00 00 00 00 F5 0C 08 [02:46:23]RasterBufferAndPrint [02:46:23]line [02:46:23]line [02:46:23]line [02:46:23]line [02:46:23]line [02:46:23]written 0, free lines is 3324 [02:46:23]MH_Cut [02:46:23]Write to MH i2c: D1 01 00 98 6F 01 D9 [02:46:23]Write i2c OK [02:46:23]MH_I2C_Read... [02:46:23]Read from MH i2c: D1 [02:46:23]MH_I2C_Read... [02:46:23]Read from MH i2c: D1 01 00 [02:46:23]MH_I2C_Read... [02:46:23]Read from MH i2c: D1 01 00 98 6F 00 D8 [02:46:23]Write to MH i2c: 01 00 00 99 6F 08 [02:46:23]Write i2c OK [02:46:23]MH_I2C_Read... [02:46:23]OFD Sender: No OFD packet to send [02:46:24]*** Cut start [02:46:24]*** Partial cut [02:46:24]*** CUTSNS_PIN = 1 [02:46:24]*** CUTSNS_PIN = 0 [02:46:24]*** Brake cut motor [02:46:24]Read from MH i2c: 01 [02:46:24]MH_I2C_Read... [02:46:24]*** Stop cut motor [02:46:24]*** Cut end [02:46:24]Read from MH i2c: 01 07 00 [02:46:24]MH_I2C_Read... [02:46:24]Read from MH i2c: 01 07 00 99 6F 00 00 00 00 00 FF 0F 1D [02:46:24]process_action close_receipt done [02:46:24]requested_data is exist [02:46:24]produce_requested_data [02:46:24]requested_item fm.sn is exist - process it [02:46:24]wFMCommunicate request_size=4 [02:46:24]MH_SAM_APDU [02:46:24]CAPDU: 80 11 00 00 [02:46:24]Write to MH i2c: E2 08 00 9A 6F 80 11 00 00 00 00 00 00 83 [02:46:24]Write i2c OK [02:46:24]MH_I2C_Read... [02:46:24]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:46:24]Read from MH i2c: E2 [02:46:24]MH_I2C_Read... [02:46:24]Read from MH i2c: E2 17 00 [02:46:24]MH_I2C_Read... [02:46:24]Read from MH i2c: E2 17 00 9A 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 DE [02:46:24]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:46:24]wFMCommunicate OK [02:46:24]requested_item fd.num is exist - process it [02:46:24]SAM_PROTO_GetFieldsCounters [02:46:24]wFMCommunicate request_size=4 [02:46:24]MH_SAM_APDU [02:46:24]CAPDU: 80 13 00 00 [02:46:24]Write to MH i2c: E2 08 00 9B 6F 80 13 00 00 00 00 00 00 86 [02:46:24]Write i2c OK [02:46:24]MH_I2C_Read... [02:46:25]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:46:25]Read from MH i2c: E2 [02:46:25]MH_I2C_Read... [02:46:25]Read from MH i2c: E2 62 00 [02:46:25]MH_I2C_Read... [02:46:25]Read from MH i2c: E2 62 00 9B 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 29 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 97 [02:46:25]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 29 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 26 00 00 00 5E 04 04 00 26 00 00 00 57 04 04 00 27 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:46:25]wFMCommunicate OK [02:46:25]SAM_PROTO_GetFieldsCounters done [02:46:25]requested_item shift.num is exist - process it [02:46:25]requested_item shift.opened is exist - process it [02:46:25]req_shift_opened [02:46:25]FM_GetShiftState [02:46:25]SAM_PROTO_GetShiftState [02:46:25]wFMCommunicate request_size=4 [02:46:25]MH_SAM_APDU [02:46:25]CAPDU: 80 13 01 00 [02:46:25]Write to MH i2c: E2 08 00 9C 6F 80 13 01 00 00 00 00 00 88 [02:46:25]Write i2c OK [02:46:25]MH_I2C_Read... [02:46:25]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:46:25]Read from MH i2c: E2 [02:46:25]MH_I2C_Read... [02:46:25]Read from MH i2c: E2 0E 00 [02:46:25]MH_I2C_Read... [02:46:25]Read from MH i2c: E2 0E 00 9C 6F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B1 [02:46:25]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:46:25]wFMCommunicate OK [02:46:25]SAM_PROTO_GetShiftState done [02:46:25]FM_GetShiftState done [02:46:25]req_shift_opened done [02:46:25]requested_item shift.open_date is exist - process it [02:46:25]req_shift_open_date [02:46:25]req_shift_open_date done [02:46:25]produce_requested_data done [02:46:25]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139561,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:46:25]process_action_free close_receipt [02:46:25]json_value_free [02:46:25]json_value_free done [02:46:25]process_json_proto returns [02:46:25]Send response to host [02:46:25]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139561,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:46:25]free response buf [02:46:25]execute_script done [02:46:25]execute_script returns [02:46:25]free content buf [02:46:25]Sock 9.Close socket [02:46:25]Sock 9.Thread stoped [02:46:28]OFD Sender: No OFD packet to send [02:46:33]OFD Sender: No OFD packet to send [02:46:38]OFD Sender: No OFD packet to send [02:46:43]OFD Sender: No OFD packet to send [02:46:48]OFD Sender: No OFD packet to send [02:46:53]OFD Sender: No OFD packet to send [02:46:58]OFD Sender: No OFD packet to send [02:47:03]OFD Sender: No OFD packet to send [02:47:08]OFD Sender: No OFD packet to send [02:47:13]OFD Sender: No OFD packet to send [02:47:18]OFD Sender: No OFD packet to send [02:47:23]OFD Sender: No OFD packet to send [02:47:28]OFD Sender: No OFD packet to send [02:47:33]OFD Sender: No OFD packet to send [02:47:38]OFD Sender: No OFD packet to send [02:47:43]OFD Sender: No OFD packet to send [02:47:48]OFD Sender: No OFD packet to send [02:47:53]OFD Sender: No OFD packet to send [02:47:58]OFD Sender: No OFD packet to send [02:48:03]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:34]OFD Sender: No OFD packet to send [02:48:39]OFD Sender: No OFD packet to send [02:48:44]OFD Sender: No OFD packet to send [02:48:49]OFD Sender: No OFD packet to send [02:48:54]OFD Sender: No OFD packet to send [02:48:59]OFD Sender: No OFD packet to send [02:49:04]OFD Sender: No OFD packet to send [02:49:09]OFD Sender: No OFD packet to send [02:49:14]OFD Sender: No OFD packet to send [02:49:19]OFD Sender: No OFD packet to send [02:49:24]OFD Sender: No OFD packet to send [02:49:29]OFD Sender: No OFD packet to send [02:49:34]OFD Sender: No OFD packet to send [02:49:39]OFD Sender: No OFD packet to send [02:49:44]OFD Sender: No OFD packet to send [02:49:49]OFD Sender: No OFD packet to send [02:49:54]OFD Sender: No OFD packet to send [02:49:59]OFD Sender: No OFD packet to send [02:50:04]OFD Sender: No OFD packet to send [02:50:09]OFD Sender: No OFD packet to send [02:50:14]OFD Sender: No OFD packet to send [02:50:19]OFD Sender: No OFD packet to send [02:50:24]OFD Sender: No OFD packet to send [02:50:29]OFD Sender: No OFD packet to send [02:50:34]OFD Sender: No OFD packet to send [02:50:39]OFD Sender: No OFD packet to send [02:50:44]OFD Sender: No OFD packet to send [02:50:45]accept exits with 8 [02:50:45]New connection [02:50:45]New thread 3067141476 created [02:50:45]Thread 3067284836 joined [02:50:45]Waiting for new connection... [02:50:45] Sock 8.Parse request [02:50:45]Sock 8.Check first char [02:50:45]Sock 8.First char is OK [02:50:45]request: POST /json_proto HTTP/1.0 [02:50:45]Method: POST [02:50:45]URL: /json_proto [02:50:45]Method is POST - this is cgi request [02:50:45]url: /json_proto [02:50:45]query_string will be loaded in cgi processing [02:50:45]execute_cgi json_proto POST (null) [02:50:45]execute_cgi path=json_proto method=POST [02:50:45]POST find Content-Length [02:50:45]Host: 172.17.50.196:8080 [02:50:45]Content-Length: 878 [02:50:45]Content-Type: application/json [02:50:45] [02:50:45]POST finish read [02:50:45]Found Content-Length = 878 [02:50:45]post body = { "protocol" : "kg_v1.0", "request" : { "action" : "close_receipt", "params" : { "type" : "sale", "pre_header_text": "\u0421\u0447\u0435\u0442 N : (3)335443", "tax_sys" : 0, "items" : [ { "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 54.00, "quantity" : 1.000, "sum" : 54.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:45]execute_script... [02:50: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 : (3)335443", "tax_sys" : 0, "items" : [ { "code": "4870112002768", "name": "\u041F\u0435\u0447\u0435\u043D\u044C\u0435 Biskrem 100\u0433", "price" : 54.00, "quantity" : 1.000, "sum" : 54.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ,{ "code": "2000036220012", "name": "\u041A\u043E\u0444\u0435 \u041A\u0430\u043F\u0443\u0447\u0438\u043D\u043E XL(GABB TRADE)", "price" : 130.00, "quantity" : 1.000, "sum" : 130.00, "attribute": 0, "vats" : [ {"type": 0, "rate": 1 }, { "type": 1, "rate": 1 }]} ], "payments": [ { "type": 0, "sum" : 184.00 } ], "post_footer_text": "0" } , "requested_data" : [ "fm.sn", "fd.num", "shift.num", "shift.opened", "shift.open_date" ] } } [02:50:45]POST & json_proto [02:50:45]process_json_proto [02:50:45]json parsed OK: [02:50:45]protocol is kg_v1.0 [02:50:45]action value=close_receipt [02:50:45]process_action close_receipt [02:50:45]cmd_close_receipt [02:50:45]MH_GetDate [02:50:45]Write to MH i2c: F0 00 00 9D 6F FB [02:50:45]Write i2c OK [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 09 00 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: F0 09 00 9D 6F 00 8D F0 22 67 72 0D 1C 67 0C [02:50:45]GetLastDocTimeStamp 1730342789 [02:50:45]current date 1730343053 [02:50:45]FM_GetShiftState [02:50:45]SAM_PROTO_GetShiftState [02:50:45]wFMCommunicate request_size=4 [02:50:45]MH_SAM_APDU [02:50:45]CAPDU: 80 13 01 00 [02:50:45]Write to MH i2c: E2 08 00 9E 6F 80 13 01 00 00 00 00 00 8A [02:50:45]Write i2c OK [02:50:45]MH_I2C_Read... [02:50:45]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:45]Read from MH i2c: E2 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: E2 0E 00 [02:50:45]MH_I2C_Read... [02:50:45]Read from MH i2c: E2 0E 00 9E 6F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 B3 [02:50:45]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:50:45]wFMCommunicate OK [02:50:45]SAM_PROTO_GetShiftState done [02:50:45]FM_GetShiftState done [02:50:45]opened in 1730332621 [02:50:45]opened+sec_in_day 1730419021 [02:50:45]quantity*price = 5400 [02:50:45]sum+1 = 5401 [02:50:45]Check (price>sum+1) || (price+1sum+1) || (price+1 о реализуемом товаре Товар: 2000036220012 Кофе Капучино XL(GABB TRADE) 1.000 * 130.00 = 130.00 НДС 12% НСП 1% > о реализуемом товаре ИТОГО: 184.00 НСП 1% : 1.63 НДС 12% : 19.53 Наличными: 184.00 Безнал.: 0.00 Место: АЗС № 101 "Партнер Нефть" Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 СНО: Общий режим Чек 39 31.10.2024 02:50 Смена: 557 ФФД: 1.0 ЗНМ: 0300000081 РНМ: 0000000000091631 Версия ККМ: 001 ФМ: 0000000000874669 ФД: 139562 ФПД: 93231592902905 https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T025053&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139562&fm=93231592902905&tin=02508201610067®Number=0000000000091631&sum=18400 0 [02:50:46]StoreToDocumentArchive [02:50:46]shift 557 fd 139562 [02:50:46]save to /storage/0557/doc_00139562 [02:50:46]save last doc name /storage/0557/doc_00139562 to /storage/kkm_last_doc_name [02:50:46]save OK [02:50:46]Clear old archive folders... [02:50:46]ProcessDocumentItem done err = 0, tmpTLVsize=382 [02:50:46]tlvbuf is 012731A0 [02:50:46]SAM_PROTO_ClearQueue [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 09 00 00 [02:50:46]Write to MH i2c: E2 08 00 AB 6F 80 09 00 00 00 00 00 00 8C [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 09 00 00... Resp OK rsp.len_out = 0! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 AB 6F 00 90 00 8E [02:50:46]RAPDU: 90 00 [02:50:46]wFMCommunicate OK [02:50:46]SAM_PROTO_ClearQueue done [02:50:46]KKMCreateOFDPacket [02:50:46]OFDProtocolAddRootSTLVToBuf [02:50:46]FM_MakeSignedData [02:50:46]FM_MakeSignedData [02:50:46]SAM_PROTO_SignData [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 0D 01 02 [02:50:46]Write to MH i2c: E2 08 00 AC 6F 80 0D 01 02 00 00 00 00 94 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 0D 01 02... Resp OK rsp.len_out = 0! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 AC 6F 00 90 00 8F [02:50:46]RAPDU: 90 00 [02:50:46]wFMCommunicate OK [02:50:46]wFMCommunicate request_size=255 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 0D 02 02 FA 03 00 7E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 [02:50:46]Write to MH i2c: E2 02 01 AD 6F 80 0D 02 02 FA 00 03 00 7E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 06 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 AD 6F 00 90 00 90 [02:50:46]RAPDU: 90 00 [02:50:46]wFMCommunicate OK [02:50:46]wFMCommunicate request_size=141 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 0D 02 02 88 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 8D F0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2A 21 02 00 35 04 06 00 54 CB 2B FA 10 F9 [02:50:46]Write to MH i2c: E2 90 00 AE 6F 80 0D 02 02 88 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 8D F0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2A 21 02 00 35 04 06 00 54 CB 2B FA 10 F9 00 00 9C [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 0D 02 02... Resp OK rsp.len_out = 0! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 03 00 AE 6F 00 90 00 91 [02:50:46]RAPDU: 90 00 [02:50:46]wFMCommunicate OK [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 0D 03 02 [02:50:46]Write to MH i2c: E2 08 00 AF 6F 80 0D 03 02 00 00 00 00 99 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 0D 03 02... Resp OK rsp.len_out = 8! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 0B 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 0B 00 AF 6F 00 AD 2B 28 7D 21 7B 59 64 90 00 70 [02:50:46]RAPDU: AD 2B 28 7D 21 7B 59 64 90 00 [02:50:46]wFMCommunicate OK [02:50:46]SAM_PROTO_SignData done [02:50:46]FM_MakeSignedData done [02:50:46]CreateOFDProtocolMessage [02:50:46]wFMCommunicate request_size=4 [02:50:46]MH_SAM_APDU [02:50:46]CAPDU: 80 11 00 00 [02:50:46]Write to MH i2c: E2 08 00 B0 6F 80 11 00 00 00 00 00 00 99 [02:50:46]Write i2c OK [02:50:46]MH_I2C_Read... [02:50:46]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:46]Read from MH i2c: E2 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 17 00 [02:50:46]MH_I2C_Read... [02:50:46]Read from MH i2c: E2 17 00 B0 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 F4 [02:50:46]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:50:46]wFMCommunicate OK [02:50:46]CreateOFDProtocolMessage done [02:50:46]OFDSenderStorePacket 139562 [02:50:46]StoreOFDPacket docnum=139562 [02:50:46]87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 92 01 00 00 45 CD 8A 01 47 4D 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 8D F0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2A 21 02 00 35 04 06 00 54 CB 2B FA 10 F9 AD 2B 28 7D 21 7B 59 64 [02:50:46]CheckFolder [02:50:46]dirname=/storage/ofd_packets [02:50:46]CheckFolder done [02:50:46]ProducePacketName [02:50:46]name=ofd_packets/00139562 [02:50:46]NVStorageSaveData ofd_packets/00139562 [02:50:46]File name is /storage/ofd_packets/00139562 [02:50:46]Write 432 bytes [02:50:46]NVStorageSaveData done [02:50:46]OFDSenderStorePacket done [02:50:46]KKMCreateOFDPacket done [02:50:46]NVStorageSaveData kkm_last_timestamp [02:50:46]File name is /storage/kkm_last_timestamp [02:50:46]Write 4 bytes [02:50:46]NVStorageSaveData done [02:50:46]ExternCall_PrintAddStr [02:50:46]wPrintStart [02:50:46]Write to MH i2c: 01 00 00 B1 6F 20 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 B1 6F 00 00 00 00 00 FF 0F 35 [02:50:47]RasterBufferAndPrint [02:50:47]line Счет N : (3)335443 [02:50:47]line ИНН: 02508201610067 [02:50:47]line Контрольно-Кассовый Чек [02:50:47]line ПРОДАЖА [02:50:47]line Товар: 4870112002768 [02:50:47]line Печенье Biskrem 100г [02:50:47]line 1.000 * 54.00 [02:50:47]line = 54.00 [02:50:47]line НДС 12% НСП 1% [02:50:47]line > о реализуемом товаре [02:50:47]line Товар: 2000036220012 [02:50:47]line Кофе Капучино XL(GABB TRADE) [02:50:47]line 1.000 * 130.00 [02:50:47]line = 130.00 [02:50:47]line НДС 12% НСП 1% [02:50:47]line > о реализуемом товаре [02:50:47]line ИТОГО: 184.00 [02:50:47]line НСП 1% : 1.63 [02:50:47]line НДС 12% : 19.53 [02:50:47]line Наличными: 184.00 [02:50:47]line Безнал.: 0.00 [02:50:47]line Место: АЗС № 101 "Партнер Нефть" [02:50:47]line Адрес: 720001, г. Токтогул, а/д Бишкек-Ош, 41.877065, 72.953806 [02:50:47]line СНО: Общий режим [02:50:47]line Чек 39 31.10.2024 02:50 [02:50:47]line Смена: 557 ФФД: 1.0 [02:50:47]line ЗНМ: 0300000081 [02:50:47]line РНМ: 0000000000091631 [02:50:47]line Версия ККМ: 001 [02:50:47]line ФМ: 0000000000874669 [02:50:47]line ФД: 139562 [02:50:47]line ФПД: 93231592902905 [02:50:47]line https://tax.salyk.kg/tax-web-control/client/api/v1/ticket?/tax-web-control/client/api/v1/ticket?date=20241031T025053&type=1&operation_type=1&fn_number=0000000000874669&fd_number=139562&fm=93231592902905&tin=02508201610067®Number=0000000000091631&sum=18400 [02:50:47]line 0 [02:50:47]OFD Sender: Processing packet 139562 [packets to send 34, broken 33] [02:50:47]ProducePacketName [02:50:47]name=ofd_packets/00139562 [02:50:47]OFD Sender: To server: pG, [02:50:47]CommunicateWithHost lk.salyk.kg:30040 [02:50:47]ConnectInit lk.salyk.kg [02:50:47]written 0, free lines is 4095 [02:50:47]Connected sock=10 [02:50:47]Data to sent: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 92 01 00 00 45 CD 8A 01 47 4D 5A 03 01 00 03 00 7E 01 1E 04 01 00 01 23 04 60 00 8A 04 0D 00 34 38 37 30 31 31 32 30 30 32 37 36 38 06 04 1C 00 D0 9F D0 B5 D1 87 D0 B5 D0 BD D1 8C D0 B5 20 42 69 73 6B 72 65 6D 20 31 30 30 D0 B3 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 18 15 00 00 00 00 13 04 06 00 18 15 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 23 04 6C 00 8A 04 0D 00 32 30 30 30 30 33 36 32 32 30 30 31 32 06 04 28 00 D0 9A D0 BE D1 84 D0 B5 20 D0 9A D0 B0 D0 BF D1 83 D1 87 D0 B8 D0 BD D0 BE 20 58 4C 28 47 41 42 42 20 54 52 41 44 45 29 FF 03 08 00 03 E8 03 00 00 00 00 00 37 04 06 00 C8 32 00 00 00 00 13 04 06 00 C8 32 00 00 00 00 F2 03 01 00 01 F6 03 01 00 01 BC 04 01 00 01 FC 03 06 00 E0 47 00 00 00 00 EB 03 26 00 EF 03 0F 00 F6 03 01 00 01 F7 03 06 00 A3 00 00 00 00 00 EE 03 0F 00 F2 03 01 00 01 F3 03 06 00 A1 07 00 00 00 00 07 04 06 00 E0 47 00 00 00 00 39 04 06 00 00 00 00 00 00 00 1F 04 02 00 01 00 12 04 04 00 27 00 00 00 F4 03 04 00 8D F0 22 67 0E 04 04 00 2D 02 00 00 B9 04 01 00 01 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2A 21 02 00 35 04 06 00 54 CB 2B FA 10 F9 AD 2B 28 7D 21 7B 59 64 [02:50:47]Received data: 87 95 F6 70 47 2C 01 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 4F 00 00 00 8E B5 47 00 88 C4 A5 07 01 00 07 00 3B 00 F9 03 0E 00 37 37 30 39 33 36 34 33 34 36 31 32 33 34 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 10 04 04 00 2A 21 02 00 F4 03 04 00 3C 9C 22 67 B6 04 01 00 00 CD FA B6 E9 85 32 F4 A8 [02:50:47]CommunicateWithHost err = 0 [02:50:47]CheckOFDResponse [02:50:47]1017 (14) - 77093643461234 [02:50:47]1041 (16) - 0000000000874669 [02:50:47]1040 (4) - 139562 [02:50:47]1012 (4) - 30.10.2024 20:51 [02:50:47]1206 (1) - 0 [02:50:47]OFD Sender: Remove packet 139562 [02:50:47]ProducePacketName [02:50:47]name=ofd_packets/00139562 [02:50:47]NVStorageDeleteData [02:50:47]Write to MH i2c: 01 00 00 E0 6F 4F [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: 01 07 00 E0 6F 00 00 00 00 00 CD 0C 2F [02:50:47]RasterBufferAndPrint [02:50:47]line [02:50:47]line [02:50:47]line [02:50:47]line [02:50:47]line [02:50:47]written 0, free lines is 3286 [02:50:47]MH_Cut [02:50:47]Write to MH i2c: D1 01 00 E7 6F 01 28 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: D1 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: D1 01 00 [02:50:47]MH_I2C_Read... [02:50:47]Read from MH i2c: D1 01 00 E7 6F 00 27 [02:50:47]Write to MH i2c: 01 00 00 E8 6F 57 [02:50:47]Write i2c OK [02:50:47]MH_I2C_Read... [02:50:48]OFD Sender: No OFD packet to send [02:50:48]*** Cut start [02:50:48]*** Partial cut [02:50:48]*** CUTSNS_PIN = 1 [02:50:48]*** CUTSNS_PIN = 0 [02:50:48]*** Brake cut motor [02:50:49]Read from MH i2c: 01 [02:50:49]MH_I2C_Read... [02:50:49]*** Stop cut motor [02:50:49]*** Cut end [02:50:49]Read from MH i2c: 01 07 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: 01 07 00 E8 6F 00 00 00 00 00 FF 0F 6C [02:50:49]process_action close_receipt done [02:50:49]requested_data is exist [02:50:49]produce_requested_data [02:50:49]requested_item fm.sn is exist - process it [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 11 00 00 [02:50:49]Write to MH i2c: E2 08 00 E9 6F 80 11 00 00 00 00 00 00 D2 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 11 00 00... Resp OK rsp.len_out = 20! [02:50:49]Read from MH i2c: E2 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 17 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 17 00 E9 6F 00 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 2D [02:50:49]RAPDU: 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 90 00 [02:50:49]wFMCommunicate OK [02:50:49]requested_item fd.num is exist - process it [02:50:49]SAM_PROTO_GetFieldsCounters [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 13 00 00 [02:50:49]Write to MH i2c: E2 08 00 EA 6F 80 13 00 00 00 00 00 00 D5 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 13 00 00... Resp OK rsp.len_out = 95! [02:50:49]Read from MH i2c: E2 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 62 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 62 00 EA 6F 00 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2A 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 EA [02:50:49]RAPDU: 5D 00 B9 04 01 00 01 11 04 10 00 30 30 30 30 30 30 30 30 30 30 38 37 34 36 36 39 0D 04 10 00 30 30 30 30 30 30 30 30 30 30 30 39 31 36 33 31 10 04 04 00 2A 21 02 00 0E 04 04 00 2D 02 00 00 12 04 04 00 27 00 00 00 5E 04 04 00 27 00 00 00 57 04 04 00 28 00 00 00 19 04 04 00 00 00 00 00 90 00 [02:50:49]wFMCommunicate OK [02:50:49]SAM_PROTO_GetFieldsCounters done [02:50:49]requested_item shift.num is exist - process it [02:50:49]requested_item shift.opened is exist - process it [02:50:49]req_shift_opened [02:50:49]FM_GetShiftState [02:50:49]SAM_PROTO_GetShiftState [02:50:49]wFMCommunicate request_size=4 [02:50:49]MH_SAM_APDU [02:50:49]CAPDU: 80 13 01 00 [02:50:49]Write to MH i2c: E2 08 00 EB 6F 80 13 01 00 00 00 00 00 D7 [02:50:49]Write i2c OK [02:50:49]MH_I2C_Read... [02:50:49]*** iso7816_exchange 80 13 01 00... Resp OK rsp.len_out = 11! [02:50:49]Read from MH i2c: E2 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 0E 00 [02:50:49]MH_I2C_Read... [02:50:49]Read from MH i2c: E2 0E 00 EB 6F 00 09 00 01 CD C7 22 67 00 00 00 00 90 00 00 [02:50:49]RAPDU: 09 00 01 CD C7 22 67 00 00 00 00 90 00 [02:50:49]wFMCommunicate OK [02:50:49]SAM_PROTO_GetShiftState done [02:50:49]FM_GetShiftState done [02:50:49]req_shift_opened done [02:50:49]requested_item shift.open_date is exist - process it [02:50:49]req_shift_open_date [02:50:49]req_shift_open_date done [02:50:49]produce_requested_data done [02:50:49]produce_requested_data return {"fm.sn":"0000000000874669","fd.num":139562,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621} [02:50:49]process_action_free close_receipt [02:50:49]json_value_free [02:50:49]json_value_free done [02:50:49]process_json_proto returns [02:50:49]Send response to host [02:50:49]{"protocol":"kg_v1.0","response":{"error":0,"error_desc":"OK","data":{"fm.sn":"0000000000874669","fd.num":139562,"shift.num":557,"shift.opened":1,"shift.open_date":1730332621}}} [02:50:49]free response buf [02:50:49]execute_script done [02:50:49]execute_script returns [02:50:49]free content buf [02:50:49]Sock 8.Close socket [02:50:49]Sock 8.Thread stoped [02:50:53]OFD Sender: No OFD packet to send [02:50:58]OFD Sender: No OFD packet to send [02:51:03]OFD Sender: No OFD packet to send [02:51:08]OFD Sender: No OFD packet to send [02:51:13]OFD Sender: No OFD packet to send [02:51:18]OFD Sender: No OFD packet to send [02:51:23]OFD Sender: No OFD packet to send [02:51:28]OFD Sender: No OFD packet to send [02:51:33]OFD Sender: No OFD packet to send [02:51:38]OFD Sender: No OFD packet to send [02:51:43]OFD Sender: No OFD packet to send [02:51:48]OFD Sender: No OFD packet to send [02:51:53]OFD Sender: No OFD packet to send [02:51:58]OFD Sender: No OFD packet to send [02:52:03]OFD Sender: No OFD packet to send [02:52:08]OFD Sender: No OFD packet to send [02:52:13]OFD Sender: No OFD packet to send [02:52:18]OFD Sender: No OFD packet to send [02:52:23]OFD Sender: No OFD packet to send [02:52:28]OFD Sender: No OFD packet to send [02:52:33]OFD Sender: No OFD packet to send [02:52:38]OFD Sender: No OFD packet to send [02:52:43]OFD Sender: No OFD packet to send [02:52:48]OFD Sender: No OFD packet to send [02:52:53]OFD Sender: No OFD packet to send [02:52:58]OFD Sender: No OFD packet to send [02:53:03]OFD Sender: No OFD packet to send [02:53:08]OFD Sender: No OFD packet to send [02:53:13]OFD Sender: No OFD packet to send [02:53:18]OFD Sender: No OFD packet to send [02:53:23]OFD Sender: No OFD packet to send [02:53:28]OFD Sender: No OFD packet to send [02:53:33]OFD Sender: No OFD packet to send [02:53:38]OFD Sender: No OFD packet to send [02:53:43]OFD Sender: No OFD packet to send [02:53:48]OFD Sender: No OFD packet to send [02:53:53]OFD Sender: No OFD packet to send [02:53:58]OFD Sender: No OFD packet to send [02:54:03]OFD Sender: No OFD packet to send [02:54:08]OFD Sender: No OFD packet to send [02:54:13]OFD Sender: No OFD packet to send [02:54:18]OFD Sender: No OFD packet to send [02:54:23]OFD Sender: No OFD packet to send [02:54:28]OFD Sender: No OFD packet to send [02:54:33]OFD Sender: No OFD packet to send [02:54:38]OFD Sender: No OFD packet to send [02:54:43]OFD Sender: No OFD packet to send [02:54:48]OFD Sender: No OFD packet to send [02:54:53]OFD Sender: No OFD packet to send [02:54:58]OFD Sender: No OFD packet to send [02:55:03]OFD Sender: No OFD packet to send [02:55:08]OFD Sender: No OFD packet to send [02:55:13]OFD Sender: No OFD packet to send [02:55:18]OFD Sender: No OFD packet to send [02:55:23]OFD Sender: No OFD packet to send [02:55:28]OFD Sender: No OFD packet to send [02:55:33]OFD Sender: No OFD packet to send [02:55:38]OFD Sender: No OFD packet to send [02:55:43]OFD Sender: No OFD packet to send [02:55:48]OFD Sender: No OFD packet to send [02:55:53]OFD Sender: No OFD packet to send [02:55:58]OFD Sender: No OFD packet to send [02:56:03]OFD Sender: No OFD packet to send [02:56:08]OFD Sender: No OFD packet to send [02:56:13]OFD Sender: No OFD packet to send [02:56:18]OFD Sender: No OFD packet to send [02:56:23]OFD Sender: No OFD packet to send [02:56:28]OFD Sender: No OFD packet to send [02:56:33]OFD Sender: No OFD packet to send [02:56:38]OFD Sender: No OFD packet to send [02:56:43]OFD Sender: No OFD packet to send [02:56:48]OFD Sender: No OFD packet to send [02:56:53]OFD Sender: No OFD packet to send [02:56:58]OFD Sender: No OFD packet to send [02:57:03]OFD Sender: No OFD packet to send [02:57:08]OFD Sender: No OFD packet to send [02:57:13]OFD Sender: No OFD packet to send [02:57:18]OFD Sender: No OFD packet to send [02:57:23]OFD Sender: No OFD packet to send [02:57:28]OFD Sender: No OFD packet to send [02:57:33]OFD Sender: No OFD packet to send [02:57:38]OFD Sender: No OFD packet to send [02:57:43]OFD Sender: No OFD packet to send [02:57:48]OFD Sender: No OFD packet to send [02:57:53]OFD Sender: No OFD packet to send [02:57:58]OFD Sender: No OFD packet to send [02:58:03]OFD Sender: No OFD packet to send [02:58:08]OFD Sender: No OFD packet to send [02:58:13]OFD Sender: No OFD packet to send [02:58:18]OFD Sender: No OFD packet to send [02:58:23]OFD Sender: No OFD packet to send [02:58:28]OFD Sender: No OFD packet to send [02:58:33]OFD Sender: No OFD packet to send [02:58:38]OFD Sender: No OFD packet to send [02:58:43]OFD Sender: No OFD packet to send [02:58:48]OFD Sender: No OFD packet to send [02:58:53]OFD Sender: No OFD packet to send [02:58:58]OFD Sender: No OFD packet to send [02:59:03]OFD Sender: No OFD packet to send [02:59:08]OFD Sender: No OFD packet to send [02:59:13]OFD Sender: No OFD packet to send [02:59:18]OFD Sender: No OFD packet to send [02:59:23]OFD Sender: No OFD packet to send [02:59:28]OFD Sender: No OFD packet to send [02:59:33]OFD Sender: No OFD packet to send